Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index b31a792e22e39ad6326b50f10d4cf8b5207af4c0..ff5cc55466f11cdde537eda482e85e42e9677ec8 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -1277,7 +1277,7 @@ void CanvasRenderingContext2D::scrollPathIntoView(Path2D* path2d) |
void CanvasRenderingContext2D::scrollPathIntoViewInternal(const Path& path) |
{ |
- LayoutObject* renderer = canvas()->renderer(); |
+ LayoutObject* renderer = canvas()->layoutObject(); |
LayoutBox* layoutBox = canvas()->layoutBox(); |
if (!renderer || !layoutBox || !state().m_invertibleCTM || path.isEmpty()) |
return; |
@@ -2417,7 +2417,7 @@ void CanvasRenderingContext2D::updateFocusRingElementAccessibility(const Path& p |
// Offset by the canvas rect, taking border and padding into account. |
LayoutBoxModelObject* rbmo = canvas()->layoutBoxModelObject(); |
- IntRect canvasRect = canvas()->renderer()->absoluteBoundingBoxRect(); |
+ IntRect canvasRect = canvas()->layoutObject()->absoluteBoundingBoxRect(); |
canvasRect.move(rbmo->borderLeft() + rbmo->paddingLeft(), rbmo->borderTop() + rbmo->paddingTop()); |
LayoutRect elementRect = enclosingLayoutRect(transformedPath.boundingRect()); |
elementRect.moveBy(canvasRect.location()); |