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

Side by Side Diff: Source/core/rendering/RenderBlock.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/frame/FrameView.cpp ('k') | Source/core/rendering/RenderBlock.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements 386 // inline-block elements paint all phases atomically. This function ensures that. Certain other elements
387 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them. 387 // (grid items, flex items) require this behavior as well, and this function exists as a helper for them.
388 // It is expected that the caller will call this function independent of the value of paintInfo.phase. 388 // It is expected that the caller will call this function independent of the value of paintInfo.phase.
389 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& ); 389 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint& );
390 protected: 390 protected:
391 virtual void willBeDestroyed(); 391 virtual void willBeDestroyed();
392 392
393 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); 393 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&);
394 394
395 virtual void layout(); 395 virtual void layout();
396 virtual void didLayout(ResourceLoadPriorityOptimizer&);
397 virtual void didScroll(ResourceLoadPriorityOptimizer&);
398 void updateStyleImageLoadingPriorities(ResourceLoadPriorityOptimizer&);
396 399
397 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false); 400 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false);
398 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&); 401 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&);
399 402
400 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; 403 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const;
401 404
402 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; 405 virtual bool supportsPartialLayout() const OVERRIDE { return true; };
403 406
404 virtual void paint(PaintInfo&, const LayoutPoint&); 407 virtual void paint(PaintInfo&, const LayoutPoint&);
405 virtual void paintObject(PaintInfo&, const LayoutPoint&); 408 virtual void paintObject(PaintInfo&, const LayoutPoint&);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 // FIXME: This is temporary as we move code that accesses block flow 715 // FIXME: This is temporary as we move code that accesses block flow
713 // member variables out of RenderBlock and into RenderBlockFlow. 716 // member variables out of RenderBlock and into RenderBlockFlow.
714 friend class RenderBlockFlow; 717 friend class RenderBlockFlow;
715 }; 718 };
716 719
717 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 720 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
718 721
719 } // namespace WebCore 722 } // namespace WebCore
720 723
721 #endif // RenderBlock_h 724 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698