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 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const {} | 71 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const {} |
72 LayoutRect localSelectionRect() const final; | 72 LayoutRect localSelectionRect() const final; |
73 | 73 |
74 bool hasObjectFit() const { | 74 bool hasObjectFit() const { |
75 return style()->getObjectFit() != ComputedStyle::initialObjectFit(); | 75 return style()->getObjectFit() != ComputedStyle::initialObjectFit(); |
76 } | 76 } |
77 | 77 |
78 void paint(const PaintInfo&, const LayoutPoint&) const override; | 78 void paint(const PaintInfo&, const LayoutPoint&) const override; |
79 | 79 |
80 // Replaced objects often have contents to paint. | 80 // Replaced objects often have contents to paint. |
81 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { | 81 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override { |
82 return false; | 82 return false; |
83 } | 83 } |
84 | 84 |
85 struct IntrinsicSizingInfo { | 85 struct IntrinsicSizingInfo { |
86 STACK_ALLOCATED(); | 86 STACK_ALLOCATED(); |
87 IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} | 87 IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} |
88 | 88 |
89 FloatSize size; | 89 FloatSize size; |
90 FloatSize aspectRatio; | 90 FloatSize aspectRatio; |
91 bool hasWidth; | 91 bool hasWidth; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 151 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
152 | 152 |
153 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 153 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |
154 | 154 |
155 mutable LayoutSize m_intrinsicSize; | 155 mutable LayoutSize m_intrinsicSize; |
156 }; | 156 }; |
157 | 157 |
158 } // namespace blink | 158 } // namespace blink |
159 | 159 |
160 #endif | 160 #endif |
OLD | NEW |