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

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

Issue 301233008: Shave some yaks in RenderLayerStackingNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/RenderLayerStackingNode.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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // FIXME: should check for dirtiness here? 82 // FIXME: should check for dirtiness here?
83 bool isNormalFlowOnly() const { return m_isNormalFlowOnly; } 83 bool isNormalFlowOnly() const { return m_isNormalFlowOnly; }
84 void updateIsNormalFlowOnly(); 84 void updateIsNormalFlowOnly();
85 bool normalFlowListDirty() const { return m_normalFlowListDirty; } 85 bool normalFlowListDirty() const { return m_normalFlowListDirty; }
86 void dirtyNormalFlowList(); 86 void dirtyNormalFlowList();
87 87
88 void updateStackingNodesAfterStyleChange(const RenderStyle* oldStyle); 88 void updateStackingNodesAfterStyleChange(const RenderStyle* oldStyle);
89 89
90 RenderLayerStackingNode* ancestorStackingContextNode() const; 90 RenderLayerStackingNode* ancestorStackingContextNode() const;
91 RenderLayerStackingNode* ancestorStackingNode() const;
92 91
93 // Gets the enclosing stacking context for this node, possibly the node 92 // Gets the enclosing stacking context for this node, possibly the node
94 // itself, if it is a stacking context. 93 // itself, if it is a stacking context.
95 RenderLayerStackingNode* enclosingStackingContextNode() { return isStackingC ontext() ? this : ancestorStackingContextNode(); } 94 RenderLayerStackingNode* enclosingStackingContextNode() { return isStackingC ontext() ? this : ancestorStackingContextNode(); }
96 95
97 RenderLayer* layer() const { return m_layer; } 96 RenderLayer* layer() const { return m_layer; }
98 97
99 #if !ASSERT_DISABLED 98 #if !ASSERT_DISABLED
100 bool layerListMutationAllowed() const { return m_layerListMutationAllowed; } 99 bool layerListMutationAllowed() const { return m_layerListMutationAllowed; }
101 void setLayerListMutationAllowed(bool flag) { m_layerListMutationAllowed = f lag; } 100 void setLayerListMutationAllowed(bool flag) { m_layerListMutationAllowed = f lag; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void updateNormalFlowList(); 141 void updateNormalFlowList();
143 142
144 bool isDirtyStackingContext() const { return m_zOrderListsDirty && isStackin gContext(); } 143 bool isDirtyStackingContext() const { return m_zOrderListsDirty && isStackin gContext(); }
145 144
146 RenderLayerCompositor* compositor() const; 145 RenderLayerCompositor* compositor() const;
147 // FIXME: Investigate changing this to Renderbox. 146 // FIXME: Investigate changing this to Renderbox.
148 RenderLayerModelObject* renderer() const; 147 RenderLayerModelObject* renderer() const;
149 148
150 RenderLayer* m_layer; 149 RenderLayer* m_layer;
151 150
152 // For stacking contexts, m_posZOrderList holds a sorted list of all the 151 // m_posZOrderList holds a sorted list of all the descendant nodes within
153 // descendant nodes within the stacking context that have z-indices of 0 or greater 152 // that have z-indices of 0 or greater (auto will count as 0).
154 // (auto will count as 0). m_negZOrderList holds descendants within our stac king context with negative 153 // m_negZOrderList holds descendants within our stacking context with
155 // z-indices. 154 // negative z-indices.
156 OwnPtr<Vector<RenderLayerStackingNode*> > m_posZOrderList; 155 OwnPtr<Vector<RenderLayerStackingNode*> > m_posZOrderList;
157 OwnPtr<Vector<RenderLayerStackingNode*> > m_negZOrderList; 156 OwnPtr<Vector<RenderLayerStackingNode*> > m_negZOrderList;
158 157
159 // This list contains child nodes that cannot create stacking contexts. For now it is just 158 // This list contains child nodes that cannot create stacking contexts.
160 // overflow layers, but that may change in the future.
161 OwnPtr<Vector<RenderLayerStackingNode*> > m_normalFlowList; 159 OwnPtr<Vector<RenderLayerStackingNode*> > m_normalFlowList;
162 160
163 unsigned m_zOrderListsDirty : 1; 161 unsigned m_zOrderListsDirty : 1;
164 unsigned m_normalFlowListDirty: 1; 162 unsigned m_normalFlowListDirty: 1;
165 unsigned m_isNormalFlowOnly : 1; 163 unsigned m_isNormalFlowOnly : 1;
166 164
167 #if !ASSERT_DISABLED 165 #if !ASSERT_DISABLED
168 unsigned m_layerListMutationAllowed : 1; 166 unsigned m_layerListMutationAllowed : 1;
169 RenderLayerStackingNode* m_stackingParent; 167 RenderLayerStackingNode* m_stackingParent;
170 #endif 168 #endif
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 211
214 private: 212 private:
215 RenderLayerStackingNode* m_stackingNode; 213 RenderLayerStackingNode* m_stackingNode;
216 bool m_previousMutationAllowedState; 214 bool m_previousMutationAllowedState;
217 }; 215 };
218 #endif 216 #endif
219 217
220 } // namespace WebCore 218 } // namespace WebCore
221 219
222 #endif // RenderLayerStackingNode_h 220 #endif // RenderLayerStackingNode_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayerStackingNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698