From a705280c2556f5bbd57daf64baa33070d82e259a Mon Sep 17 00:00:00 2001 From: "bjonesbe@adobe.com" Date: Sat, 7 Sep 2013 06:05:23 +0000 Subject: [PATCH] [CSS Shapes] Floats with shape-outside aren't painting in the correct order https://bugs.webkit.org/show_bug.cgi?id=118492 Reviewed by Darin Adler. Source/WebCore: When removing the old positioning behavior, the code that makes a float with shape-outside gain a layer was left behind. This patch removes that, so now floats with shape-outside are painted just like floats without shape-outside. Also remove the isFloatingWithShapeOutside helper method because its use is now somewhat redundant, and the check it does is now only needed in one place. Test: fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html * rendering/RenderBox.h: (WebCore::RenderBox::shapeOutsideInfo): * rendering/RenderObject.h: * rendering/shapes/ShapeOutsideInfo.cpp: (WebCore::ShapeOutsideInfo::isEnabledFor): LayoutTests: Update tests to reflect correct painting order. Add a new test for the correct painting behavior. * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004-expected.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004.html: * csswg/submitted/shapes/shape-outside/shape-outside-floats-stacked-000.html: * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer-expected.html: Added. * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155244 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- LayoutTests/ChangeLog | 28 ++++++++++++ .../shape-outside-floats-circle-000-expected.html | 3 ++ .../shape-outside-floats-circle-000.html | 1 + .../shape-outside-floats-ellipse-000-expected.html | 3 ++ .../shape-outside-floats-ellipse-000.html | 3 +- ...utside-floats-inset-rectangle-001-expected.html | 3 ++ .../shape-outside-floats-inset-rectangle-001.html | 1 + ...side-floats-rounded-rectangle-001-expected.html | 3 ++ ...shape-outside-floats-rounded-rectangle-001.html | 1 + ...side-floats-rounded-rectangle-002-expected.html | 3 ++ ...shape-outside-floats-rounded-rectangle-002.html | 1 + ...side-floats-rounded-rectangle-003-expected.html | 3 ++ ...shape-outside-floats-rounded-rectangle-003.html | 1 + ...side-floats-rounded-rectangle-004-expected.html | 50 +++++++++++----------- ...shape-outside-floats-rounded-rectangle-004.html | 17 ++++---- .../shape-outside-floats-stacked-000.html | 1 + .../shape-outside-floats-not-a-layer-expected.html | 24 +++++++++++ .../shape-outside-floats-not-a-layer.html | 21 +++++++++ Source/WebCore/ChangeLog | 24 +++++++++++ Source/WebCore/rendering/RenderBox.h | 5 +-- Source/WebCore/rendering/RenderObject.h | 3 -- .../WebCore/rendering/shapes/ShapeOutsideInfo.cpp | 2 +- 22 files changed, 159 insertions(+), 42 deletions(-) create mode 100644 LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer-expected.html create mode 100644 LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 1f7d290..93b463c 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,31 @@ +2013-09-06 Bem Jones-Bey + + [CSS Shapes] Floats with shape-outside aren't painting in the correct order + https://bugs.webkit.org/show_bug.cgi?id=118492 + + Reviewed by Darin Adler. + + Update tests to reflect correct painting order. Add a new test for the + correct painting behavior. + + * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004-expected.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004.html: + * csswg/submitted/shapes/shape-outside/shape-outside-floats-stacked-000.html: + * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer-expected.html: Added. + * fast/shapes/shape-outside-floats/shape-outside-floats-not-a-layer.html: Added. + 2013-09-06 Dirk Schulze Interpolate between CSS filter() and cached images diff --git a/LayoutTests/csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html b/LayoutTests/csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html index afdf02a..a2e734e 100644 --- a/LayoutTests/csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html +++ b/LayoutTests/csswg/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html @@ -1,5 +1,6 @@ shape-outside-floats-circle-000-reference.html + @@ -58,37 +60,35 @@