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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static const int defaultHeight; | 67 static const int defaultHeight; |
68 bool canHaveChildren() const override { return false; } | 68 bool canHaveChildren() const override { return false; } |
69 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const { } | 69 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const { } |
70 LayoutRect localSelectionRect() const final; | 70 LayoutRect localSelectionRect() const final; |
71 | 71 |
72 bool hasObjectFit() const { return style()->getObjectFit() != ComputedStyle:
:initialObjectFit(); } | 72 bool hasObjectFit() const { return style()->getObjectFit() != ComputedStyle:
:initialObjectFit(); } |
73 | 73 |
74 void paint(const PaintInfo&, const LayoutPoint&) const override; | 74 void paint(const PaintInfo&, const LayoutPoint&) const override; |
75 | 75 |
76 // Replaced objects often have contents to paint. | 76 // Replaced objects often have contents to paint. |
77 bool paintedOutputOfObjectHasNoEffect() const final { return false; } | 77 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { return
false; } |
78 | 78 |
79 struct IntrinsicSizingInfo { | 79 struct IntrinsicSizingInfo { |
80 STACK_ALLOCATED(); | 80 STACK_ALLOCATED(); |
81 IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} | 81 IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} |
82 | 82 |
83 FloatSize size; | 83 FloatSize size; |
84 FloatSize aspectRatio; | 84 FloatSize aspectRatio; |
85 bool hasWidth; | 85 bool hasWidth; |
86 bool hasHeight; | 86 bool hasHeight; |
87 | 87 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 135 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
136 | 136 |
137 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 137 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |
138 | 138 |
139 mutable LayoutSize m_intrinsicSize; | 139 mutable LayoutSize m_intrinsicSize; |
140 }; | 140 }; |
141 | 141 |
142 } // namespace blink | 142 } // namespace blink |
143 | 143 |
144 #endif | 144 #endif |
OLD | NEW |