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

Issue 1526093006: Fix paint code so that overlays and views paint their own layers. (Closed)

Created:
5 years ago by chrishtr
Modified:
5 years ago
Reviewers:
Xianzhu, wkorman
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_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

Fix paint code so that overlays and views paint their own layers. Previously, in synchronized paint mode, the root FrameView of the page painted everything, including page overlays for the inspector, solid colors and link highlights. Now the inspector and solid color overlays are painted by their own code. This allows us to clean up the lifecycle code in WebViewImpl and also make it faster. Link highlights are still painted by the root frame view, which makes sense because the link highlights belong to the page content and hang off of it. BUG=570112 Committed: https://crrev.com/08fbbc6a745869964f927f436e64c140fc04abb5 Cr-Commit-Position: refs/heads/master@{#365850}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -38 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/root-layer-scrolls View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 1 chunk +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.h View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
chrishtr
https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp File third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp (left): https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp#oldcode702 third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp:702: if (m_overflowControlsHostLayer) See PaintLayerCompositor::ensureRootLayer. This conditional is always true.
5 years ago (2015-12-16 22:32:01 UTC) #4
wkorman
lgtm https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2008 third_party/WebKit/Source/web/WebViewImpl.cpp:2008: if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) { Do things still work the ...
5 years ago (2015-12-16 23:29:54 UTC) #5
Xianzhu
lgtm https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2008 third_party/WebKit/Source/web/WebViewImpl.cpp:2008: if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) { On 2015/12/16 23:29:54, wkorman wrote: ...
5 years ago (2015-12-16 23:45:39 UTC) #6
chrishtr
I also updated the ASCII diagram some more in VisualViewport. https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1526093006/diff/100001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2008 ...
5 years ago (2015-12-16 23:51:33 UTC) #7
chrishtr
Turns out link highlights currently don't paint themselves. Added a todo for this. Also fixed ...
5 years ago (2015-12-17 00:42:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526093006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526093006/180001
5 years ago (2015-12-17 00:44:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/157426) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-17 02:44:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526093006/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526093006/200001
5 years ago (2015-12-17 16:50:59 UTC) #16
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-17 17:54:26 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-17 17:55:10 UTC) #19
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/08fbbc6a745869964f927f436e64c140fc04abb5
Cr-Commit-Position: refs/heads/master@{#365850}

Powered by Google App Engine
This is Rietveld 408576698