| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const; | 103 virtual void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const; |
| 104 | 104 |
| 105 void computePositionedLogicalWidth( | 105 void computePositionedLogicalWidth( |
| 106 LogicalExtentComputedValues&) const override; | 106 LogicalExtentComputedValues&) const override; |
| 107 void computePositionedLogicalHeight( | 107 void computePositionedLogicalHeight( |
| 108 LogicalExtentComputedValues&) const override; | 108 LogicalExtentComputedValues&) const override; |
| 109 | 109 |
| 110 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, | 110 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, |
| 111 LayoutUnit& maxLogicalWidth) const final; | 111 LayoutUnit& maxLogicalWidth) const final; |
| 112 | 112 |
| 113 // This function calculates the placement of the replaced contents. It takes i
ntrinsic size of | 113 // This function calculates the placement of the replaced contents. It takes |
| 114 // the replaced contents, stretch to fit CSS content box according to object-f
it. | 114 // intrinsic size of the replaced contents, stretch to fit CSS content box |
| 115 // according to object-fit. |
| 115 LayoutRect computeObjectFit( | 116 LayoutRect computeObjectFit( |
| 116 const LayoutSize* overriddenIntrinsicSize = nullptr) const; | 117 const LayoutSize* overriddenIntrinsicSize = nullptr) const; |
| 117 | 118 |
| 118 virtual LayoutUnit intrinsicContentLogicalHeight() const { | 119 virtual LayoutUnit intrinsicContentLogicalHeight() const { |
| 119 return intrinsicLogicalHeight(); | 120 return intrinsicLogicalHeight(); |
| 120 } | 121 } |
| 121 | 122 |
| 122 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } | 123 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } |
| 123 | 124 |
| 124 void setSelectionState(SelectionState) final; | 125 void setSelectionState(SelectionState) final; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 150 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 151 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |
| 151 | 152 |
| 152 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 153 LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |
| 153 | 154 |
| 154 mutable LayoutSize m_intrinsicSize; | 155 mutable LayoutSize m_intrinsicSize; |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace blink | 158 } // namespace blink |
| 158 | 159 |
| 159 #endif | 160 #endif |
| OLD | NEW |