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

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp

Issue 2033183002: [SPv2] Paint invalidation in PreWalkTreeWalk, plumbed on PaintInvalidationState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RootFrame
Patch Set: Created 4 years, 6 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/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index 07b5e361fbee14735bda680b5369120d56f2f039..c3076c44fdd9bf6bca105712098a6ecad085288e 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -27,7 +27,7 @@ static bool supportsCachedOffsets(const LayoutObject& object)
&& !(object.isLayoutBlock() && object.isSVG());
}
-PaintInvalidationState::PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>& pendingDelayedPaintInvalidations)
+PaintInvalidationState::PaintInvalidationState(const LayoutView& layoutView, Vector<const LayoutObject*>& pendingDelayedPaintInvalidations)
: m_currentObject(layoutView)
, m_forcedSubtreeInvalidationFlags(0)
, m_clipped(false)
@@ -71,7 +71,7 @@ PaintInvalidationState::PaintInvalidationState(const PaintInvalidationState& par
, m_paintInvalidationContainerForStackedContents(parentState.m_paintInvalidationContainerForStackedContents)
, m_containerForAbsolutePosition(currentObject.canContainAbsolutePositionObjects() ? currentObject : parentState.m_containerForAbsolutePosition)
, m_svgTransform(parentState.m_svgTransform)
- , m_pendingDelayedPaintInvalidations(parentState.pendingDelayedPaintInvalidationTargets())
+ , m_pendingDelayedPaintInvalidations(parentState.m_pendingDelayedPaintInvalidations)
, m_paintingLayer(currentObject.hasLayer() && toLayoutBoxModelObject(currentObject).hasSelfPaintingLayer() ? *toLayoutBoxModelObject(currentObject).layer() : parentState.m_paintingLayer)
#if ENABLE(ASSERT)
, m_didUpdateForChildren(false)
@@ -244,7 +244,7 @@ void PaintInvalidationState::updateForChildren(PaintInvalidationReason reason)
switch (reason) {
case PaintInvalidationDelayedFull:
- pushDelayedPaintInvalidationTarget(const_cast<LayoutObject&>(m_currentObject));
+ m_pendingDelayedPaintInvalidations.append(&m_currentObject);
break;
case PaintInvalidationSubtree:
m_forcedSubtreeInvalidationFlags |= (FullInvalidation | FullInvalidationForStackedContents);

Powered by Google App Engine
This is Rietveld 408576698