Bug 375219 - [CSS Spy] CSS values sometimes don't seem to take effect
Summary: [CSS Spy] CSS values sometimes don't seem to take effect
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 17:32 EDT by Brian de Alwis CLA
Modified: 2012-03-23 18:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2012-03-23 17:32:39 EDT
There have been occasions where attempting to set a value using CSS Spy doesn't seem to have any effect -- the old value is returned.  Seen most often when setting background-color on an element where the CSS definitions have set a background-color.
Comment 1 Brian de Alwis CLA 2012-03-23 18:59:08 EDT
Fix committed as: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d0f56b209459a6b072721ec0005c4b22945ea971

AbstractCSSEngine's applyStyleDeclaration() and applyCSSProperty()  perform some caching to avoid reapplying properties.  But they fail to reset the cache when done, and thus changing already-applied  properties can appear to fail.