Lines Matching defs:PrintContext
22 #include "core/page/PrintContext.h"
44 PrintContext::PrintContext(LocalFrame* frame)
51 PrintContext::~PrintContext()
57 void PrintContext::computePageRects(const FloatRect& printRect, float headerHeight, float footerHeight, float userScaleFactor, float& outPageHeight)
87 void PrintContext::computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling)
93 void PrintContext::computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels, bool allowInlineDirectionTiling)
162 void PrintContext::begin(float width, float height)
174 void PrintContext::end()
194 int PrintContext::pageNumberForElement(Element* element, const FloatSize& pageSizeInPixels)
206 PrintContext printContext(frame);
207 printContext.begin(pageRect.width(), pageRect.height());
210 printContext.computePageRectsWithPageSize(scaledPageSize, false);
215 for (; pageNumber < printContext.pageCount(); pageNumber++) {
216 const IntRect& page = printContext.pageRect(pageNumber);
223 void PrintContext::collectLinkAndLinkedDestinations(Node* node)
251 void PrintContext::outputLinkAndLinkedDestinations(GraphicsContext& graphicsContext, Node* node, const IntRect& pageRect)
290 String PrintContext::pageProperty(LocalFrame* frame, const char* propertyName, int pageNumber)
293 PrintContext printContext(frame);
294 printContext.begin(800); // Any width is OK here.
316 bool PrintContext::isPageBoxVisible(LocalFrame* frame, int pageNumber)
321 String PrintContext::pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft)
330 int PrintContext::numberOfPages(LocalFrame* frame, const FloatSize& pageSizeInPixels)
335 PrintContext printContext(frame);
336 printContext.begin(pageRect.width(), pageRect.height());
340 printContext.computePageRectsWithPageSize(scaledPageSize, false);
341 return printContext.pageCount();
344 void PrintContext::trace(Visitor* visitor)