| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/frame/LayoutSubtreeRootList.h" | 5 #include "core/frame/LayoutSubtreeRootList.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutObject.h" | 7 #include "core/layout/LayoutObject.h" |
| 8 #include "core/layout/LayoutView.h" | |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 void LayoutSubtreeRootList::clearAndMarkContainingBlocksForLayout() | 11 void LayoutSubtreeRootList::clearAndMarkContainingBlocksForLayout() |
| 13 { | 12 { |
| 14 for (auto& iter : unordered()) | 13 for (auto& iter : unordered()) |
| 15 iter->markContainerChainForLayout(false); | 14 iter->markContainerChainForLayout(false); |
| 16 clear(); | 15 clear(); |
| 17 } | 16 } |
| 18 | 17 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 } | 31 } |
| 33 | 32 |
| 34 void LayoutSubtreeRootList::countObjectsNeedingLayout(unsigned& needsLayoutObjec
ts, unsigned& totalObjects) | 33 void LayoutSubtreeRootList::countObjectsNeedingLayout(unsigned& needsLayoutObjec
ts, unsigned& totalObjects) |
| 35 { | 34 { |
| 36 // TODO(leviw): This will double-count nested roots crbug.com/509141 | 35 // TODO(leviw): This will double-count nested roots crbug.com/509141 |
| 37 for (auto& root : unordered()) | 36 for (auto& root : unordered()) |
| 38 countObjectsNeedingLayoutInRoot(root, needsLayoutObjects, totalObjects); | 37 countObjectsNeedingLayoutInRoot(root, needsLayoutObjects, totalObjects); |
| 39 } | 38 } |
| 40 | 39 |
| 41 } // namespace blink | 40 } // namespace blink |
| OLD | NEW |