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

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

Issue 2548573003: Drop SVGElement::accessDocumentSVGExtensions() (Closed)
Patch Set: Created 4 years 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/SVGElement.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/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 962c5b6f935bd953b76ce4fdc5d4e21a2e85c270..6c7113acb95d3776cc8b0aa67160bf524d635d21 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -540,7 +540,7 @@ void SVGElement::updateRelativeLengthsInformation(bool clientHasRelativeLengths,
// Register root SVG elements for top level viewport change notifications.
if (isSVGSVGElement(*clientElement)) {
- SVGDocumentExtensions& svgExtensions = accessDocumentSVGExtensions();
+ SVGDocumentExtensions& svgExtensions = document().accessSVGExtensions();
if (clientElement->hasRelativeLengths())
svgExtensions.addSVGRootWithRelativeLengthDescendents(
toSVGSVGElement(clientElement));
@@ -603,12 +603,6 @@ SVGElement* SVGElement::viewportElement() const {
return nullptr;
}
-SVGDocumentExtensions& SVGElement::accessDocumentSVGExtensions() {
- // This function is provided for use by SVGAnimatedProperty to avoid
- // global inclusion of core/dom/Document.h in SVG code.
- return document().accessSVGExtensions();
-}
-
void SVGElement::mapInstanceToElement(SVGElement* instance) {
ASSERT(instance);
ASSERT(instance->inUseShadowTree());
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698