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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.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/layout/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index a0f657d6f3cdbf66081228badc8abb090ee24ec7..fb3279788bd7f926547e6c77aeb50a8333657bd5 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -819,6 +819,9 @@ IntRect PaintLayerCompositor::computeInterestRect(const GraphicsLayer* graphicsL
void PaintLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase, const IntRect& interestRect) const
{
+ // Note the composited scrollable area painted below is always associated with a frame. For
+ // painting non-frame ScrollableAreas, see CompositedLayerMapping::paintScrollableArea.
+
const Scrollbar* scrollbar = graphicsLayerToScrollbar(graphicsLayer);
if (!scrollbar && graphicsLayer != layerForScrollCorner())
return;

Powered by Google App Engine
This is Rietveld 408576698