| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 DashArray dashArray; | 393 DashArray dashArray; |
| 394 if (!dashes->isEmpty()) { | 394 if (!dashes->isEmpty()) { |
| 395 SVGLengthList::ConstIterator it = dashes->begin(); | 395 SVGLengthList::ConstIterator it = dashes->begin(); |
| 396 SVGLengthList::ConstIterator itEnd = dashes->end(); | 396 SVGLengthList::ConstIterator itEnd = dashes->end(); |
| 397 for (; it != itEnd; ++it) | 397 for (; it != itEnd; ++it) |
| 398 dashArray.append(it->value(lengthContext)); | 398 dashArray.append(it->value(lengthContext)); |
| 399 } | 399 } |
| 400 strokeData->setLineDash(dashArray, svgStyle.strokeDashOffset()->value(length
Context)); | 400 strokeData->setLineDash(dashArray, svgStyle.strokeDashOffset()->value(length
Context)); |
| 401 } | 401 } |
| 402 | 402 |
| 403 bool SVGRenderSupport::updateGraphicsContext(const PaintInfo& paintInfo, Graphic
sContextStateSaver& stateSaver, RenderStyle* style, RenderObject& renderer, Rend
erSVGResourceMode resourceMode, const AffineTransform* additionalPaintServerTran
sform) | 403 bool SVGRenderSupport::updateGraphicsContext(const PaintInfo& paintInfo, Graphic
sContextStateSaver& stateSaver, const RenderStyle* style, RenderObject& renderer
, RenderSVGResourceMode resourceMode, const AffineTransform* additionalPaintServ
erTransform) |
| 404 { | 404 { |
| 405 ASSERT(style); | 405 ASSERT(style); |
| 406 ASSERT(paintInfo.context == stateSaver.context()); | 406 ASSERT(paintInfo.context == stateSaver.context()); |
| 407 | 407 |
| 408 GraphicsContext* context = paintInfo.context; | 408 GraphicsContext* context = paintInfo.context; |
| 409 if (paintInfo.isRenderingClipPathAsMaskImage()) { | 409 if (paintInfo.isRenderingClipPathAsMaskImage()) { |
| 410 if (resourceMode == ApplyToStrokeMode) | 410 if (resourceMode == ApplyToStrokeMode) |
| 411 return false; | 411 return false; |
| 412 context->setAlphaAsFloat(1); | 412 context->setAlphaAsFloat(1); |
| 413 context->setFillColor(SVGRenderStyle::initialFillPaintColor()); | 413 context->setFillColor(SVGRenderStyle::initialFillPaintColor()); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 return false; | 459 return false; |
| 460 return willIsolateBlendingDescendantsForStyle(object->style()); | 460 return willIsolateBlendingDescendantsForStyle(object->style()); |
| 461 } | 461 } |
| 462 | 462 |
| 463 bool SVGRenderSupport::isIsolationRequired(const RenderObject* object) | 463 bool SVGRenderSupport::isIsolationRequired(const RenderObject* object) |
| 464 { | 464 { |
| 465 return willIsolateBlendingDescendantsForObject(object) && object->hasNonIsol
atedBlendingDescendants(); | 465 return willIsolateBlendingDescendantsForObject(object) && object->hasNonIsol
atedBlendingDescendants(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 } | 468 } |
| OLD | NEW |