Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: sky/engine/core/dom/shadow/ShadowRoot.cpp

Issue 867963006: Add the <t> element and ignore whitespace outside it. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Do it for a whole subtree. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Text.cpp ('k') | sky/engine/core/html/HTMLTElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « sky/engine/core/dom/Text.cpp ('k') | sky/engine/core/html/HTMLTElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698