| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/rendering/shapes/ShapeOutsideInfo.h" | 29 #include "core/rendering/shapes/ShapeOutsideInfo.h" |
| 30 #include "platform/scroll/ScrollTypes.h" | 30 #include "platform/scroll/ScrollTypes.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 struct PaintInfo; | 34 struct PaintInfo; |
| 35 | 35 |
| 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; | 36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; |
| 37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; | 37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; |
| 38 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; | 38 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; |
| 39 enum MarginDirection { BlockDirection, InlineDirection }; | |
| 40 | 39 |
| 41 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; | 40 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; |
| 42 | 41 |
| 43 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; | 42 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; |
| 44 | 43 |
| 45 enum ScrollOffsetClamping { | 44 enum ScrollOffsetClamping { |
| 46 ScrollOffsetUnclamped, | 45 ScrollOffsetUnclamped, |
| 47 ScrollOffsetClamped | 46 ScrollOffsetClamped |
| 48 }; | 47 }; |
| 49 | 48 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 LayoutUnit m_start; | 376 LayoutUnit m_start; |
| 378 LayoutUnit m_end; | 377 LayoutUnit m_end; |
| 379 }; | 378 }; |
| 380 struct LogicalExtentComputedValues { | 379 struct LogicalExtentComputedValues { |
| 381 LogicalExtentComputedValues() { } | 380 LogicalExtentComputedValues() { } |
| 382 | 381 |
| 383 LayoutUnit m_extent; | 382 LayoutUnit m_extent; |
| 384 LayoutUnit m_position; | 383 LayoutUnit m_position; |
| 385 ComputedMarginValues m_margins; | 384 ComputedMarginValues m_margins; |
| 386 }; | 385 }; |
| 387 // Resolve auto margins in the chosen direction of the containing block so t
hat objects can be pushed to the start, middle or end | 386 // Resolve auto margins in the inline direction of the containing block so t
hat objects can be pushed to the start, middle or end |
| 388 // of the containing block. | 387 // of the containing block. |
| 389 void computeMarginsForDirection(MarginDirection forDirection, const RenderBl
ock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUn
it& marginStart, LayoutUnit& marginEnd, Length marginStartLength, Length marginS
tartEnd) const; | 388 void computeInlineDirectionMargins(RenderBlock* containingBlock, LayoutUnit
containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marg
inEnd) const; |
| 390 | 389 |
| 391 // Used to resolve margins in the containing block's block-flow direction. | 390 // Used to resolve margins in the containing block's block-flow direction. |
| 391 void computeBlockDirectionMargins(const RenderBlock* containingBlock, Layout
Unit& marginBefore, LayoutUnit& marginAfter) const; |
| 392 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); | 392 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); |
| 393 | 393 |
| 394 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const; | 394 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const; |
| 395 | 395 |
| 396 void positionLineBox(InlineBox*); | 396 void positionLineBox(InlineBox*); |
| 397 | 397 |
| 398 virtual InlineBox* createInlineBox(); | 398 virtual InlineBox* createInlineBox(); |
| 399 void dirtyLineBoxes(bool fullLayout); | 399 void dirtyLineBoxes(bool fullLayout); |
| 400 | 400 |
| 401 // For inline replaced elements, this function returns the inline box that o
wns us. Enables | 401 // For inline replaced elements, this function returns the inline box that o
wns us. Enables |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 if (UNLIKELY(inlineBoxWrapper() != 0)) | 774 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 775 deleteLineBoxWrapper(); | 775 deleteLineBoxWrapper(); |
| 776 } | 776 } |
| 777 | 777 |
| 778 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 778 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 779 } | 779 } |
| 780 | 780 |
| 781 } // namespace WebCore | 781 } // namespace WebCore |
| 782 | 782 |
| 783 #endif // RenderBox_h | 783 #endif // RenderBox_h |
| OLD | NEW |