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

Unified Diff: Source/platform/mac/ThemeMac.mm

Issue 323013004: Clean up transform methods in GraphicsContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2nd Attempt Mac build fix Created 6 years, 6 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
« no previous file with comments | « Source/platform/graphics/filters/FETile.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ThemeMac.mm
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
index ae9000d79ed45340cc6fc0f40e3f923684c93b5b..927b2e8b15948b8259f4c46c995b24f282de3469 100644
--- a/Source/platform/mac/ThemeMac.mm
+++ b/Source/platform/mac/ThemeMac.mm
@@ -290,7 +290,7 @@ static void paintCheckbox(ControlStates states, GraphicsContext* context, const
inflatedRect.setWidth(inflatedRect.width() / zoomFactor);
inflatedRect.setHeight(inflatedRect.height() / zoomFactor);
context->translate(inflatedRect.x(), inflatedRect.y());
- context->scale(FloatSize(zoomFactor, zoomFactor));
+ context->scale(zoomFactor, zoomFactor);
context->translate(-inflatedRect.x(), -inflatedRect.y());
}
@@ -370,7 +370,7 @@ static void paintRadio(ControlStates states, GraphicsContext* context, const Int
inflatedRect.setWidth(inflatedRect.width() / zoomFactor);
inflatedRect.setHeight(inflatedRect.height() / zoomFactor);
context->translate(inflatedRect.x(), inflatedRect.y());
- context->scale(FloatSize(zoomFactor, zoomFactor));
+ context->scale(zoomFactor, zoomFactor);
context->translate(-inflatedRect.x(), -inflatedRect.y());
}
@@ -462,7 +462,7 @@ static void paintButton(ControlPart part, ControlStates states, GraphicsContext*
inflatedRect.setWidth(inflatedRect.width() / zoomFactor);
inflatedRect.setHeight(inflatedRect.height() / zoomFactor);
context->translate(inflatedRect.x(), inflatedRect.y());
- context->scale(FloatSize(zoomFactor, zoomFactor));
+ context->scale(zoomFactor, zoomFactor);
context->translate(-inflatedRect.x(), -inflatedRect.y());
}
}
@@ -523,7 +523,7 @@ static void paintStepper(ControlStates states, GraphicsContext* context, const I
rect.setWidth(rect.width() / zoomFactor);
rect.setHeight(rect.height() / zoomFactor);
context->translate(rect.x(), rect.y());
- context->scale(FloatSize(zoomFactor, zoomFactor));
+ context->scale(zoomFactor, zoomFactor);
context->translate(-rect.x(), -rect.y());
}
CGRect bounds(rect);
« no previous file with comments | « Source/platform/graphics/filters/FETile.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698