OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 University of Szeged | 2 * Copyright (C) 2010 University of Szeged |
3 * Copyright (C) 2010 Zoltan Herczeg | 3 * Copyright (C) 2010 Zoltan Herczeg |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool isSVGResourceFilterPrimitive() const { return true; } | 46 virtual bool isSVGResourceFilterPrimitive() const { return true; } |
47 | 47 |
48 // They depend on the RenderObject argument of RenderSVGResourceFilter::appl
yResource. | 48 // They depend on the RenderObject argument of RenderSVGResourceFilter::appl
yResource. |
49 static FloatRect determineFilterPrimitiveSubregion(FilterEffect*); | 49 static FloatRect determineFilterPrimitiveSubregion(FilterEffect*); |
50 | 50 |
51 inline void primitiveAttributeChanged(const QualifiedName& attribute) | 51 inline void primitiveAttributeChanged(const QualifiedName& attribute) |
52 { | 52 { |
53 RenderObject* filter = parent(); | 53 RenderObject* filter = parent(); |
54 if (!filter || !filter->isSVGResourceFilter()) | 54 if (!filter || !filter->isSVGResourceFilter()) |
55 return; | 55 return; |
56 static_cast<RenderSVGResourceFilter*>(filter)->primitiveAttributeChanged
(this, attribute); | 56 toRenderSVGResourceFilter(filter->toRenderSVGResourceContainer())->primi
tiveAttributeChanged(this, attribute); |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 } // namespace WebCore | 60 } // namespace WebCore |
61 | 61 |
62 #endif // RenderSVGResourceFilterPrimitive_h | 62 #endif // RenderSVGResourceFilterPrimitive_h |
OLD | NEW |