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

Side by Side Diff: sky/engine/core/frame/FrameView.cpp

Issue 710743006: Remove ResourceLoadPriorityOptimizer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/frame/FrameView.h" 28 #include "core/frame/FrameView.h"
29 29
30 #include "core/css/FontFaceSet.h" 30 #include "core/css/FontFaceSet.h"
31 #include "core/css/resolver/StyleResolver.h" 31 #include "core/css/resolver/StyleResolver.h"
32 #include "core/dom/DocumentMarkerController.h" 32 #include "core/dom/DocumentMarkerController.h"
33 #include "core/editing/FrameSelection.h" 33 #include "core/editing/FrameSelection.h"
34 #include "core/fetch/ResourceFetcher.h" 34 #include "core/fetch/ResourceFetcher.h"
35 #include "core/fetch/ResourceLoadPriorityOptimizer.h"
36 #include "core/frame/FrameHost.h" 35 #include "core/frame/FrameHost.h"
37 #include "core/frame/LocalFrame.h" 36 #include "core/frame/LocalFrame.h"
38 #include "core/frame/Settings.h" 37 #include "core/frame/Settings.h"
39 #include "core/html/parser/TextResourceDecoder.h" 38 #include "core/html/parser/TextResourceDecoder.h"
40 #include "core/inspector/InspectorTraceEvents.h" 39 #include "core/inspector/InspectorTraceEvents.h"
41 #include "core/loader/FrameLoaderClient.h" 40 #include "core/loader/FrameLoaderClient.h"
42 #include "core/page/Chrome.h" 41 #include "core/page/Chrome.h"
43 #include "core/page/ChromeClient.h" 42 #include "core/page/ChromeClient.h"
44 #include "core/page/EventHandler.h" 43 #include "core/page/EventHandler.h"
45 #include "core/page/FocusController.h" 44 #include "core/page/FocusController.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // performLayout is the actual guts of layout(). 283 // performLayout is the actual guts of layout().
285 // FIXME: The 300 other lines in layout() probably belong in other helper fu nctions 284 // FIXME: The 300 other lines in layout() probably belong in other helper fu nctions
286 // so that a single human could understand what layout() is actually doing. 285 // so that a single human could understand what layout() is actually doing.
287 286
288 LayoutState layoutState(*rootForThisLayout); 287 LayoutState layoutState(*rootForThisLayout);
289 288
290 // FIXME (crbug.com/256657): Do not do two layouts for text autosizing. 289 // FIXME (crbug.com/256657): Do not do two layouts for text autosizing.
291 rootForThisLayout->layout(); 290 rootForThisLayout->layout();
292 gatherDebugLayoutRects(rootForThisLayout); 291 gatherDebugLayoutRects(rootForThisLayout);
293 292
294 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllIma geResourcePriorities();
295
296 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); 293 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
297 } 294 }
298 295
299 void FrameView::scheduleOrPerformPostLayoutTasks() 296 void FrameView::scheduleOrPerformPostLayoutTasks()
300 { 297 {
301 if (m_postLayoutTasksTimer.isActive()) 298 if (m_postLayoutTasksTimer.isActive())
302 return; 299 return;
303 300
304 if (!m_inSynchronousPostLayout) { 301 if (!m_inSynchronousPostLayout) {
305 m_inSynchronousPostLayout = true; 302 m_inSynchronousPostLayout = true;
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 void FrameView::setLayoutSizeInternal(const IntSize& size) 1113 void FrameView::setLayoutSizeInternal(const IntSize& size)
1117 { 1114 {
1118 if (m_layoutSize == size) 1115 if (m_layoutSize == size)
1119 return; 1116 return;
1120 1117
1121 m_layoutSize = size; 1118 m_layoutSize = size;
1122 contentsResized(); 1119 contentsResized();
1123 } 1120 }
1124 1121
1125 } // namespace blink 1122 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/ResourceLoadPriorityOptimizer.cpp ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698