Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 282461

Summary: [Theming] Possible optimization in ConditionalValues computation
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.2   
Target Milestone: 1.3 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Ralf Sternberg CLA 2009-07-05 09:39:55 EDT
Conditional values returned by StyleSheet#getValues( String, String ) contain redundant elements whenever properties are overwritten in a stylesheet. Such values are unnecessarily sent to the client. Example:

This stylesheet yields a two-element array for getValues( "Button", "color" ) although only the first one is ever needed.

  * {
    color: red;
  }
  Button {
    color: blue;
  }
Comment 1 Ralf Sternberg CLA 2009-12-22 05:32:02 EST
Fixed in CVS HEAD. See StyleSheet#getValues().