|
Element::recalcStyle() overly reattach()-es InsertionPoints.
Before this change, recalcStyle() reattach()-ed InsertionPoints
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.
- lazyReattach()-es by ContentDistributor was insufficient.
It didn't reattach insertion point children. Also, it didnt' use lazyReattachIfAttached()
and marks not-yet-attached nodes attached.
- InsertionPoint should tell its distribution about style change but it didn't.
- Distributed text nodes didn't recalculate style.
- ShadowRoot::recalcStyle() should just attach() when it isn't yet attached().
- There were some missing ensureDistribution() calls.
This change also fixes these problems.
BUG= 234801
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152516
Total comments: 12
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+139 lines, -25 lines) |
Patch |
|
A |
LayoutTests/fast/dom/shadow/input-color-in-content.html
|
View
|
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/dom/shadow/input-color-in-content-expected.txt
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.cpp
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/EventPathWalker.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/NodeRenderingTraversal.cpp
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Text.cpp
|
View
|
1
|
1 chunk |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ContentDistributor.h
|
View
|
1
2
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ContentDistributor.cpp
|
View
|
1
2
|
5 chunks |
+20 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ElementShadow.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ElementShadow.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/InsertionPoint.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/InsertionPoint.cpp
|
View
|
1
2
|
7 chunks |
+17 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/shadow/ShadowRoot.cpp
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/shadow/HTMLShadowElement.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|