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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1830333002: Correct visual rects for scroll corner/resizer and non-frame composited scroll bars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't create a LayoutScrollbartPart if we've no scrollable area. Created 4 years, 8 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
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 06181e6dfab6f4e785ad64e6e4452ca1d7c5f6c8..5eed81877f073cfb7a536b2120991c542dc3b312 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2822,6 +2822,8 @@ void PaintLayer::markCompositingContainerChainForNeedsRepaint()
if (layer->compositingState() == PaintsIntoOwnBacking)
return;
if (CompositedLayerMapping* groupedMapping = layer->groupedMapping()) {
+ // TODO(wkorman): As we clean up the CompositedLayerMapping needsRepaint logic to
+ // delegate to scrollbars, we may be able to remove the line below as well.
groupedMapping->owningLayer().setNeedsRepaint();
return;
}

Powered by Google App Engine
This is Rietveld 408576698