Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index 17e547ea01811591bc628e3bc35574f5f85617a5..d9dbc930ae692f0c504a091fa05e9359c64250b4 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -1238,8 +1238,8 @@ void CanvasRenderingContext2D::scrollPathIntoView(Path2D* path2d) |
void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path) |
{ |
LayoutObject* renderer = canvas()->renderer(); |
- RenderBox* renderBox = canvas()->renderBox(); |
- if (!renderer || !renderBox || !state().m_invertibleCTM || path.isEmpty()) |
+ LayoutBox* layoutBox = canvas()->layoutBox(); |
+ if (!renderer || !layoutBox || !state().m_invertibleCTM || path.isEmpty()) |
return; |
canvas()->document().updateLayoutIgnorePendingStylesheets(); |
@@ -1251,7 +1251,7 @@ void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path) |
// Offset by the canvas rect |
LayoutRect pathRect(boundingRect); |
- IntRect canvasRect = renderBox->absoluteContentBox(); |
+ IntRect canvasRect = layoutBox->absoluteContentBox(); |
pathRect.move(canvasRect.x(), canvasRect.y()); |
renderer->scrollRectToVisible( |