OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 18 matching lines...) Expand all Loading... | |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class LayoutObject; | 32 class LayoutObject; |
33 | 33 |
34 class SVGClipPathElement final : public SVGGraphicsElement { | 34 class SVGClipPathElement final : public SVGGraphicsElement { |
35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
36 | 36 |
37 public: | 37 public: |
38 DECLARE_NODE_FACTORY(SVGClipPathElement); | 38 DECLARE_NODE_FACTORY(SVGClipPathElement); |
39 | |
40 enum { | |
41 kSvgUnitTypeUnknown = SVGUnitTypes::kSvgUnitTypeUnknown, | |
foolip
2016/10/17 12:09:54
If the enum is moved from SVGUnitTypes.h to the mo
fs
2016/10/17 12:40:21
That ought to do it from a scoping perspective, ye
| |
42 kSvgUnitTypeUserspaceonuse = SVGUnitTypes::kSvgUnitTypeUserspaceonuse, | |
43 kSvgUnitTypeObjectboundingbox = SVGUnitTypes::kSvgUnitTypeObjectboundingbox | |
44 }; | |
45 | |
39 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* clipPathUnits() { | 46 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* clipPathUnits() { |
40 return m_clipPathUnits.get(); | 47 return m_clipPathUnits.get(); |
41 } | 48 } |
42 | 49 |
43 bool supportsFocus() const override { return false; } | 50 bool supportsFocus() const override { return false; } |
44 | 51 |
45 DECLARE_VIRTUAL_TRACE(); | 52 DECLARE_VIRTUAL_TRACE(); |
46 | 53 |
47 private: | 54 private: |
48 explicit SVGClipPathElement(Document&); | 55 explicit SVGClipPathElement(Document&); |
49 | 56 |
50 bool needsPendingResourceHandling() const override { return false; } | 57 bool needsPendingResourceHandling() const override { return false; } |
51 | 58 |
52 void svgAttributeChanged(const QualifiedName&) override; | 59 void svgAttributeChanged(const QualifiedName&) override; |
53 void childrenChanged(const ChildrenChange&) override; | 60 void childrenChanged(const ChildrenChange&) override; |
54 | 61 |
55 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 62 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
56 | 63 |
57 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_clipPathUnits; | 64 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_clipPathUnits; |
58 }; | 65 }; |
59 | 66 |
60 } // namespace blink | 67 } // namespace blink |
61 | 68 |
62 #endif // SVGClipPathElement_h | 69 #endif // SVGClipPathElement_h |
OLD | NEW |