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