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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 template<class Renderer> | 69 template<class Renderer> |
70 Renderer* cast() | 70 Renderer* cast() |
71 { | 71 { |
72 if (Renderer::s_resourceType == resourceType()) | 72 if (Renderer::s_resourceType == resourceType()) |
73 return static_cast<Renderer*>(this); | 73 return static_cast<Renderer*>(this); |
74 | 74 |
75 return 0; | 75 return 0; |
76 } | 76 } |
77 | 77 |
78 // Helper utilities used in the render tree to access resources used for pai
nting shapes/text (gradients & patterns & solid colors only) | 78 // Helper utilities used in the render tree to access resources used for pai
nting shapes/text (gradients & patterns & solid colors only) |
79 static RenderSVGResource* fillPaintingResource(RenderObject*, const RenderSt
yle*, Color& fallbackColor); | 79 static RenderSVGResource* fillPaintingResource(RenderObject*, const RenderSt
yle*, StyleColor& fallbackColor); |
80 static RenderSVGResource* strokePaintingResource(RenderObject*, const Render
Style*, Color& fallbackColor); | 80 static RenderSVGResource* strokePaintingResource(RenderObject*, const Render
Style*, StyleColor& fallbackColor); |
81 static RenderSVGResourceSolidColor* sharedSolidPaintingResource(); | 81 static RenderSVGResourceSolidColor* sharedSolidPaintingResource(); |
82 | 82 |
83 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); | 83 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n
eedsLayout = true); |
84 }; | 84 }; |
85 | 85 |
86 } | 86 } |
87 | 87 |
88 #endif | 88 #endif |
OLD | NEW |