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

Issue 2173363002: Improve code readibility of PaintPropertyTreeBuilder (Closed)

Created:
4 years, 5 months ago by Xianzhu
Modified:
4 years, 5 months ago
Reviewers:
pdr., jbroman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jchaffraix+rendering, Justin Novosad, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve code readibility of PaintPropertyTreeBuilder - Avoid embedding important logic into the templates. - Use const for ObjectPaintProperties and paint property node types to control mutable accesses to them. Committed: https://crrev.com/20f37eda1f0f79af5dc274fbc7bc9b46fffd4a3a Cr-Commit-Position: refs/heads/master@{#407556}

Patch Set 1 #

Patch Set 2 : - #

Total comments: 4

Patch Set 3 : Remove extra "const" (might be a typo) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -236 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.h View 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 3 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/api/LayoutItem.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 1 2 chunks +49 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 4 chunks +3 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 13 chunks +50 lines, -63 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 54 chunks +92 lines, -92 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunkProperties.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h View 1 2 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
Xianzhu
4 years, 5 months ago (2016-07-24 22:21:18 UTC) #4
Xianzhu
4 years, 5 months ago (2016-07-24 22:22:36 UTC) #6
pdr.
On 2016/07/24 at 22:22:36, wangxianzhu wrote: > LGTM, but please give jbroman a chance to ...
4 years, 5 months ago (2016-07-25 16:03:08 UTC) #9
jbroman
https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode117 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:117: PaintPropertyNode* createOrUpdateProperty(RefPtr<PaintPropertyNode>& field, Args&&... args) Is a variadic template ...
4 years, 5 months ago (2016-07-25 16:38:46 UTC) #10
Xianzhu
https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode117 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:117: PaintPropertyNode* createOrUpdateProperty(RefPtr<PaintPropertyNode>& field, Args&&... args) On 2016/07/25 16:38:46, jbroman ...
4 years, 5 months ago (2016-07-25 16:58:34 UTC) #11
pdr.
On 2016/07/25 at 16:58:34, wangxianzhu wrote: > https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h > File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): > > https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode117 ...
4 years, 5 months ago (2016-07-25 17:02:07 UTC) #12
jbroman
On 2016/07/25 at 17:02:07, pdr wrote: > On 2016/07/25 at 16:58:34, wangxianzhu wrote: > > ...
4 years, 5 months ago (2016-07-25 17:06:12 UTC) #13
Xianzhu
On 2016/07/25 17:06:12, jbroman wrote: > On 2016/07/25 at 17:02:07, pdr wrote: > > On ...
4 years, 5 months ago (2016-07-25 17:28:29 UTC) #14
jbroman
lgtm since I think it's an improvement over what's already landed, though FWIW I do ...
4 years, 5 months ago (2016-07-25 17:45:28 UTC) #15
jbroman
(Oh, and thanks for addressing my original concerns!)
4 years, 5 months ago (2016-07-25 17:45:51 UTC) #16
pdr.
If it's possible to remove the template magic, lets definitely explore that. I didn't realize ...
4 years, 5 months ago (2016-07-25 18:07:55 UTC) #17
Xianzhu
On 2016/07/25 17:06:12, jbroman wrote: > On 2016/07/25 at 17:02:07, pdr wrote: > > On ...
4 years, 5 months ago (2016-07-25 18:23:02 UTC) #18
Xianzhu
https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h File third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h (right): https://codereview.chromium.org/2173363002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h#newcode25 third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h:25: const PassRefPtr<const TransformPaintPropertyNode> parent, On 2016/07/25 17:45:28, jbroman wrote: ...
4 years, 5 months ago (2016-07-25 18:31:23 UTC) #19
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/2173363002/40001
4 years, 5 months ago (2016-07-25 18:32:03 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-25 20:08:37 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 20:10:06 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/20f37eda1f0f79af5dc274fbc7bc9b46fffd4a3a
Cr-Commit-Position: refs/heads/master@{#407556}

Powered by Google App Engine
This is Rietveld 408576698