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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

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
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers ); 558 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers );
559 void updateImage(StyleImage*, StyleImage*); 559 void updateImage(StyleImage*, StyleImage*);
560 560
561 // paintOffset is the offset from the origin of the GraphicsContext at which to paint the current object. 561 // paintOffset is the offset from the origin of the GraphicsContext at which to paint the current object.
562 virtual void paint(PaintInfo&, const LayoutPoint& paintOffset); 562 virtual void paint(PaintInfo&, const LayoutPoint& paintOffset);
563 563
564 // Subclasses must reimplement this method to compute the size and position 564 // Subclasses must reimplement this method to compute the size and position
565 // of this object and all its descendants. 565 // of this object and all its descendants.
566 virtual void layout() = 0; 566 virtual void layout() = 0;
567 virtual bool updateImageLoadingPriorities() { return false; }
568 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); } 567 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); }
569 bool hasPendingResourceUpdate() const { return m_bitfields.hasPendingResourc eUpdate(); } 568 bool hasPendingResourceUpdate() const { return m_bitfields.hasPendingResourc eUpdate(); }
570 569
571 /* This function performs a layout only if one is needed. */ 570 /* This function performs a layout only if one is needed. */
572 void layoutIfNeeded() { if (needsLayout()) layout(); } 571 void layoutIfNeeded() { if (needsLayout()) layout(); }
573 572
574 void forceLayout(); 573 void forceLayout();
575 void forceChildLayout(); 574 void forceChildLayout();
576 575
577 // Used for element state updates that cannot be fixed with a 576 // Used for element state updates that cannot be fixed with a
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 void showTree(const blink::RenderObject*); 1272 void showTree(const blink::RenderObject*);
1274 void showLineTree(const blink::RenderObject*); 1273 void showLineTree(const blink::RenderObject*);
1275 void showRenderTree(const blink::RenderObject* object1); 1274 void showRenderTree(const blink::RenderObject* object1);
1276 // We don't make object2 an optional parameter so that showRenderTree 1275 // We don't make object2 an optional parameter so that showRenderTree
1277 // can be called from gdb easily. 1276 // can be called from gdb easily.
1278 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1277 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1279 1278
1280 #endif 1279 #endif
1281 1280
1282 #endif // RenderObject_h 1281 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698