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 882496e8254e4eb2432b4663661983de312b0dbd..48c9e149bac321fb8df557de521604c8b910b4b5 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp |
@@ -760,9 +760,10 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text) { |
direction = determineDirectionality(text); |
else |
direction = toTextDirection(state().getDirection(), canvas()); |
- TextRun textRun(text, 0, 0, TextRun::AllowTrailingExpansion | |
- TextRun::ForbidLeadingExpansion, |
- direction, false); |
+ TextRun textRun( |
+ text, 0, 0, |
+ TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion, |
+ direction, false); |
textRun.setNormalizeSpace(true); |
FloatRect textBounds = font.selectionRectForText( |
textRun, FloatPoint(), font.getFontDescription().computedSize(), 0, -1, |