OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, 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 15 matching lines...) Expand all Loading... |
26 #include "core/rendering/LayoutState.h" | 26 #include "core/rendering/LayoutState.h" |
27 #include "core/rendering/PaintInvalidationState.h" | 27 #include "core/rendering/PaintInvalidationState.h" |
28 #include "core/rendering/RenderBlockFlow.h" | 28 #include "core/rendering/RenderBlockFlow.h" |
29 #include "platform/PODFreeListArena.h" | 29 #include "platform/PODFreeListArena.h" |
30 #include "platform/RuntimeEnabledFeatures.h" | 30 #include "platform/RuntimeEnabledFeatures.h" |
31 #include "platform/scroll/ScrollableArea.h" | 31 #include "platform/scroll/ScrollableArea.h" |
32 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class FlowThreadController; | |
37 class RenderLayerCompositor; | 36 class RenderLayerCompositor; |
38 class RenderQuote; | 37 class RenderQuote; |
39 | 38 |
40 // The root of the render tree, corresponding to the CSS initial containing bloc
k. | 39 // The root of the render tree, corresponding to the CSS initial containing bloc
k. |
41 // It's dimensions match that of the logical viewport (which may be different fr
om | 40 // It's dimensions match that of the logical viewport (which may be different fr
om |
42 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) | 41 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) |
43 // relative to the document (and so isn't necessarily in view). | 42 // relative to the document (and so isn't necessarily in view). |
44 class RenderView final : public RenderBlockFlow { | 43 class RenderView final : public RenderBlockFlow { |
45 public: | 44 public: |
46 explicit RenderView(Document*); | 45 explicit RenderView(Document*); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool usesCompositing() const; | 135 bool usesCompositing() const; |
137 | 136 |
138 IntRect unscaledDocumentRect() const; | 137 IntRect unscaledDocumentRect() const; |
139 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 138 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
140 | 139 |
141 IntRect documentRect() const; | 140 IntRect documentRect() const; |
142 | 141 |
143 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | 142 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. |
144 bool rootBackgroundIsEntirelyFixed() const; | 143 bool rootBackgroundIsEntirelyFixed() const; |
145 | 144 |
146 FlowThreadController* flowThreadController(); | |
147 | |
148 IntervalArena* intervalArena(); | 145 IntervalArena* intervalArena(); |
149 | 146 |
150 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } | 147 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } |
151 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } | 148 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } |
152 | 149 |
153 // FIXME: This is a work around because the current implementation of counte
rs | 150 // FIXME: This is a work around because the current implementation of counte
rs |
154 // requires walking the entire tree repeatedly and most pages don't actually
use either | 151 // requires walking the entire tree repeatedly and most pages don't actually
use either |
155 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should | 152 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should |
156 // rewrite the counter and quotes code. | 153 // rewrite the counter and quotes code. |
157 void addRenderCounter() { m_renderCounterCount++; } | 154 void addRenderCounter() { m_renderCounterCount++; } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 RawPtrWillBeMember<RenderObject> m_selectionStart; | 186 RawPtrWillBeMember<RenderObject> m_selectionStart; |
190 RawPtrWillBeMember<RenderObject> m_selectionEnd; | 187 RawPtrWillBeMember<RenderObject> m_selectionEnd; |
191 | 188 |
192 int m_selectionStartPos; | 189 int m_selectionStartPos; |
193 int m_selectionEndPos; | 190 int m_selectionEndPos; |
194 | 191 |
195 LayoutUnit m_pageLogicalHeight; | 192 LayoutUnit m_pageLogicalHeight; |
196 bool m_pageLogicalHeightChanged; | 193 bool m_pageLogicalHeightChanged; |
197 LayoutState* m_layoutState; | 194 LayoutState* m_layoutState; |
198 OwnPtr<RenderLayerCompositor> m_compositor; | 195 OwnPtr<RenderLayerCompositor> m_compositor; |
199 OwnPtr<FlowThreadController> m_flowThreadController; | |
200 RefPtr<IntervalArena> m_intervalArena; | 196 RefPtr<IntervalArena> m_intervalArena; |
201 | 197 |
202 RawPtrWillBeMember<RenderQuote> m_renderQuoteHead; | 198 RawPtrWillBeMember<RenderQuote> m_renderQuoteHead; |
203 unsigned m_renderCounterCount; | 199 unsigned m_renderCounterCount; |
204 | 200 |
205 unsigned m_hitTestCount; | 201 unsigned m_hitTestCount; |
206 }; | 202 }; |
207 | 203 |
208 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); | 204 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); |
209 | 205 |
(...skipping 19 matching lines...) Expand all Loading... |
229 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 225 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
230 } | 226 } |
231 private: | 227 private: |
232 const PaintInvalidationState* m_paintInvalidationState; | 228 const PaintInvalidationState* m_paintInvalidationState; |
233 bool m_didDisable; | 229 bool m_didDisable; |
234 }; | 230 }; |
235 | 231 |
236 } // namespace blink | 232 } // namespace blink |
237 | 233 |
238 #endif // RenderView_h | 234 #endif // RenderView_h |
OLD | NEW |