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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 86533002: Raise the loading priority of in-viewport images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add priority check. Created 7 years 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class RenderBlock; 60 class RenderBlock;
61 class RenderFlowThread; 61 class RenderFlowThread;
62 class RenderGeometryMap; 62 class RenderGeometryMap;
63 class RenderLayer; 63 class RenderLayer;
64 class RenderLayerModelObject; 64 class RenderLayerModelObject;
65 class RenderNamedFlowThread; 65 class RenderNamedFlowThread;
66 class RenderSVGResourceContainer; 66 class RenderSVGResourceContainer;
67 class RenderTable; 67 class RenderTable;
68 class RenderTheme; 68 class RenderTheme;
69 class RenderView; 69 class RenderView;
70 class ResourceLoadPriorityOptimizer;
70 class TransformState; 71 class TransformState;
71 72
72 struct PaintInfo; 73 struct PaintInfo;
73 74
74 enum CursorDirective { 75 enum CursorDirective {
75 SetCursorBasedOnStyle, 76 SetCursorBasedOnStyle,
76 SetCursor, 77 SetCursor,
77 DoNotSetCursor 78 DoNotSetCursor
78 }; 79 };
79 80
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 void scheduleRelayout(); 661 void scheduleRelayout();
661 662
662 void updateFillImages(const FillLayer*, const FillLayer*); 663 void updateFillImages(const FillLayer*, const FillLayer*);
663 void updateImage(StyleImage*, StyleImage*); 664 void updateImage(StyleImage*, StyleImage*);
664 void updateShapeImage(const ShapeValue*, const ShapeValue*); 665 void updateShapeImage(const ShapeValue*, const ShapeValue*);
665 666
666 virtual void paint(PaintInfo&, const LayoutPoint&); 667 virtual void paint(PaintInfo&, const LayoutPoint&);
667 668
668 // Recursive function that computes the size and position of this object and all its descendants. 669 // Recursive function that computes the size and position of this object and all its descendants.
669 virtual void layout(); 670 virtual void layout();
671 virtual void didLayout(ResourceLoadPriorityOptimizer&);
672 virtual void didScroll(ResourceLoadPriorityOptimizer&);
670 673
671 /* This function performs a layout only if one is needed. */ 674 /* This function performs a layout only if one is needed. */
672 void layoutIfNeeded() { if (needsLayout()) layout(); } 675 void layoutIfNeeded() { if (needsLayout()) layout(); }
673 676
674 void forceLayout(); 677 void forceLayout();
675 void forceChildLayout(); 678 void forceChildLayout();
676 679
677 // True if we can abort layout, leaving a partially laid out tree. 680 // True if we can abort layout, leaving a partially laid out tree.
678 virtual bool supportsPartialLayout() const { return false; } 681 virtual bool supportsPartialLayout() const { return false; }
679 682
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 void showTree(const WebCore::RenderObject*); 1396 void showTree(const WebCore::RenderObject*);
1394 void showLineTree(const WebCore::RenderObject*); 1397 void showLineTree(const WebCore::RenderObject*);
1395 void showRenderTree(const WebCore::RenderObject* object1); 1398 void showRenderTree(const WebCore::RenderObject* object1);
1396 // We don't make object2 an optional parameter so that showRenderTree 1399 // We don't make object2 an optional parameter so that showRenderTree
1397 // can be called from gdb easily. 1400 // can be called from gdb easily.
1398 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1401 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1399 1402
1400 #endif 1403 #endif
1401 1404
1402 #endif // RenderObject_h 1405 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698