Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(957)

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698