| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "core/rendering/RenderView.h" | 22 #include "core/rendering/RenderView.h" |
| 23 | 23 |
| 24 #include "RuntimeEnabledFeatures.h" | |
| 25 #include "core/dom/Document.h" | 24 #include "core/dom/Document.h" |
| 26 #include "core/dom/Element.h" | 25 #include "core/dom/Element.h" |
| 27 #include "core/frame/LocalFrame.h" | 26 #include "core/frame/LocalFrame.h" |
| 28 #include "core/html/HTMLDialogElement.h" | 27 #include "core/html/HTMLDialogElement.h" |
| 29 #include "core/html/HTMLFrameOwnerElement.h" | 28 #include "core/html/HTMLFrameOwnerElement.h" |
| 30 #include "core/html/HTMLIFrameElement.h" | 29 #include "core/html/HTMLIFrameElement.h" |
| 31 #include "core/page/Page.h" | 30 #include "core/page/Page.h" |
| 32 #include "core/rendering/ColumnInfo.h" | 31 #include "core/rendering/ColumnInfo.h" |
| 33 #include "core/rendering/FlowThreadController.h" | 32 #include "core/rendering/FlowThreadController.h" |
| 34 #include "core/rendering/GraphicsContextAnnotator.h" | 33 #include "core/rendering/GraphicsContextAnnotator.h" |
| 35 #include "core/rendering/HitTestResult.h" | 34 #include "core/rendering/HitTestResult.h" |
| 36 #include "core/rendering/RenderFlowThread.h" | 35 #include "core/rendering/RenderFlowThread.h" |
| 37 #include "core/rendering/RenderGeometryMap.h" | 36 #include "core/rendering/RenderGeometryMap.h" |
| 38 #include "core/rendering/RenderLayer.h" | 37 #include "core/rendering/RenderLayer.h" |
| 39 #include "core/rendering/RenderSelectionInfo.h" | 38 #include "core/rendering/RenderSelectionInfo.h" |
| 40 #include "core/rendering/compositing/CompositedLayerMapping.h" | 39 #include "core/rendering/compositing/CompositedLayerMapping.h" |
| 41 #include "core/rendering/compositing/RenderLayerCompositor.h" | 40 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 42 #include "core/svg/SVGDocumentExtensions.h" | 41 #include "core/svg/SVGDocumentExtensions.h" |
| 42 #include "platform/RuntimeEnabledFeatures.h" |
| 43 #include "platform/TraceEvent.h" | 43 #include "platform/TraceEvent.h" |
| 44 #include "platform/geometry/FloatQuad.h" | 44 #include "platform/geometry/FloatQuad.h" |
| 45 #include "platform/geometry/TransformState.h" | 45 #include "platform/geometry/TransformState.h" |
| 46 #include "platform/graphics/GraphicsContext.h" | 46 #include "platform/graphics/GraphicsContext.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 RenderView::RenderView(Document* document) | 50 RenderView::RenderView(Document* document) |
| 51 : RenderBlockFlow(document) | 51 : RenderBlockFlow(document) |
| 52 , m_frameView(document->view()) | 52 , m_frameView(document->view()) |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 return viewWidth(IncludeScrollbars) / scale; | 1018 return viewWidth(IncludeScrollbars) / scale; |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 double RenderView::layoutViewportHeight() const | 1021 double RenderView::layoutViewportHeight() const |
| 1022 { | 1022 { |
| 1023 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 1023 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 1024 return viewHeight(IncludeScrollbars) / scale; | 1024 return viewHeight(IncludeScrollbars) / scale; |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 } // namespace WebCore | 1027 } // namespace WebCore |
| OLD | NEW |