Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
index 0bdfeadea43a6e439b938cc74a318a443855aabc..e4f46effb89462b8189ee9a9e6ce96943116c8b5 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp |
@@ -17,6 +17,7 @@ |
#include "core/layout/svg/SVGLayoutSupport.h" |
#include "core/layout/svg/SVGResources.h" |
#include "core/layout/svg/SVGResourcesCache.h" |
+#include "core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h" |
#include "core/paint/FindPropertiesNeedingUpdate.h" |
#include "core/paint/ObjectPaintProperties.h" |
#include "core/paint/PaintLayer.h" |
@@ -1043,6 +1044,10 @@ void PaintPropertyTreeBuilder::updatePaintOffset( |
void PaintPropertyTreeBuilder::updateForObjectLocationAndSize( |
const LayoutObject& object, |
PaintPropertyTreeBuilderContext& context) { |
+#if DCHECK_IS_ON() |
+ FindPaintOffsetNeedingUpdateScope checkScope(object, context); |
+#endif |
+ |
if (object.isBoxModelObject()) { |
updatePaintOffset(toLayoutBoxModelObject(object), context); |
updatePaintOffsetTranslation(toLayoutBoxModelObject(object), context); |