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

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

Issue 46163008: Revert "Re-land deferred compositing updates with fixed assumptions" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | Source/core/testing/Internals.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) 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (m_negZOrderList) 148 if (m_negZOrderList)
149 m_negZOrderList->clear(); 149 m_negZOrderList->clear();
150 m_zOrderListsDirty = true; 150 m_zOrderListsDirty = true;
151 151
152 m_descendantsAreContiguousInStackingOrderDirty = true; 152 m_descendantsAreContiguousInStackingOrderDirty = true;
153 153
154 if (!renderer()->documentBeingDestroyed()) { 154 if (!renderer()->documentBeingDestroyed()) {
155 compositor()->setNeedsUpdateCompositingRequirementsState(); 155 compositor()->setNeedsUpdateCompositingRequirementsState();
156 compositor()->setCompositingLayersNeedRebuild(); 156 compositor()->setCompositingLayersNeedRebuild();
157 if (layer()->acceleratedCompositingForOverflowScrollEnabled()) 157 if (layer()->acceleratedCompositingForOverflowScrollEnabled())
158 compositor()->setNeedsToRecomputeCompositingRequirements(); 158 compositor()->setShouldReevaluateCompositingAfterLayout();
159 } 159 }
160 } 160 }
161 161
162 void RenderLayerStackingNode::dirtyStackingContainerZOrderLists() 162 void RenderLayerStackingNode::dirtyStackingContainerZOrderLists()
163 { 163 {
164 // Any siblings in the ancestor stacking context could also be affected. 164 // Any siblings in the ancestor stacking context could also be affected.
165 // Changing z-index, for example, could cause us to stack in between a 165 // Changing z-index, for example, could cause us to stack in between a
166 // sibling's descendants, meaning that we have to recompute 166 // sibling's descendants, meaning that we have to recompute
167 // m_descendantsAreContiguousInStackingOrder for that sibling. 167 // m_descendantsAreContiguousInStackingOrder for that sibling.
168 dirtySiblingStackingNodeCanBePromotedToStackingContainer(); 168 dirtySiblingStackingNodeCanBePromotedToStackingContainer();
(...skipping 20 matching lines...) Expand all
189 updateStackingParentForNormalFlowList(0); 189 updateStackingParentForNormalFlowList(0);
190 #endif 190 #endif
191 191
192 if (m_normalFlowList) 192 if (m_normalFlowList)
193 m_normalFlowList->clear(); 193 m_normalFlowList->clear();
194 m_normalFlowListDirty = true; 194 m_normalFlowListDirty = true;
195 195
196 if (!renderer()->documentBeingDestroyed()) { 196 if (!renderer()->documentBeingDestroyed()) {
197 compositor()->setCompositingLayersNeedRebuild(); 197 compositor()->setCompositingLayersNeedRebuild();
198 if (layer()->acceleratedCompositingForOverflowScrollEnabled()) 198 if (layer()->acceleratedCompositingForOverflowScrollEnabled())
199 compositor()->setNeedsToRecomputeCompositingRequirements(); 199 compositor()->setShouldReevaluateCompositingAfterLayout();
200 } 200 }
201 } 201 }
202 202
203 void RenderLayerStackingNode::rebuildZOrderLists() 203 void RenderLayerStackingNode::rebuildZOrderLists()
204 { 204 {
205 ASSERT(m_layerListMutationAllowed); 205 ASSERT(m_layerListMutationAllowed);
206 ASSERT(isDirtyStackingContainer()); 206 ASSERT(isDirtyStackingContainer());
207 rebuildZOrderLists(m_posZOrderList, m_negZOrderList); 207 rebuildZOrderLists(m_posZOrderList, m_negZOrderList);
208 208
209 #if !ASSERT_DISABLED 209 #if !ASSERT_DISABLED
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return ancestor->stackingNode(); 655 return ancestor->stackingNode();
656 return 0; 656 return 0;
657 } 657 }
658 658
659 RenderLayerModelObject* RenderLayerStackingNode::renderer() const 659 RenderLayerModelObject* RenderLayerStackingNode::renderer() const
660 { 660 {
661 return m_layer->renderer(); 661 return m_layer->renderer();
662 } 662 }
663 663
664 } // namespace WebCore 664 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698