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 22 matching lines...) Expand all Loading... |
33 #include "core/rendering/FlowThreadController.h" | 33 #include "core/rendering/FlowThreadController.h" |
34 #include "core/rendering/GraphicsContextAnnotator.h" | 34 #include "core/rendering/GraphicsContextAnnotator.h" |
35 #include "core/rendering/HitTestResult.h" | 35 #include "core/rendering/HitTestResult.h" |
36 #include "core/rendering/RenderFlowThread.h" | 36 #include "core/rendering/RenderFlowThread.h" |
37 #include "core/rendering/RenderGeometryMap.h" | 37 #include "core/rendering/RenderGeometryMap.h" |
38 #include "core/rendering/RenderLayer.h" | 38 #include "core/rendering/RenderLayer.h" |
39 #include "core/rendering/RenderSelectionInfo.h" | 39 #include "core/rendering/RenderSelectionInfo.h" |
40 #include "core/rendering/compositing/CompositedLayerMapping.h" | 40 #include "core/rendering/compositing/CompositedLayerMapping.h" |
41 #include "core/rendering/compositing/RenderLayerCompositor.h" | 41 #include "core/rendering/compositing/RenderLayerCompositor.h" |
42 #include "core/svg/SVGDocumentExtensions.h" | 42 #include "core/svg/SVGDocumentExtensions.h" |
| 43 #include "platform/TraceEvent.h" |
43 #include "platform/geometry/FloatQuad.h" | 44 #include "platform/geometry/FloatQuad.h" |
44 #include "platform/geometry/TransformState.h" | 45 #include "platform/geometry/TransformState.h" |
45 #include "platform/graphics/GraphicsContext.h" | 46 #include "platform/graphics/GraphicsContext.h" |
46 | 47 |
47 namespace WebCore { | 48 namespace WebCore { |
48 | 49 |
49 RenderView::RenderView(Document* document) | 50 RenderView::RenderView(Document* document) |
50 : RenderBlockFlow(document) | 51 : RenderBlockFlow(document) |
51 , m_frameView(document->view()) | 52 , m_frameView(document->view()) |
52 , m_selectionStart(0) | 53 , m_selectionStart(0) |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 return viewWidth(IncludeScrollbars) / scale; | 1018 return viewWidth(IncludeScrollbars) / scale; |
1018 } | 1019 } |
1019 | 1020 |
1020 double RenderView::layoutViewportHeight() const | 1021 double RenderView::layoutViewportHeight() const |
1021 { | 1022 { |
1022 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 1023 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
1023 return viewHeight(IncludeScrollbars) / scale; | 1024 return viewHeight(IncludeScrollbars) / scale; |
1024 } | 1025 } |
1025 | 1026 |
1026 } // namespace WebCore | 1027 } // namespace WebCore |
OLD | NEW |