| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 144 bool isOfType(LayoutObjectType type) const override { |
| 145 return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type); | 145 return type == LayoutObjectLayoutReplaced || LayoutBox::isOfType(type); |
| 146 } | 146 } |
| 147 char objectSize() const override { return sizeof(this); } |
| 147 | 148 |
| 148 private: | 149 private: |
| 149 void computePreferredLogicalWidths() final; | 150 void computePreferredLogicalWidths() final; |
| 150 | 151 |
| 151 bool canBeSelectionLeaf() const override { return true; } | 152 bool canBeSelectionLeaf() const override { return true; } |
| 152 | 153 |
| 153 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, | 154 void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, |
| 154 IntrinsicSizingInfo&) const; | 155 IntrinsicSizingInfo&) const; |
| 155 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 156 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
| 156 | 157 |
| 157 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 158 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |
| 158 | 159 |
| 159 mutable LayoutSize m_intrinsicSize; | 160 mutable LayoutSize m_intrinsicSize; |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace blink | 163 } // namespace blink |
| 163 | 164 |
| 164 #endif | 165 #endif |
| OLD | NEW |