Index: Source/WebCore/rendering/RenderText.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderText.cpp (revision 112901) |
+++ Source/WebCore/rendering/RenderText.cpp (working copy) |
@@ -201,10 +201,8 @@ |
ETextTransform oldTransform = oldStyle ? oldStyle->textTransform() : TTNONE; |
ETextSecurity oldSecurity = oldStyle ? oldStyle->textSecurity() : TSNONE; |
- if (needsResetText || oldTransform != newStyle->textTransform() || oldSecurity != newStyle->textSecurity()) { |
- if (RefPtr<StringImpl> textToTransform = originalText()) |
- setText(textToTransform.release(), true); |
- } |
+ if (needsResetText || oldTransform != newStyle->textTransform() || oldSecurity != newStyle->textSecurity()) |
+ transformText(); |
} |
void RenderText::removeAndDestroyTextBoxes() |
@@ -1247,6 +1245,12 @@ |
setText(text, force); |
} |
+void RenderText::transformText() |
+{ |
+ if (RefPtr<StringImpl> textToTransform = originalText()) |
+ setText(textToTransform.release(), true); |
+} |
+ |
static inline bool isInlineFlowOrEmptyText(const RenderObject* o) |
{ |
if (o->isRenderInline()) |