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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutRubyText.cpp

Issue 2400863005: Reformat comments in core/layout up until LayoutTableRow (Closed)
Patch Set: 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/core/layout/LayoutRubyText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp b/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
index 66d40929226592722efec81f8bd5a15a5c4bd6b0..a454d07b7eda47cef9db1c1092697098350498e5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
@@ -48,7 +48,8 @@ ETextAlign LayoutRubyText::textAlignmentForLine(bool endsWithSoftBreak) const {
if (textAlign != ComputedStyle::initialTextAlign())
return LayoutBlockFlow::textAlignmentForLine(endsWithSoftBreak);
- // The default behavior is to allow ruby text to expand if it is shorter than the ruby base.
+ // The default behavior is to allow ruby text to expand if it is shorter than
+ // the ruby base.
return JUSTIFY;
}
@@ -66,8 +67,8 @@ void LayoutRubyText::adjustInlineDirectionLineBounds(
if (maxPreferredLogicalWidth >= logicalWidth)
return;
- // Inset the ruby text by half the inter-ideograph expansion amount, but no more than a full-width
- // ruby character on each side.
+ // Inset the ruby text by half the inter-ideograph expansion amount, but no
+ // more than a full-width ruby character on each side.
LayoutUnit inset = (logicalWidth - maxPreferredLogicalWidth) /
(expansionOpportunityCount + 1);
if (expansionOpportunityCount)

Powered by Google App Engine
This is Rietveld 408576698