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

Unified Diff: Source/core/svg/animation/SVGSMILElement.cpp

Issue 321023002: Avoid branching in createAttributeEventListener (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 6 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/SVGScriptElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SVGSMILElement.cpp
diff --git a/Source/core/svg/animation/SVGSMILElement.cpp b/Source/core/svg/animation/SVGSMILElement.cpp
index 55ba7471277a107c1de29bfa1d1c0c69615a7b73..01c7c6f842b01efd3a5ca1f9dd6f5f49262a5db4 100644
--- a/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/Source/core/svg/animation/SVGSMILElement.cpp
@@ -539,11 +539,11 @@ void SVGSMILElement::parseAttribute(const QualifiedName& name, const AtomicStrin
if (inDocument())
connectSyncBaseConditions();
} else if (name == SVGNames::onbeginAttr) {
- setAttributeEventListener(EventTypeNames::beginEvent, createAttributeEventListener(this, name, value));
+ setAttributeEventListener(EventTypeNames::beginEvent, createAttributeEventListener(this, name, value, eventParameterName()));
} else if (name == SVGNames::onendAttr) {
- setAttributeEventListener(EventTypeNames::endEvent, createAttributeEventListener(this, name, value));
+ setAttributeEventListener(EventTypeNames::endEvent, createAttributeEventListener(this, name, value, eventParameterName()));
} else if (name == SVGNames::onrepeatAttr) {
- setAttributeEventListener(EventTypeNames::repeatEvent, createAttributeEventListener(this, name, value));
+ setAttributeEventListener(EventTypeNames::repeatEvent, createAttributeEventListener(this, name, value, eventParameterName()));
} else
SVGElement::parseAttribute(name, value);
}
« no previous file with comments | « Source/core/svg/SVGScriptElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698