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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void clearSelection(); | 90 void clearSelection(); |
91 RenderObject* selectionStart() const { return m_selectionStart; } | 91 RenderObject* selectionStart() const { return m_selectionStart; } |
92 RenderObject* selectionEnd() const { return m_selectionEnd; } | 92 RenderObject* selectionEnd() const { return m_selectionEnd; } |
93 IntRect selectionBounds(bool clipToVisibleContent = true) const; | 93 IntRect selectionBounds(bool clipToVisibleContent = true) const; |
94 void selectionStartEnd(int& startPos, int& endPos) const; | 94 void selectionStartEnd(int& startPos, int& endPos) const; |
95 void repaintSelection() const; | 95 void repaintSelection() const; |
96 | 96 |
97 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE; | 97 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE; |
98 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; | 98 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E; |
99 | 99 |
100 void setMaximalOutlineSize(int o); | |
101 int maximalOutlineSize() const { return m_maximalOutlineSize; } | |
102 | |
103 void setOldMaximalOutlineSize(int o) { m_oldMaximalOutlineSize = o; } | |
104 int oldMaximalOutlineSize() const { return m_oldMaximalOutlineSize; } | |
105 | |
106 virtual LayoutRect viewRect() const OVERRIDE; | 100 virtual LayoutRect viewRect() const OVERRIDE; |
107 | 101 |
108 // layoutDelta is used transiently during layout to store how far an object
has moved from its | 102 // layoutDelta is used transiently during layout to store how far an object
has moved from its |
109 // last layout location, in order to repaint correctly. | 103 // last layout location, in order to repaint correctly. |
110 // If we're doing a full repaint m_layoutState will be 0, but in that case l
ayoutDelta doesn't matter. | 104 // If we're doing a full repaint m_layoutState will be 0, but in that case l
ayoutDelta doesn't matter. |
111 LayoutSize layoutDelta() const | 105 LayoutSize layoutDelta() const |
112 { | 106 { |
113 ASSERT(!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); | 107 ASSERT(!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); |
114 return m_layoutState ? m_layoutState->m_layoutDelta : LayoutSize(); | 108 return m_layoutState ? m_layoutState->m_layoutDelta : LayoutSize(); |
115 } | 109 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 bool shouldUsePrintingLayout() const; | 245 bool shouldUsePrintingLayout() const; |
252 | 246 |
253 FrameView* m_frameView; | 247 FrameView* m_frameView; |
254 | 248 |
255 RenderObject* m_selectionStart; | 249 RenderObject* m_selectionStart; |
256 RenderObject* m_selectionEnd; | 250 RenderObject* m_selectionEnd; |
257 | 251 |
258 int m_selectionStartPos; | 252 int m_selectionStartPos; |
259 int m_selectionEndPos; | 253 int m_selectionEndPos; |
260 | 254 |
261 int m_maximalOutlineSize; // Used to apply a fudge factor to dirty-rect chec
ks on blocks/tables. | |
262 int m_oldMaximalOutlineSize; // The fudge factor from the previous layout. | |
263 | |
264 LayoutUnit m_pageLogicalHeight; | 255 LayoutUnit m_pageLogicalHeight; |
265 bool m_pageLogicalHeightChanged; | 256 bool m_pageLogicalHeightChanged; |
266 LayoutState* m_layoutState; | 257 LayoutState* m_layoutState; |
267 unsigned m_layoutStateDisableCount; | 258 unsigned m_layoutStateDisableCount; |
268 OwnPtr<RenderLayerCompositor> m_compositor; | 259 OwnPtr<RenderLayerCompositor> m_compositor; |
269 OwnPtr<FlowThreadController> m_flowThreadController; | 260 OwnPtr<FlowThreadController> m_flowThreadController; |
270 RefPtr<IntervalArena> m_intervalArena; | 261 RefPtr<IntervalArena> m_intervalArena; |
271 | 262 |
272 RenderQuote* m_renderQuoteHead; | 263 RenderQuote* m_renderQuoteHead; |
273 unsigned m_renderCounterCount; | 264 unsigned m_renderCounterCount; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 { | 343 { |
353 m_view.enableLayoutState(); | 344 m_view.enableLayoutState(); |
354 } | 345 } |
355 private: | 346 private: |
356 RenderView& m_view; | 347 RenderView& m_view; |
357 }; | 348 }; |
358 | 349 |
359 } // namespace WebCore | 350 } // namespace WebCore |
360 | 351 |
361 #endif // RenderView_h | 352 #endif // RenderView_h |
OLD | NEW |