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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2235873002: Invalidate scrolling contents layer on background invalidations painted into it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invalidate entire scrolling contents layer. 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 | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | 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/layout/compositing/CompositedLayerMapping.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
index d711756d54562d7250b909c4447cd828cbde4716..a46b0590b42b82d7a4ae2f3658078f8b95f14a6c 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h
@@ -219,6 +219,13 @@ public:
void adjustForCompositedScrolling(const GraphicsLayer*, IntSize& offset) const;
+ // Returns true for layers with scrollable overflow which have a background
+ // that can be painted into the composited scrolling contents layer (i.e.
+ // the background can scroll with the content). When the background is also
+ // opaque this allows us to composite the scroller even on low DPI as we can
+ // draw with subpixel anti-aliasing.
+ bool shouldPaintBackgroundOntoScrollingContentsLayer() const;
+
private:
IntRect recomputeInterestRect(const GraphicsLayer*) const;
static bool interestRectChangedEnoughToRepaint(const IntRect& previousInterestRect, const IntRect& newInterestRect, const IntSize& layerSize);
@@ -329,13 +336,6 @@ private:
// not appear earlier in the set of layers for this object.
bool invalidateLayerIfNoPrecedingEntry(size_t);
- // Returns true for layers with scrollable overflow which have a background
- // that can be painted into the composited scrolling contents layer (i.e.
- // the background can scroll with the content). When the background is also
- // opaque this allows us to composite the scroller even on low DPI as we can
- // draw with subpixel anti-aliasing.
- bool shouldPaintBackgroundOntoScrollingContentsLayer() const;
-
PaintLayer& m_owningLayer;
// The hierarchy of layers that is maintained by the CompositedLayerMapping looks like this:
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698