Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 2744743003: Add support for flattening in GeometryMapper. (Closed)

Created:
3 years, 9 months ago by chrishtr
Modified:
3 years, 9 months ago
Reviewers:
trchen
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for flattening in GeometryMapper. Previously we assumed all matrices were preserve-3d, except flattening at the end. This worked because we never used GeometryMapper in situations that have any 3D. In adding tests, fixed what seems to be a bug in LayoutBox::mapToVisualRectInAncestor space, in which it would skip flattening if either the local style or container style was preseve-3d. The correct behavior is just container. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2744743003 Cr-Commit-Position: refs/heads/master@{#456281} Committed: https://chromium.googlesource.com/chromium/src/+/60792c5afb8cb1eb84db0a874c95286e529eb850

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Patch Set 4 : none #

Patch Set 5 : none #

Patch Set 6 : none #

Total comments: 4

Patch Set 7 : none #

Patch Set 8 : none #

Patch Set 9 : none #

Patch Set 10 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -75 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp View 1 2 3 4 5 6 7 8 16 chunks +132 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp View 1 2 3 4 2 chunks +31 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTransformCache.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (23 generated)
chrishtr
https://codereview.chromium.org/2744743003/diff/90001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2744743003/diff/90001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2404 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2404: bool preserve3D = container->style()->preserves3D(); Tested in VisualRectMappingTest. https://codereview.chromium.org/2744743003/diff/90001/third_party/WebKit/Source/core/layout/LayoutInline.cpp File ...
3 years, 9 months ago (2017-03-10 23:29:54 UTC) #14
chrishtr
Updated to adjust some more tests.
3 years, 9 months ago (2017-03-11 00:03:57 UTC) #17
trchen
lgtm. The changes in Layout*.cpp looks scary, but I believe they in fact fix bugs, ...
3 years, 9 months ago (2017-03-11 02:07:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744743003/170001
3 years, 9 months ago (2017-03-11 02:38:36 UTC) #23
chrishtr
On 2017/03/11 at 02:07:48, trchen wrote: > lgtm. > > The changes in Layout*.cpp looks ...
3 years, 9 months ago (2017-03-11 02:38:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744743003/170001
3 years, 9 months ago (2017-03-11 17:26:01 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:170001) as https://chromium.googlesource.com/chromium/src/+/60792c5afb8cb1eb84db0a874c95286e529eb850
3 years, 9 months ago (2017-03-11 17:48:05 UTC) #30
yoichio
3 years, 9 months ago (2017-03-13 07:44:23 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:170001) has been created in
https://codereview.chromium.org/2749493003/ by yoichio@chromium.org.

The reason for reverting is: 1 test failed on Windows 7
VisualRectMappingTest.ShouldAccountForPreserve3dNested 
:
https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Win%....

Powered by Google App Engine
This is Rietveld 408576698