Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
index 93f5b3d8a0a1cd650df82742dac4c1d9d43a6ab3..58f9ba9ab4bd99dab934e43072989c8c0394c05f 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
@@ -416,14 +416,14 @@ String CanvasRenderingContext2D::font() const |
const FontDescription& fontDescription = state().font().getFontDescription(); |
if (fontDescription.style() == FontStyleItalic) |
- serializedFont.appendLiteral("italic "); |
+ serializedFont.append("italic "); |
if (fontDescription.weight() == FontWeightBold) |
- serializedFont.appendLiteral("bold "); |
+ serializedFont.append("bold "); |
if (fontDescription.variantCaps() == FontDescription::SmallCaps) |
- serializedFont.appendLiteral("small-caps "); |
+ serializedFont.append("small-caps "); |
serializedFont.appendNumber(fontDescription.computedPixelSize()); |
- serializedFont.appendLiteral("px"); |
+ serializedFont.append("px"); |
const FontFamily& firstFontFamily = fontDescription.family(); |
for (const FontFamily* fontFamily = &firstFontFamily; fontFamily; fontFamily = fontFamily->next()) { |