| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 enum PositionedLayoutBehavior { | 259 enum PositionedLayoutBehavior { |
| 260 DefaultLayout, | 260 DefaultLayout, |
| 261 LayoutOnlyFixedPositionedObjects, | 261 LayoutOnlyFixedPositionedObjects, |
| 262 ForcedLayoutAfterContainingBlockMoved | 262 ForcedLayoutAfterContainingBlockMoved |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); | 265 void layoutPositionedObjects(bool relayoutChildren, PositionedLayoutBehavior
= DefaultLayout); |
| 266 void markFixedPositionObjectForLayoutIfNeeded(LayoutObject* child, SubtreeLa
youtScope&); | 266 void markFixedPositionObjectForLayoutIfNeeded(LayoutObject* child, SubtreeLa
youtScope&); |
| 267 | 267 |
| 268 LayoutUnit marginIntrinsicLogicalWidthForChild(LayoutBox& child) const; | 268 LayoutUnit marginIntrinsicLogicalWidthForChild(const LayoutBox& child) const
; |
| 269 | 269 |
| 270 int beforeMarginInLineDirection(LineDirectionMode) const; | 270 int beforeMarginInLineDirection(LineDirectionMode) const; |
| 271 | 271 |
| 272 void paint(const PaintInfo&, const LayoutPoint&) const override; | 272 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 273 public: | 273 public: |
| 274 virtual void paintObject(const PaintInfo&, const LayoutPoint&) const; | 274 virtual void paintObject(const PaintInfo&, const LayoutPoint&) const; |
| 275 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) const; | 275 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) const; |
| 276 | 276 |
| 277 protected: | 277 protected: |
| 278 virtual void adjustInlineDirectionLineBounds(unsigned /* expansionOpportunit
yCount */, LayoutUnit& /* logicalLeft */, LayoutUnit& /* logicalWidth */) const
{ } | 278 virtual void adjustInlineDirectionLineBounds(unsigned /* expansionOpportunit
yCount */, LayoutUnit& /* logicalLeft */, LayoutUnit& /* logicalWidth */) const
{ } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // FIXME: This is temporary as we move code that accesses block flow | 413 // FIXME: This is temporary as we move code that accesses block flow |
| 414 // member variables out of LayoutBlock and into LayoutBlockFlow. | 414 // member variables out of LayoutBlock and into LayoutBlockFlow. |
| 415 friend class LayoutBlockFlow; | 415 friend class LayoutBlockFlow; |
| 416 }; | 416 }; |
| 417 | 417 |
| 418 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 418 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 419 | 419 |
| 420 } // namespace blink | 420 } // namespace blink |
| 421 | 421 |
| 422 #endif // LayoutBlock_h | 422 #endif // LayoutBlock_h |
| OLD | NEW |