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

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

Issue 205343009: Hoist compositorDrivenAcceleratedScrollingEnabled check out of scrollParent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 1717
1718 void RenderLayer::convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutR ect& rect) const 1718 void RenderLayer::convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutR ect& rect) const
1719 { 1719 {
1720 LayoutPoint delta; 1720 LayoutPoint delta;
1721 convertToLayerCoords(ancestorLayer, delta); 1721 convertToLayerCoords(ancestorLayer, delta);
1722 rect.move(-delta.x(), -delta.y()); 1722 rect.move(-delta.x(), -delta.y());
1723 } 1723 }
1724 1724
1725 RenderLayer* RenderLayer::scrollParent() const 1725 RenderLayer* RenderLayer::scrollParent() const
1726 { 1726 {
1727 if (!renderer()->compositorDrivenAcceleratedScrollingEnabled()) 1727 ASSERT(renderer()->compositorDrivenAcceleratedScrollingEnabled());
1728 return 0;
1729 1728
1730 // Normal flow elements will be parented under the main scrolling layer, so 1729 // Normal flow elements will be parented under the main scrolling layer, so
1731 // we don't need a scroll parent/child relationship to get them to scroll. 1730 // we don't need a scroll parent/child relationship to get them to scroll.
1732 if (stackingNode()->isNormalFlowOnly()) 1731 if (stackingNode()->isNormalFlowOnly())
1733 return 0; 1732 return 0;
1734 1733
1735 // We should never have an ancestor dependent property cache outside of the 1734 // We should never have an ancestor dependent property cache outside of the
1736 // compositing update phase. 1735 // compositing update phase.
1737 ASSERT(isInCompositingUpdate() || !m_ancestorDependentPropertyCache); 1736 ASSERT(isInCompositingUpdate() || !m_ancestorDependentPropertyCache);
1738 1737
(...skipping 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after
4180 } 4179 }
4181 } 4180 }
4182 4181
4183 void showLayerTree(const WebCore::RenderObject* renderer) 4182 void showLayerTree(const WebCore::RenderObject* renderer)
4184 { 4183 {
4185 if (!renderer) 4184 if (!renderer)
4186 return; 4185 return;
4187 showLayerTree(renderer->enclosingLayer()); 4186 showLayerTree(renderer->enclosingLayer());
4188 } 4187 }
4189 #endif 4188 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698