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 17 matching lines...) Expand all Loading... |
28 #include "core/layout/PaintInvalidationState.h" | 28 #include "core/layout/PaintInvalidationState.h" |
29 #include "core/rendering/RenderBlockFlow.h" | 29 #include "core/rendering/RenderBlockFlow.h" |
30 #include "platform/PODFreeListArena.h" | 30 #include "platform/PODFreeListArena.h" |
31 #include "platform/RuntimeEnabledFeatures.h" | 31 #include "platform/RuntimeEnabledFeatures.h" |
32 #include "platform/scroll/ScrollableArea.h" | 32 #include "platform/scroll/ScrollableArea.h" |
33 #include "wtf/OwnPtr.h" | 33 #include "wtf/OwnPtr.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class LayerCompositor; | 37 class LayerCompositor; |
38 class RenderQuote; | 38 class LayoutQuote; |
39 | 39 |
40 // The root of the render tree, corresponding to the CSS initial containing bloc
k. | 40 // 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 | 41 // 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
) | 42 // 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). | 43 // relative to the document (and so isn't necessarily in view). |
44 class RenderView final : public RenderBlockFlow { | 44 class RenderView final : public RenderBlockFlow { |
45 public: | 45 public: |
46 explicit RenderView(Document*); | 46 explicit RenderView(Document*); |
47 virtual ~RenderView(); | 47 virtual ~RenderView(); |
48 void willBeDestroyed() override; | 48 void willBeDestroyed() override; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 IntRect unscaledDocumentRect() const; | 141 IntRect unscaledDocumentRect() const; |
142 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; | 142 LayoutRect backgroundRect(RenderBox* backgroundRenderer) const; |
143 | 143 |
144 IntRect documentRect() const; | 144 IntRect documentRect() const; |
145 | 145 |
146 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. | 146 // Renderer that paints the root background has background-images which all
have background-attachment: fixed. |
147 bool rootBackgroundIsEntirelyFixed() const; | 147 bool rootBackgroundIsEntirelyFixed() const; |
148 | 148 |
149 IntervalArena* intervalArena(); | 149 IntervalArena* intervalArena(); |
150 | 150 |
151 void setRenderQuoteHead(RenderQuote* head) { m_renderQuoteHead = head; } | 151 void setLayoutQuoteHead(LayoutQuote* head) { m_layoutQuoteHead = head; } |
152 RenderQuote* renderQuoteHead() const { return m_renderQuoteHead; } | 152 LayoutQuote* layoutQuoteHead() const { return m_layoutQuoteHead; } |
153 | 153 |
154 // FIXME: This is a work around because the current implementation of counte
rs | 154 // FIXME: This is a work around because the current implementation of counte
rs |
155 // requires walking the entire tree repeatedly and most pages don't actually
use either | 155 // requires walking the entire tree repeatedly and most pages don't actually
use either |
156 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should | 156 // feature so we shouldn't take the performance hit when not needed. Long te
rm we should |
157 // rewrite the counter and quotes code. | 157 // rewrite the counter and quotes code. |
158 void addLayoutCounter() { m_layoutCounterCount++; } | 158 void addLayoutCounter() { m_layoutCounterCount++; } |
159 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount
erCount--; } | 159 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount
erCount--; } |
160 bool hasLayoutCounters() { return m_layoutCounterCount; } | 160 bool hasLayoutCounters() { return m_layoutCounterCount; } |
161 | 161 |
162 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; | 162 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect)
const override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 int m_selectionStartPos; | 195 int m_selectionStartPos; |
196 int m_selectionEndPos; | 196 int m_selectionEndPos; |
197 | 197 |
198 LayoutUnit m_pageLogicalHeight; | 198 LayoutUnit m_pageLogicalHeight; |
199 bool m_pageLogicalHeightChanged; | 199 bool m_pageLogicalHeightChanged; |
200 LayoutState* m_layoutState; | 200 LayoutState* m_layoutState; |
201 OwnPtr<LayerCompositor> m_compositor; | 201 OwnPtr<LayerCompositor> m_compositor; |
202 RefPtr<IntervalArena> m_intervalArena; | 202 RefPtr<IntervalArena> m_intervalArena; |
203 | 203 |
204 RenderQuote* m_renderQuoteHead; | 204 LayoutQuote* m_layoutQuoteHead; |
205 unsigned m_layoutCounterCount; | 205 unsigned m_layoutCounterCount; |
206 | 206 |
207 unsigned m_hitTestCount; | 207 unsigned m_hitTestCount; |
208 | 208 |
209 class PendingSelection final { | 209 class PendingSelection final { |
210 DISALLOW_ALLOCATION(); | 210 DISALLOW_ALLOCATION(); |
211 public: | 211 public: |
212 PendingSelection(); | 212 PendingSelection(); |
213 void setSelection(const FrameSelection&); | 213 void setSelection(const FrameSelection&); |
214 void clear(); | 214 void clear(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
254 } | 254 } |
255 private: | 255 private: |
256 const PaintInvalidationState* m_paintInvalidationState; | 256 const PaintInvalidationState* m_paintInvalidationState; |
257 bool m_didDisable; | 257 bool m_didDisable; |
258 }; | 258 }; |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
261 | 261 |
262 #endif // RenderView_h | 262 #endif // RenderView_h |
OLD | NEW |