|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2012-08-17 Takashi Sakamoto <tasak@google.com> |
| 2 |
|
| 3 |
Dynamically styling ShadowDom content on a node distributed to another shadow insertion point fails. |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=92899 |
| 5 |
|
| 6 |
Reviewed by Hajime Morita. |
| 7 |
|
| 8 |
Since childNeedsStyleRecalc is not cleared when parent nodes are |
| 9 |
attached, setNeedsStyleRecalc flag is not reached Document. So, |
| 10 |
document() doesn't run re-layout. |
| 11 |
|
| 12 |
Test: fast/dom/shadow/shadowdom-dynamic-styling.html |
| 13 |
|
| 14 |
* dom/ContainerNode.h: |
| 15 |
(ContainerNode): |
| 16 |
(WebCore::ContainerNode::detachAsNode): |
| 17 |
Removed detachAsNode, because the below change made the method |
| 18 |
not-used. |
| 19 |
* dom/Element.cpp: |
| 20 |
(WebCore::Element::detach): |
| 21 |
Modify to invoke ContainerNode::detach when any shadow subtree is |
| 22 |
attached. ContainerNode::detach takes care of childNeedsStyleRecalc |
| 23 |
flag. |
| 24 |
* dom/ElementShadow.cpp: |
| 25 |
(WebCore::ElementShadow::invalidateDistribution): |
| 26 |
Use SetAttached for lazyAttach instead of DoNotSetAttached, because |
| 27 |
it is reuired to invoke ContainerNode::detach. If not, attached() is |
| 28 |
false and reattach() invokes only attach(). This causes to leave |
| 29 |
shadow host's childNeedsStyleRecalc flag true after |
| 30 |
Element::recalcStyle. |
| 31 |
|
| 1 |
2012-08-21 Kentaro Hara <haraken@chromium.org> |
32 |
2012-08-21 Kentaro Hara <haraken@chromium.org> |
| 2 |
|
33 |
|
| 3 |
[V8] Move String related code in V8Binding to a separate file |
34 |
[V8] Move String related code in V8Binding to a separate file |