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

Issue 2464823003: Refactor LayoutView paint offset updates out of FrameView update code (Closed)

Created:
4 years, 1 month ago by pdr.
Modified:
4 years, 1 month ago
Reviewers:
trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor LayoutView paint offset updates out of FrameView update code Root layer scrolls lets us treat LayoutView like other LayoutObjects and lets us move property updates into the regular LayoutObject update code. This patch removes a special-case for LayoutView in the FrameView property update. Comments have been added describing the LayoutView context updates for fixed and absolute cases. Additionally, LayoutView tests have been unskipped to ensure this does not regress. BUG=645667 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/c674ba80b9579cd38c461bb8f683b677207e46c5 Cr-Commit-Position: refs/heads/master@{#429213}

Patch Set 1 #

Patch Set 2 : Cleaner approach #

Patch Set 3 : Refactor the refactor #

Patch Set 4 : Refactor the refactor #

Total comments: 7

Patch Set 5 : Incorporate Tien-Ren's review ideas #

Total comments: 1

Patch Set 6 : Remove more LayoutView-specific code, update tests #

Patch Set 7 : Remove unnecessary forward decl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -60 lines) Patch
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 5 3 chunks +21 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 7 chunks +7 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (17 generated)
pdr.
4 years, 1 month ago (2016-11-01 21:32:51 UTC) #4
pdr.
4 years, 1 month ago (2016-11-01 21:32:55 UTC) #5
trchen
https://codereview.chromium.org/2464823003/diff/60001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2464823003/diff/60001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode113 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:113: context.current.renderingContextID = 0; Alternative idea: Can we add context.current.paintOffset.moveBy(frameView.location()); ...
4 years, 1 month ago (2016-11-01 22:14:00 UTC) #7
pdr.
Both of the ideas were quite clever. Thanks for the detailed review. Implemented both and ...
4 years, 1 month ago (2016-11-01 23:28:23 UTC) #10
trchen
lgtm https://codereview.chromium.org/2464823003/diff/80001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2464823003/diff/80001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode210 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:210: object.isLayoutView()) { Is the special case still needed? ...
4 years, 1 month ago (2016-11-01 23:36:25 UTC) #13
pdr.
On 2016/11/01 at 23:36:25, trchen wrote: > lgtm > > https://codereview.chromium.org/2464823003/diff/80001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp > File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): ...
4 years, 1 month ago (2016-11-02 02:26:09 UTC) #17
trchen
On 2016/11/02 02:26:09, pdr. wrote: > On 2016/11/01 at 23:36:25, trchen wrote: https://codereview.chromium.org/2464823003/diff/80001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode210 > > ...
4 years, 1 month ago (2016-11-02 02:29:47 UTC) #20
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/2464823003/120001
4 years, 1 month ago (2016-11-02 02:30:22 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-02 05:24:56 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 05:28:16 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c674ba80b9579cd38c461bb8f683b677207e46c5
Cr-Commit-Position: refs/heads/master@{#429213}

Powered by Google App Engine
This is Rietveld 408576698