OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
3 * Copyright (C) 2007 Apple Inc. | 3 * Copyright (C) 2007 Apple Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 static String pageProperty(LocalFrame* frame, const char* propertyName, int
pageNumber); | 72 static String pageProperty(LocalFrame* frame, const char* propertyName, int
pageNumber); |
73 static bool isPageBoxVisible(LocalFrame* frame, int pageNumber); | 73 static bool isPageBoxVisible(LocalFrame* frame, int pageNumber); |
74 static String pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber,
int width, int height, int marginTop, int marginRight, int marginBottom, int mar
ginLeft); | 74 static String pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber,
int width, int height, int marginTop, int marginRight, int marginBottom, int mar
ginLeft); |
75 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels); | 75 static int numberOfPages(LocalFrame*, const FloatSize& pageSizeInPixels); |
76 | 76 |
77 virtual void trace(Visitor*); | 77 virtual void trace(Visitor*); |
78 | 78 |
79 protected: | 79 protected: |
80 void outputLinkAndLinkedDestinations(GraphicsContext&, Node*, const IntRect&
pageRect); | 80 void outputLinkAndLinkedDestinations(GraphicsContext&, Node*, const IntRect&
pageRect); |
81 | 81 |
82 LocalFrame* m_frame; | 82 RawPtrWillBeMember<LocalFrame> m_frame; |
83 Vector<IntRect> m_pageRects; | 83 Vector<IntRect> m_pageRects; |
84 | 84 |
85 private: | 85 private: |
86 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels,
bool allowHorizontalTiling); | 86 void computePageRectsWithPageSizeInternal(const FloatSize& pageSizeInPixels,
bool allowHorizontalTiling); |
87 void collectLinkAndLinkedDestinations(Node*); | 87 void collectLinkAndLinkedDestinations(Node*); |
88 | 88 |
89 // Used to prevent misuses of begin() and end() (e.g., call end without begi
n). | 89 // Used to prevent misuses of begin() and end() (e.g., call end without begi
n). |
90 bool m_isPrinting; | 90 bool m_isPrinting; |
91 | 91 |
92 WillBeHeapHashMap<RawPtrWillBeMember<Element>, KURL> m_linkDestinations; | 92 WillBeHeapHashMap<RawPtrWillBeMember<Element>, KURL> m_linkDestinations; |
93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element> > m_linkedDestinations
; | 93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element> > m_linkedDestinations
; |
94 bool m_linkAndLinkedDestinationsValid; | 94 bool m_linkAndLinkedDestinationsValid; |
95 }; | 95 }; |
96 | 96 |
97 } | 97 } |
98 | 98 |
99 #endif | 99 #endif |
OLD | NEW |