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

Issue 2614093002: Combine LayoutObject::previousPaintOffset and paintOffset in paint properties (Closed)

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

Description

Combine LayoutObject::previousPaintOffset and paintOffset in paint properties We save previousPaintOffset for all objects and it's the same as the paint offset saved in paint properties if any. Now save only one copy. Also fix a spv2 paint invalidation bug about paint offset change: previously we checked paint offset change too late. Now check it at the beginning of PaintInvalidator::invalidatePaintIfNeeded() and convert it into a full paint invalidation reason. In this way, we no longer need to pass old and new paint offsets in the context. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2614093002 Cr-Commit-Position: refs/heads/master@{#442094} Committed: https://chromium.googlesource.com/chromium/src/+/a439a069a35766fd06c5c91b72cd22f42d2787bc

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : - #

Patch Set 4 : - #

Total comments: 9

Patch Set 5 : - #

Total comments: 3

Patch Set 6 : Resolve conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -335 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/spv2/paint/invalidation/margin-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 4 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h View 4 chunks +13 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp View 1 2 1 chunk +8 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 6 chunks +13 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp View 1 chunk +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPainter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.h View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 3 4 5 9 chunks +19 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp View 4 chunks +14 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 3 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 5 3 chunks +21 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 31 chunks +113 lines, -182 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 38 (29 generated)
Xianzhu
https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1680 third_party/WebKit/Source/core/layout/LayoutObject.h:1680: void setPaintOffset(const LayoutPoint& p) { Drop "Previous" because we ...
3 years, 11 months ago (2017-01-06 17:24:40 UTC) #18
pdr.
Nice cleanup! https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1680 third_party/WebKit/Source/core/layout/LayoutObject.h:1680: void setPaintOffset(const LayoutPoint& p) { I like ...
3 years, 11 months ago (2017-01-06 18:27:43 UTC) #19
Xianzhu
https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1680 third_party/WebKit/Source/core/layout/LayoutObject.h:1680: void setPaintOffset(const LayoutPoint& p) { On 2017/01/06 18:27:42, pdr. ...
3 years, 11 months ago (2017-01-06 19:24:18 UTC) #22
pdr.
LGTM https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2614093002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode2443 third_party/WebKit/Source/core/layout/LayoutObject.h:2443: // offset that will be used to paint ...
3 years, 11 months ago (2017-01-06 19:40:01 UTC) #25
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/2614093002/80001
3 years, 11 months ago (2017-01-06 21:40:35 UTC) #29
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/2614093002/100001
3 years, 11 months ago (2017-01-06 21:54:16 UTC) #33
Xianzhu
https://codereview.chromium.org/2614093002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2614093002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1678 third_party/WebKit/Source/core/layout/LayoutObject.h:1678: // pre-paint tree walk. TODO(wangxianzhu): Add check of lifecycle ...
3 years, 11 months ago (2017-01-06 22:12:19 UTC) #34
pdr.
On 2017/01/06 at 22:12:19, wangxianzhu wrote: > https://codereview.chromium.org/2614093002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.h > File third_party/WebKit/Source/core/layout/LayoutObject.h (right): > > https://codereview.chromium.org/2614093002/diff/80001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1678 ...
3 years, 11 months ago (2017-01-06 22:33:03 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 23:28:35 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a439a069a35766fd06c5c91b72cd...

Powered by Google App Engine
This is Rietveld 408576698