OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 28 matching lines...) Expand all Loading... |
39 bool hasReplacedLogicalHeight() const; | 39 bool hasReplacedLogicalHeight() const; |
40 | 40 |
41 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE; | 41 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE; |
42 | 42 |
43 protected: | 43 protected: |
44 virtual void willBeDestroyed(); | 44 virtual void willBeDestroyed(); |
45 | 45 |
46 virtual void layout(); | 46 virtual void layout(); |
47 | 47 |
48 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic
Size; } | 48 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic
Size; } |
| 49 LayoutRect replacedContentRect(const LayoutSize* overriddenIntrinsicSize = 0
) const; |
49 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; | 50 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; |
50 | 51 |
51 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE FINAL; | 52 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE FINAL; |
52 | 53 |
53 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } | 54 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } |
54 | 55 |
55 virtual void setSelectionState(SelectionState) OVERRIDE FINAL; | 56 virtual void setSelectionState(SelectionState) OVERRIDE FINAL; |
56 | 57 |
57 bool isSelected() const; | 58 bool isSelected() const; |
58 | 59 |
(...skipping 24 matching lines...) Expand all Loading... |
83 | 84 |
84 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL; | 85 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL; |
85 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr
ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; | 86 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr
ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; |
86 | 87 |
87 mutable LayoutSize m_intrinsicSize; | 88 mutable LayoutSize m_intrinsicSize; |
88 }; | 89 }; |
89 | 90 |
90 } | 91 } |
91 | 92 |
92 #endif | 93 #endif |
OLD | NEW |