| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 shouldDoFullRepaintForNextLayout() const; |
| 127 bool doingFullRepaint() const { return m_frameView->needsFullRepaint(); } | 127 bool doingFullRepaint() const { return m_frameView->needsFullPaintInvalidati
on(); } |
| 128 | 128 |
| 129 // Subtree push | 129 // Subtree push |
| 130 void pushLayoutState(RenderObject&); | 130 void pushLayoutState(RenderObject&); |
| 131 | 131 |
| 132 void popLayoutState() | 132 void popLayoutState() |
| 133 { | 133 { |
| 134 LayoutState* state = m_layoutState; | 134 LayoutState* state = m_layoutState; |
| 135 m_layoutState = state->next(); | 135 m_layoutState = state->next(); |
| 136 delete state; | 136 delete state; |
| 137 popLayoutStateForCurrentFlowThread(); | 137 popLayoutStateForCurrentFlowThread(); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 { | 377 { |
| 378 m_view.enableLayoutState(); | 378 m_view.enableLayoutState(); |
| 379 } | 379 } |
| 380 private: | 380 private: |
| 381 RenderView& m_view; | 381 RenderView& m_view; |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 } // namespace WebCore | 384 } // namespace WebCore |
| 385 | 385 |
| 386 #endif // RenderView_h | 386 #endif // RenderView_h |
| OLD | NEW |