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

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

Issue 1626623002: Skip PaintPhaseDescendantBlockBackgroundsOnly phase if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FloatPhase
Patch Set: Created 4 years, 11 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.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index b6525211fd2fb7764109f7c67af1cb2b0fa0608b..5d1baa9407f29d25a01ef613fe06c6d213a6fbc6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -665,6 +665,9 @@ public:
bool needsPaintPhaseFloat() const { return m_needsPaintPhaseFloat; }
void setNeedsPaintPhaseFloat() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseFloat = true; }
+ bool needsPaintPhaseDescendantBlockBackgrounds() const { return m_needsPaintPhaseDescendantBlockBackgrounds; }
+ void setNeedsPaintPhaseDescendantBlockBackgrounds() { ASSERT(isSelfPaintingLayer()); m_needsPaintPhaseDescendantBlockBackgrounds = true; }
+
PaintTiming* paintTiming();
ClipRectsCache* clipRectsCache() const { return m_clipRectsCache.get(); }
@@ -813,6 +816,7 @@ private:
unsigned m_needsPaintPhaseDescendantOutlines : 1;
unsigned m_needsPaintPhaseFloat : 1;
+ unsigned m_needsPaintPhaseDescendantBlockBackgrounds : 1;
// These bitfields are part of ancestor/descendant dependent compositing inputs.
unsigned m_hasDescendantWithClipPath : 1;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698