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

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

Issue 109153003: Raise the loading priority of in-viewport images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes from review. 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
« no previous file with comments | « Source/core/rendering/RenderImage.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 void scheduleRelayout(); 668 void scheduleRelayout();
668 669
669 void updateFillImages(const FillLayer*, const FillLayer*); 670 void updateFillImages(const FillLayer*, const FillLayer*);
670 void updateImage(StyleImage*, StyleImage*); 671 void updateImage(StyleImage*, StyleImage*);
671 void updateShapeImage(const ShapeValue*, const ShapeValue*); 672 void updateShapeImage(const ShapeValue*, const ShapeValue*);
672 673
673 virtual void paint(PaintInfo&, const LayoutPoint&); 674 virtual void paint(PaintInfo&, const LayoutPoint&);
674 675
675 // Recursive function that computes the size and position of this object and all its descendants. 676 // Recursive function that computes the size and position of this object and all its descendants.
676 virtual void layout(); 677 virtual void layout();
678 virtual void didLayout(ResourceLoadPriorityOptimizer&);
679 virtual void didScroll(ResourceLoadPriorityOptimizer&);
677 680
678 /* This function performs a layout only if one is needed. */ 681 /* This function performs a layout only if one is needed. */
679 void layoutIfNeeded() { if (needsLayout()) layout(); } 682 void layoutIfNeeded() { if (needsLayout()) layout(); }
680 683
681 void forceLayout(); 684 void forceLayout();
682 void forceChildLayout(); 685 void forceChildLayout();
683 686
684 // True if we can abort layout, leaving a partially laid out tree. 687 // True if we can abort layout, leaving a partially laid out tree.
685 virtual bool supportsPartialLayout() const { return false; } 688 virtual bool supportsPartialLayout() const { return false; }
686 689
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 void showTree(const WebCore::RenderObject*); 1416 void showTree(const WebCore::RenderObject*);
1414 void showLineTree(const WebCore::RenderObject*); 1417 void showLineTree(const WebCore::RenderObject*);
1415 void showRenderTree(const WebCore::RenderObject* object1); 1418 void showRenderTree(const WebCore::RenderObject* object1);
1416 // We don't make object2 an optional parameter so that showRenderTree 1419 // We don't make object2 an optional parameter so that showRenderTree
1417 // can be called from gdb easily. 1420 // can be called from gdb easily.
1418 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1421 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1419 1422
1420 #endif 1423 #endif
1421 1424
1422 #endif // RenderObject_h 1425 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderImage.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698