Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index b310eb090c0a68b65dd1298b0c0094415b615904..d5139114fd9650c3557f254bb067a318be6c82f4 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -723,8 +723,8 @@ void RenderBoxModelObject::paintFillLayerExtended(const PaintInfo& paintInfo, co |
PaintInfo info(context, maskRect, PaintPhaseTextClip, PaintBehaviorForceBlackText, 0); |
context->setCompositeOperation(CompositeSourceOver); |
if (box) { |
- RootInlineBox* root = box->root(); |
- box->paint(info, LayoutPoint(scrolledPaintRect.x() - box->x(), scrolledPaintRect.y() - box->y()), root->lineTop(), root->lineBottom()); |
+ RootInlineBox& root = box->root(); |
+ box->paint(info, LayoutPoint(scrolledPaintRect.x() - box->x(), scrolledPaintRect.y() - box->y()), root.lineTop(), root.lineBottom()); |
} else { |
LayoutSize localOffset = isBox() ? toRenderBox(this)->locationOffset() : LayoutSize(); |
paint(info, scrolledPaintRect.location() - localOffset); |