|
|
Process Custom Elements in post-order.
Custom Element upgrade + created callback invocation used to be
processed in reverse-creation order, which is an expedient way to
ensure that child elements are processed before parents (assuming no
tree modification) so authors can access an element's content in the
created callback.
This changes the order. Descendants are still processed first, so
authors can access an element's content in the created callback, but
siblings are processed in creation order. Because Custom Element
callbacks can have side effects, this makes Custom Elements behave
more like script tags: If authors build constructs like
<x-definition ...></>
<x-use ...></>
they can rely on the side effects of "definition" at the point of
"use".
This is based on a proposal described here:
< https://www.w3.org/Bugs/Public/show_bug.cgi?id=22899>
BUG= 234509
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156141
Total comments: 4
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+121 lines, -93 lines) |
Patch |
 |
M |
LayoutTests/fast/dom/custom/created-callback.html
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/element-upgrade.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/element-upgrade-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-creation-api.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-creation-api-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-innerHTML.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-innerHTML-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-paste.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/lifecycle-created-paste-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/registration-context-delete-during-callback-recursion.html
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/custom/registration-context-sharing.html
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElement.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElement.cpp
|
View
|
1
2
3
4
|
5 chunks |
+36 lines, -18 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementCallbackDispatcher.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementCallbackDispatcher.cpp
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementCallbackScheduler.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementObserver.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementObserver.cpp
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementRegistrationContext.h
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementRegistrationContext.cpp
|
View
|
1
2
3
4
5
|
5 chunks |
+5 lines, -21 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementUpgradeCandidateMap.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/CustomElementUpgradeCandidateMap.cpp
|
View
|
1
2
3
4
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Element.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/Node.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Node.cpp
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/scripts/make_names.pl
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|