| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 388 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
| 389 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. | 389 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. |
| 390 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 390 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
| 391 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); | 391 static void paintAsInlineBlock(RenderObject*, PaintInfo&, const LayoutPoint&
); |
| 392 protected: | 392 protected: |
| 393 virtual void willBeDestroyed(); | 393 virtual void willBeDestroyed(); |
| 394 | 394 |
| 395 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 395 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
| 396 | 396 |
| 397 virtual void layout(); | 397 virtual void layout(); |
| 398 virtual void didLayout(ResourceLoadPriorityOptimizer&); |
| 399 virtual void didScroll(ResourceLoadPriorityOptimizer&); |
| 400 void updateStyleImageLoadingPriorities(ResourceLoadPriorityOptimizer&); |
| 398 | 401 |
| 399 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); | 402 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); |
| 400 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa
youtScope&); | 403 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa
youtScope&); |
| 401 | 404 |
| 402 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; | 405 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; |
| 403 | 406 |
| 404 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; | 407 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; |
| 405 | 408 |
| 406 virtual void paint(PaintInfo&, const LayoutPoint&); | 409 virtual void paint(PaintInfo&, const LayoutPoint&); |
| 407 virtual void paintObject(PaintInfo&, const LayoutPoint&); | 410 virtual void paintObject(PaintInfo&, const LayoutPoint&); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 // FIXME: This is temporary as we move code that accesses block flow | 720 // FIXME: This is temporary as we move code that accesses block flow |
| 718 // member variables out of RenderBlock and into RenderBlockFlow. | 721 // member variables out of RenderBlock and into RenderBlockFlow. |
| 719 friend class RenderBlockFlow; | 722 friend class RenderBlockFlow; |
| 720 }; | 723 }; |
| 721 | 724 |
| 722 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 725 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 723 | 726 |
| 724 } // namespace WebCore | 727 } // namespace WebCore |
| 725 | 728 |
| 726 #endif // RenderBlock_h | 729 #endif // RenderBlock_h |
| OLD | NEW |