# HG changeset patch # Parent 3911a222bf96aad5e88dcada96204813248719f0 RT-31168: reset CssFlag to clean so css will be reapplied if the node is added back later. diff -r 3911a222bf96 -r 8ae6a3df36ad modules/graphics/src/main/java/javafx/scene/Node.java --- a/modules/graphics/src/main/java/javafx/scene/Node.java Mon Sep 16 20:11:55 2013 -0700 +++ b/modules/graphics/src/main/java/javafx/scene/Node.java Mon Sep 30 12:40:15 2013 -0400 @@ -721,6 +721,11 @@ // See the comments there, also. // impl_reapplyCSS(); + } else { + // RT-31168: reset CssFlag to clean so css will be reapplied if the node is added back later. + // If flag is REAPPLY, then impl_reapplyCSS() will just return and the call to + // notifyParentsOfInvalidatedCSS() will be skipped thus leaving the node un-styled. + cssFlag = CssFlags.CLEAN; } updateTreeVisible(); oldParent = newParent;