Index: Source/core/dom/shadow/ShadowRoot.cpp |
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp |
index e78d269c3b213f08f42a028edb26097af779b157..5b5ea21018c4317eaaf04c3a6e57ef5dfb7b726e 100644 |
--- a/Source/core/dom/shadow/ShadowRoot.cpp |
+++ b/Source/core/dom/shadow/ShadowRoot.cpp |
@@ -140,26 +140,10 @@ void ShadowRoot::recalcStyle(StyleRecalcChange change) |
if (styleChangeType() >= SubtreeStyleChange) |
change = Force; |
- if (change < Force && hasRareData() && childNeedsStyleRecalc()) |
- checkForChildrenAdjacentRuleChanges(); |
- |
// There's no style to update so just calling recalcStyle means we're updated. |
clearNeedsStyleRecalc(); |
- // FIXME: This doesn't handle :hover + div properly like Element::recalcStyle does. |
- Text* lastTextNode = 0; |
- for (Node* child = lastChild(); child; child = child->previousSibling()) { |
- if (child->isTextNode()) { |
- toText(child)->recalcTextStyle(change, lastTextNode); |
- lastTextNode = toText(child); |
- } else if (child->isElementNode()) { |
- if (child->shouldCallRecalcStyle(change)) |
- toElement(child)->recalcStyle(change, lastTextNode); |
- if (child->renderer()) |
- lastTextNode = 0; |
- } |
- } |
- |
+ recalcChildStyle(change); |
clearChildNeedsStyleRecalc(); |
} |