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

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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gypi Created 4 years, 8 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
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 984539f47bcc5bd9cb86ce58dddaacd2e0207bfc..37a37e0ad1a7a82b31d576e1a4710d956d3b71cc 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -748,7 +748,7 @@ bool SVGElement::addEventListenerInternal(const AtomicString& eventType, EventLi
return true;
}
-bool SVGElement::removeEventListenerInternal(const AtomicString& eventType, EventListener* listener, const EventListenerOptions& options)
+bool SVGElement::removeEventListenerInternal(const AtomicString& eventType, const EventListener* listener, const EventListenerOptions& options)
{
// Remove event listener from regular DOM element
if (!Node::removeEventListenerInternal(eventType, listener, options))
@@ -776,7 +776,7 @@ static bool hasLoadListener(Element* element)
if (!entry)
continue;
for (size_t i = 0; i < entry->size(); ++i) {
- if (entry->at(i).useCapture)
+ if (entry->at(i).capture())
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698