Changeset 57402 in webkit
- Timestamp:
- Apr 9, 2010 7:50:04 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r57401 r57402 1 2010-04-09 Evan Stade <estade@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] Linux: respect the scale factor during printing 6 https://bugs.webkit.org/show_bug.cgi?id=37168 7 8 Chromium doesn't support testing .pdfs from printing at the moment, so 9 this change is not covered by any tests. 10 11 * src/WebFrameImpl.cpp: 12 (WebKit::ChromePrintContext::spoolPage): 13 1 14 2010-04-09 Aaron Boodman <aa@chromium.org> 2 15 -
trunk/WebKit/chromium/src/WebFrameImpl.cpp
r56972 r57402 289 289 } 290 290 291 // Spools the printed page, a subrect of m_frame. 291 // Spools the printed page, a subrect of m_frame. Skip the scale step. 292 292 // NativeTheme doesn't play well with scaling. Scaling is done browser side 293 // instead. Returns the scale to be applied. 293 // instead. Returns the scale to be applied. 294 // On Linux, we don't have the problem with NativeTheme, hence we let WebKit 295 // do the scaling and ignore the return value. 294 296 virtual float spoolPage(GraphicsContext& ctx, int pageNumber) 295 297 { … … 298 300 299 301 ctx.save(); 302 #if OS(LINUX) 303 ctx.scale(WebCore::FloatSize(scale, scale)); 304 #endif 300 305 ctx.translate(static_cast<float>(-pageRect.x()), 301 306 static_cast<float>(-pageRect.y()));
Note: See TracChangeset
for help on using the changeset viewer.