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

Issue 249573002: HTMLDetailsElement should fire a 'toggle' event (Closed)

Created:
6 years, 8 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, ojan
Visibility:
Public.

Description

HTMLDetailsElement should fire a 'toggle' event As per the specification, a 'toggle' event should be fired whenever the 'open' attribute is added to or removed from a details element: http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#attr-details-open Firefox 28 and IE11 do not support this yet. R=arv@chromium.org, tkent@chromium.org BUG=366105 TEST=fast/html/details-open-toggle-event.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172427

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix layout test #

Patch Set 3 : Use GenericEventQueue #

Patch Set 4 : Use EventSender #

Patch Set 5 : Cancel event in destructor #

Total comments: 2

Patch Set 6 : Rename detail to details #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -0 lines) Patch
A LayoutTests/fast/html/details-open-toggle-event.html View 1 1 chunk +61 lines, -0 lines 0 comments Download
A LayoutTests/fast/html/details-open-toggle-event-expected.txt View 1 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLDetailsElement.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLDetailsElement.cpp View 1 2 3 4 5 4 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Inactive
6 years, 8 months ago (2014-04-23 16:32:51 UTC) #1
arv (Not doing code reviews)
Don't we have infrastructure for async event dispatch already? https://codereview.chromium.org/249573002/diff/1/LayoutTests/fast/html/details-open-toggle-event.html File LayoutTests/fast/html/details-open-toggle-event.html (right): https://codereview.chromium.org/249573002/diff/1/LayoutTests/fast/html/details-open-toggle-event.html#newcode19 LayoutTests/fast/html/details-open-toggle-event.html:19: ...
6 years, 8 months ago (2014-04-23 17:03:31 UTC) #2
Inactive
I updated the code to use a GenericEventQueue, which I assume is the infrastructure you ...
6 years, 8 months ago (2014-04-23 19:19:29 UTC) #3
Inactive
On 2014/04/23 19:19:29, Chris Dumez wrote: > I updated the code to use a GenericEventQueue, ...
6 years, 8 months ago (2014-04-23 19:25:46 UTC) #4
esprehn
You don't want the event queue, you might want an EventSender. To unsubscribe from this ...
6 years, 8 months ago (2014-04-23 20:21:46 UTC) #5
Inactive
On 2014/04/23 20:21:46, esprehn wrote: > You don't want the event queue, you might want ...
6 years, 8 months ago (2014-04-23 20:51:01 UTC) #6
arv (Not doing code reviews)
LGTM
6 years, 8 months ago (2014-04-23 20:54:28 UTC) #7
tkent
lgtm https://codereview.chromium.org/249573002/diff/80001/Source/core/html/HTMLDetailsElement.h File Source/core/html/HTMLDetailsElement.h (right): https://codereview.chromium.org/249573002/diff/80001/Source/core/html/HTMLDetailsElement.h#newcode29 Source/core/html/HTMLDetailsElement.h:29: typedef EventSender<HTMLDetailsElement> DetailEventSender; nit: DetailEventSender -> Detail*s*EventSender?
6 years, 8 months ago (2014-04-23 21:36:46 UTC) #8
Inactive
https://codereview.chromium.org/249573002/diff/80001/Source/core/html/HTMLDetailsElement.h File Source/core/html/HTMLDetailsElement.h (right): https://codereview.chromium.org/249573002/diff/80001/Source/core/html/HTMLDetailsElement.h#newcode29 Source/core/html/HTMLDetailsElement.h:29: typedef EventSender<HTMLDetailsElement> DetailEventSender; On 2014/04/23 21:36:46, tkent wrote: > ...
6 years, 8 months ago (2014-04-23 22:03:28 UTC) #9
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 8 months ago (2014-04-23 22:03:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/249573002/100001
6 years, 8 months ago (2014-04-23 22:04:02 UTC) #11
tkent
We need to support ontoggle IDL attribute and ontoggle HTML attribute. (A separated patch is ...
6 years, 8 months ago (2014-04-23 22:49:09 UTC) #12
commit-bot: I haz the power
Change committed as 172427
6 years, 8 months ago (2014-04-23 23:09:57 UTC) #13
Inactive
6 years, 8 months ago (2014-04-23 23:11:45 UTC) #14
Message was sent while issue was closed.
On 2014/04/23 22:49:09, tkent wrote:
> We need to support ontoggle IDL attribute and ontoggle HTML attribute.  
> (A separated patch is ok.)

Good point. I'll take care of this in a follow-up patch.

Powered by Google App Engine
This is Rietveld 408576698