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

Unified Diff: Source/core/svg/SVGTextPositioningElement.cpp

Issue 715023002: Make SVGTextPositioningElement::elementFromRenderer take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compile problem Created 6 years, 1 month 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/SVGTextPositioningElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextPositioningElement.cpp
diff --git a/Source/core/svg/SVGTextPositioningElement.cpp b/Source/core/svg/SVGTextPositioningElement.cpp
index 32b6e3b3cd3f7754df48ae5762f0c16d5e0ec383..99b3aa37388d2abcfd935603b925e9c800812401 100644
--- a/Source/core/svg/SVGTextPositioningElement.cpp
+++ b/Source/core/svg/SVGTextPositioningElement.cpp
@@ -90,15 +90,12 @@ void SVGTextPositioningElement::svgAttributeChanged(const QualifiedName& attrNam
markForLayoutAndParentResourceInvalidation(renderer);
}
-SVGTextPositioningElement* SVGTextPositioningElement::elementFromRenderer(RenderObject* renderer)
+SVGTextPositioningElement* SVGTextPositioningElement::elementFromRenderer(RenderObject& renderer)
{
- if (!renderer)
- return 0;
-
- if (!renderer->isSVGText() && !renderer->isSVGInline())
+ if (!renderer.isSVGText() && !renderer.isSVGInline())
return 0;
- Node* node = renderer->node();
+ Node* node = renderer.node();
ASSERT(node);
ASSERT(node->isSVGElement());
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698