diff options
Diffstat (limited to 'Source/WebCore/page/PrintContext.h')
-rw-r--r-- | Source/WebCore/page/PrintContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/page/PrintContext.h b/Source/WebCore/page/PrintContext.h index ce2554a..873937a 100644 --- a/Source/WebCore/page/PrintContext.h +++ b/Source/WebCore/page/PrintContext.h @@ -50,11 +50,11 @@ public: void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling); // These are only valid after page rects are computed. - size_t pageCount() const; - const IntRect& pageRect(size_t pageNumber) const; + size_t pageCount() const { return m_pageRects.size(); } + const IntRect& pageRect(size_t pageNumber) const { return m_pageRects[pageNumber]; } const Vector<IntRect>& pageRects() const { return m_pageRects; } - float computeAutomaticScaleFactor(float availablePaperWidth); + float computeAutomaticScaleFactor(const FloatSize& availablePaperSize); // Enter print mode, updating layout for new page size. // This function can be called multiple times to apply new print options without going back to screen mode. |