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

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

Issue 192093002: Drop SVGElement::isSVGSVGElement() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/SVGElement.h ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index d959015ab48f163d9fafea30ba7538e9fb5c11dc..e2634926f1f0a57767c951b2caca93497b50db3b 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -477,7 +477,7 @@ void SVGElement::updateRelativeLengthsInformation(bool clientHasRelativeLengths,
}
// Register root SVG elements for top level viewport change notifications.
- if (clientElement->isSVGSVGElement()) {
+ if (isSVGSVGElement(*clientElement)) {
SVGDocumentExtensions& svgExtensions = accessDocumentSVGExtensions();
if (clientElement->hasRelativeLengths())
svgExtensions.addSVGRootWithRelativeLengthDescendents(toSVGSVGElement(clientElement));
@@ -867,7 +867,7 @@ void SVGElement::sendSVGLoadEventIfPossible(bool sendParentLoadEvents)
if (sendParentLoadEvents)
parent = currentTarget->parentOrShadowHostElement(); // save the next parent to dispatch too incase dispatching the event changes the tree
if (hasLoadListener(currentTarget.get())
- && (currentTarget->isStructurallyExternal() || currentTarget->isSVGSVGElement()))
+ && (currentTarget->isStructurallyExternal() || isSVGSVGElement(*currentTarget)))
currentTarget->dispatchEvent(Event::create(EventTypeNames::load));
currentTarget = (parent && parent->isSVGElement()) ? static_pointer_cast<SVGElement>(parent) : RefPtr<SVGElement>();
SVGElement* element = currentTarget.get();
@@ -913,7 +913,7 @@ void SVGElement::finishParsingChildren()
// finishParsingChildren() is called when the close tag is reached for an element (e.g. </svg>)
// we send SVGLoad events here if we can, otherwise they'll be sent when any required loads finish
- if (isSVGSVGElement())
+ if (isSVGSVGElement(*this))
sendSVGLoadEventIfPossible();
}
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698