| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) | 124 void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint&) |
| 125 { | 125 { |
| 126 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); | 126 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); |
| 127 | 127 |
| 128 if (paintInfo.context->paintingDisabled() | 128 if (paintInfo.context->paintingDisabled() |
| 129 || paintInfo.phase != PaintPhaseForeground | 129 || paintInfo.phase != PaintPhaseForeground |
| 130 || style()->visibility() == HIDDEN | 130 || style()->visibility() == HIDDEN |
| 131 || !m_imageResource->hasImage()) | 131 || !m_imageResource->hasImage()) |
| 132 return; | 132 return; |
| 133 | 133 |
| 134 FloatRect boundingBox = repaintRectInLocalCoordinates(); | 134 FloatRect boundingBox = paintInvalidationRectInLocalCoordinates(); |
| 135 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTr
ansform, paintInfo)) | 135 if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTr
ansform, paintInfo)) |
| 136 return; | 136 return; |
| 137 | 137 |
| 138 PaintInfo childPaintInfo(paintInfo); | 138 PaintInfo childPaintInfo(paintInfo); |
| 139 GraphicsContextStateSaver stateSaver(*childPaintInfo.context, false); | 139 GraphicsContextStateSaver stateSaver(*childPaintInfo.context, false); |
| 140 | 140 |
| 141 if (!m_localTransform.isIdentity()) { | 141 if (!m_localTransform.isIdentity()) { |
| 142 stateSaver.save(); | 142 stateSaver.save(); |
| 143 childPaintInfo.applyTransform(m_localTransform, false); | 143 childPaintInfo.applyTransform(m_localTransform, false); |
| 144 } | 144 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 updateImageViewport(); | 224 updateImageViewport(); |
| 225 | 225 |
| 226 invalidateBufferedForeground(); | 226 invalidateBufferedForeground(); |
| 227 | 227 |
| 228 paintInvalidationForWholeRenderer(); | 228 paintInvalidationForWholeRenderer(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) | 231 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) |
| 232 { | 232 { |
| 233 // this is called from paint() after the localTransform has already been app
lied | 233 // this is called from paint() after the localTransform has already been app
lied |
| 234 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); | 234 IntRect contentRect = enclosingIntRect(paintInvalidationRectInLocalCoordinat
es()); |
| 235 if (!contentRect.isEmpty()) | 235 if (!contentRect.isEmpty()) |
| 236 rects.append(contentRect); | 236 rects.append(contentRect); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace WebCore | 239 } // namespace WebCore |
| OLD | NEW |