| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool backgroundShouldAlwaysBeClipped() const override { return true; } | 116 bool backgroundShouldAlwaysBeClipped() const override { return true; } |
| 117 | 117 |
| 118 LayoutUnit minimumReplacedHeight() const override; | 118 LayoutUnit minimumReplacedHeight() const override; |
| 119 | 119 |
| 120 void imageNotifyFinished(ImageResource*) final; | 120 void imageNotifyFinished(ImageResource*) final; |
| 121 bool nodeAtPoint(HitTestResult&, | 121 bool nodeAtPoint(HitTestResult&, |
| 122 const HitTestLocation& locationInContainer, | 122 const HitTestLocation& locationInContainer, |
| 123 const LayoutPoint& accumulatedOffset, | 123 const LayoutPoint& accumulatedOffset, |
| 124 HitTestAction) final; | 124 HitTestAction) final; |
| 125 | 125 |
| 126 bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, | |
| 127 const InlineFlowBox*) const final; | |
| 128 | |
| 129 void invalidatePaintAndMarkForLayoutIfNeeded(); | 126 void invalidatePaintAndMarkForLayoutIfNeeded(); |
| 130 void updateIntrinsicSizeIfNeeded(const LayoutSize&); | 127 void updateIntrinsicSizeIfNeeded(const LayoutSize&); |
| 131 | 128 |
| 132 // This member wraps the associated decoded image. | 129 // This member wraps the associated decoded image. |
| 133 // | 130 // |
| 134 // This field is set using setImageResource above which can be called in | 131 // This field is set using setImageResource above which can be called in |
| 135 // several ways: | 132 // several ways: |
| 136 // * For normal images, from the network stack (ImageLoader) once we have | 133 // * For normal images, from the network stack (ImageLoader) once we have |
| 137 // some image data. | 134 // some image data. |
| 138 // * For generated content, the resource is loaded during style resolution | 135 // * For generated content, the resource is loaded during style resolution |
| 139 // and thus is stored in ComputedStyle (see ContentData::image) that gets | 136 // and thus is stored in ComputedStyle (see ContentData::image) that gets |
| 140 // propagated to the anonymous LayoutImage in LayoutObject::createObject. | 137 // propagated to the anonymous LayoutImage in LayoutObject::createObject. |
| 141 Persistent<LayoutImageResource> m_imageResource; | 138 Persistent<LayoutImageResource> m_imageResource; |
| 142 bool m_didIncrementVisuallyNonEmptyPixelCount; | 139 bool m_didIncrementVisuallyNonEmptyPixelCount; |
| 143 | 140 |
| 144 // This field stores whether this image is generated with 'content'. | 141 // This field stores whether this image is generated with 'content'. |
| 145 bool m_isGeneratedContent; | 142 bool m_isGeneratedContent; |
| 146 float m_imageDevicePixelRatio; | 143 float m_imageDevicePixelRatio; |
| 147 }; | 144 }; |
| 148 | 145 |
| 149 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 146 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
| 150 | 147 |
| 151 } // namespace blink | 148 } // namespace blink |
| 152 | 149 |
| 153 #endif // LayoutImage_h | 150 #endif // LayoutImage_h |
| OLD | NEW |