| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index 85cf715be76ff53dc9b9c19cd00bc2b5a81bab25..3d637bd06f349fe1b74cc724b6d42670d8028f51 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/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"
|
| @@ -866,7 +865,7 @@ void FrameView::performLayout(bool inSubtreeLayout)
|
| layoutFromRootObject(*layoutView());
|
| }
|
|
|
| - ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllImageResourcePriorities();
|
| + m_frame->document()->fetcher()->updateAllImageResourcePriorities();
|
|
|
| lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
|
|
|
| @@ -1559,9 +1558,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()
|
|
|