Changeset 57402 in webkit


Ignore:
Timestamp:
Apr 9, 2010 7:50:04 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-09 Evan Stade <estade@chromium.org>

Reviewed by Eric Seidel.

[chromium] Linux: respect the scale factor during printing
https://bugs.webkit.org/show_bug.cgi?id=37168

Chromium doesn't support testing .pdfs from printing at the moment, so
this change is not covered by any tests.

  • src/WebFrameImpl.cpp: (WebKit::ChromePrintContext::spoolPage):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r57401 r57402  
     12010-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
    1142010-04-09  Aaron Boodman  <aa@chromium.org>
    215
  • trunk/WebKit/chromium/src/WebFrameImpl.cpp

    r56972 r57402  
    289289    }
    290290
    291     // Spools the printed page, a subrect of m_frame.  Skip the scale step.
     291    // Spools the printed page, a subrect of m_frame. Skip the scale step.
    292292    // 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.
    294296    virtual float spoolPage(GraphicsContext& ctx, int pageNumber)
    295297    {
     
    298300
    299301        ctx.save();
     302#if OS(LINUX)
     303        ctx.scale(WebCore::FloatSize(scale, scale));
     304#endif
    300305        ctx.translate(static_cast<float>(-pageRect.x()),
    301306                      static_cast<float>(-pageRect.y()));
Note: See TracChangeset for help on using the changeset viewer.