| 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 19 matching lines...) Expand all Loading... |
| 30 enum LayoutSVGResourceType { | 30 enum LayoutSVGResourceType { |
| 31 MaskerResourceType, | 31 MaskerResourceType, |
| 32 MarkerResourceType, | 32 MarkerResourceType, |
| 33 PatternResourceType, | 33 PatternResourceType, |
| 34 LinearGradientResourceType, | 34 LinearGradientResourceType, |
| 35 RadialGradientResourceType, | 35 RadialGradientResourceType, |
| 36 FilterResourceType, | 36 FilterResourceType, |
| 37 ClipperResourceType | 37 ClipperResourceType |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class PaintLayer; | |
| 41 | 40 |
| 42 class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer { | 41 class LayoutSVGResourceContainer : public LayoutSVGHiddenContainer { |
| 43 public: | 42 public: |
| 44 explicit LayoutSVGResourceContainer(SVGElement*); | 43 explicit LayoutSVGResourceContainer(SVGElement*); |
| 45 ~LayoutSVGResourceContainer() override; | 44 ~LayoutSVGResourceContainer() override; |
| 46 | 45 |
| 47 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; | 46 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; |
| 48 virtual void removeClientFromCache(LayoutObject*, | 47 virtual void removeClientFromCache(LayoutObject*, |
| 49 bool markForInvalidation = true) = 0; | 48 bool markForInvalidation = true) = 0; |
| 50 | 49 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 isSVGResourceContainer()); | 142 isSVGResourceContainer()); |
| 144 | 143 |
| 145 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ | 144 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ |
| 146 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ | 145 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ |
| 147 resource->resourceType() == typeName, \ | 146 resource->resourceType() == typeName, \ |
| 148 resource.resourceType() == typeName) | 147 resource.resourceType() == typeName) |
| 149 | 148 |
| 150 } // namespace blink | 149 } // namespace blink |
| 151 | 150 |
| 152 #endif | 151 #endif |
| OLD | NEW |