| 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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 void RenderView::calcPrefWidths() | 93 void RenderView::calcPrefWidths() |
| 94 { | 94 { |
| 95 ASSERT(prefWidthsDirty()); | 95 ASSERT(prefWidthsDirty()); |
| 96 | 96 |
| 97 RenderBlock::calcPrefWidths(); | 97 RenderBlock::calcPrefWidths(); |
| 98 | 98 |
| 99 m_maxPrefWidth = m_minPrefWidth; | 99 m_maxPrefWidth = m_minPrefWidth; |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool RenderView::isChildAllowed(RenderObject* child, RenderStyle*) const |
| 103 { |
| 104 return child->isBox(); |
| 105 } |
| 106 |
| 102 void RenderView::layout() | 107 void RenderView::layout() |
| 103 { | 108 { |
| 104 if (printing()) | 109 if (printing()) |
| 105 m_minPrefWidth = m_maxPrefWidth = width(); | 110 m_minPrefWidth = m_maxPrefWidth = width(); |
| 106 | 111 |
| 107 // Use calcWidth/Height to get the new width/height, since this will take th
e full page zoom factor into account. | 112 // Use calcWidth/Height to get the new width/height, since this will take th
e full page zoom factor into account. |
| 108 bool relayoutChildren = !printing() && (!m_frameView || width() != viewWidth
() || height() != viewHeight()); | 113 bool relayoutChildren = !printing() && (!m_frameView || width() != viewWidth
() || height() != viewHeight()); |
| 109 if (relayoutChildren) { | 114 if (relayoutChildren) { |
| 110 setChildNeedsLayout(true, false); | 115 setChildNeedsLayout(true, false); |
| 111 for (RenderObject* child = firstChild(); child; child = child->nextSibli
ng()) { | 116 for (RenderObject* child = firstChild(); child; child = child->nextSibli
ng()) { |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 757 |
| 753 void RenderView::willMoveOffscreen() | 758 void RenderView::willMoveOffscreen() |
| 754 { | 759 { |
| 755 #if USE(ACCELERATED_COMPOSITING) | 760 #if USE(ACCELERATED_COMPOSITING) |
| 756 if (m_compositor) | 761 if (m_compositor) |
| 757 m_compositor->willMoveOffscreen(); | 762 m_compositor->willMoveOffscreen(); |
| 758 #endif | 763 #endif |
| 759 } | 764 } |
| 760 | 765 |
| 761 } // namespace WebCore | 766 } // namespace WebCore |
| OLD | NEW |