Index: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
index 985b2d01d415224838adc50e7414dd88282513a8..5995155088b78a5c986253bc3566ad9eedef991b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp |
@@ -420,9 +420,9 @@ static void writeInlineTextBox(TextStream& ts, const InlineTextBox& textBox, int |
{ |
writeInlineBox(ts, textBox, indent); |
String value = textBox.text(); |
- value.replaceWithLiteral('\\', "\\\\"); |
- value.replaceWithLiteral('\n', "\\n"); |
- value.replaceWithLiteral('"', "\\\""); |
+ value.replace('\\', "\\\\"); |
+ value.replace('\n', "\\n"); |
+ value.replace('"', "\\\""); |
ts << " range=(" << textBox.start() << "," << (textBox.start() + textBox.len()) << ")" |
<< " \"" << value << "\""; |
} |