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

Issue 2419383002: Add function to check what HTML Element interface corresponds to a given tag name. (Closed)

Created:
4 years, 2 months ago by yurak
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add function to check what HTML Element interface corresponds to a given tag name. HTMLElementTypeHelpers.h (generated) now has an enum, HTMLElementType, for each HTML element interface in htmltagnames.in (Not generated for SVG elements) New function htmlElementTypeForTag returns HTMLElementType Tag names that are undefined return HTMLUnknownElement New ElementTypeHelpers.cpp.tmpl for HTML namespace with definition of function Generates HTMLElementTypeHelpers.cpp This function is needed in custom elements algorithms. BUG= Committed: https://crrev.com/631706583e06a2b9209cc5a6c6ce9d776da910dd Cr-Commit-Position: refs/heads/master@{#427045}

Patch Set 1 #

Patch Set 2 : Add function to check what HTML Element is the interface for a given tag name. Undefined tag names … #

Patch Set 3 : Add function to check what HTML Element is the interface for a given tag name. Undefined tag names … #

Total comments: 1

Patch Set 4 : Two-space indentation #

Total comments: 4

Patch Set 5 : Made changes #

Patch Set 6 : Made changes #

Total comments: 1

Patch Set 7 : Made changes #

Patch Set 8 : Made changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -1 line) Patch
M third_party/WebKit/Source/build/scripts/make_element_type_helpers.py View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/scripts.gni View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl View 1 2 3 4 5 6 7 2 chunks +17 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
dominicc (has gone to gerrit)
This is great! Could you include whether the interface is RuntimeEnabled and have the generator ...
4 years, 2 months ago (2016-10-21 02:31:40 UTC) #5
yurak
On 2016/10/21 at 02:31:40, dominicc wrote: > This is great! > > Could you include ...
4 years, 2 months ago (2016-10-21 07:36:50 UTC) #6
dominicc (has gone to gerrit)
On 2016/10/21 at 07:36:50, yurak wrote: > On 2016/10/21 at 02:31:40, dominicc wrote: > > ...
4 years, 2 months ago (2016-10-24 02:54:10 UTC) #8
tkent
https://codereview.chromium.org/2419383002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl (right): https://codereview.chromium.org/2419383002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl#newcode17 third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl:17: ASSERT(!html_type_map); Please use two-space indentation, and use DCHECK instead ...
4 years, 2 months ago (2016-10-24 03:22:32 UTC) #9
yurak
On 2016/10/24 at 03:22:32, tkent wrote: > https://codereview.chromium.org/2419383002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl > File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl (right): > > https://codereview.chromium.org/2419383002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl#newcode17 ...
4 years, 2 months ago (2016-10-24 03:41:06 UTC) #10
tkent
https://codereview.chromium.org/2419383002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl (right): https://codereview.chromium.org/2419383002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl#newcode12 third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl:12: typedef HashMap<AtomicString, HTMLElementType> HTMLTypeMap; nit: We prefer 'using' to ...
4 years, 2 months ago (2016-10-24 04:04:43 UTC) #11
yurak
On 2016/10/24 at 04:04:43, tkent wrote: > https://codereview.chromium.org/2419383002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl > File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl (right): > > https://codereview.chromium.org/2419383002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.cpp.tmpl#newcode12 ...
4 years, 2 months ago (2016-10-24 05:24:20 UTC) #12
tkent
On 2016/10/24 at 05:24:20, yurak wrote: > > https://codereview.chromium.org/2419383002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl#newcode47 > > third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl:47: HTMLElementType htmlElementTypeForTag(const AtomicString& ...
4 years, 2 months ago (2016-10-24 05:58:13 UTC) #13
yurak
On 2016/10/24 at 05:58:13, tkent wrote: > On 2016/10/24 at 05:24:20, yurak wrote: > > ...
4 years, 2 months ago (2016-10-24 06:35:18 UTC) #14
tkent
https://codereview.chromium.org/2419383002/diff/100001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl (right): https://codereview.chromium.org/2419383002/diff/100001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl#newcode48 third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl:48: // If tagNAme is undefined html local name it's ...
4 years, 2 months ago (2016-10-24 06:40:36 UTC) #15
yurak
On 2016/10/24 at 06:40:36, tkent wrote: > https://codereview.chromium.org/2419383002/diff/100001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl > File third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl (right): > > https://codereview.chromium.org/2419383002/diff/100001/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl#newcode48 ...
4 years, 2 months ago (2016-10-24 07:16:12 UTC) #16
tkent
lgtm
4 years, 2 months ago (2016-10-24 07:26:55 UTC) #17
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/2419383002/140001
4 years, 2 months ago (2016-10-24 07:37:38 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/248804)
4 years, 1 month ago (2016-10-24 09:32:14 UTC) #22
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/2419383002/140001
4 years, 1 month ago (2016-10-24 09:42:33 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-24 11:14:26 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 11:18:37 UTC) #27
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/631706583e06a2b9209cc5a6c6ce9d776da910dd
Cr-Commit-Position: refs/heads/master@{#427045}

Powered by Google App Engine
This is Rietveld 408576698