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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h

Issue 2186823002: Do not call an event listener on a cloned node in svg <use>'s UA shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip timeout test Created 4 years, 4 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/bindings/core/v8/V8LazyEventListener.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h
index 576e9c0ffff2f223818959b4d29468b9b385660a..59e8997455a02651ba6c2ecac7c32c9ac0eb6705 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h
@@ -66,12 +66,6 @@ private:
v8::Local<v8::Value> callListenerFunction(ScriptState*, v8::Local<v8::Value>, Event*) override;
- // Needs to return true for all event handlers implemented in JavaScript so that
- // the SVG code does not add the event handler in both
- // SVGUseElement::buildShadowTree and again in
- // SVGUseElement::transferEventListenersToShadowTree
- bool wasCreatedFromMarkup() const override { return true; }
-
void compileScript(ScriptState*, ExecutionContext*);
void fireErrorEvent(v8::Local<v8::Context>, ExecutionContext*, v8::Local<v8::Message>);

Powered by Google App Engine
This is Rietveld 408576698