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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 virtual void updateLogicalWidth(); | 401 virtual void updateLogicalWidth(); |
402 virtual void updateLogicalHeight(); | 402 virtual void updateLogicalHeight(); |
403 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; | 403 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; |
404 | 404 |
405 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, LayoutUnit offsetFro
mLogicalTopOfFirstPage, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) con
st; | 405 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, LayoutUnit offsetFro
mLogicalTopOfFirstPage, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) con
st; |
406 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; | 406 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; |
407 | 407 |
408 bool stretchesToViewport() const | 408 bool stretchesToViewport() const |
409 { | 409 { |
410 return document()->inQuirksMode() && style()->logicalHeight().isAuto() &
& !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document()->s
houldDisplaySeamlesslyWithParent() && !isInline(); | 410 return document().inQuirksMode() && style()->logicalHeight().isAuto() &&
!isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho
uldDisplaySeamlesslyWithParent() && !isInline(); |
411 } | 411 } |
412 | 412 |
413 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } | 413 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } |
414 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } | 414 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } |
415 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } | 415 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } |
416 | 416 |
417 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width | 417 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width |
418 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. | 418 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. |
419 bool sizesLogicalWidthToFitContent(SizeType) const; | 419 bool sizesLogicalWidthToFitContent(SizeType) const; |
420 | 420 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 758 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
759 deleteLineBoxWrapper(); | 759 deleteLineBoxWrapper(); |
760 } | 760 } |
761 | 761 |
762 m_inlineBoxWrapper = boxWrapper; | 762 m_inlineBoxWrapper = boxWrapper; |
763 } | 763 } |
764 | 764 |
765 } // namespace WebCore | 765 } // namespace WebCore |
766 | 766 |
767 #endif // RenderBox_h | 767 #endif // RenderBox_h |
OLD | NEW |