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

Issue 2808613002: Apply container offset and scroll between transform and container perspective. (Closed)

Created:
3 years, 8 months ago by chrishtr
Modified:
3 years, 8 months ago
Reviewers:
trchen
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply container offset and scroll between transform and containerperspective. Previously, we mapped a visual rect from a child box to its container like this: 1. Apply layout offset from child to container. 2. Apply transform of child. 3. Apply perspective of container. 4. Apply scroll offset of container. 5. Apply clip of container. This is incorrect. It should do steps 1 and 4 after step 2 and before step 3. GeometryMapper already did this correctly. (And VisualRectMappingTest verifies this). BUG=699140 Review-Url: https://codereview.chromium.org/2808613002 Cr-Commit-Position: refs/heads/master@{#463436} Committed: https://chromium.googlesource.com/chromium/src/+/2a2f87ba99ef135283c6cf81a173189e78357965

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Patch Set 4 : none #

Patch Set 5 : none #

Total comments: 7

Patch Set 6 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -41 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 3 chunks +104 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp View 1 2 3 4 2 chunks +44 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (22 generated)
chrishtr
https://codereview.chromium.org/2808613002/diff/80001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2808613002/diff/80001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1234 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1234: // TODO(chrishtr): This applies perspective before the transform. Why? ...
3 years, 8 months ago (2017-04-10 19:37:35 UTC) #18
trchen
> 1. Apply layout offset from child to container. > 2. Apply transform of child. ...
3 years, 8 months ago (2017-04-10 21:15:19 UTC) #19
chrishtr
Fixed the CL description also. https://codereview.chromium.org/2808613002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2808613002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2309 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2309: transform.TranslateRight(offset_in_container.Width().ToFloat(), On 2017/04/10 at ...
3 years, 8 months ago (2017-04-10 21:38:28 UTC) #21
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/2808613002/100001
3 years, 8 months ago (2017-04-10 21:39:42 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 23:11:34 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/2a2f87ba99ef135283c6cf81a173...

Powered by Google App Engine
This is Rietveld 408576698