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

Issue 18539006: Have Node inherit EventTarget interface (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, lgombos, dominicc (has gone to gerrit)
Visibility:
Public.

Description

Have Node inherit EventTarget interface Have Node inherit EventTarget interface to match the specification: http://dom.spec.whatwg.org/#interface-node Node and its subclasses need slightly different implementation for addEventListener() / removeEventListener(). Namely, we should not call createHiddenDependency() / removeHiddenDependency() for Node and its subclasses. To address this issue, a EventTarget::toNode() virtual method is used so that we can make the check at runtime. BUG=257583 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153955

Patch Set 1 #

Patch Set 2 : Rebaseline binding tests #

Patch Set 3 : Rebase on master #

Patch Set 4 : use EventTarget::toNode() instead of introducing a new method #

Patch Set 5 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -25 lines) Patch
M LayoutTests/fast/dom/prototype-chain-expected.txt View 3 chunks +9 lines, -3 lines 0 comments Download
M LayoutTests/webexposed/event-target-in-prototype-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 1 chunk +2 lines, -7 lines 0 comments Download
M Source/bindings/tests/idls/TestNode.idl View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 37 chunks +70 lines, -2 lines 0 comments Download
M Source/core/dom/Node.idl View 2 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-10 12:15:03 UTC) #1
haraken
Don't we need to make some change to toEventTarget(), which is auto-generated from the code ...
7 years, 5 months ago (2013-07-10 12:24:35 UTC) #2
do-not-use
On 2013/07/10 12:24:35, haraken wrote: > Don't we need to make some change to toEventTarget(), ...
7 years, 5 months ago (2013-07-10 12:29:51 UTC) #3
haraken
On 2013/07/10 12:29:51, Christophe Dumez wrote: > On 2013/07/10 12:24:35, haraken wrote: > > Don't ...
7 years, 5 months ago (2013-07-10 12:42:26 UTC) #4
arv (Not doing code reviews)
LGTM This makes me so happy.
7 years, 5 months ago (2013-07-10 13:51:07 UTC) #5
do-not-use
Adam, does this one look OK to you as well?
7 years, 5 months ago (2013-07-10 20:54:17 UTC) #6
abarth-chromium
LGTM. There's obviously a compat risk, but we should try it.
7 years, 5 months ago (2013-07-10 20:55:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/18539006/16001
7 years, 5 months ago (2013-07-10 21:01:46 UTC) #8
do-not-use
On 2013/07/10 20:55:51, abarth wrote: > LGTM. There's obviously a compat risk, but we should ...
7 years, 5 months ago (2013-07-10 21:18:05 UTC) #9
arv (Not doing code reviews)
On 2013/07/10 21:18:05, Christophe Dumez wrote: > On 2013/07/10 20:55:51, abarth wrote: > > LGTM. ...
7 years, 5 months ago (2013-07-10 21:22:51 UTC) #10
abarth-chromium
Great.
7 years, 5 months ago (2013-07-10 23:56:46 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 01:50:52 UTC) #12
Message was sent while issue was closed.
Change committed as 153955

Powered by Google App Engine
This is Rietveld 408576698