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

Unified Diff: third_party/WebKit/Source/core/layout/line/LineWidth.h

Issue 2393693002: Reformat comments in core/layout/line (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/line/LineWidth.h
diff --git a/third_party/WebKit/Source/core/layout/line/LineWidth.h b/third_party/WebKit/Source/core/layout/line/LineWidth.h
index 6da9e5fb627c9d0fdd046517c241349bc0e5d98c..fbddd95d1c184c750de2ab278a50a0cfb7b1fe9a 100644
--- a/third_party/WebKit/Source/core/layout/line/LineWidth.h
+++ b/third_party/WebKit/Source/core/layout/line/LineWidth.h
@@ -63,12 +63,14 @@ class LineWidth {
return w <= m_availableWidth;
}
- // Note that m_uncommittedWidth may not be LayoutUnit-snapped at this point. Because
- // currentWidth() is used by the code that lays out words in a single LayoutText, it's
- // expected that offsets will not be snapped until an InlineBox boundary is reached.
+ // Note that m_uncommittedWidth may not be LayoutUnit-snapped at this point.
+ // Because currentWidth() is used by the code that lays out words in a single
+ // LayoutText, it's expected that offsets will not be snapped until an
+ // InlineBox boundary is reached.
float currentWidth() const { return m_committedWidth + m_uncommittedWidth; }
- // FIXME: We should eventually replace these three functions by ones that work on a higher abstraction.
+ // FIXME: We should eventually replace these three functions by ones that work
+ // on a higher abstraction.
float uncommittedWidth() const { return m_uncommittedWidth; }
float committedWidth() const { return m_committedWidth; }
float availableWidth() const { return m_availableWidth; }
@@ -103,8 +105,9 @@ class LineWidth {
LineLayoutBlockFlow m_block;
float m_uncommittedWidth;
float m_committedWidth;
- float
- m_overhangWidth; // The amount by which |m_availableWidth| has been inflated to account for possible contraction due to ruby overhang.
+ // The amount by which |m_availableWidth| has been inflated to account for
+ // possible contraction due to ruby overhang.
+ float m_overhangWidth;
float m_trailingWhitespaceWidth;
LayoutUnit m_left;
LayoutUnit m_right;
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/LineLayoutState.h ('k') | third_party/WebKit/Source/core/layout/line/LineWidth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698