Chromium Code Reviews| Index: Source/core/dom/Text.cpp |
| diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp |
| index 119d1dc6eb4288b9c2d73b189472cdfceba08c5e..23646d6296360e625d937ef407751b9cd17186e4 100644 |
| --- a/Source/core/dom/Text.cpp |
| +++ b/Source/core/dom/Text.cpp |
| @@ -297,7 +297,12 @@ void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRe |
| if (!attached()) |
| return; |
| RenderText* textRenderer = toRenderText(renderer()); |
| - if (!textRenderer || !textRendererIsNeeded(NodeRenderingContext(this, textRenderer->style()))) { |
| + if (!textRenderer) { |
| + reattach(); |
| + return; |
| + } |
| + NodeRenderingContext renderingContext(this, textRenderer->style()); |
| + if (!textRendererIsNeeded(renderingContext)) { |
| reattach(); |
| return; |
|
esprehn
2013/06/28 20:29:36
Why did you change this code? What you have looks
|
| } |