| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> | 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 : RenderSVGModelObject(impl) | 45 : RenderSVGModelObject(impl) |
| 46 , m_needsBoundariesUpdate(true) | 46 , m_needsBoundariesUpdate(true) |
| 47 , m_needsTransformUpdate(true) | 47 , m_needsTransformUpdate(true) |
| 48 , m_imageResource(RenderImageResource::create()) | 48 , m_imageResource(RenderImageResource::create()) |
| 49 { | 49 { |
| 50 m_imageResource->initialize(this); | 50 m_imageResource->initialize(this); |
| 51 } | 51 } |
| 52 | 52 |
| 53 RenderSVGImage::~RenderSVGImage() | 53 RenderSVGImage::~RenderSVGImage() |
| 54 { | 54 { |
| 55 } |
| 56 |
| 57 void RenderSVGImage::destroy() |
| 58 { |
| 55 ImageQualityController::remove(this); | 59 ImageQualityController::remove(this); |
| 56 m_imageResource->shutdown(); | 60 m_imageResource->shutdown(); |
| 61 RenderSVGModelObject::destroy(); |
| 57 } | 62 } |
| 58 | 63 |
| 59 bool RenderSVGImage::updateImageViewport() | 64 bool RenderSVGImage::updateImageViewport() |
| 60 { | 65 { |
| 61 SVGImageElement* image = toSVGImageElement(element()); | 66 SVGImageElement* image = toSVGImageElement(element()); |
| 62 FloatRect oldBoundaries = m_objectBoundingBox; | 67 FloatRect oldBoundaries = m_objectBoundingBox; |
| 63 bool updatedViewport = false; | 68 bool updatedViewport = false; |
| 64 | 69 |
| 65 SVGLengthContext lengthContext(image); | 70 SVGLengthContext lengthContext(image); |
| 66 m_objectBoundingBox = FloatRect(image->x()->currentValue()->value(lengthCont
ext), image->y()->currentValue()->value(lengthContext), image->width()->currentV
alue()->value(lengthContext), image->height()->currentValue()->value(lengthConte
xt)); | 71 m_objectBoundingBox = FloatRect(image->x()->currentValue()->value(lengthCont
ext), image->y()->currentValue()->value(lengthContext), image->width()->currentV
alue()->value(lengthContext), image->height()->currentValue()->value(lengthConte
xt)); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 229 |
| 225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) const | 230 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) const |
| 226 { | 231 { |
| 227 // this is called from paint() after the localTransform has already been app
lied | 232 // this is called from paint() after the localTransform has already been app
lied |
| 228 IntRect contentRect = enclosingIntRect(paintInvalidationRectInLocalCoordinat
es()); | 233 IntRect contentRect = enclosingIntRect(paintInvalidationRectInLocalCoordinat
es()); |
| 229 if (!contentRect.isEmpty()) | 234 if (!contentRect.isEmpty()) |
| 230 rects.append(contentRect); | 235 rects.append(contentRect); |
| 231 } | 236 } |
| 232 | 237 |
| 233 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |