openjfx/8/master/rt: 97d1312344e8 (original) (raw)

OpenJDK / openjfx / 8 / master / rt

changeset 1817:97d1312344e8 8.0-b61

Automated merge with ssh://jfxsrc.us.oracle.com//javafx/8.0/MASTER/rt

leifs
date Tue, 16 Oct 2012 13:34:08 -0700
parents a49900764c1d c731a926c171
children dafaa830d4d0 d811a42d75ba
files
diffstat 10 files changed, 155 insertions(+), 70 deletions(-)[+] [-] javafx-ui-common/src/com/sun/javafx/css/StyleHelper.java 43 javafx-ui-common/src/com/sun/javafx/scene/KeyboardShortcutsHandler.java 59 javafx-ui-common/src/javafx/scene/Parent.java 40 javafx-ui-common/src/javafx/scene/Scene.java 2 javafx-ui-common/src/javafx/scene/doc-files/cssref.html 2 javafx-ui-common/src/javafx/scene/layout/Background.java 2 javafx-ui-common/src/javafx/scene/layout/CornerRadii.java 35 javafx-ui-controls/src/com/sun/javafx/scene/control/skin/FXVK.java 2 javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java 36 javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css 4

line wrap: on

line diff

--- a/javafx-ui-common/src/com/sun/javafx/css/StyleHelper.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/com/sun/javafx/css/StyleHelper.java Tue Oct 16 13:34:08 2012 -0700 @@ -44,6 +44,8 @@ import com.sun.javafx.css.converters.FontConverter; import com.sun.javafx.css.parser.CSSParser; import com.sun.javafx.logging.PlatformLogger; +import javafx.beans.property.ObjectProperty; +import javafx.beans.property.SimpleObjectProperty; import javafx.scene.Parent; /** @@ -862,11 +864,7 @@ calculatedValue = lookup(node, styleable, isUserSet, getPseudoClassState(), inlineStyles, node, cacheEntry, styleList);

} @@ -1224,9 +1222,9 @@ * Find the property among the styles that pertain to the Node */ private CascadingStyle resolveRef(Node node, String property, long states,

@@ -1235,7 +1233,7 @@ if (states > 0) { // if states > 0, then we need to check this node again, // but without any states.

@@ -1262,7 +1260,8 @@ Node node, ParsedValue value, long states,

@@ -1279,7 +1278,7 @@ final String sval = (String)val; CascadingStyle resolved =

if (resolved != null) { @@ -1290,10 +1289,22 @@ } }

@@ -1311,7 +1322,7 @@ for (int ll=0; ll<layers[l].length; ll++) { if (layers[l][ll] == null) continue; layers[l][ll].resolved =

@@ -1321,7 +1332,7 @@ for (int l=0; l<layer.length; l++) { if (layer[l] == null) continue; layer[l].resolved =

@@ -1414,6 +1425,7 @@ return sbuf.toString(); }

@@ -1427,8 +1439,9 @@ final ParsedValue cssValue = style.getParsedValue(); if (cssValue != null && !("null").equals(cssValue.getValue())) {

@@ -1519,7 +1532,7 @@ else val = styleable.getConverter().convert(resolved, font);

--- a/javafx-ui-common/src/com/sun/javafx/scene/KeyboardShortcutsHandler.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/com/sun/javafx/scene/KeyboardShortcutsHandler.java Tue Oct 16 13:34:08 2012 -0700 @@ -44,6 +44,13 @@ import com.sun.javafx.collections.ObservableListWrapper; import com.sun.javafx.collections.ObservableMapWrapper; import com.sun.javafx.event.BasicEventDispatcher; +import com.sun.javafx.scene.traversal.Direction; + +import static javafx.scene.input.KeyCode.DOWN; +import static javafx.scene.input.KeyCode.LEFT; +import static javafx.scene.input.KeyCode.RIGHT; +import static javafx.scene.input.KeyCode.TAB; +import static javafx.scene.input.KeyCode.UP; public final class KeyboardShortcutsHandler extends BasicEventDispatcher { private ObservableMap<KeyCombination, Runnable> accelerators; @@ -93,14 +100,58 @@ return accelerators; }

+

+ @Override public Event dispatchBubblingEvent(Event event) { /* ** If the key event hasn't been consumed then ** we will process global events in the order :

@@ -118,6 +169,10 @@ if (!event.isConsumed()) { processAccelerators((KeyEvent)event); } +

/*

--- a/javafx-ui-common/src/javafx/scene/Parent.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/javafx/scene/Parent.java Tue Oct 16 13:34:08 2012 -0700 @@ -1115,28 +1115,28 @@ styleManager = null;

--- a/javafx-ui-common/src/javafx/scene/Scene.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/javafx/scene/Scene.java Tue Oct 16 13:34:08 2012 -0700 @@ -1840,6 +1840,8 @@ * on this scene. */ void registerTraversable(Node n) {

+ final TraversalEngine te = lookupTraversalEngine(n); if (te != null) { if (traversalRegistry == null) {

--- a/javafx-ui-common/src/javafx/scene/doc-files/cssref.html Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/javafx/scene/doc-files/cssref.html Tue Oct 16 13:34:08 2012 -0700 @@ -2153,9 +2153,9 @@

  1. background fills
  2. background images
[](#l5.11)

The background and border mechanisms are patterned after the CSS 3 draft[](#l5.12) backgrounds and borders module. See [4] for a[](#l5.13)

--- a/javafx-ui-common/src/javafx/scene/layout/Background.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/javafx/scene/layout/Background.java Tue Oct 16 13:34:08 2012 -0700 @@ -69,7 +69,7 @@ static final StyleableProperty<Node,Paint[]> BACKGROUND_COLOR = new SubStyleableProperty<Paint[]>("-fx-background-color", PaintConverter.SequenceConverter.getInstance(),

static final StyleableProperty<Node,Insets[]> BACKGROUND_RADIUS = new SubStyleableProperty<Insets[]>("-fx-background-radius",

--- a/javafx-ui-common/src/javafx/scene/layout/CornerRadii.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-common/src/javafx/scene/layout/CornerRadii.java Tue Oct 16 13:34:08 2012 -0700 @@ -371,4 +371,39 @@ @Override public int hashCode() { return hash; } +

+

+// ", topLeftHorizontalRadiusAsPercentage=" + topLeftHorizontalRadiusAsPercentage + +// ", topLeftVerticalRadiusAsPercentage=" + topLeftVerticalRadiusAsPercentage + +// ", topRightVerticalRadiusAsPercentage=" + topRightVerticalRadiusAsPercentage + +// ", topRightHorizontalRadiusAsPercentage=" + topRightHorizontalRadiusAsPercentage + +// ", bottomRightHorizontalRadiusAsPercentage=" + bottomRightHorizontalRadiusAsPercentage + +// ", bottomRightVerticalRadiusAsPercentage=" + bottomRightVerticalRadiusAsPercentage + +// ", bottomLeftVerticalRadiusAsPercentage=" + bottomLeftVerticalRadiusAsPercentage + +// ", bottomLeftHorizontalRadiusAsPercentage=" + bottomLeftHorizontalRadiusAsPercentage + +// ", hasPercentBasedRadii=" + hasPercentBasedRadii + +// ", uniform=" + uniform +

}

--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/FXVK.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/FXVK.java Tue Oct 16 13:34:08 2012 -0700 @@ -51,7 +51,7 @@ public class FXVK extends Control {

--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java Tue Oct 16 13:34:08 2012 -0700 @@ -29,24 +29,19 @@ import javafx.beans.value.ObservableValue; import javafx.collections.ListChangeListener; import javafx.event.ActionEvent; +import javafx.event.Event; import javafx.event.EventHandler; -import javafx.geometry.HPos; import javafx.geometry.Insets; -import javafx.geometry.VPos; import javafx.scene.Scene; import javafx.scene.control.ContextMenu; +import javafx.scene.control.Menu; import javafx.scene.control.MenuButton; import javafx.scene.control.MenuItem; import javafx.scene.control.SkinBase; import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Region; import javafx.scene.layout.StackPane; - import com.sun.javafx.scene.control.behavior.MenuButtonBehaviorBase; -import javafx.event.Event; -import javafx.event.Event; -import javafx.event.EventType; -import javafx.scene.control.Menu; -import javafx.scene.layout.Region; /**

-

-

-

-

-// popup.autosize();

--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css Tue Oct 16 09:40:28 2012 -0700 +++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/caspian.css Tue Oct 16 13:34:08 2012 -0700 @@ -1834,7 +1834,7 @@ /* The SplitMenuButton skin uses an inner Label part */ .split-menu-button > .label { -fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color;

@@ -1850,7 +1850,7 @@ -fx-color: -fx-hover-base; } -.split-menu-button > .arrow-button:armed { +.split-menu-button > .arrow-button:pressed { -fx-color: -fx-pressed-base; }