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

Unified Diff: sky/engine/core/dom/Text.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.h ('k') | sky/engine/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Text.cpp
diff --git a/sky/engine/core/dom/Text.cpp b/sky/engine/core/dom/Text.cpp
index 6912f83c2c10b250edfeb63095543f01644a09a7..253fd01fa57925c9a1d7e8ba6f4ca0d1e3982e0e 100644
--- a/sky/engine/core/dom/Text.cpp
+++ b/sky/engine/core/dom/Text.cpp
@@ -149,7 +149,7 @@ void Text::attach(const AttachContext& context)
CharacterData::attach(context);
}
-void Text::recalcTextStyle(StyleRecalcChange change, Text* nextTextSibling)
+void Text::recalcTextStyle(StyleRecalcChange change)
{
if (RenderText* renderer = this->renderer()) {
if (change != NoChange || needsStyleRecalc())
@@ -159,8 +159,6 @@ void Text::recalcTextStyle(StyleRecalcChange change, Text* nextTextSibling)
clearNeedsStyleRecalc();
} else if (needsStyleRecalc() || needsWhitespaceRenderer()) {
reattach();
- if (this->renderer())
- reattachWhitespaceSiblings(nextTextSibling);
}
}
« no previous file with comments | « sky/engine/core/dom/Text.h ('k') | sky/engine/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698