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 5b376f4bb3b7be7690f359e7e9a0de918e1aef66..74d7258327c690f981bb7fe7921d1f4ff4df1a8a 100644 |
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp |
@@ -10,6 +10,7 @@ |
#include "core/layout/LayoutInline.h" |
#include "core/layout/LayoutPart.h" |
#include "core/layout/LayoutView.h" |
+#include "core/layout/api/LayoutAPIShim.h" |
#include "core/layout/svg/LayoutSVGRoot.h" |
#include "core/layout/svg/SVGLayoutSupport.h" |
#include "core/paint/PaintInvalidator.h" |
@@ -186,7 +187,7 @@ void PaintInvalidationState::updateForCurrentObject(const PaintInvalidationState |
return; |
if (m_currentObject.isLayoutView()) { |
- DCHECK(&parentState.m_currentObject == toLayoutView(m_currentObject).frame()->ownerLayoutObject()); |
+ DCHECK(&parentState.m_currentObject == LayoutAPIShim::layoutObjectFrom(toLayoutView(m_currentObject).frame()->ownerLayoutItem())); |
m_paintOffset += toLayoutBox(parentState.m_currentObject).contentBoxOffset(); |
// a LayoutView paints with a defined size but a pixel-rounded offset. |
m_paintOffset = LayoutSize(roundedIntSize(m_paintOffset)); |