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

Unified Diff: sky/engine/core/frame/FrameView.cpp

Issue 771323002: Remove a couple more core/ header includes from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/frame/FrameView.cpp
diff --git a/sky/engine/core/frame/FrameView.cpp b/sky/engine/core/frame/FrameView.cpp
index 0737f1deded1cda2571366e528c0533c7ec2b110..759880bc86c17c50fb62435f11a6bed54119e96d 100644
--- a/sky/engine/core/frame/FrameView.cpp
+++ b/sky/engine/core/frame/FrameView.cpp
@@ -1017,4 +1017,23 @@ void FrameView::setLayoutSizeInternal(const IntSize& size)
contentsResized();
}
+void FrameView::countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& totalObjects, bool& isPartial)
+{
+ RenderObject* root = layoutRoot();
+ isPartial = true;
+ if (!root) {
+ isPartial = false;
+ root = m_frame->contentRenderer();
+ }
+
+ needsLayoutObjects = 0;
+ totalObjects = 0;
+
+ for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) {
+ ++totalObjects;
+ if (o->needsLayout())
+ ++needsLayoutObjects;
+ }
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698