| OLD | NEW |
| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 320 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
| 321 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. | 321 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. |
| 322 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 322 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
| 323 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); | 323 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); |
| 324 protected: | 324 protected: |
| 325 virtual void willBeDestroyed() OVERRIDE; | 325 virtual void willBeDestroyed() OVERRIDE; |
| 326 | 326 |
| 327 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 327 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
| 328 | 328 |
| 329 virtual void layout() OVERRIDE; | 329 virtual void layout() OVERRIDE; |
| 330 virtual void didLayout(ResourceLoadPriorityOptimizer&) OVERRIDE; | 330 virtual bool updateImageLoadingPriorities() OVERRIDE FINAL; |
| 331 virtual void didScroll(ResourceLoadPriorityOptimizer&) OVERRIDE; | |
| 332 void updateStyleImageLoadingPriorities(ResourceLoadPriorityOptimizer&); | |
| 333 | 331 |
| 334 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); | 332 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); |
| 335 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa
youtScope&); | 333 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa
youtScope&); |
| 336 | 334 |
| 337 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; | 335 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; |
| 338 | 336 |
| 339 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; | 337 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; |
| 340 | 338 |
| 341 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 339 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 342 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; | 340 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 return false; | 641 return false; |
| 644 } | 642 } |
| 645 return true; | 643 return true; |
| 646 } | 644 } |
| 647 | 645 |
| 648 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 646 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 649 | 647 |
| 650 } // namespace WebCore | 648 } // namespace WebCore |
| 651 | 649 |
| 652 #endif // RenderBlock_h | 650 #endif // RenderBlock_h |
| OLD | NEW |