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 blink { | 32 namespace blink { |
33 | 33 |
34 class LayoutSVGResourceFilterPrimitive final : public LayoutSVGHiddenContainer { | 34 class LayoutSVGResourceFilterPrimitive final : public LayoutSVGHiddenContainer { |
35 public: | 35 public: |
36 explicit LayoutSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement
) | 36 explicit LayoutSVGResourceFilterPrimitive(SVGElement* filterPrimitiveElement
) |
37 : LayoutSVGHiddenContainer(filterPrimitiveElement) | 37 : LayoutSVGHiddenContainer(filterPrimitiveElement) |
38 { | 38 { |
39 } | 39 } |
40 | 40 |
41 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr
ide { return false; } | 41 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override { re
turn false; } |
42 | 42 |
43 virtual void styleDidChange(StyleDifference, const ComputedStyle*) override; | 43 void styleDidChange(StyleDifference, const ComputedStyle*) override; |
44 | 44 |
45 virtual const char* name() const override { return "LayoutSVGResourceFilterP
rimitive"; } | 45 const char* name() const override { return "LayoutSVGResourceFilterPrimitive
"; } |
46 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectSVGResourceFilterPrimitive || LayoutSVGHiddenContainer::isOfType(ty
pe); } | 46 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGResourceFilterPrimitive || LayoutSVGHiddenContainer::isOfType(type); } |
47 | 47 |
48 inline void primitiveAttributeChanged(const QualifiedName& attribute) | 48 inline void primitiveAttributeChanged(const QualifiedName& attribute) |
49 { | 49 { |
50 LayoutObject* filter = parent(); | 50 LayoutObject* filter = parent(); |
51 if (!filter || !filter->isSVGResourceFilter()) | 51 if (!filter || !filter->isSVGResourceFilter()) |
52 return; | 52 return; |
53 toLayoutSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); | 53 toLayoutSVGResourceFilter(filter)->primitiveAttributeChanged(this, attri
bute); |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 } // namespace blink | 57 } // namespace blink |
58 | 58 |
59 #endif // LayoutSVGResourceFilterPrimitive_h | 59 #endif // LayoutSVGResourceFilterPrimitive_h |
OLD | NEW |