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 13 matching lines...) Expand all Loading... |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef RenderSVGResourceFilterPrimitive_h | 27 #ifndef RenderSVGResourceFilterPrimitive_h |
28 #define RenderSVGResourceFilterPrimitive_h | 28 #define RenderSVGResourceFilterPrimitive_h |
29 | 29 |
30 #include "core/rendering/svg/RenderSVGResourceFilter.h" | 30 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 class RenderSVGResourceFilterPrimitive FINAL : public RenderSVGHiddenContainer { | 34 class RenderSVGResourceFilterPrimitive final : public RenderSVGHiddenContainer { |
35 public: | 35 public: |
36 explicit RenderSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement
) | 36 explicit RenderSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement
) |
37 : RenderSVGHiddenContainer(filterPrimitiveElement) | 37 : RenderSVGHiddenContainer(filterPrimitiveElement) |
38 { | 38 { |
39 } | 39 } |
40 | 40 |
41 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE { re
turn false; } | 41 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override { re
turn false; } |
42 | 42 |
43 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; | 43 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; |
44 | 44 |
45 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF
ilterPrimitive"; } | 45 virtual const char* renderName() const override { return "RenderSVGResourceF
ilterPrimitive"; } |
46 virtual bool isSVGResourceFilterPrimitive() const OVERRIDE { return true; } | 46 virtual bool isSVGResourceFilterPrimitive() const override { return true; } |
47 | 47 |
48 inline void primitiveAttributeChanged(const QualifiedName& attribute) | 48 inline void primitiveAttributeChanged(const QualifiedName& attribute) |
49 { | 49 { |
50 RenderObject* filter = parent(); | 50 RenderObject* filter = parent(); |
51 if (!filter || !filter->isSVGResourceFilter()) | 51 if (!filter || !filter->isSVGResourceFilter()) |
52 return; | 52 return; |
53 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); | 53 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 } // namespace blink | 57 } // namespace blink |
58 | 58 |
59 #endif // RenderSVGResourceFilterPrimitive_h | 59 #endif // RenderSVGResourceFilterPrimitive_h |
OLD | NEW |