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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp

Issue 2386333002: reflow comments in platform/fonts (Closed)
Patch Set: comments Created 4 years, 2 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/platform/fonts/shaping/ShapeResult.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
index 8bbb8f00be8be24e876332366e8d6c303cc9fe36..44f614cc13bda2283187dee5d4716a4aa5604714 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
@@ -380,11 +380,12 @@ PassRefPtr<ShapeResult> ShapeResult::createForTabulationCharacters(
float positionOffset,
unsigned count) {
const SimpleFontData* fontData = font->primaryFont();
- std::unique_ptr<ShapeResult::RunInfo> run = wrapUnique(new ShapeResult::RunInfo(
- fontData,
- // Tab characters are always LTR or RTL, not TTB, even when isVerticalAnyUpright().
- textRun.rtl() ? HB_DIRECTION_RTL : HB_DIRECTION_LTR, HB_SCRIPT_COMMON, 0,
- count, count));
+ // Tab characters are always LTR or RTL, not TTB, even when
+ // isVerticalAnyUpright().
+ std::unique_ptr<ShapeResult::RunInfo> run =
+ wrapUnique(new ShapeResult::RunInfo(
+ fontData, textRun.rtl() ? HB_DIRECTION_RTL : HB_DIRECTION_LTR,
+ HB_SCRIPT_COMMON, 0, count, count));
float position = textRun.xPos() + positionOffset;
float startPosition = position;
for (unsigned i = 0; i < count; i++) {

Powered by Google App Engine
This is Rietveld 408576698