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

Issue 1908353002: Shift visual-to-flowthread coordinate space conversion one level up in the tree. (Closed)

Created:
4 years, 8 months ago by mstensho (USE GERRIT)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shift visual-to-flowthread coordinate space conversion one level up in the tree. The same was done for the opposite operation, i.e. flowthread-to-visual coordinate space conversion, in mapLocalToAncestor(), in https://codereview.chromium.org/1819603003 . Let's do the same in mapAncestorToLocal(), so that we're more consistent. This doesn't fix any known bugs, but it sure makes sense that mapLocalToAncestor() be the opposite of mapAncestorToLocal(). This also makes it less of a headache to write unit tests, since you can now feed transformState1 into obj->mapLocalToAncestor(parent) and get transformState2 back, then feed transformState2 into obj->mapAncestorToLocal(parent) and then be back at transformState1. Committed: https://crrev.com/3cf60f451a7af9826083b316811ce9bbb2479ad5 Cr-Commit-Position: refs/heads/master@{#389143}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -28 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 4 chunks +17 lines, -26 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
mstensho (USE GERRIT)
4 years, 8 months ago (2016-04-22 13:14:14 UTC) #2
eae
I like it, thank you! LGTM
4 years, 8 months ago (2016-04-22 16:53:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908353002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908353002/1
4 years, 8 months ago (2016-04-22 16:54:10 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-22 16:58:34 UTC) #6
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:48:54 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3cf60f451a7af9826083b316811ce9bbb2479ad5
Cr-Commit-Position: refs/heads/master@{#389143}

Powered by Google App Engine
This is Rietveld 408576698