Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698