| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 411 |
| 412 virtual void updateLogicalWidth(); | 412 virtual void updateLogicalWidth(); |
| 413 virtual void updateLogicalHeight(); | 413 virtual void updateLogicalHeight(); |
| 414 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; | 414 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; |
| 415 | 415 |
| 416 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, RenderBoxRegionInfoF
lags = CacheRenderBoxRegionInfo) const; | 416 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, RenderBoxRegionInfoF
lags = CacheRenderBoxRegionInfo) const; |
| 417 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0) const; | 417 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0) const; |
| 418 | 418 |
| 419 bool stretchesToViewport() const | 419 bool stretchesToViewport() const |
| 420 { | 420 { |
| 421 return document().inQuirksMode() && style()->logicalHeight().isAuto() &&
!isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho
uldDisplaySeamlesslyWithParent() && !isInline(); | 421 return document().inQuirksMode() && style()->logicalHeight().isAuto() &&
!isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !isInline(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } | 424 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } |
| 425 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } | 425 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } |
| 426 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } | 426 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } |
| 427 | 427 |
| 428 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width | 428 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width |
| 429 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. | 429 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. |
| 430 bool sizesLogicalWidthToFitContent(SizeType) const; | 430 bool sizesLogicalWidthToFitContent(SizeType) const; |
| 431 | 431 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 757 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
| 758 deleteLineBoxWrapper(); | 758 deleteLineBoxWrapper(); |
| 759 } | 759 } |
| 760 | 760 |
| 761 m_inlineBoxWrapper = boxWrapper; | 761 m_inlineBoxWrapper = boxWrapper; |
| 762 } | 762 } |
| 763 | 763 |
| 764 } // namespace WebCore | 764 } // namespace WebCore |
| 765 | 765 |
| 766 #endif // RenderBox_h | 766 #endif // RenderBox_h |
| OLD | NEW |