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

Side by Side Diff: Source/core/rendering/compositing/GraphicsLayerUpdater.cpp

Issue 206283003: Avoid tree walks when computing RenderLayer::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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (!depth) { 140 if (!depth) {
141 int percentageIncreaseInPixels = static_cast<int>(m_pixelsAddedByPromoti ngAllTransitions / m_pixelsWithoutPromotingAllTransitions * 100); 141 int percentageIncreaseInPixels = static_cast<int>(m_pixelsAddedByPromoti ngAllTransitions / m_pixelsWithoutPromotingAllTransitions * 100);
142 blink::Platform::current()->histogramCustomCounts("Renderer.PixelIncreas eFromTransitions", percentageIncreaseInPixels, 0, 1000, 50); 142 blink::Platform::current()->histogramCustomCounts("Renderer.PixelIncreas eFromTransitions", percentageIncreaseInPixels, 0, 1000, 50);
143 } 143 }
144 } 144 }
145 145
146 // This just updates layer geometry without changing the hierarchy. 146 // This just updates layer geometry without changing the hierarchy.
147 void GraphicsLayerUpdater::updateRecursive(RenderLayer& layer, UpdateType update Type) 147 void GraphicsLayerUpdater::updateRecursive(RenderLayer& layer, UpdateType update Type)
148 { 148 {
149 updateType = update(layer, updateType); 149 updateType = update(layer, updateType);
150 layer.clearAncestorDependentPropertyCache();
150 151
151 #if !ASSERT_DISABLED 152 #if !ASSERT_DISABLED
152 LayerListMutationDetector mutationChecker(layer.stackingNode()); 153 LayerListMutationDetector mutationChecker(layer.stackingNode());
153 #endif 154 #endif
154 155
155 RenderLayerStackingNodeIterator iterator(*layer.stackingNode(), AllChildren) ; 156 RenderLayerStackingNodeIterator iterator(*layer.stackingNode(), AllChildren) ;
156 while (RenderLayerStackingNode* curNode = iterator.next()) 157 while (RenderLayerStackingNode* curNode = iterator.next())
157 updateRecursive(*curNode->layer(), updateType); 158 updateRecursive(*curNode->layer(), updateType);
158 } 159 }
159 160
(...skipping 20 matching lines...) Expand all
180 if (!layer.parent()) 181 if (!layer.parent())
181 layer.compositor()->updateRootLayerPosition(); 182 layer.compositor()->updateRootLayerPosition();
182 183
183 if (mapping->hasUnpositionedOverflowControlsLayers()) 184 if (mapping->hasUnpositionedOverflowControlsLayers())
184 layer.scrollableArea()->positionOverflowControls(); 185 layer.scrollableArea()->positionOverflowControls();
185 186
186 return updateType; 187 return updateType;
187 } 188 }
188 189
189 } // namespace WebCore 190 } // namespace WebCore
OLDNEW
« Source/core/rendering/RenderLayer.cpp ('K') | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698