| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
| 10 * | 10 * |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 RespectImageOrientationEnum oldOrientation = oldStyle ? oldStyle->respectIma
geOrientation() : ComputedStyle::initialRespectImageOrientation(); | 83 RespectImageOrientationEnum oldOrientation = oldStyle ? oldStyle->respectIma
geOrientation() : ComputedStyle::initialRespectImageOrientation(); |
| 84 if (style() && style()->respectImageOrientation() != oldOrientation) | 84 if (style() && style()->respectImageOrientation() != oldOrientation) |
| 85 intrinsicSizeChanged(); | 85 intrinsicSizeChanged(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void LayoutImage::setImageResource(PassOwnPtrWillBeRawPtr<LayoutImageResource> i
mageResource) | 88 void LayoutImage::setImageResource(PassOwnPtrWillBeRawPtr<LayoutImageResource> i
mageResource) |
| 89 { | 89 { |
| 90 ASSERT(!m_imageResource); | 90 ASSERT(!m_imageResource); |
| 91 m_imageResource = imageResource; | 91 m_imageResource = imageResource; |
| 92 m_imageResource->initialize(this, this); | 92 m_imageResource->initialize(this); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void LayoutImage::imageChanged(WrappedImagePtr newImage, const IntRect* rect) | 95 void LayoutImage::imageChanged(WrappedImagePtr newImage, const IntRect* rect) |
| 96 { | 96 { |
| 97 ASSERT(view()); | 97 ASSERT(view()); |
| 98 ASSERT(view()->frameView()); | 98 ASSERT(view()->frameView()); |
| 99 if (documentBeingDestroyed()) | 99 if (documentBeingDestroyed()) |
| 100 return; | 100 return; |
| 101 | 101 |
| 102 if (hasBoxDecorationBackground() || hasMask() || hasShapeOutside()) | 102 if (hasBoxDecorationBackground() || hasMask() || hasShapeOutside()) |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 if (imageResource() && imageResource()->maybeAnimated()) | 169 if (imageResource() && imageResource()->maybeAnimated()) |
| 170 setShouldDoFullPaintInvalidation(PaintInvalidationDelayedFull); | 170 setShouldDoFullPaintInvalidation(PaintInvalidationDelayedFull); |
| 171 else | 171 else |
| 172 setShouldDoFullPaintInvalidation(PaintInvalidationFull); | 172 setShouldDoFullPaintInvalidation(PaintInvalidationFull); |
| 173 | 173 |
| 174 // Tell any potential compositing layers that the image needs updating. | 174 // Tell any potential compositing layers that the image needs updating. |
| 175 contentChanged(ImageChanged); | 175 contentChanged(ImageChanged); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void LayoutImage::notifyFinished(Resource* newImage) | 178 void LayoutImage::imageNotifyFinished(ImageResource* newImage) |
| 179 { | 179 { |
| 180 if (!m_imageResource) | 180 if (!m_imageResource) |
| 181 return; | 181 return; |
| 182 | 182 |
| 183 if (documentBeingDestroyed()) | 183 if (documentBeingDestroyed()) |
| 184 return; | 184 return; |
| 185 | 185 |
| 186 invalidateBackgroundObscurationStatus(); | 186 invalidateBackgroundObscurationStatus(); |
| 187 | 187 |
| 188 if (newImage == m_imageResource->cachedImage()) { | 188 if (newImage == m_imageResource->cachedImage()) { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 return nullptr; | 318 return nullptr; |
| 319 | 319 |
| 320 ImageResource* cachedImage = m_imageResource->cachedImage(); | 320 ImageResource* cachedImage = m_imageResource->cachedImage(); |
| 321 if (cachedImage && cachedImage->getImage() && cachedImage->getImage()->isSVG
Image()) | 321 if (cachedImage && cachedImage->getImage() && cachedImage->getImage()->isSVG
Image()) |
| 322 return toSVGImage(cachedImage->getImage())->embeddedReplacedContent(); | 322 return toSVGImage(cachedImage->getImage())->embeddedReplacedContent(); |
| 323 | 323 |
| 324 return nullptr; | 324 return nullptr; |
| 325 } | 325 } |
| 326 | 326 |
| 327 } // namespace blink | 327 } // namespace blink |
| OLD | NEW |