| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 ComputedMarginValues m_margins; | 320 ComputedMarginValues m_margins; |
| 321 }; | 321 }; |
| 322 // Resolve auto margins in the chosen direction of the containing block so t
hat objects can be pushed to the start, middle or end | 322 // Resolve auto margins in the chosen direction of the containing block so t
hat objects can be pushed to the start, middle or end |
| 323 // of the containing block. | 323 // of the containing block. |
| 324 void computeMarginsForDirection(MarginDirection forDirection, const RenderBl
ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn
it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS
tartEnd) const; | 324 void computeMarginsForDirection(MarginDirection forDirection, const RenderBl
ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn
it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS
tartEnd) const; |
| 325 | 325 |
| 326 // Used to resolve margins in the containing block's block-flow direction. | 326 // Used to resolve margins in the containing block's block-flow direction. |
| 327 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); | 327 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); |
| 328 | 328 |
| 329 void positionLineBox(InlineBox*); | 329 void positionLineBox(InlineBox*); |
| 330 void moveWithEdgeOfInlineContainerIfNecessary(); | |
| 331 | 330 |
| 332 virtual InlineBox* createInlineBox(); | 331 virtual InlineBox* createInlineBox(); |
| 333 void dirtyLineBoxes(bool fullLayout); | 332 void dirtyLineBoxes(bool fullLayout); |
| 334 | 333 |
| 335 // For inline replaced elements, this function returns the inline box that o
wns us. Enables | 334 // For inline replaced elements, this function returns the inline box that o
wns us. Enables |
| 336 // the replaced RenderObject to quickly determine what line it is contained
on and to easily | 335 // the replaced RenderObject to quickly determine what line it is contained
on and to easily |
| 337 // iterate over structures on the line. | 336 // iterate over structures on the line. |
| 338 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli
neBoxWrapper : 0; } | 337 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli
neBoxWrapper : 0; } |
| 339 void setInlineBoxWrapper(InlineBox*); | 338 void setInlineBoxWrapper(InlineBox*); |
| 340 void deleteLineBoxWrapper(); | 339 void deleteLineBoxWrapper(); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 if (UNLIKELY(inlineBoxWrapper() != 0)) | 583 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 585 deleteLineBoxWrapper(); | 584 deleteLineBoxWrapper(); |
| 586 } | 585 } |
| 587 | 586 |
| 588 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 587 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 589 } | 588 } |
| 590 | 589 |
| 591 } // namespace blink | 590 } // namespace blink |
| 592 | 591 |
| 593 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 592 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |