OLD | NEW |
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 updateStackingParentForZOrderLists(0); | 103 updateStackingParentForZOrderLists(0); |
104 #endif | 104 #endif |
105 | 105 |
106 if (m_posZOrderList) | 106 if (m_posZOrderList) |
107 m_posZOrderList->clear(); | 107 m_posZOrderList->clear(); |
108 if (m_negZOrderList) | 108 if (m_negZOrderList) |
109 m_negZOrderList->clear(); | 109 m_negZOrderList->clear(); |
110 m_zOrderListsDirty = true; | 110 m_zOrderListsDirty = true; |
111 | 111 |
112 if (!renderer()->documentBeingDestroyed()) | 112 if (!renderer()->documentBeingDestroyed()) |
113 compositor()->setCompositingLayersNeedRebuild(); | 113 compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree); |
114 } | 114 } |
115 | 115 |
116 void RenderLayerStackingNode::dirtyStackingContextZOrderLists() | 116 void RenderLayerStackingNode::dirtyStackingContextZOrderLists() |
117 { | 117 { |
118 if (RenderLayerStackingNode* stackingNode = ancestorStackingContextNode()) | 118 if (RenderLayerStackingNode* stackingNode = ancestorStackingContextNode()) |
119 stackingNode->dirtyZOrderLists(); | 119 stackingNode->dirtyZOrderLists(); |
120 } | 120 } |
121 | 121 |
122 void RenderLayerStackingNode::dirtyNormalFlowList() | 122 void RenderLayerStackingNode::dirtyNormalFlowList() |
123 { | 123 { |
124 ASSERT(m_layerListMutationAllowed); | 124 ASSERT(m_layerListMutationAllowed); |
125 | 125 |
126 #if !ASSERT_DISABLED | 126 #if !ASSERT_DISABLED |
127 updateStackingParentForNormalFlowList(0); | 127 updateStackingParentForNormalFlowList(0); |
128 #endif | 128 #endif |
129 | 129 |
130 if (m_normalFlowList) | 130 if (m_normalFlowList) |
131 m_normalFlowList->clear(); | 131 m_normalFlowList->clear(); |
132 m_normalFlowListDirty = true; | 132 m_normalFlowListDirty = true; |
133 | 133 |
134 if (!renderer()->documentBeingDestroyed()) | 134 if (!renderer()->documentBeingDestroyed()) |
135 compositor()->setCompositingLayersNeedRebuild(); | 135 compositor()->setNeedsCompositingUpdate(CompositingUpdateRebuildTree); |
136 } | 136 } |
137 | 137 |
138 void RenderLayerStackingNode::rebuildZOrderLists() | 138 void RenderLayerStackingNode::rebuildZOrderLists() |
139 { | 139 { |
140 ASSERT(m_layerListMutationAllowed); | 140 ASSERT(m_layerListMutationAllowed); |
141 ASSERT(isDirtyStackingContext()); | 141 ASSERT(isDirtyStackingContext()); |
142 | 142 |
143 for (RenderLayer* child = layer()->firstChild(); child; child = child->nextS
ibling()) { | 143 for (RenderLayer* child = layer()->firstChild(); child; child = child->nextS
ibling()) { |
144 if (!layer()->reflectionInfo() || layer()->reflectionInfo()->reflectionL
ayer() != child) | 144 if (!layer()->reflectionInfo() || layer()->reflectionInfo()->reflectionL
ayer() != child) |
145 child->stackingNode()->collectLayers(m_posZOrderList, m_negZOrderLis
t); | 145 child->stackingNode()->collectLayers(m_posZOrderList, m_negZOrderLis
t); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 } | 322 } |
323 return 0; | 323 return 0; |
324 } | 324 } |
325 | 325 |
326 RenderLayerModelObject* RenderLayerStackingNode::renderer() const | 326 RenderLayerModelObject* RenderLayerStackingNode::renderer() const |
327 { | 327 { |
328 return m_layer->renderer(); | 328 return m_layer->renderer(); |
329 } | 329 } |
330 | 330 |
331 } // namespace WebCore | 331 } // namespace WebCore |
OLD | NEW |