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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 bool hasObjectFit() const { return style()->objectFit() != ComputedStyle::in
itialObjectFit(); } | 71 bool hasObjectFit() const { return style()->objectFit() != ComputedStyle::in
itialObjectFit(); } |
72 | 72 |
73 void paint(const PaintInfo&, const LayoutPoint&) const override; | 73 void paint(const PaintInfo&, const LayoutPoint&) const override; |
74 | 74 |
75 protected: | 75 protected: |
76 void willBeDestroyed() override; | 76 void willBeDestroyed() override; |
77 | 77 |
78 void layout() override; | 78 void layout() override; |
79 | 79 |
80 LayoutSize intrinsicSize() const final { return m_intrinsicSize; } | 80 LayoutSize intrinsicSize() const final { return m_intrinsicSize; } |
81 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr
insicRatio) const override; | 81 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; |
82 | 82 |
83 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const overr
ide; | 83 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const overr
ide; |
84 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const over
ride; | 84 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const over
ride; |
85 | 85 |
86 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; | 86 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; |
87 | 87 |
88 virtual LayoutUnit intrinsicContentLogicalHeight() const { return intrinsicL
ogicalHeight(); } | 88 virtual LayoutUnit intrinsicContentLogicalHeight() const { return intrinsicL
ogicalHeight(); } |
89 | 89 |
90 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } | 90 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } |
91 | 91 |
(...skipping 13 matching lines...) Expand all Loading... |
105 virtual LayoutBox* embeddedContentBox() const { return nullptr; } | 105 virtual LayoutBox* embeddedContentBox() const { return nullptr; } |
106 | 106 |
107 private: | 107 private: |
108 void computePreferredLogicalWidths() final; | 108 void computePreferredLogicalWidths() final; |
109 | 109 |
110 PositionWithAffinity positionForPoint(const LayoutPoint&) final; | 110 PositionWithAffinity positionForPoint(const LayoutPoint&) final; |
111 | 111 |
112 bool canBeSelectionLeaf() const override { return true; } | 112 bool canBeSelectionLeaf() const override { return true; } |
113 | 113 |
114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai
ntInvalidationContainer) const final; | 114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai
ntInvalidationContainer) const final; |
115 void computeAspectRatioInformationForLayoutBox(LayoutBox*, FloatSize& constr
ainedSize, double& intrinsicRatio) const; | 115 void computeIntrinsicSizingInfoForLayoutBox(LayoutBox*, IntrinsicSizingInfo&
) const; |
| 116 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
116 | 117 |
117 mutable LayoutSize m_intrinsicSize; | 118 mutable LayoutSize m_intrinsicSize; |
118 }; | 119 }; |
119 | 120 |
120 } // namespace blink | 121 } // namespace blink |
121 | 122 |
122 #endif | 123 #endif |
OLD | NEW |