| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2009-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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // If this enum changes change the unsigned bitfields using it. | 39 // If this enum changes change the unsigned bitfields using it. |
| 40 enum RenderSVGResourceMode { | 40 enum RenderSVGResourceMode { |
| 41 ApplyToDefaultMode = 1 << 0, // used for all resources except gradient/patte
rn | 41 ApplyToDefaultMode = 1 << 0, // used for all resources except gradient/patte
rn |
| 42 ApplyToFillMode = 1 << 1, | 42 ApplyToFillMode = 1 << 1, |
| 43 ApplyToStrokeMode = 1 << 2, | 43 ApplyToStrokeMode = 1 << 2, |
| 44 ApplyToTextMode = 1 << 3 // used in combination with ApplyTo{Fill|Stroke}
Mode | 44 ApplyToTextMode = 1 << 3 // used in combination with ApplyTo{Fill|Stroke}
Mode |
| 45 }; | 45 }; |
| 46 typedef unsigned RenderSVGResourceModeFlags; | 46 typedef unsigned RenderSVGResourceModeFlags; |
| 47 | 47 |
| 48 class Color; | |
| 49 class FloatRect; | |
| 50 class GraphicsContext; | 48 class GraphicsContext; |
| 51 class Path; | 49 class Path; |
| 52 class RenderObject; | 50 class RenderObject; |
| 53 class RenderStyle; | 51 class RenderStyle; |
| 54 class RenderSVGResourceSolidColor; | 52 class RenderSVGResourceSolidColor; |
| 55 | 53 |
| 56 class RenderSVGResource { | 54 class RenderSVGResource { |
| 57 public: | 55 public: |
| 58 RenderSVGResource() { } | 56 RenderSVGResource() { } |
| 59 virtual ~RenderSVGResource() { } | 57 virtual ~RenderSVGResource() { } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 83 | 81 |
| 84 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); | 82 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 #define DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 85 #define DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
| 88 DEFINE_TYPE_CASTS(thisType, RenderSVGResource, resource, resource->resourceT
ype() == typeName, resource.resourceType() == typeName) | 86 DEFINE_TYPE_CASTS(thisType, RenderSVGResource, resource, resource->resourceT
ype() == typeName, resource.resourceType() == typeName) |
| 89 | 87 |
| 90 } | 88 } |
| 91 | 89 |
| 92 #endif | 90 #endif |
| OLD | NEW |