| 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 LayoutUnit m_position; | 445 LayoutUnit m_position; |
| 446 ComputedMarginValues m_margins; | 446 ComputedMarginValues m_margins; |
| 447 }; | 447 }; |
| 448 // Resolve auto margins in the chosen direction of the containing block so t
hat objects can be pushed to the start, middle or end | 448 // Resolve auto margins in the chosen direction of the containing block so t
hat objects can be pushed to the start, middle or end |
| 449 // of the containing block. | 449 // of the containing block. |
| 450 void computeMarginsForDirection(MarginDirection forDirection, const LayoutBl
ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn
it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS
tartEnd) const; | 450 void computeMarginsForDirection(MarginDirection forDirection, const LayoutBl
ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn
it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS
tartEnd) const; |
| 451 | 451 |
| 452 // Used to resolve margins in the containing block's block-flow direction. | 452 // Used to resolve margins in the containing block's block-flow direction. |
| 453 void computeAndSetBlockDirectionMargins(const LayoutBlock* containingBlock); | 453 void computeAndSetBlockDirectionMargins(const LayoutBlock* containingBlock); |
| 454 | 454 |
| 455 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const; | 455 LayoutUnit offsetFromLogicalTopOfFirstPage() const; |
| 456 | 456 |
| 457 void positionLineBox(InlineBox*); | 457 void positionLineBox(InlineBox*); |
| 458 void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal); | 458 void moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal); |
| 459 void markStaticPositionedBoxForLayout(bool isHorizontal, bool isInline); | 459 void markStaticPositionedBoxForLayout(bool isHorizontal, bool isInline); |
| 460 | 460 |
| 461 virtual InlineBox* createInlineBox(); | 461 virtual InlineBox* createInlineBox(); |
| 462 void dirtyLineBoxes(bool fullLayout); | 462 void dirtyLineBoxes(bool fullLayout); |
| 463 | 463 |
| 464 // For inline replaced elements, this function returns the inline box that o
wns us. Enables | 464 // For inline replaced elements, this function returns the inline box that o
wns us. Enables |
| 465 // the replaced LayoutObject to quickly determine what line it is contained
on and to easily | 465 // the replaced LayoutObject to quickly determine what line it is contained
on and to easily |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 if (UNLIKELY(inlineBoxWrapper() != 0)) | 929 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 930 deleteLineBoxWrapper(); | 930 deleteLineBoxWrapper(); |
| 931 } | 931 } |
| 932 | 932 |
| 933 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 933 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 934 } | 934 } |
| 935 | 935 |
| 936 } // namespace blink | 936 } // namespace blink |
| 937 | 937 |
| 938 #endif // LayoutBox_h | 938 #endif // LayoutBox_h |
| OLD | NEW |