| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 209 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
| 210 | 210 |
| 211 bool shouldRepaint(const LayoutRect&) const; | 211 bool shouldRepaint(const LayoutRect&) const; |
| 212 | 212 |
| 213 bool rootFillsViewportBackground(RenderBox* rootBox) const; | 213 bool rootFillsViewportBackground(RenderBox* rootBox) const; |
| 214 | 214 |
| 215 // These functions may only be accessed by LayoutStateMaintainer. | 215 // These functions may only be accessed by LayoutStateMaintainer. |
| 216 bool pushLayoutState(RenderBox& renderer, const LayoutSize& offset, LayoutUn
it pageHeight = 0, bool pageHeightChanged = false, ColumnInfo* colInfo = 0) | 216 bool pushLayoutState(RenderBox& renderer, const LayoutSize& offset, LayoutUn
it pageHeight = 0, bool pageHeightChanged = false, ColumnInfo* colInfo = 0) |
| 217 { | 217 { |
| 218 // We push LayoutState even if layoutState is disabled because it stores
layoutDelta too. | 218 // We push LayoutState even if layoutState is disabled because it stores
layoutDelta too. |
| 219 if ((!doingFullRepaint() || RuntimeEnabledFeatures::repaintAfterLayoutEn
abled()) || m_layoutState->isPaginated() || renderer.hasColumns() || renderer.fl
owThreadContainingBlock() | 219 if ((!doingFullRepaint() || (RuntimeEnabledFeatures::repaintAfterLayoutE
nabled() && layoutStateEnabled())) || m_layoutState->isPaginated() || renderer.h
asColumns() || renderer.flowThreadContainingBlock() |
| 220 ) { | 220 ) { |
| 221 pushLayoutStateForCurrentFlowThread(renderer); | 221 pushLayoutStateForCurrentFlowThread(renderer); |
| 222 m_layoutState = new LayoutState(m_layoutState, renderer, offset, pag
eHeight, pageHeightChanged, colInfo); | 222 m_layoutState = new LayoutState(m_layoutState, renderer, offset, pag
eHeight, pageHeightChanged, colInfo); |
| 223 return true; | 223 return true; |
| 224 } | 224 } |
| 225 return false; | 225 return false; |
| 226 } | 226 } |
| 227 | 227 |
| 228 void layoutContent(); | 228 void layoutContent(); |
| 229 #ifndef NDEBUG | 229 #ifndef NDEBUG |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 { | 374 { |
| 375 m_view.enableLayoutState(); | 375 m_view.enableLayoutState(); |
| 376 } | 376 } |
| 377 private: | 377 private: |
| 378 RenderView& m_view; | 378 RenderView& m_view; |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 } // namespace WebCore | 381 } // namespace WebCore |
| 382 | 382 |
| 383 #endif // RenderView_h | 383 #endif // RenderView_h |
| OLD | NEW |