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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool needsPreferredWidthsRecalculation() const override; | 61 bool needsPreferredWidthsRecalculation() const override; |
62 | 62 |
63 // These values are specified to be 300 and 150 pixels in the CSS 2.1 spec. | 63 // These values are specified to be 300 and 150 pixels in the CSS 2.1 spec. |
64 // http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width | 64 // http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width |
65 static const int defaultWidth; | 65 static const int defaultWidth; |
66 static const int defaultHeight; | 66 static const int defaultHeight; |
67 bool canHaveChildren() const override { return false; } | 67 bool canHaveChildren() const override { return false; } |
68 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const { } | 68 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) const { } |
69 LayoutRect localSelectionRect() const; // This is in local coordinates, but
it's a physical rect (so the top left corner is physical top left). | 69 LayoutRect localSelectionRect() const; // This is in local coordinates, but
it's a physical rect (so the top left corner is physical top left). |
70 | 70 |
71 bool hasObjectFit() const { return style()->objectFit() != ComputedStyle::in
itialObjectFit(); } | 71 bool hasObjectFit() const { return style()->getObjectFit() != ComputedStyle:
:initialObjectFit(); } |
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 computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; | 81 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai
ntInvalidationContainer) const final; | 114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai
ntInvalidationContainer) const final; |
115 void computeIntrinsicSizingInfoForLayoutBox(LayoutBox*, IntrinsicSizingInfo&
) const; | 115 void computeIntrinsicSizingInfoForLayoutBox(LayoutBox*, IntrinsicSizingInfo&
) const; |
116 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 116 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
117 | 117 |
118 mutable LayoutSize m_intrinsicSize; | 118 mutable LayoutSize m_intrinsicSize; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace blink | 121 } // namespace blink |
122 | 122 |
123 #endif | 123 #endif |
OLD | NEW |