| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const RenderSVGResourceType RenderSVGResourceSolidColor::s_resourceType = SolidC
olorResourceType; | 31 const RenderSVGResourceType RenderSVGResourceSolidColor::s_resourceType = SolidC
olorResourceType; |
| 32 | 32 |
| 33 RenderSVGResourceSolidColor::RenderSVGResourceSolidColor() | 33 RenderSVGResourceSolidColor::RenderSVGResourceSolidColor() |
| 34 { | 34 { |
| 35 } | 35 } |
| 36 | 36 |
| 37 RenderSVGResourceSolidColor::~RenderSVGResourceSolidColor() | 37 RenderSVGResourceSolidColor::~RenderSVGResourceSolidColor() |
| 38 { | 38 { |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
e* style, GraphicsContext*& context, unsigned short resourceMode) | 41 bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyl
e* style, GraphicsContext* context, RenderSVGResourceModeFlags resourceMode) |
| 42 { | 42 { |
| 43 ASSERT(object); | 43 ASSERT(object); |
| 44 ASSERT(style); | 44 ASSERT(style); |
| 45 ASSERT(context); | 45 ASSERT(context); |
| 46 ASSERT_UNUSED(resourceMode, resourceMode); | 46 ASSERT_UNUSED(resourceMode, resourceMode); |
| 47 | 47 |
| 48 bool isRenderingMask = SVGRenderSupport::isRenderingMaskImage(*object); | 48 bool isRenderingMask = SVGRenderSupport::isRenderingMaskImage(*object); |
| 49 const SVGRenderStyle& svgStyle = style->svgStyle(); | 49 const SVGRenderStyle& svgStyle = style->svgStyle(); |
| 50 | 50 |
| 51 if (resourceMode & ApplyToFillMode) { | 51 if (resourceMode & ApplyToFillMode) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 68 SVGRenderSupport::applyStrokeStyleToContext(context, style, object); | 68 SVGRenderSupport::applyStrokeStyleToContext(context, style, object); |
| 69 | 69 |
| 70 if (resourceMode & ApplyToTextMode) | 70 if (resourceMode & ApplyToTextMode) |
| 71 context->setTextDrawingMode(TextModeStroke); | 71 context->setTextDrawingMode(TextModeStroke); |
| 72 } | 72 } |
| 73 | 73 |
| 74 return true; | 74 return true; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } | 77 } |
| OLD | NEW |