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

Side by Side Diff: third_party/WebKit/Source/core/frame/LayoutSubtreeRootList.cpp

Issue 2008503003: Eliminate unnecessary includes of LayoutBlockFlow-derived headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styleRef(bool) needs LayoutObjectInlines.h Created 4 years, 6 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698