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); |