OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static RenderSVGResourceType s_resourceType; | 82 static RenderSVGResourceType s_resourceType; |
83 | 83 |
84 FloatRect drawingRegion(RenderObject*) const; | 84 FloatRect drawingRegion(RenderObject*) const; |
85 private: | 85 private: |
86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); | 86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); |
87 | 87 |
88 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; | 88 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; |
89 FilterMap m_filter; | 89 FilterMap m_filter; |
90 }; | 90 }; |
91 | 91 |
92 inline RenderSVGResourceFilter* toRenderSVGResourceFilter(RenderObject* object) | 92 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); |
93 { | |
94 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGResourceFilter()); | |
95 return static_cast<RenderSVGResourceFilter*>(object); | |
96 } | |
97 | |
98 inline RenderSVGResourceFilter* toRenderSVGResourceFilter(RenderSVGResourceConta
iner* resource) | |
99 { | |
100 ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == Fi
lterResourceType); | |
101 return static_cast<RenderSVGResourceFilter*>(resource); | |
102 } | |
103 | 93 |
104 } | 94 } |
105 | 95 |
106 #endif | 96 #endif |
OLD | NEW |