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 ac5090f67148dcf585cda73421338ab3e1c9503d..89a55d1bd201d0bc2383fcf82c6ad1de932c879f 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
@@ -426,14 +426,14 @@ |
const FontDescription& fontDescription = state().font().getFontDescription(); |
if (fontDescription.style() == FontStyleItalic) |
- serializedFont.append("italic "); |
+ serializedFont.appendLiteral("italic "); |
if (fontDescription.weight() == FontWeightBold) |
- serializedFont.append("bold "); |
+ serializedFont.appendLiteral("bold "); |
if (fontDescription.variantCaps() == FontDescription::SmallCaps) |
- serializedFont.append("small-caps "); |
+ serializedFont.appendLiteral("small-caps "); |
serializedFont.appendNumber(fontDescription.computedPixelSize()); |
- serializedFont.append("px"); |
+ serializedFont.appendLiteral("px"); |
const FontFamily& firstFontFamily = fontDescription.family(); |
for (const FontFamily* fontFamily = &firstFontFamily; fontFamily; fontFamily = fontFamily->next()) { |