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

Issue 2002063003: Change "bool createdByParser" of createElement() to enum (Closed)

Created:
4 years, 7 months ago by kojii
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, kinuko+watch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@cestate
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change "bool createdByParser" of createElement() to enum The "create an element"[1] defines "synchronous custom elements flag" that is set to false if: 1. To clone a node[2]. 2. The parser was originally created for the HTML fragment parsing algorithm[3]. This patch changes "bool createdByParser" of createElement() to an enum so that callers can pass this flag to "create an element"[1]. Using the "synchronous custom elements flag" is not implemented yet, and thus no behavior changes. [1] https://dom.spec.whatwg.org/#concept-create-element [2] https://dom.spec.whatwg.org/#concept-node-clone [3] https://html.spec.whatwg.org/#create-an-element-for-the-token BUG=594918 Committed: https://crrev.com/7b0c4a78866841553fe991142d3a516c89f5f851 Cr-Commit-Position: refs/heads/master@{#396125}

Patch Set 1 #

Patch Set 2 : Build fix #

Total comments: 4

Patch Set 3 : yosin review #

Patch Set 4 : Add ImportNode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -41 lines) Patch
M third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl View 1 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ElementFactory.h.tmpl View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventPathTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLErrors.cpp View 4 chunks +11 lines, -11 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (8 generated)
kojii
PTAL. This depends on the other "add hook" patch.
4 years, 7 months ago (2016-05-24 08:13:15 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode217 third_party/WebKit/Source/core/dom/Document.h:217: enum CreateElementFlags { Is this bit flag? If not, ...
4 years, 7 months ago (2016-05-24 08:53:53 UTC) #5
kojii
https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode217 third_party/WebKit/Source/core/dom/Document.h:217: enum CreateElementFlags { On 2016/05/24 at 08:53:53, Yosi_UTC9 wrote: ...
4 years, 7 months ago (2016-05-24 09:49:14 UTC) #6
yosin_UTC9
https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode217 third_party/WebKit/Source/core/dom/Document.h:217: enum CreateElementFlags { On 2016/05/24 at 09:49:14, kojii wrote: ...
4 years, 7 months ago (2016-05-25 01:32:53 UTC) #7
kojii
https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h File third_party/WebKit/Source/core/dom/Document.h (right): https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode217 third_party/WebKit/Source/core/dom/Document.h:217: enum CreateElementFlags { On 2016/05/25 at 01:32:52, Yosi_UTC9 wrote: ...
4 years, 7 months ago (2016-05-25 04:11:45 UTC) #8
yosin_UTC9
On 2016/05/25 at 04:11:45, kojii wrote: > https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h > File third_party/WebKit/Source/core/dom/Document.h (right): > > https://codereview.chromium.org/2002063003/diff/20001/third_party/WebKit/Source/core/dom/Document.h#newcode217 ...
4 years, 7 months ago (2016-05-25 04:35:04 UTC) #11
dominicc (has gone to gerrit)
lgtm Splendid. On whether to have a value for import node which aliases something, I ...
4 years, 7 months ago (2016-05-25 06:40:20 UTC) #12
kojii
On 2016/05/25 at 06:40:20, dominicc wrote: > lgtm > > Splendid. > > On whether ...
4 years, 7 months ago (2016-05-25 07:11:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002063003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002063003/100001
4 years, 7 months ago (2016-05-26 03:35:57 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 7 months ago (2016-05-26 05:18:12 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 05:20:24 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7b0c4a78866841553fe991142d3a516c89f5f851
Cr-Commit-Position: refs/heads/master@{#396125}

Powered by Google App Engine
This is Rietveld 408576698