--- old/modules/graphics/src/main/java/javafx/scene/shape/Path.java 2016-06-03 11:04:33.909423252 -0700 +++ new/modules/graphics/src/main/java/javafx/scene/shape/Path.java 2016-06-03 11:04:33.769423254 -0700 @@ -105,6 +105,11 @@ } @Override + public Bounds doComputeLayoutBounds(Node node) { + return ((Path) node).doComputeLayoutBounds(); + } + + @Override public Paint doCssGetFillInitialValue(Shape shape) { return ((Path) shape).doCssGetFillInitialValue(); } @@ -166,7 +171,7 @@ void markPathDirty() { path2d = null; NodeHelper.markDirty(this, DirtyBits.NODE_CONTENTS); - impl_geomChanged(); + NodeHelper.geomChanged(this); } /** @@ -196,7 +201,7 @@ @Override public void invalidated() { NodeHelper.markDirty(Path.this, DirtyBits.NODE_CONTENTS); - impl_geomChanged(); + NodeHelper.geomChanged(Path.this); } @Override @@ -256,7 +261,7 @@ } NodeHelper.markDirty(Path.this, DirtyBits.NODE_CONTENTS); - impl_geomChanged(); + NodeHelper.geomChanged(Path.this); } }; @@ -290,15 +295,9 @@ } } - /** - * @treatAsPrivate implementation detail - * @deprecated This is an internal API that is not intended for use and will be removed in the next version - */ - @Deprecated - @Override - protected Bounds impl_computeLayoutBounds() { + private Bounds doComputeLayoutBounds() { if (isPathValid) { - return super.impl_computeLayoutBounds(); + return null; // Helper will need to call its super's compute layout bounds } return new BoundingBox(0, 0, -1, -1); //create empty bounds }