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); |
} |
} |