| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 m_imageResource->setContainerSizeForRenderer(enclosingIntRect(m_obje
ctBoundingBox).size()); | 82 m_imageResource->setContainerSizeForRenderer(enclosingIntRect(m_obje
ctBoundingBox).size()); |
| 83 updatedViewport = true; | 83 updatedViewport = true; |
| 84 m_needsBoundariesUpdate = true; | 84 m_needsBoundariesUpdate = true; |
| 85 } | 85 } |
| 86 | 86 |
| 87 return updatedViewport; | 87 return updatedViewport; |
| 88 } | 88 } |
| 89 | 89 |
| 90 void RenderSVGImage::layout() | 90 void RenderSVGImage::layout() |
| 91 { | 91 { |
| 92 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 93 ASSERT(needsLayout()); | 92 ASSERT(needsLayout()); |
| 94 | 93 |
| 95 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this) && selfNeedsLayout()); | 94 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this) && selfNeedsLayout()); |
| 96 updateImageViewport(); | 95 updateImageViewport(); |
| 97 | 96 |
| 98 bool transformOrBoundariesUpdate = m_needsTransformUpdate || m_needsBoundari
esUpdate; | 97 bool transformOrBoundariesUpdate = m_needsTransformUpdate || m_needsBoundari
esUpdate; |
| 99 if (m_needsTransformUpdate) { | 98 if (m_needsTransformUpdate) { |
| 100 m_localTransform = toSVGImageElement(node())->animatedLocalTransform(); | 99 m_localTransform = toSVGImageElement(node())->animatedLocalTransform(); |
| 101 m_needsTransformUpdate = false; | 100 m_needsTransformUpdate = false; |
| 102 } | 101 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 220 |
| 222 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) | 221 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) |
| 223 { | 222 { |
| 224 // this is called from paint() after the localTransform has already been app
lied | 223 // this is called from paint() after the localTransform has already been app
lied |
| 225 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); | 224 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); |
| 226 if (!contentRect.isEmpty()) | 225 if (!contentRect.isEmpty()) |
| 227 rects.append(contentRect); | 226 rects.append(contentRect); |
| 228 } | 227 } |
| 229 | 228 |
| 230 } // namespace WebCore | 229 } // namespace WebCore |
| OLD | NEW |