Changeset 144031 in webkit
- Timestamp:
- Feb 26, 2013, 2:51:58 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/shadow/no-style-sharing-with-distributed-nodes-expected.html (added)
-
LayoutTests/fast/dom/shadow/no-style-sharing-with-distributed-nodes.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/StyleResolver.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r144029 r144031 1 2013-02-26 Takashi Sakamoto <tasak@google.com> 2 3 Shadow DOM styles appear to be over-eagerly shared 4 https://bugs.webkit.org/show_bug.cgi?id=110797 5 6 Reviewed by Dimitri Glazkov. 7 8 * fast/dom/shadow/no-style-sharing-with-distributed-nodes-expected.html: Added. 9 * fast/dom/shadow/no-style-sharing-with-distributed-nodes.html: Added. 10 1 11 2013-02-26 Ádám Kallai <kadam@inf.u-szeged.hu> 2 12 -
trunk/Source/WebCore/ChangeLog
r144030 r144031 1 2013-02-26 Takashi Sakamoto <tasak@google.com> 2 3 Shadow DOM styles appear to be over-eagerly shared 4 https://bugs.webkit.org/show_bug.cgi?id=110797 5 6 Reviewed by Dimitri Glazkov. 7 8 A style of a distributed node should not be shared, because the node 9 might be affected by styles in a shadow dom tree, i.e. :distributed 10 or something. 11 12 Test: fast/dom/shadow/no-style-sharing-with-distributed-nodes.html 13 14 * css/StyleResolver.cpp: 15 (WebCore::StyleResolver::locateCousinList): 16 Skip shadow hosts, because children of shadow hosts are distributed 17 nodes and cannot share their styles. 18 1 19 2013-02-26 Adam Klein <adamk@chromium.org> 2 20 -
trunk/Source/WebCore/css/StyleResolver.cpp
r143941 r144031 876 876 ++subcount; 877 877 if (currentNode->renderStyle() == parentStyle && currentNode->lastChild() 878 && currentNode->isElementNode() && !parentElementPreventsSharing(toElement(currentNode))) { 878 && currentNode->isElementNode() && !parentElementPreventsSharing(toElement(currentNode)) 879 #if ENABLE(SHADOW_DOM) 880 && !toElement(currentNode)->shadow() 881 #endif 882 ) { 879 883 // Adjust for unused reserved tries. 880 884 visitedNodeCount -= cStyleSearchThreshold - subcount;
Note:
See TracChangeset
for help on using the changeset viewer.