| 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 f4e95cddf6821a06dfddb47f966c923a26c34bdc..63b26c85fe44b018e9a22d9cdb1ba683d313bcf8 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -39,7 +39,6 @@
|
| #include "core/editing/RenderedPosition.h"
|
| #include "core/editing/markers/DocumentMarkerController.h"
|
| #include "core/fetch/ResourceFetcher.h"
|
| -#include "core/fetch/ResourceLoadPriorityOptimizer.h"
|
| #include "core/frame/FrameHost.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Settings.h"
|
| @@ -839,7 +838,7 @@ void FrameView::performLayout(bool inSubtreeLayout)
|
| layoutFromRootObject(*layoutView());
|
| }
|
|
|
| - ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllImageResourcePriorities();
|
| + m_frame->document()->fetcher()->updateAllImageResourcePriorities();
|
|
|
| lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
|
|
|
| @@ -1527,9 +1526,8 @@ void FrameView::scrollPositionChanged()
|
|
|
| void FrameView::didScrollTimerFired(Timer<FrameView>*)
|
| {
|
| - if (m_frame->document() && m_frame->document()->layoutView()) {
|
| - ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllImageResourcePriorities();
|
| - }
|
| + if (m_frame->document() && m_frame->document()->layoutView())
|
| + m_frame->document()->fetcher()->updateAllImageResourcePriorities();
|
| }
|
|
|
| void FrameView::updateLayersAndCompositingAfterScrollIfNeeded()
|
|
|