| 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 { | 970 { |
| 971 FloatRect overflowRect(unscaledDocumentRect()); | 971 FloatRect overflowRect(unscaledDocumentRect()); |
| 972 if (hasTransform()) | 972 if (hasTransform()) |
| 973 overflowRect = layer()->currentTransform().mapRect(overflowRect); | 973 overflowRect = layer()->currentTransform().mapRect(overflowRect); |
| 974 return IntRect(overflowRect); | 974 return IntRect(overflowRect); |
| 975 } | 975 } |
| 976 | 976 |
| 977 int RenderView::viewHeight() const | 977 int RenderView::viewHeight() const |
| 978 { | 978 { |
| 979 int height = 0; | 979 int height = 0; |
| 980 if (!shouldUsePrintingLayout() && m_frameView) { | 980 if (!shouldUsePrintingLayout() && m_frameView) |
| 981 height = m_frameView->layoutHeight(); | 981 height = m_frameView->layoutSize().height(); |
| 982 height = m_frameView->useFixedLayout() ? ceilf(style()->effectiveZoom()
* float(height)) : height; | 982 |
| 983 } | |
| 984 return height; | 983 return height; |
| 985 } | 984 } |
| 986 | 985 |
| 987 int RenderView::viewWidth() const | 986 int RenderView::viewWidth() const |
| 988 { | 987 { |
| 989 int width = 0; | 988 int width = 0; |
| 990 if (!shouldUsePrintingLayout() && m_frameView) { | 989 if (!shouldUsePrintingLayout() && m_frameView) |
| 991 width = m_frameView->layoutWidth(); | 990 width = m_frameView->layoutSize().width(); |
| 992 width = m_frameView->useFixedLayout() ? ceilf(style()->effectiveZoom() *
float(width)) : width; | 991 |
| 993 } | |
| 994 return width; | 992 return width; |
| 995 } | 993 } |
| 996 | 994 |
| 997 int RenderView::viewLogicalHeight() const | 995 int RenderView::viewLogicalHeight() const |
| 998 { | 996 { |
| 999 int height = style()->isHorizontalWritingMode() ? viewHeight() : viewWidth()
; | 997 int height = style()->isHorizontalWritingMode() ? viewHeight() : viewWidth()
; |
| 1000 | 998 |
| 1001 if (hasColumns() && !style()->hasInlineColumnAxis()) { | 999 if (hasColumns() && !style()->hasInlineColumnAxis()) { |
| 1002 if (int pageLength = m_frameView->pagination().pageLength) | 1000 if (int pageLength = m_frameView->pagination().pageLength) |
| 1003 height = pageLength; | 1001 height = pageLength; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 #endif | 1147 #endif |
| 1150 | 1148 |
| 1151 if (layoutState) | 1149 if (layoutState) |
| 1152 layoutState->m_isPaginated = m_fragmenting; | 1150 layoutState->m_isPaginated = m_fragmenting; |
| 1153 | 1151 |
| 1154 if (m_flowThreadState != RenderObject::NotInsideFlowThread) | 1152 if (m_flowThreadState != RenderObject::NotInsideFlowThread) |
| 1155 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); | 1153 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); |
| 1156 } | 1154 } |
| 1157 | 1155 |
| 1158 } // namespace WebCore | 1156 } // namespace WebCore |
| OLD | NEW |