Index: Source/core/dom/Text.cpp |
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp |
index 9d5ea46eb8aacbb67abe24172beb36fdc9e95ede..325a3def6ed501f3e5d0a1d38178d6971c1aa6e2 100644 |
--- a/Source/core/dom/Text.cpp |
+++ b/Source/core/dom/Text.cpp |
@@ -293,16 +293,16 @@ bool Text::needsWhitespaceRenderer() |
return false; |
} |
-void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfReplacedData, AttachBehavior attachBehavior) |
+void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfReplacedData, RecalcStyleBehavior recalcStyleBehavior) |
{ |
if (!attached()) |
return; |
RenderText* textRenderer = toRenderText(renderer()); |
if (!textRenderer || !textRendererIsNeeded(NodeRenderingContext(this, textRenderer->style()))) { |
- if (attachBehavior == DeprecatedAttachNow) |
- reattach(); |
- else |
- lazyReattach(); |
+ lazyReattach(); |
+ // FIXME: Editing should be updated so this is not neccesary. |
+ if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) |
+ document().updateStyleIfNeeded(); |
return; |
} |
textRenderer->setTextWithOffset(dataImpl(), offsetOfReplacedData, lengthOfReplacedData); |