| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 strokeBoundingBox.unite(current->repaintRectInLocalCoordinates()); | 144 strokeBoundingBox.unite(current->repaintRectInLocalCoordinates()); |
| 145 } else { | 145 } else { |
| 146 updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, c
urrent, transform.mapRect(current->objectBoundingBox())); | 146 updateObjectBoundingBox(objectBoundingBox, objectBoundingBoxValid, c
urrent, transform.mapRect(current->objectBoundingBox())); |
| 147 strokeBoundingBox.unite(transform.mapRect(current->repaintRectInLoca
lCoordinates())); | 147 strokeBoundingBox.unite(transform.mapRect(current->repaintRectInLoca
lCoordinates())); |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 | 150 |
| 151 repaintBoundingBox = strokeBoundingBox; | 151 repaintBoundingBox = strokeBoundingBox; |
| 152 } | 152 } |
| 153 | 153 |
| 154 bool SVGRenderSupport::paintInfoIntersectsRepaintRect(const FloatRect& localRepa
intRect, const AffineTransform& localTransform, const PaintInfo& paintInfo) | 154 bool SVGRenderSupport::paintInfoIntersectsRepaintRect(const FloatRect& localRepa
intRect, const AffineTransform& localTransform, PaintInfo& paintInfo) |
| 155 { | 155 { |
| 156 if (localTransform.isIdentity()) | 156 if (localTransform.isIdentity()) |
| 157 return localRepaintRect.intersects(paintInfo.rect); | 157 return localRepaintRect.intersects(paintInfo.getRect()); |
| 158 | 158 |
| 159 return localTransform.mapRect(localRepaintRect).intersects(paintInfo.rect); | 159 return localTransform.mapRect(localRepaintRect).intersects(paintInfo.getRect
()); |
| 160 } | 160 } |
| 161 | 161 |
| 162 const RenderSVGRoot* SVGRenderSupport::findTreeRootObject(const RenderObject* st
art) | 162 const RenderSVGRoot* SVGRenderSupport::findTreeRootObject(const RenderObject* st
art) |
| 163 { | 163 { |
| 164 while (start && !start->isSVGRoot()) | 164 while (start && !start->isSVGRoot()) |
| 165 start = start->parent(); | 165 start = start->parent(); |
| 166 | 166 |
| 167 ASSERT(start); | 167 ASSERT(start); |
| 168 ASSERT(start->isSVGRoot()); | 168 ASSERT(start->isSVGRoot()); |
| 169 return toRenderSVGRoot(start); | 169 return toRenderSVGRoot(start); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 DashArray dashArray; | 383 DashArray dashArray; |
| 384 const Vector<SVGLength>::const_iterator end = dashes.end(); | 384 const Vector<SVGLength>::const_iterator end = dashes.end(); |
| 385 for (Vector<SVGLength>::const_iterator it = dashes.begin(); it != end; ++it) | 385 for (Vector<SVGLength>::const_iterator it = dashes.begin(); it != end; ++it) |
| 386 dashArray.append((*it).value(lengthContext)); | 386 dashArray.append((*it).value(lengthContext)); |
| 387 | 387 |
| 388 strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset().value(length
Context)); | 388 strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset().value(length
Context)); |
| 389 } | 389 } |
| 390 | 390 |
| 391 } | 391 } |
| OLD | NEW |