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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/HitRegion.cpp
diff --git a/Source/core/html/canvas/HitRegion.cpp b/Source/core/html/canvas/HitRegion.cpp
index c1e2aa96aa9afd610d87025cd78ded94e761696e..1384001e291f8c850b4704d1418b4725bfce8137 100644
--- a/Source/core/html/canvas/HitRegion.cpp
+++ b/Source/core/html/canvas/HitRegion.cpp
@@ -23,7 +23,7 @@ HitRegion::HitRegion(const Path& path, const HitRegionOptions& options)
void HitRegion::updateAccessibility(Element* canvas)
{
- if (!m_control || !canvas || !canvas->renderer() || !m_control->isDescendantOf(canvas))
+ if (!m_control || !canvas || !canvas->layoutObject() || !m_control->isDescendantOf(canvas))
return;
AXObjectCache* axObjectCache = m_control->document().existingAXObjectCache();
@@ -34,7 +34,7 @@ void HitRegion::updateAccessibility(Element* canvas)
// 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(boundingRect);
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698