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

Issue 2446903008: Custom Elements: Lookup custom element definition algorithm (Closed)

Created:
4 years, 1 month ago by yurak
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

https://html.spec.whatwg.org/multipage/scripting.html#look-up-a-custom-element-definition Steps 1-3 already implemented in: /core/html/parser/HTMLConstructionSite.cpp Steps 4-6 made a little faster in CustomElementRegistry.cpp Unit tests added for custom element definition look up. Replaced uses of definitionForName with definitionFor. CustomElementRegistry.cpp CustomElement.cpp There are other calls to definitionForName, but those are fine according to spec. I'll do another patch to use the 'is' attribute in definitionFor. Right now it's using the localName twice. BUG=648828 Committed: https://crrev.com/24d712bfdf73e44b31fa9d058ba37e035cbe58ad Cr-Commit-Position: refs/heads/master@{#430498}

Patch Set 1 #

Patch Set 2 : lookup custom element definition #

Total comments: 6

Patch Set 3 : lookup custom element definition #

Patch Set 4 : Unit tests for element definition look up #

Patch Set 5 : Can't use 'is' yet #

Patch Set 6 : Patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -49 lines) Patch
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 4 4 chunks +12 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.h View 1 2 3 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp View 1 2 3 4 5 6 chunks +35 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementRegistryTest.cpp View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (13 generated)
yurak
PTL! :)
4 years, 1 month ago (2016-10-27 03:03:19 UTC) #3
dominicc (has gone to gerrit)
Comments inline. Might make sense to have prose instead of a spec link as the ...
4 years, 1 month ago (2016-10-27 04:33:14 UTC) #5
yurak
Made suggested changes and replaced some uses of definitionForName to use definitionFor. PTL
4 years, 1 month ago (2016-10-31 05:11:40 UTC) #8
dominicc (has gone to gerrit)
lgtm Splendid. I think there are some tests we can simplify to use this returned ...
4 years, 1 month ago (2016-11-07 02:17:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446903008/80001
4 years, 1 month ago (2016-11-07 02:17:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/230188) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-07 02:19:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446903008/80001
4 years, 1 month ago (2016-11-07 13:27:12 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/267520)
4 years, 1 month ago (2016-11-07 13:29:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446903008/100001
4 years, 1 month ago (2016-11-08 02:03:36 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-08 03:15:06 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 03:27:48 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/24d712bfdf73e44b31fa9d058ba37e035cbe58ad
Cr-Commit-Position: refs/heads/master@{#430498}

Powered by Google App Engine
This is Rietveld 408576698