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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
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 void styleDidChange(StyleDifference, const RenderStyle*); | 41 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; |
42 | 42 |
43 virtual const char* renderName() const { return "RenderSVGResourceFilterPrim
itive"; } | 43 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF
ilterPrimitive"; } |
44 virtual bool isSVGResourceFilterPrimitive() const { return true; } | 44 virtual bool isSVGResourceFilterPrimitive() const OVERRIDE { return true; } |
45 | 45 |
46 inline void primitiveAttributeChanged(const QualifiedName& attribute) | 46 inline void primitiveAttributeChanged(const QualifiedName& attribute) |
47 { | 47 { |
48 RenderObject* filter = parent(); | 48 RenderObject* filter = parent(); |
49 if (!filter || !filter->isSVGResourceFilter()) | 49 if (!filter || !filter->isSVGResourceFilter()) |
50 return; | 50 return; |
51 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); | 51 toRenderSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); |
52 } | 52 } |
53 }; | 53 }; |
54 | 54 |
55 } // namespace WebCore | 55 } // namespace WebCore |
56 | 56 |
57 #endif // RenderSVGResourceFilterPrimitive_h | 57 #endif // RenderSVGResourceFilterPrimitive_h |
OLD | NEW |