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

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

Issue 2405633002: Reformat comments in core/layout (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/LayoutTextCombine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
index 6c062fbc1d01e56347948ea73680896f874fb769..96dc2fa88d9bba4f50353bbef4bae9e3765c6551 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTextCombine.cpp
@@ -144,9 +144,8 @@ void LayoutTextCombine::updateFont() {
(TextDecorationUnderline | TextDecorationOverline)))
emWidth *= textCombineMargin;
- description.setOrientation(
- FontOrientation::
- Horizontal); // We are going to draw combined text horizontally.
+ // We are going to draw combined text horizontally.
+ description.setOrientation(FontOrientation::Horizontal);
m_combinedTextWidth = originalFont().width(run);
FontSelector* fontSelector = style()->font().getFontSelector();
@@ -174,7 +173,8 @@ void LayoutTextCombine::updateFont() {
}
}
- // If width > ~1em, shrink to fit within ~1em, otherwise render without scaling (no expansion)
+ // If width > ~1em, shrink to fit within ~1em, otherwise render without
+ // scaling (no expansion).
// http://dev.w3.org/csswg/css-writing-modes-3/#text-combine-compression
if (m_combinedTextWidth > emWidth) {
m_scaleX = emWidth / m_combinedTextWidth;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTextCombine.h ('k') | third_party/WebKit/Source/core/layout/LayoutTextControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698