| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |