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 19 matching lines...) Expand all Loading... |
30 MaskerResourceType, | 30 MaskerResourceType, |
31 MarkerResourceType, | 31 MarkerResourceType, |
32 PatternResourceType, | 32 PatternResourceType, |
33 LinearGradientResourceType, | 33 LinearGradientResourceType, |
34 RadialGradientResourceType, | 34 RadialGradientResourceType, |
35 SolidColorResourceType, | 35 SolidColorResourceType, |
36 FilterResourceType, | 36 FilterResourceType, |
37 ClipperResourceType | 37 ClipperResourceType |
38 }; | 38 }; |
39 | 39 |
40 // If this enum changes change the unsigned bitfields using it. | |
41 enum RenderSVGResourceMode { | 40 enum RenderSVGResourceMode { |
42 ApplyToFillMode = 1 << 0, | 41 ApplyToFillMode, |
43 ApplyToStrokeMode = 1 << 1, | 42 ApplyToStrokeMode, |
44 ApplyToTextMode = 1 << 2 // used in combination with ApplyTo{Fill|Stroke}
Mode | |
45 }; | 43 }; |
46 typedef unsigned RenderSVGResourceModeFlags; | |
47 | 44 |
48 class GraphicsContext; | 45 class GraphicsContext; |
49 class GraphicsContextStateSaver; | 46 class GraphicsContextStateSaver; |
50 class RenderObject; | 47 class RenderObject; |
51 class RenderStyle; | 48 class RenderStyle; |
52 class RenderSVGResourceSolidColor; | 49 class RenderSVGResourceSolidColor; |
53 | 50 |
54 class SVGPaintServer { | 51 class SVGPaintServer { |
55 public: | 52 public: |
56 explicit SVGPaintServer(Color); | 53 explicit SVGPaintServer(Color); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 86 |
90 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); | 87 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); |
91 }; | 88 }; |
92 | 89 |
93 #define DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 90 #define DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
94 DEFINE_TYPE_CASTS(thisType, RenderSVGResource, resource, resource->resourceT
ype() == typeName, resource.resourceType() == typeName) | 91 DEFINE_TYPE_CASTS(thisType, RenderSVGResource, resource, resource->resourceT
ype() == typeName, resource.resourceType() == typeName) |
95 | 92 |
96 } | 93 } |
97 | 94 |
98 #endif | 95 #endif |
OLD | NEW |