< prev index next >
modules/graphics/src/main/java/javafx/scene/Scene.java
Print this page
*** 570,580 ****
//
// if (sceneRoot.isDirty(com.sun.javafx.scene.DirtyBits.NODE_CSS)) {
if (sceneRoot.cssFlag != CssFlags.CLEAN) {
// The dirty bit isn't checked but we must ensure it is cleared.
// The cssFlag is set to clean in either Node.processCSS or
! // Node.impl_processCSS(boolean)
sceneRoot.clearDirty(com.sun.javafx.scene.DirtyBits.NODE_CSS);
sceneRoot.processCSS();
}
}
--- 570,580 ----
//
// if (sceneRoot.isDirty(com.sun.javafx.scene.DirtyBits.NODE_CSS)) {
if (sceneRoot.cssFlag != CssFlags.CLEAN) {
// The dirty bit isn't checked but we must ensure it is cleared.
// The cssFlag is set to clean in either Node.processCSS or
! // NodeHelper.processCSS
sceneRoot.clearDirty(com.sun.javafx.scene.DirtyBits.NODE_CSS);
sceneRoot.processCSS();
}
}
*** 952,962 ****
@Override
protected void invalidated() {
final Parent _root = getRoot();
//TODO - use a better method to update mirroring
if (_root.getEffectiveNodeOrientation() == NodeOrientation.RIGHT_TO_LEFT) {
! _root.impl_transformsChanged();
}
if (_root.isResizable()) {
resizeRootOnSceneSizeChange(get() - _root.getLayoutX() - _root.getTranslateX(), _root.getLayoutBounds().getHeight());
}
--- 952,962 ----
@Override
protected void invalidated() {
final Parent _root = getRoot();
//TODO - use a better method to update mirroring
if (_root.getEffectiveNodeOrientation() == NodeOrientation.RIGHT_TO_LEFT) {
! NodeHelper.transformsChanged(_root);
}
if (_root.isResizable()) {
resizeRootOnSceneSizeChange(get() - _root.getLayoutX() - _root.getTranslateX(), _root.getLayoutBounds().getHeight());
}
*** 1617,1627 ****
if (c.wasRemoved() == false) {
continue;
}
break; // no point in resetting more than once...
}
! getRoot().impl_reapplyCSS();
}
};
/**
* Gets an observable list of string URLs linking to the stylesheets to use
--- 1617,1627 ----
if (c.wasRemoved() == false) {
continue;
}
break; // no point in resetting more than once...
}
! getRoot().reapplyCSS();
}
};
/**
* Gets an observable list of string URLs linking to the stylesheets to use
*** 1673,1683 ****
public final ObjectProperty<String> userAgentStylesheetProperty() {
if (userAgentStylesheet == null) {
userAgentStylesheet = new SimpleObjectProperty<String>(Scene.this, "userAgentStylesheet", null) {
@Override protected void invalidated() {
StyleManager.getInstance().forget(Scene.this);
! getRoot().impl_reapplyCSS();
}
};
}
return userAgentStylesheet;
}
--- 1673,1683 ----
public final ObjectProperty<String> userAgentStylesheetProperty() {
if (userAgentStylesheet == null) {
userAgentStylesheet = new SimpleObjectProperty<String>(Scene.this, "userAgentStylesheet", null) {
@Override protected void invalidated() {
StyleManager.getInstance().forget(Scene.this);
! getRoot().reapplyCSS();
}
};
}
return userAgentStylesheet;
}
*** 4005,4015 ****
}
}
private PickResult pickNode(PickRay pickRay) {
PickResultChooser r = new PickResultChooser();
! Scene.this.getRoot().impl_pickNode(pickRay, r);
return r.toPickResult();
}
}
/*******************************************************************************
--- 4005,4015 ----
}
}
private PickResult pickNode(PickRay pickRay) {
PickResultChooser r = new PickResultChooser();
! Scene.this.getRoot().pickNode(pickRay, r);
return r.toPickResult();
}
}
/*******************************************************************************
< prev index next >