| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 protected: | 226 protected: |
| 227 virtual void willBeDestroyed() override; | 227 virtual void willBeDestroyed() override; |
| 228 | 228 |
| 229 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 229 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
| 230 | 230 |
| 231 virtual void layout() override; | 231 virtual void layout() override; |
| 232 virtual bool updateImageLoadingPriorities() override final; | 232 virtual bool updateImageLoadingPriorities() override final; |
| 233 | 233 |
| 234 enum PositionedLayoutBehavior { | 234 enum PositionedLayoutBehavior { |
| 235 DefaultLayout, | 235 DefaultLayout, |
| 236 LayoutOnlyFixedPositionedObjects, | |
| 237 ForcedLayoutAfterContainingBlockMoved | 236 ForcedLayoutAfterContainingBlockMoved |
| 238 }; | 237 }; |
| 239 | 238 |
| 240 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); | 239 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); |
| 241 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa
youtScope&); | |
| 242 | 240 |
| 243 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; | 241 LayoutUnit marginIntrinsicLogicalWidthForChild(RenderBox* child) const; |
| 244 | 242 |
| 245 int beforeMarginInLineDirection(LineDirectionMode) const; | 243 int beforeMarginInLineDirection(LineDirectionMode) const; |
| 246 | 244 |
| 247 virtual void paint(PaintInfo&, const LayoutPoint&) override; | 245 virtual void paint(PaintInfo&, const LayoutPoint&) override; |
| 248 virtual void paintObject(PaintInfo&, const LayoutPoint&) override; | 246 virtual void paintObject(PaintInfo&, const LayoutPoint&) override; |
| 249 virtual void paintChildren(PaintInfo&, const LayoutPoint&); | 247 virtual void paintChildren(PaintInfo&, const LayoutPoint&); |
| 250 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); | 248 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); |
| 251 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&); | 249 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // FIXME: This is temporary as we move code that accesses block flow | 417 // FIXME: This is temporary as we move code that accesses block flow |
| 420 // member variables out of RenderBlock and into RenderBlockFlow. | 418 // member variables out of RenderBlock and into RenderBlockFlow. |
| 421 friend class RenderBlockFlow; | 419 friend class RenderBlockFlow; |
| 422 }; | 420 }; |
| 423 | 421 |
| 424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 422 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 425 | 423 |
| 426 } // namespace blink | 424 } // namespace blink |
| 427 | 425 |
| 428 #endif // RenderBlock_h | 426 #endif // RenderBlock_h |
| OLD | NEW |