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

Issue 2623823002: Rename and change parameter type of some GeometryMapper methods (Closed)

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

Description

Rename, simplify and change parameter type of some GeometryMapper methods Rename mapRectToDestinationSpace to sourceToDestinationRect mapToVisualRectInDestinationSpace to sourceToDestinationVisualRect localToVisualRectInAncestorSpace to localToAncestorVisualRect so that all mapping methods are in the form (local|source|ancestor)To(local|source|ancestor)(Rect|VisualRect|Matrix|ClipRect) Changed parameters to localToAncestorMatrix and getPrecomputedDataForAncestor() from const PropertyTreeState& to const TransformPaintPropertyNode* because some later changes will require the new form ( TransformationPaintPropertyNode without a state). Simplified localToAncestorMatrix and localToAncestorClipRect because we have early returns when the local node is the same as the ancestor node and we no longer need to handle that condition in the loop. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2623823002 Cr-Commit-Position: refs/heads/master@{#443436} Committed: https://chromium.googlesource.com/chromium/src/+/2bd97cb39b5e3f7371b77f7f6e9c48e699aa3cc5

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : Simplify clip and transform loops #

Patch Set 4 : Also change parameter types of xToYRect(). #

Patch Set 5 : Also change parameter types of xToYRect(). #

Patch Set 6 : Swap local and ancestor parameters in ancestorToLocalRect(). #

Total comments: 10

Messages

Total messages: 36 (22 generated)
Xianzhu
I'm not sure if the new names are good. Wdyt?
3 years, 11 months ago (2017-01-10 17:11:58 UTC) #7
chrishtr
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h (right): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h#newcode73 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h:73: const TransformPaintPropertyNode* sourceTransformNode, Curious: what is the new call ...
3 years, 11 months ago (2017-01-11 22:23:08 UTC) #21
Xianzhu
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h (right): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h#newcode73 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h:73: const TransformPaintPropertyNode* sourceTransformNode, On 2017/01/11 22:23:08, chrishtr wrote: > ...
3 years, 11 months ago (2017-01-11 22:51:33 UTC) #22
chrishtr
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp (left): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp#oldcode57 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp:57: FloatRect result = localToAncestorRect(rect, sourceState, lcaState, success); Why remove ...
3 years, 11 months ago (2017-01-11 23:23:10 UTC) #23
Xianzhu
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp (left): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp#oldcode57 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp:57: FloatRect result = localToAncestorRect(rect, sourceState, lcaState, success); On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 23:54:43 UTC) #24
chrishtr
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp (left): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp#oldcode111 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp:111: } else { On 2017/01/11 at 23:54:43, Xianzhu wrote: ...
3 years, 11 months ago (2017-01-12 18:07:12 UTC) #25
Xianzhu
https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp (left): https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp#oldcode111 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp:111: } else { On 2017/01/12 18:07:12, chrishtr wrote: > ...
3 years, 11 months ago (2017-01-12 18:39:17 UTC) #26
chrishtr
On 2017/01/12 at 18:39:17, wangxianzhu wrote: > https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp > File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp (left): > > https://codereview.chromium.org/2623823002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp#oldcode111 ...
3 years, 11 months ago (2017-01-12 18:46:36 UTC) #27
Xianzhu
On 2017/01/12 18:46:36, chrishtr wrote: > On 2017/01/12 at 18:39:17, wangxianzhu wrote: > > > ...
3 years, 11 months ago (2017-01-12 19:13:17 UTC) #28
chrishtr
On 2017/01/12 at 19:13:17, wangxianzhu wrote: > On 2017/01/12 18:46:36, chrishtr wrote: > > On ...
3 years, 11 months ago (2017-01-12 19:14:48 UTC) #29
Xianzhu
On 2017/01/12 19:14:48, chrishtr wrote: > On 2017/01/12 at 19:13:17, wangxianzhu wrote: > > On ...
3 years, 11 months ago (2017-01-12 19:28:56 UTC) #30
chrishtr
lgtm Sounds good, thanks.
3 years, 11 months ago (2017-01-12 20:42:00 UTC) #32
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/2623823002/100001
3 years, 11 months ago (2017-01-12 20:42:58 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 01:30:49 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/2bd97cb39b5e3f7371b77f7f6e9c...

Powered by Google App Engine
This is Rietveld 408576698