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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2198853002: Draw main frame custom scrollbars in root layer scrolling mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modified as per review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 5c308d51c0a1411b380ee76631b51c9c74d3781e..838870f022b6cef919212e9c6d2293d47eaaf744 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2639,6 +2639,19 @@ void FrameView::synchronizedPaint()
synchronizedPaintRecursively(layerForScrollCorner);
}
+ if (!layoutViewItem().isNull() && layoutViewItem().layer()->hasCompositedLayerMapping()) {
bokan 2016/08/11 14:34:29 IMO, instead of doing this, we should fix FrameVie
MuVen 2016/08/11 14:45:57 That's a great idea to fix in layerForHorizontalSc
+ CompositedLayerMapping* compositedLayerMapping = layoutViewItem().layer()->compositedLayerMapping();
+ if (GraphicsLayer* layerForHorizontalScrollbar = compositedLayerMapping->layerForHorizontalScrollbar()) {
+ synchronizedPaintRecursively(layerForHorizontalScrollbar);
+ }
+ if (GraphicsLayer* layerForVerticalScrollbar = compositedLayerMapping->layerForVerticalScrollbar()) {
+ synchronizedPaintRecursively(layerForVerticalScrollbar);
+ }
+ if (GraphicsLayer* layerForScrollCorner = compositedLayerMapping->layerForScrollCorner()) {
+ synchronizedPaintRecursively(layerForScrollCorner);
+ }
+ }
+
forAllNonThrottledFrameViews([](FrameView& frameView) {
frameView.lifecycle().advanceTo(DocumentLifecycle::PaintClean);
LayoutViewItem layoutViewItem = frameView.layoutViewItem();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698