RFR: 8266966: Wrong CSS properties are applied to other nodes after fix for JDK-8204568 [v2]
    Ambarish Rapte 
    arapte at openjdk.java.net
       
    Mon May 17 19:35:10 UTC 2021
    
    
  
On Mon, 17 May 2021 14:20:33 GMT, Jose Pereda <jpereda at openjdk.org> wrote:
> Just added two minor comments.
Updated PR according to comments, please have a re-look.
> modules/javafx.graphics/src/main/java/javafx/scene/CssStyleHelper.java line 456:
> 
>> 454:     }
>> 455: 
>> 456:     private boolean resetInProgress = false;
> 
> Add a new line?
Added a new line.
> modules/javafx.graphics/src/main/java/javafx/scene/CssStyleHelper.java line 607:
> 
>> 605:             //    CssStyleHelper.CacheContainer.smapId as key.
>> 606:             //    So, when resetToInitialValues() is in progress: the StyleManager.styleMapList gets updated
>> 607:             //    and getStyleMap(node) may return an incorrect StyleMap for a given node.
> 
> Probably a better wording could be:
> 
> //    When resetToInitialValues() is in progress, the StyleManager.styleMapList gets updated, therefore
> //    calls to getStyleMap(node) should be avoided, as it may return an incorrect StyleMap for a given node.
Changed the two lines as suggested.
-------------
PR: https://git.openjdk.java.net/jfx/pull/504
    
    
More information about the openjfx-dev
mailing list