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

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

Issue 19798009: Introduce toSVGSMILElement, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 years, 5 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 | « no previous file | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index 0e89ba0140594a62f72dfdc9299ff2dce4a757c0..8f094a2c960e74de4c59f2c284ac94be5cb96fca 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -165,7 +165,7 @@ void SVGAElement::defaultEventHandler(Event* event)
if (url[0] == '#') {
Element* targetElement = treeScope()->getElementById(url.substring(1));
if (SVGSMILElement::isSMILElement(targetElement)) {
- static_cast<SVGSMILElement*>(targetElement)->beginByLinkActivation();
+ toSVGSMILElement(targetElement)->beginByLinkActivation();
event->setDefaultHandled();
return;
}
« no previous file with comments | « no previous file | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698