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

Unified Diff: Source/core/svg/SVGGeometryElement.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
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGGeometryElement.cpp
diff --git a/Source/core/svg/SVGGeometryElement.cpp b/Source/core/svg/SVGGeometryElement.cpp
index 0e137c371d8a0488231ba90905ccc277cede833f..04655456b22072120edffc53e41fa18f2cb45ebf 100644
--- a/Source/core/svg/SVGGeometryElement.cpp
+++ b/Source/core/svg/SVGGeometryElement.cpp
@@ -49,13 +49,13 @@ bool SVGGeometryElement::isPointInFill(PassRefPtrWillBeRawPtr<SVGPointTearOff> p
document().updateLayoutIgnorePendingStylesheets();
// FIXME: Eventually we should support isPointInFill for display:none elements.
- if (!renderer() || !renderer()->isSVGShape())
+ if (!layoutObject() || !layoutObject()->isSVGShape())
return false;
HitTestRequest request(HitTestRequest::ReadOnly);
- PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, renderer()->style()->pointerEvents());
+ PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, layoutObject()->style()->pointerEvents());
hitRules.canHitStroke = false;
- return toLayoutSVGShape(renderer())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules);
+ return toLayoutSVGShape(layoutObject())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules);
}
bool SVGGeometryElement::isPointInStroke(PassRefPtrWillBeRawPtr<SVGPointTearOff> point) const
@@ -63,13 +63,13 @@ bool SVGGeometryElement::isPointInStroke(PassRefPtrWillBeRawPtr<SVGPointTearOff>
document().updateLayoutIgnorePendingStylesheets();
// FIXME: Eventually we should support isPointInStroke for display:none elements.
- if (!renderer() || !renderer()->isSVGShape())
+ if (!layoutObject() || !layoutObject()->isSVGShape())
return false;
HitTestRequest request(HitTestRequest::ReadOnly);
- PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, renderer()->style()->pointerEvents());
+ PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, request, layoutObject()->style()->pointerEvents());
hitRules.canHitFill = false;
- return toLayoutSVGShape(renderer())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules);
+ return toLayoutSVGShape(layoutObject())->nodeAtFloatPointInternal(request, point->target()->value(), hitRules);
}
}
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698