| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 873fb8d31e5924eb1237dc395d07d2df7a2c25a1..0d5f1652eb6181d02e6f87606376918ce2760d01 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -50,6 +50,7 @@
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Location.h"
|
| #include "core/frame/PageScaleConstraintsSet.h"
|
| +#include "core/frame/PerformanceMonitor.h"
|
| #include "core/frame/Settings.h"
|
| #include "core/frame/VisualViewport.h"
|
| #include "core/html/HTMLFrameElement.h"
|
| @@ -1089,13 +1090,13 @@ void FrameView::layout() {
|
| DocumentLifecycle::Scope lifecycleScope(lifecycle(),
|
| DocumentLifecycle::LayoutClean);
|
|
|
| + Document* document = m_frame->document();
|
| TRACE_EVENT_BEGIN1("devtools.timeline", "Layout", "beginData",
|
| InspectorLayoutEvent::beginData(this));
|
| + PerformanceMonitor::willUpdateLayout(document);
|
|
|
| performPreLayoutTasks();
|
|
|
| - Document* document = m_frame->document();
|
| -
|
| // TODO(crbug.com/460956): The notion of a single root for layout is no longer
|
| // applicable. Remove or update this code.
|
| LayoutObject* rootForThisLayout = layoutView();
|
| @@ -1236,6 +1237,7 @@ void FrameView::layout() {
|
| TRACE_EVENT_END1("devtools.timeline", "Layout", "endData",
|
| InspectorLayoutEvent::endData(rootForThisLayout));
|
| InspectorInstrumentation::didUpdateLayout(m_frame.get());
|
| + PerformanceMonitor::didUpdateLayout(document);
|
|
|
| m_nestedLayoutCount--;
|
| if (m_nestedLayoutCount)
|
|
|