Bug 160991 - Rename LifecycleCallback to CustomElementReaction
Summary: Rename LifecycleCallback to CustomElementReaction
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks: 154907
  Show dependency treegraph
 
Reported: 2016-08-18 20:42 PDT by Ryosuke Niwa
Modified: 2016-08-30 21:11 PDT (History)
6 users (show)

See Also:


Attachments
Renamed classes (48.43 KB, patch)
2016-08-18 20:50 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Fixed CMake builds (48.43 KB, patch)
2016-08-18 21:01 PDT, Ryosuke Niwa
cdumez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2016-08-18 20:42:56 PDT
Rename LifecycleCallbackQueue and CustomElementLifecycleProcessingStack
to CustomElementReactionQueue and CustomElementReactionStack per the latest spec:
https://html.spec.whatwg.org/#custom-element-reactions
Comment 1 Ryosuke Niwa 2016-08-18 20:50:24 PDT
Created attachment 286434 [details]
Renamed classes
Comment 2 Ryosuke Niwa 2016-08-18 21:01:22 PDT
Created attachment 286436 [details]
Fixed CMake builds
Comment 3 Ryosuke Niwa 2016-08-18 21:02:20 PDT
It’s kind of annoying that we have CustomElement*s*Registry and then CustomElementReactionQueue but I guess that matches the spec.  I hate plural/singular difference in English so much :(
Comment 4 Chris Dumez 2016-08-19 09:21:44 PDT
Comment on attachment 286436 [details]
Fixed CMake builds

View in context: https://bugs.webkit.org/attachment.cgi?id=286436&action=review

r=me

> Source/WebCore/bindings/js/JSCustomElementsRegistryCustom.cpp:42
> +static JSObject* getCallback(ExecState& state, JSObject& prototype, const Identifier& id)

maybe getCustomElementCallback() ? I don't feel strongly, land either way.

> Source/WebCore/dom/CustomElementReactionQueue.cpp:43
> +class CustomElementReactionQueueItem {

In a follow up, it could be nice to move this class under CustomElementReactionQueue and rename it to "Item".
Comment 5 Ryosuke Niwa 2016-08-19 13:59:29 PDT
Comment on attachment 286436 [details]
Fixed CMake builds

View in context: https://bugs.webkit.org/attachment.cgi?id=286436&action=review

>> Source/WebCore/bindings/js/JSCustomElementsRegistryCustom.cpp:42
>> +static JSObject* getCallback(ExecState& state, JSObject& prototype, const Identifier& id)
> 
> maybe getCustomElementCallback() ? I don't feel strongly, land either way.

Sure, I was initially using that name and I thought it was too long. Fixed.

>> Source/WebCore/dom/CustomElementReactionQueue.cpp:43
>> +class CustomElementReactionQueueItem {
> 
> In a follow up, it could be nice to move this class under CustomElementReactionQueue and rename it to "Item".

I don’t want to do that because then I have to pull in a whole bunch of headers in CustomElementReactionQueue.h
Comment 6 Ryosuke Niwa 2016-08-19 14:04:10 PDT
Committed r204652: <http://trac.webkit.org/changeset/204652>
Comment 7 Ryan Haddad 2016-08-19 15:06:04 PDT
Windows build fix in http://trac.webkit.org/projects/webkit/changeset/204655