| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 virtual void updateLogicalWidth(); | 389 virtual void updateLogicalWidth(); |
| 390 virtual void updateLogicalHeight(); | 390 virtual void updateLogicalHeight(); |
| 391 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; | 391 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; |
| 392 | 392 |
| 393 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, LayoutUnit offsetFro
mLogicalTopOfFirstPage, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) con
st; | 393 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, LayoutUnit offsetFro
mLogicalTopOfFirstPage, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) con
st; |
| 394 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; | 394 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion*
= 0, LayoutUnit offsetFromLogicalTopOfFirstPage = 0) const; |
| 395 | 395 |
| 396 bool stretchesToViewport() const | 396 bool stretchesToViewport() const |
| 397 { | 397 { |
| 398 return document()->inQuirksMode() && style()->logicalHeight().isAuto() &
& !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document()->s
houldDisplaySeamlesslyWithParent(); | 398 return document()->inQuirksMode() && style()->logicalHeight().isAuto() &
& !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document()->s
houldDisplaySeamlesslyWithParent() && !isInline(); |
| 399 } | 399 } |
| 400 | 400 |
| 401 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } | 401 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } |
| 402 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } | 402 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti
ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } |
| 403 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } | 403 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } |
| 404 | 404 |
| 405 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width | 405 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width |
| 406 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. | 406 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. |
| 407 bool sizesLogicalWidthToFitContent(SizeType) const; | 407 bool sizesLogicalWidthToFitContent(SizeType) const; |
| 408 virtual bool stretchesToMinIntrinsicLogicalWidth() const { return false; } | 408 virtual bool stretchesToMinIntrinsicLogicalWidth() const { return false; } |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 } | 714 } |
| 715 | 715 |
| 716 inline RenderBox* RenderBox::lastChildBox() const | 716 inline RenderBox* RenderBox::lastChildBox() const |
| 717 { | 717 { |
| 718 return toRenderBox(lastChild()); | 718 return toRenderBox(lastChild()); |
| 719 } | 719 } |
| 720 | 720 |
| 721 } // namespace WebCore | 721 } // namespace WebCore |
| 722 | 722 |
| 723 #endif // RenderBox_h | 723 #endif // RenderBox_h |
| OLD | NEW |