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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // | 134 // |
135 // The intrinsic size can change due to the network (from the default | 135 // The intrinsic size can change due to the network (from the default |
136 // intrinsic size [see above] to the actual intrinsic size) or to some | 136 // intrinsic size [see above] to the actual intrinsic size) or to some |
137 // CSS properties like 'zoom' or 'image-orientation'. | 137 // CSS properties like 'zoom' or 'image-orientation'. |
138 virtual void intrinsicSizeChanged(); | 138 virtual void intrinsicSizeChanged(); |
139 | 139 |
140 virtual LayoutReplaced* embeddedReplacedContent() const { return nullptr; } | 140 virtual LayoutReplaced* embeddedReplacedContent() const { return nullptr; } |
141 | 141 |
142 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 142 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
143 | 143 |
| 144 bool isOfType(LayoutObjectType type) const override { |
| 145 return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type); |
| 146 } |
| 147 |
144 private: | 148 private: |
145 void computePreferredLogicalWidths() final; | 149 void computePreferredLogicalWidths() final; |
146 | 150 |
147 bool canBeSelectionLeaf() const override { return true; } | 151 bool canBeSelectionLeaf() const override { return true; } |
148 | 152 |
149 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, | 153 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, |
150 IntrinsicSizingInfo&) const; | 154 IntrinsicSizingInfo&) const; |
151 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 155 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
152 | 156 |
153 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 157 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |
154 | 158 |
155 mutable LayoutSize m_intrinsicSize; | 159 mutable LayoutSize m_intrinsicSize; |
156 }; | 160 }; |
157 | 161 |
158 } // namespace blink | 162 } // namespace blink |
159 | 163 |
160 #endif | 164 #endif |
OLD | NEW |