RESOLVED FIXED 163840
Upgrading custom element should enqueue attributeChanged and connected callbacks
https://bugs.webkit.org/show_bug.cgi?id=163840
Summary Upgrading custom element should enqueue attributeChanged and connected callbacks
Ryosuke Niwa
Reported 2016-10-21 22:47:31 PDT
When upgrading custom elements, we should enqueue attributeChangedCallback and connectedCallback as needed.
Attachments
Fixes the bug (19.31 KB, patch)
2016-10-21 22:54 PDT, Ryosuke Niwa
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.58 MB, application/zip)
2016-10-22 00:33 PDT, Build Bot
no flags
Patch for landing (19.29 KB, patch)
2016-10-22 00:43 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2016-10-21 22:54:43 PDT
Created attachment 292473 [details] Fixes the bug
Darin Adler
Comment 2 2016-10-21 23:11:18 PDT
Comment on attachment 292473 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=292473&action=review > Source/WebCore/dom/CustomElementReactionQueue.cpp:218 > + Vector<CustomElementReactionQueueItem> items; > + items.swap(m_items); We could use WTFMove instead of swap. Seems like a clearer idiom: auto items = WTFMove(m_items);
Build Bot
Comment 3 2016-10-22 00:33:35 PDT
Comment on attachment 292473 [details] Fixes the bug Attachment 292473 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2343237 New failing tests: svg/wicd/test-rightsizing-b.xhtml
Build Bot
Comment 4 2016-10-22 00:33:39 PDT
Created attachment 292483 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Ryosuke Niwa
Comment 5 2016-10-22 00:43:59 PDT
Created attachment 292486 [details] Patch for landing
Ryosuke Niwa
Comment 6 2016-10-22 00:44:12 PDT
(In reply to comment #2) > Comment on attachment 292473 [details] > Fixes the bug > > View in context: > https://bugs.webkit.org/attachment.cgi?id=292473&action=review > > > Source/WebCore/dom/CustomElementReactionQueue.cpp:218 > > + Vector<CustomElementReactionQueueItem> items; > > + items.swap(m_items); > > We could use WTFMove instead of swap. Seems like a clearer idiom: > > auto items = WTFMove(m_items); Done that. Thanks for the review!
WebKit Commit Bot
Comment 7 2016-10-22 01:18:38 PDT
Comment on attachment 292486 [details] Patch for landing Clearing flags on attachment: 292486 Committed r207710: <http://trac.webkit.org/changeset/207710>
WebKit Commit Bot
Comment 8 2016-10-22 01:18:43 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2016-10-23 19:00:00 PDT
Note You need to log in before you can comment on or make changes to this bug.