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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

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/mac/ThemeMac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 48a17adfc6bd43d1d37e162fd1a13fd2304a2e08..b29d447c6eed8dfdbbd10bc0e8a125dd8a2a3f64 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -324,7 +324,7 @@ public:
context.save();
#if OS(POSIX) && !OS(MACOSX)
- context.scale(WebCore::FloatSize(scale, scale));
+ context.scale(scale, scale);
#endif
context.translate(static_cast<float>(-pageRect.x()), static_cast<float>(-pageRect.y()));
context.clip(pageRect);
@@ -371,7 +371,7 @@ public:
// Account for the disabling of scaling in spoolPage. In the context
// of spoolAllPagesWithBoundaries the scale HAS NOT been pre-applied.
float scale = getPageShrink(pageIndex);
- graphicsContext.scale(WebCore::FloatSize(scale, scale));
+ graphicsContext.scale(scale, scale);
#endif
spoolPage(graphicsContext, pageIndex);
graphicsContext.restore();
« no previous file with comments | « Source/platform/mac/ThemeMac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698