Index: Source/core/paint/FramePainter.cpp |
diff --git a/Source/core/paint/FramePainter.cpp b/Source/core/paint/FramePainter.cpp |
index c7bb710269874068761abbf5ad19d9f8292dd460..d0a3eb02c30e1a070e1b03955a3be7c9dbdaabdd 100644 |
--- a/Source/core/paint/FramePainter.cpp |
+++ b/Source/core/paint/FramePainter.cpp |
@@ -127,17 +127,17 @@ void FramePainter::paintContents(GraphicsContext* context, const IntRect& rect) |
m_frameView.setIsPainting(true); |
// m_frameView.nodeToDraw() is used to draw only one element (and its descendants) |
- LayoutObject* renderer = m_frameView.nodeToDraw() ? m_frameView.nodeToDraw()->renderer() : 0; |
+ LayoutObject* renderer = m_frameView.nodeToDraw() ? m_frameView.nodeToDraw()->layoutObject() : 0; |
Layer* rootLayer = layoutView->layer(); |
#if ENABLE(ASSERT) |
layoutView->assertSubtreeIsLaidOut(); |
- LayoutObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*rootLayer->renderer()); |
+ LayoutObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*rootLayer->layoutObject()); |
#endif |
LayerPainter layerPainter(*rootLayer); |
- float deviceScaleFactor = blink::deviceScaleFactor(rootLayer->renderer()->frame()); |
+ float deviceScaleFactor = blink::deviceScaleFactor(rootLayer->layoutObject()->frame()); |
context->setDeviceScaleFactor(deviceScaleFactor); |
layerPainter.paint(context, LayoutRect(rect), m_frameView.paintBehavior(), renderer); |