|
Element::recalcStyle() overly reattach()-es InsertionPoints.
Before this change, recalcStyle() reattach()-ed InsertinoPoints
even if only inheriting styles were changed. This misbehavior was caused by the fact
that InsertionPoint never have renderers. This change fixes it by telling
recalcStyle() such a special case.
The fix reveals some hidden flaws, which are also fixed:
- ContentDistributor::invalidate()
It didn't reattach() its children. These children, as well as ones of the host,
need to be refreshed on invalidation.
- ShadowRoot::attach()
It should attach() itself if it isn't.
- Element::setNeedsRecalcStyle()
It should know about node distribution.
TEST=input-color-in-content.html
BUG= 234801
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+106 lines, -9 lines) |
Patch |
|
A |
LayoutTests/fast/dom/shadow/input-color-in-content.html
|
View
|
1
4
|
1 chunk |
+32 lines, -0 lines |
1 comment
|
Download
|
|
A + |
LayoutTests/fast/dom/shadow/input-color-in-content-expected.txt
|
View
|
1
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/shadow/summary-without-details.html
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/shadow/summary-without-details-expected.html
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/chromium-mac/fast/html/details-add-details-child-2-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/chromium-mac/fast/html/details-no-summary4-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/chromium-mac/fast/html/details-open4-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/chromium-win/fast/html/details-add-details-child-2-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
1 comment
|
Download
|
|
M |
LayoutTests/platform/chromium-win/fast/html/details-no-summary4-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/platform/chromium-win/fast/html/details-open4-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.cpp
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Node.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Node.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -2 lines |
2 comments
|
Download
|
|
M |
Source/core/dom/NodeRenderingTraversal.cpp
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ContentDistributor.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ContentDistributor.cpp
|
View
|
1
2
3
4
|
4 chunks |
+20 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/InsertionPoint.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ShadowRoot.cpp
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|