Index: Source/WebCore/rendering/RenderText.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderText.cpp (revision 129913) |
+++ Source/WebCore/rendering/RenderText.cpp (working copy) |
@@ -1256,6 +1256,9 @@ |
void RenderText::setTextWithOffset(PassRefPtr<StringImpl> text, unsigned offset, unsigned len, bool force) |
{ |
+ if (!force && equal(m_text.impl(), text.get())) |
+ return; |
+ |
unsigned oldLen = textLength(); |
unsigned newLen = text->length(); |
int delta = newLen - oldLen; |
@@ -1327,7 +1330,7 @@ |
} |
m_linesDirty = dirtiedLines; |
- setText(text, force); |
+ setText(text, force || dirtiedLines); |
} |
void RenderText::transformText() |