| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   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 final; |   69     LayoutRect localSelectionRect() const final; | 
|   70  |   70  | 
|   71     bool hasObjectFit() const { return style()->getObjectFit() != ComputedStyle:
     :initialObjectFit(); } |   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     // Replaced objects often contain contents that will need repaint on geometr
     y change. | 
 |   76     bool canSkipUnforcedPaintInvalidation() const final { return false; } | 
 |   77  | 
|   75     struct IntrinsicSizingInfo { |   78     struct IntrinsicSizingInfo { | 
|   76         STACK_ALLOCATED(); |   79         STACK_ALLOCATED(); | 
|   77         IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} |   80         IntrinsicSizingInfo() : hasWidth(true), hasHeight(true) {} | 
|   78  |   81  | 
|   79         FloatSize size; |   82         FloatSize size; | 
|   80         FloatSize aspectRatio; |   83         FloatSize aspectRatio; | 
|   81         bool hasWidth; |   84         bool hasWidth; | 
|   82         bool hasHeight; |   85         bool hasHeight; | 
|   83  |   86  | 
|   84         void transpose(); |   87         void transpose(); | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  127     FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; |  130     FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; | 
|  128  |  131  | 
|  129     LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; |  132     LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const; | 
|  130  |  133  | 
|  131     mutable LayoutSize m_intrinsicSize; |  134     mutable LayoutSize m_intrinsicSize; | 
|  132 }; |  135 }; | 
|  133  |  136  | 
|  134 } // namespace blink |  137 } // namespace blink | 
|  135  |  138  | 
|  136 #endif |  139 #endif | 
| OLD | NEW |