| 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
|
|
|