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

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

Issue 1846633002: Move SVGTextPositioningElement::elementFromLayoutObject (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/WebKit/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: third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp b/third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp
index bf54278ea96d5b1d738980aa6998c26b3b35f90b..f3f40da4c6df30899de61c9c7aad29e2c90e8daf 100644
--- a/third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTextPositioningElement.cpp
@@ -78,16 +78,4 @@ void SVGTextPositioningElement::svgAttributeChanged(const QualifiedName& attrNam
SVGTextContentElement::svgAttributeChanged(attrName);
}
-SVGTextPositioningElement* SVGTextPositioningElement::elementFromLayoutObject(LayoutObject& layoutObject)
-{
- if (!layoutObject.isSVGText() && !layoutObject.isSVGInline())
- return nullptr;
-
- Node* node = layoutObject.node();
- ASSERT(node);
- ASSERT(node->isSVGElement());
-
- return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node) : 0;
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTextPositioningElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698