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 12 matching lines...) Expand all Loading... |
23 #define RenderView_h | 23 #define RenderView_h |
24 | 24 |
25 #include "core/page/FrameView.h" | 25 #include "core/page/FrameView.h" |
26 #include "core/platform/PODFreeListArena.h" | 26 #include "core/platform/PODFreeListArena.h" |
27 #include "core/rendering/LayoutState.h" | 27 #include "core/rendering/LayoutState.h" |
28 #include "core/rendering/RenderBlock.h" | 28 #include "core/rendering/RenderBlock.h" |
29 #include <wtf/OwnPtr.h> | 29 #include <wtf/OwnPtr.h> |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
| 33 class CustomFilterGlobalContext; |
33 class FlowThreadController; | 34 class FlowThreadController; |
34 class RenderLayerCompositor; | 35 class RenderLayerCompositor; |
35 class RenderLazyBlock; | 36 class RenderLazyBlock; |
36 class RenderQuote; | 37 class RenderQuote; |
37 class RenderWidget; | 38 class RenderWidget; |
38 | 39 |
39 #if USE(3D_GRAPHICS) | |
40 class CustomFilterGlobalContext; | |
41 #endif | |
42 | |
43 class RenderView FINAL : public RenderBlock { | 40 class RenderView FINAL : public RenderBlock { |
44 public: | 41 public: |
45 explicit RenderView(Document*); | 42 explicit RenderView(Document*); |
46 virtual ~RenderView(); | 43 virtual ~RenderView(); |
47 | 44 |
48 bool hitTest(const HitTestRequest&, HitTestResult&); | 45 bool hitTest(const HitTestRequest&, HitTestResult&); |
49 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 46 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
50 | 47 |
51 virtual const char* renderName() const OVERRIDE { return "RenderView"; } | 48 virtual const char* renderName() const OVERRIDE { return "RenderView"; } |
52 | 49 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 const IntRect& printRect() const { return m_legacyPrinting.m_printRect; } | 169 const IntRect& printRect() const { return m_legacyPrinting.m_printRect; } |
173 void setPrintRect(const IntRect& r) { m_legacyPrinting.m_printRect = r; } | 170 void setPrintRect(const IntRect& r) { m_legacyPrinting.m_printRect = r; } |
174 // End deprecated functions. | 171 // End deprecated functions. |
175 | 172 |
176 // Notification that this view moved into or out of a native window. | 173 // Notification that this view moved into or out of a native window. |
177 void setIsInWindow(bool); | 174 void setIsInWindow(bool); |
178 | 175 |
179 RenderLayerCompositor* compositor(); | 176 RenderLayerCompositor* compositor(); |
180 bool usesCompositing() const; | 177 bool usesCompositing() const; |
181 | 178 |
182 #if USE(3D_GRAPHICS) | |
183 CustomFilterGlobalContext* customFilterGlobalContext(); | 179 CustomFilterGlobalContext* customFilterGlobalContext(); |
184 #endif | |
185 | 180 |
186 IntRect unscaledDocumentRect() const; | 181 IntRect unscaledDocumentRect() const; |
187 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 182 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
188 | 183 |
189 IntRect documentRect() const; | 184 IntRect documentRect() const; |
190 | 185 |
191 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | 186 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. |
192 bool rootBackgroundIsEntirelyFixed() const; | 187 bool rootBackgroundIsEntirelyFixed() const; |
193 | 188 |
194 bool hasRenderNamedFlowThreads() const; | 189 bool hasRenderNamedFlowThreads() const; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 RenderWidgetSet m_widgets; | 305 RenderWidgetSet m_widgets; |
311 | 306 |
312 private: | 307 private: |
313 bool shouldUsePrintingLayout() const; | 308 bool shouldUsePrintingLayout() const; |
314 | 309 |
315 LayoutUnit m_pageLogicalHeight; | 310 LayoutUnit m_pageLogicalHeight; |
316 bool m_pageLogicalHeightChanged; | 311 bool m_pageLogicalHeightChanged; |
317 LayoutState* m_layoutState; | 312 LayoutState* m_layoutState; |
318 unsigned m_layoutStateDisableCount; | 313 unsigned m_layoutStateDisableCount; |
319 OwnPtr<RenderLayerCompositor> m_compositor; | 314 OwnPtr<RenderLayerCompositor> m_compositor; |
320 #if USE(3D_GRAPHICS) | |
321 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext; | 315 OwnPtr<CustomFilterGlobalContext> m_customFilterGlobalContext; |
322 #endif | |
323 OwnPtr<FlowThreadController> m_flowThreadController; | 316 OwnPtr<FlowThreadController> m_flowThreadController; |
324 RefPtr<IntervalArena> m_intervalArena; | 317 RefPtr<IntervalArena> m_intervalArena; |
325 | 318 |
326 RenderLazyBlock* m_firstLazyBlock; | 319 RenderLazyBlock* m_firstLazyBlock; |
327 RenderQuote* m_renderQuoteHead; | 320 RenderQuote* m_renderQuoteHead; |
328 unsigned m_renderCounterCount; | 321 unsigned m_renderCounterCount; |
329 }; | 322 }; |
330 | 323 |
331 inline RenderView* toRenderView(RenderObject* object) | 324 inline RenderView* toRenderView(RenderObject* object) |
332 { | 325 { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 RenderObject::FlowThreadState m_flowThreadState; | 434 RenderObject::FlowThreadState m_flowThreadState; |
442 bool m_fragmenting; | 435 bool m_fragmenting; |
443 #ifndef NDEBUG | 436 #ifndef NDEBUG |
444 LayoutState* m_layoutState; | 437 LayoutState* m_layoutState; |
445 #endif | 438 #endif |
446 }; | 439 }; |
447 | 440 |
448 } // namespace WebCore | 441 } // namespace WebCore |
449 | 442 |
450 #endif // RenderView_h | 443 #endif // RenderView_h |
OLD | NEW |