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

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

Issue 13828004: Avoid compositing fixed-position elements if they cannot scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and addressed feedback Created 7 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 bool isInTopLayer() const; 797 bool isInTopLayer() const;
798 bool isInTopLayerSubtree() const; 798 bool isInTopLayerSubtree() const;
799 799
800 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 800 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
801 801
802 enum ViewportConstrainedNotCompositedReason { 802 enum ViewportConstrainedNotCompositedReason {
803 NoNotCompositedReason, 803 NoNotCompositedReason,
804 NotCompositedForBoundsOutOfView, 804 NotCompositedForBoundsOutOfView,
805 NotCompositedForNonViewContainer, 805 NotCompositedForNonViewContainer,
806 NotCompositedForNoVisibleContent, 806 NotCompositedForNoVisibleContent,
807 NotCompositedForUnscrollableAncestors,
807 }; 808 };
808 809
809 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas on = reason; } 810 void setViewportConstrainedNotCompositedReason(ViewportConstrainedNotComposi tedReason reason) { m_compositingProperties.viewportConstrainedNotCompositedReas on = reason; }
810 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); } 811 ViewportConstrainedNotCompositedReason viewportConstrainedNotCompositedReaso n() const { return static_cast<ViewportConstrainedNotCompositedReason>(m_composi tingProperties.viewportConstrainedNotCompositedReason); }
811 812
812 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); } 813 bool isOutOfFlowRenderFlowThread() const { return renderer()->isOutOfFlowRen derFlowThread(); }
813 814
814 enum PaintOrderListType {BeforePromote, AfterPromote}; 815 enum PaintOrderListType {BeforePromote, AfterPromote};
815 void computePaintOrderList(PaintOrderListType type, Vector<RefPtr<Node> >&); 816 void computePaintOrderList(PaintOrderListType type, Vector<RefPtr<Node> >&);
816 817
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 1312
1312 } // namespace WebCore 1313 } // namespace WebCore
1313 1314
1314 #ifndef NDEBUG 1315 #ifndef NDEBUG
1315 // Outside the WebCore namespace for ease of invocation from gdb. 1316 // Outside the WebCore namespace for ease of invocation from gdb.
1316 void showLayerTree(const WebCore::RenderLayer*); 1317 void showLayerTree(const WebCore::RenderLayer*);
1317 void showLayerTree(const WebCore::RenderObject*); 1318 void showLayerTree(const WebCore::RenderObject*);
1318 #endif 1319 #endif
1319 1320
1320 #endif // RenderLayer_h 1321 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698