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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 } | 1003 } |
1004 | 1004 |
1005 IntRect RenderView::documentRect() const | 1005 IntRect RenderView::documentRect() const |
1006 { | 1006 { |
1007 FloatRect overflowRect(unscaledDocumentRect()); | 1007 FloatRect overflowRect(unscaledDocumentRect()); |
1008 if (hasTransform()) | 1008 if (hasTransform()) |
1009 overflowRect = layer()->currentTransform().mapRect(overflowRect); | 1009 overflowRect = layer()->currentTransform().mapRect(overflowRect); |
1010 return IntRect(overflowRect); | 1010 return IntRect(overflowRect); |
1011 } | 1011 } |
1012 | 1012 |
1013 int RenderView::viewHeight(ScrollableArea::VisibleContentRectIncludesScrollbars
scrollbarInclusion) const | 1013 int RenderView::viewHeight(ScrollableArea::IncludeScrollbarsInRect scrollbarIncl
usion) const |
1014 { | 1014 { |
1015 int height = 0; | 1015 int height = 0; |
1016 if (!shouldUsePrintingLayout() && m_frameView) { | 1016 if (!shouldUsePrintingLayout() && m_frameView) |
1017 height = m_frameView->layoutHeight(scrollbarInclusion); | 1017 height = m_frameView->layoutSize(scrollbarInclusion).height(); |
1018 height = m_frameView->useFixedLayout() ? ceilf(style()->effectiveZoom()
* float(height)) : height; | 1018 |
1019 } | |
1020 return height; | 1019 return height; |
1021 } | 1020 } |
1022 | 1021 |
1023 int RenderView::viewWidth(ScrollableArea::VisibleContentRectIncludesScrollbars s
crollbarInclusion) const | 1022 int RenderView::viewWidth(ScrollableArea::IncludeScrollbarsInRect scrollbarInclu
sion) const |
1024 { | 1023 { |
1025 int width = 0; | 1024 int width = 0; |
1026 if (!shouldUsePrintingLayout() && m_frameView) { | 1025 if (!shouldUsePrintingLayout() && m_frameView) |
1027 width = m_frameView->layoutWidth(scrollbarInclusion); | 1026 width = m_frameView->layoutSize(scrollbarInclusion).width(); |
1028 width = m_frameView->useFixedLayout() ? ceilf(style()->effectiveZoom() *
float(width)) : width; | 1027 |
1029 } | |
1030 return width; | 1028 return width; |
1031 } | 1029 } |
1032 | 1030 |
1033 int RenderView::viewLogicalHeight(ScrollableArea::VisibleContentRectIncludesScro
llbars scrollbarInclusion) const | 1031 int RenderView::viewLogicalHeight(ScrollableArea::IncludeScrollbarsInRect scroll
barInclusion) const |
1034 { | 1032 { |
1035 int height = style()->isHorizontalWritingMode() ? viewHeight(scrollbarInclus
ion) : viewWidth(scrollbarInclusion); | 1033 int height = style()->isHorizontalWritingMode() ? viewHeight(scrollbarInclus
ion) : viewWidth(scrollbarInclusion); |
1036 | 1034 |
1037 if (hasColumns() && !style()->hasInlineColumnAxis()) { | 1035 if (hasColumns() && !style()->hasInlineColumnAxis()) { |
1038 if (int pageLength = m_frameView->pagination().pageLength) | 1036 if (int pageLength = m_frameView->pagination().pageLength) |
1039 height = pageLength; | 1037 height = pageLength; |
1040 } | 1038 } |
1041 | 1039 |
1042 return height; | 1040 return height; |
1043 } | 1041 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 #endif | 1230 #endif |
1233 | 1231 |
1234 if (layoutState) | 1232 if (layoutState) |
1235 layoutState->m_isPaginated = m_fragmenting; | 1233 layoutState->m_isPaginated = m_fragmenting; |
1236 | 1234 |
1237 if (m_flowThreadState != RenderObject::NotInsideFlowThread) | 1235 if (m_flowThreadState != RenderObject::NotInsideFlowThread) |
1238 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); | 1236 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); |
1239 } | 1237 } |
1240 | 1238 |
1241 } // namespace WebCore | 1239 } // namespace WebCore |
OLD | NEW |