| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 #if !ASSERT_DISABLED | 116 #if !ASSERT_DISABLED |
| 117 bool layoutDeltaMatches(const LayoutSize& delta) | 117 bool layoutDeltaMatches(const LayoutSize& delta) |
| 118 { | 118 { |
| 119 ASSERT(!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); | 119 ASSERT(!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); |
| 120 if (!m_layoutState) | 120 if (!m_layoutState) |
| 121 return false; | 121 return false; |
| 122 return (delta.width() == m_layoutState->layoutDelta().width() || m_layou
tState->layoutDeltaXSaturated()) && (delta.height() == m_layoutState->layoutDelt
a().height() || m_layoutState->layoutDeltaYSaturated()); | 122 return (delta.width() == m_layoutState->layoutDelta().width() || m_layou
tState->layoutDeltaXSaturated()) && (delta.height() == m_layoutState->layoutDelt
a().height() || m_layoutState->layoutDeltaYSaturated()); |
| 123 } | 123 } |
| 124 #endif | 124 #endif |
| 125 | 125 |
| 126 bool shouldDoFullRepaintForNextLayout() const; |
| 126 bool doingFullRepaint() const { return m_frameView->needsFullRepaint(); } | 127 bool doingFullRepaint() const { return m_frameView->needsFullRepaint(); } |
| 127 | 128 |
| 128 // Subtree push | 129 // Subtree push |
| 129 void pushLayoutState(RenderObject&); | 130 void pushLayoutState(RenderObject&); |
| 130 | 131 |
| 131 void popLayoutState() | 132 void popLayoutState() |
| 132 { | 133 { |
| 133 LayoutState* state = m_layoutState; | 134 LayoutState* state = m_layoutState; |
| 134 m_layoutState = state->next(); | 135 m_layoutState = state->next(); |
| 135 delete state; | 136 delete state; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 236 |
| 236 void pushLayoutStateForCurrentFlowThread(const RenderObject&); | 237 void pushLayoutStateForCurrentFlowThread(const RenderObject&); |
| 237 void popLayoutStateForCurrentFlowThread(); | 238 void popLayoutStateForCurrentFlowThread(); |
| 238 | 239 |
| 239 friend class LayoutStateMaintainer; | 240 friend class LayoutStateMaintainer; |
| 240 friend class LayoutStateDisabler; | 241 friend class LayoutStateDisabler; |
| 241 friend class RootLayoutStateScope; | 242 friend class RootLayoutStateScope; |
| 242 | 243 |
| 243 bool shouldUsePrintingLayout() const; | 244 bool shouldUsePrintingLayout() const; |
| 244 | 245 |
| 246 RenderObject* backgroundRenderer() const; |
| 247 |
| 245 FrameView* m_frameView; | 248 FrameView* m_frameView; |
| 246 | 249 |
| 247 RenderObject* m_selectionStart; | 250 RenderObject* m_selectionStart; |
| 248 RenderObject* m_selectionEnd; | 251 RenderObject* m_selectionEnd; |
| 249 | 252 |
| 250 int m_selectionStartPos; | 253 int m_selectionStartPos; |
| 251 int m_selectionEndPos; | 254 int m_selectionEndPos; |
| 252 | 255 |
| 253 LayoutUnit m_pageLogicalHeight; | 256 LayoutUnit m_pageLogicalHeight; |
| 254 bool m_pageLogicalHeightChanged; | 257 bool m_pageLogicalHeightChanged; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 { | 377 { |
| 375 m_view.enableLayoutState(); | 378 m_view.enableLayoutState(); |
| 376 } | 379 } |
| 377 private: | 380 private: |
| 378 RenderView& m_view; | 381 RenderView& m_view; |
| 379 }; | 382 }; |
| 380 | 383 |
| 381 } // namespace WebCore | 384 } // namespace WebCore |
| 382 | 385 |
| 383 #endif // RenderView_h | 386 #endif // RenderView_h |
| OLD | NEW |