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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp

Issue 2392443009: reflow comments in core/paint (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/paint/ThemePainterDefault.cpp
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
index 9139c93559b10eb46daf6a7f81fc88415bfe70d4..0b0fb12ed9bec925b9193a0af701cf971a0fc5cf 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
+++ b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
@@ -445,8 +445,9 @@ bool ThemePainterDefault::paintSearchFieldCancelButton(
std::min(inputContentBox.width(),
std::min(inputContentBox.height(), LayoutUnit(r.height())));
// Calculate cancel button's coordinates relative to the input element.
- // Center the button vertically. Round up though, so if it has to be one pixel off-center, it will
- // be one pixel closer to the bottom of the field. This tends to look better with the text.
+ // Center the button vertically. Round up though, so if it has to be one
+ // pixel off-center, it will be one pixel closer to the bottom of the field.
+ // This tends to look better with the text.
LayoutRect cancelButtonRect(
cancelButtonObject.offsetFromAncestorContainer(&inputLayoutBox).width(),
inputContentBox.y() +
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainter.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698