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 22 matching lines...) Expand all Loading... |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 class Element; | 35 class Element; |
36 class LocalFrame; | 36 class LocalFrame; |
37 class FloatRect; | 37 class FloatRect; |
38 class FloatSize; | 38 class FloatSize; |
39 class IntRect; | 39 class IntRect; |
40 class Node; | 40 class Node; |
41 | 41 |
42 class CORE_EXPORT PrintContext : public NoBaseWillBeGarbageCollectedFinalized<Pr
intContext> { | 42 class CORE_EXPORT PrintContext : public NoBaseWillBeGarbageCollectedFinalized<Pr
intContext> { |
| 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PrintContext); |
43 public: | 44 public: |
44 explicit PrintContext(LocalFrame*); | 45 explicit PrintContext(LocalFrame*); |
45 virtual ~PrintContext(); | 46 virtual ~PrintContext(); |
46 | 47 |
47 LocalFrame* frame() const { return m_frame; } | 48 LocalFrame* frame() const { return m_frame; } |
48 | 49 |
49 // Break up a page into rects without relayout. | 50 // Break up a page into rects without relayout. |
50 // FIXME: This means that CSS page breaks won't be on page boundary if the s
ize is different than what was passed to begin(). That's probably not always des
irable. | 51 // FIXME: This means that CSS page breaks won't be on page boundary if the s
ize is different than what was passed to begin(). That's probably not always des
irable. |
51 // FIXME: Header and footer height should be applied before layout, not afte
r. | 52 // FIXME: Header and footer height should be applied before layout, not afte
r. |
52 // FIXME: The printRect argument is only used to determine page aspect ratio
, it would be better to pass a FloatSize with page dimensions instead. | 53 // FIXME: The printRect argument is only used to determine page aspect ratio
, it would be better to pass a FloatSize with page dimensions instead. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Used to prevent misuses of begin() and end() (e.g., call end without begi
n). | 91 // Used to prevent misuses of begin() and end() (e.g., call end without begi
n). |
91 bool m_isPrinting; | 92 bool m_isPrinting; |
92 | 93 |
93 WillBeHeapHashMap<String, RawPtrWillBeMember<Element>> m_linkedDestinations; | 94 WillBeHeapHashMap<String, RawPtrWillBeMember<Element>> m_linkedDestinations; |
94 bool m_linkedDestinationsValid; | 95 bool m_linkedDestinationsValid; |
95 }; | 96 }; |
96 | 97 |
97 } | 98 } |
98 | 99 |
99 #endif | 100 #endif |
OLD | NEW |