Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1028)

Side by Side Diff: Source/core/rendering/RenderView.cpp

Issue 191003011: Convert RenderLayerCompositor::RenderView code to use reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ref_3
Patch Set: Review comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698