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

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

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/ThemePainterMac.mm
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
index 790875e3fb304dc7f1ad1965b5cb0574d06a4706..7afb12ee7c6c868d5a37226c3ac73f02ee8ac334 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
@@ -613,7 +613,8 @@ bool ThemePainterMac::paintCheckbox(const LayoutObject& object,
ControlStates states = LayoutTheme::controlStatesForLayoutObject(object);
float zoomFactor = object.styleRef().effectiveZoom();
- // Determine the width and height needed for the control and prepare the cell for painting.
+ // Determine the width and height needed for the control and prepare the cell
+ // for painting.
NSButtonCell* checkboxCell =
ThemeMac::checkbox(states, zoomedRect, zoomFactor);
GraphicsContextStateSaver stateSaver(paintInfo.context);
@@ -652,7 +653,8 @@ bool ThemePainterMac::paintRadio(const LayoutObject& object,
ControlStates states = LayoutTheme::controlStatesForLayoutObject(object);
float zoomFactor = object.styleRef().effectiveZoom();
- // Determine the width and height needed for the control and prepare the cell for painting.
+ // Determine the width and height needed for the control and prepare the cell
+ // for painting.
NSButtonCell* radioCell = ThemeMac::radio(states, zoomedRect, zoomFactor);
GraphicsContextStateSaver stateSaver(paintInfo.context);
@@ -692,16 +694,17 @@ bool ThemePainterMac::paintButton(const LayoutObject& object,
ControlStates states = LayoutTheme::controlStatesForLayoutObject(object);
float zoomFactor = object.styleRef().effectiveZoom();
- // Determine the width and height needed for the control and prepare the cell for painting.
+ // Determine the width and height needed for the control and prepare the cell
+ // for painting.
NSButtonCell* buttonCell = ThemeMac::button(object.styleRef().appearance(),
states, zoomedRect, zoomFactor);
GraphicsContextStateSaver stateSaver(paintInfo.context);
NSControlSize controlSize = [buttonCell controlSize];
IntSize zoomedSize = ThemeMac::buttonSizes()[controlSize];
- zoomedSize.setWidth(
- zoomedRect
- .width()); // Buttons don't ever constrain width, so the zoomed width can just be honored.
+ // Buttons don't ever constrain width, so the zoomed width can just be
+ // honored.
+ zoomedSize.setWidth(zoomedRect.width());
zoomedSize.setHeight(zoomedSize.height() * zoomFactor);
IntRect inflatedRect = zoomedRect;
if ([buttonCell bezelStyle] == NSRoundedBezelStyle) {
@@ -747,7 +750,8 @@ static ThemeDrawState convertControlStatesToThemeDrawState(
if (!(states & EnabledControlState))
return kThemeStateUnavailableInactive;
- // Do not process PressedState if !EnabledControlState or ReadOnlyControlState.
+ // Do not process PressedState if !EnabledControlState or
+ // ReadOnlyControlState.
if (states & PressedControlState) {
if (kind == kThemeIncDecButton || kind == kThemeIncDecButtonSmall ||
kind == kThemeIncDecButtonMini)
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp ('k') | third_party/WebKit/Source/core/paint/VideoPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698