| Index: sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| diff --git a/sky/engine/core/dom/shadow/ShadowRoot.cpp b/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| index ff08945187b12b5de9ad2e8b112548de8547f757..af0ea8fda935993172fbe1cb1e2d51606e365fff 100644
|
| --- a/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| +++ b/sky/engine/core/dom/shadow/ShadowRoot.cpp
|
| @@ -104,17 +104,12 @@ void ShadowRoot::recalcStyle(StyleRecalcChange change)
|
| // 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);
|
| + toText(child)->recalcTextStyle(change);
|
| } else if (child->isElementNode()) {
|
| if (child->shouldCallRecalcStyle(change))
|
| - toElement(child)->recalcStyle(change, lastTextNode);
|
| - if (child->renderer())
|
| - lastTextNode = 0;
|
| + toElement(child)->recalcStyle(change);
|
| }
|
| }
|
|
|
|
|