| 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 } | 919 } |
| 920 | 920 |
| 921 bool RenderView::usesCompositing() const | 921 bool RenderView::usesCompositing() const |
| 922 { | 922 { |
| 923 return m_compositor && m_compositor->inCompositingMode(); | 923 return m_compositor && m_compositor->inCompositingMode(); |
| 924 } | 924 } |
| 925 | 925 |
| 926 RenderLayerCompositor* RenderView::compositor() | 926 RenderLayerCompositor* RenderView::compositor() |
| 927 { | 927 { |
| 928 if (!m_compositor) | 928 if (!m_compositor) |
| 929 m_compositor = adoptPtr(new RenderLayerCompositor(this)); | 929 m_compositor = adoptPtr(new RenderLayerCompositor(*this)); |
| 930 | 930 |
| 931 return m_compositor.get(); | 931 return m_compositor.get(); |
| 932 } | 932 } |
| 933 | 933 |
| 934 void RenderView::setIsInWindow(bool isInWindow) | 934 void RenderView::setIsInWindow(bool isInWindow) |
| 935 { | 935 { |
| 936 if (m_compositor) | 936 if (m_compositor) |
| 937 m_compositor->setIsInWindow(isInWindow); | 937 m_compositor->setIsInWindow(isInWindow); |
| 938 } | 938 } |
| 939 | 939 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 return viewWidth(IncludeScrollbars) / scale; | 991 return viewWidth(IncludeScrollbars) / scale; |
| 992 } | 992 } |
| 993 | 993 |
| 994 double RenderView::layoutViewportHeight() const | 994 double RenderView::layoutViewportHeight() const |
| 995 { | 995 { |
| 996 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 996 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 997 return viewHeight(IncludeScrollbars) / scale; | 997 return viewHeight(IncludeScrollbars) / scale; |
| 998 } | 998 } |
| 999 | 999 |
| 1000 } // namespace WebCore | 1000 } // namespace WebCore |
| OLD | NEW |