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 26 matching lines...) Expand all Loading... |
37 class RenderQuote; | 37 class RenderQuote; |
38 | 38 |
39 // 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. |
40 // 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 |
41 // 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
) |
42 // relative to the document (and so isn't necessarily in view). | 42 // relative to the document (and so isn't necessarily in view). |
43 class RenderView FINAL : public RenderBlockFlow { | 43 class RenderView FINAL : public RenderBlockFlow { |
44 public: | 44 public: |
45 explicit RenderView(Document*); | 45 explicit RenderView(Document*); |
46 virtual ~RenderView(); | 46 virtual ~RenderView(); |
| 47 virtual void trace(Visitor*) OVERRIDE; |
47 | 48 |
48 bool hitTest(const HitTestRequest&, HitTestResult&); | 49 bool hitTest(const HitTestRequest&, HitTestResult&); |
49 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 50 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
50 | 51 |
51 // Returns the total count of calls to HitTest, for testing. | 52 // Returns the total count of calls to HitTest, for testing. |
52 unsigned hitTestCount() const { return m_hitTestCount; } | 53 unsigned hitTestCount() const { return m_hitTestCount; } |
53 | 54 |
54 virtual const char* renderName() const OVERRIDE { return "RenderView"; } | 55 virtual const char* renderName() const OVERRIDE { return "RenderView"; } |
55 | 56 |
56 virtual bool isRenderView() const OVERRIDE { return true; } | 57 virtual bool isRenderView() const OVERRIDE { return true; } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void positionDialogs(); | 178 void positionDialogs(); |
178 | 179 |
179 friend class ForceHorriblySlowRectMapping; | 180 friend class ForceHorriblySlowRectMapping; |
180 | 181 |
181 bool shouldUsePrintingLayout() const; | 182 bool shouldUsePrintingLayout() const; |
182 | 183 |
183 RenderObject* backgroundRenderer() const; | 184 RenderObject* backgroundRenderer() const; |
184 | 185 |
185 FrameView* m_frameView; | 186 FrameView* m_frameView; |
186 | 187 |
187 RenderObject* m_selectionStart; | 188 RawPtrWillBeMember<RenderObject> m_selectionStart; |
188 RenderObject* m_selectionEnd; | 189 RawPtrWillBeMember<RenderObject> m_selectionEnd; |
189 | 190 |
190 int m_selectionStartPos; | 191 int m_selectionStartPos; |
191 int m_selectionEndPos; | 192 int m_selectionEndPos; |
192 | 193 |
193 LayoutUnit m_pageLogicalHeight; | 194 LayoutUnit m_pageLogicalHeight; |
194 bool m_pageLogicalHeightChanged; | 195 bool m_pageLogicalHeightChanged; |
195 LayoutState* m_layoutState; | 196 LayoutState* m_layoutState; |
196 OwnPtr<RenderLayerCompositor> m_compositor; | 197 OwnPtr<RenderLayerCompositor> m_compositor; |
197 OwnPtr<FlowThreadController> m_flowThreadController; | 198 OwnPtr<FlowThreadController> m_flowThreadController; |
198 RefPtr<IntervalArena> m_intervalArena; | 199 RefPtr<IntervalArena> m_intervalArena; |
199 | 200 |
200 RenderQuote* m_renderQuoteHead; | 201 RawPtrWillBeMember<RenderQuote> m_renderQuoteHead; |
201 unsigned m_renderCounterCount; | 202 unsigned m_renderCounterCount; |
202 | 203 |
203 unsigned m_hitTestCount; | 204 unsigned m_hitTestCount; |
204 }; | 205 }; |
205 | 206 |
206 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); | 207 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); |
207 | 208 |
208 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms | 209 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms |
209 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render | 210 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render |
210 // tree during layout in ways that can trigger repaint of a non-child (e.g. when
a list item | 211 // tree during layout in ways that can trigger repaint of a non-child (e.g. when
a list item |
(...skipping 16 matching lines...) Expand all Loading... |
227 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 228 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
228 } | 229 } |
229 private: | 230 private: |
230 const PaintInvalidationState* m_paintInvalidationState; | 231 const PaintInvalidationState* m_paintInvalidationState; |
231 bool m_didDisable; | 232 bool m_didDisable; |
232 }; | 233 }; |
233 | 234 |
234 } // namespace blink | 235 } // namespace blink |
235 | 236 |
236 #endif // RenderView_h | 237 #endif // RenderView_h |
OLD | NEW |