|
Make textContent trigger single DOMSubtreeModified event
In order to control whether removeChildren emits a
DOMSubtreeModifiedEvent add an enum parameter to it.
Make attribute never emit it, as well as some other
sites where we do an internal removeChildren that should not
be exposed. For setTextContent change the logic so always a
single DOMSubtreeModified event is emitted.
The new behavior for textContent DOMSubtreeModified
triggering matches Firefox.
BUG= 332070
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185712
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+50 lines, -13 lines) |
Patch |
|
A |
LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified-expected.html
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified-expected.txt
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Attr.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
|
Source/core/dom/ContainerNode.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/ContainerNode.cpp
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Node.cpp
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLTitleElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGUseElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 16 (5 generated)
|