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 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 static PassRefPtr<SVGGElement> create(const QualifiedName&, Document*); | 33 static PassRefPtr<SVGGElement> create(const QualifiedName&, Document*); |
34 | 34 |
35 protected: | 35 protected: |
36 SVGGElement(const QualifiedName&, Document*, ConstructionType = CreateSVGEle
ment); | 36 SVGGElement(const QualifiedName&, Document*, ConstructionType = CreateSVGEle
ment); |
37 | 37 |
38 virtual RenderObject* createRenderer(RenderStyle*); | 38 virtual RenderObject* createRenderer(RenderStyle*); |
39 | 39 |
40 private: | 40 private: |
41 virtual bool isValid() const { return SVGTests::isValid(); } | 41 virtual bool isValid() const { return SVGTests::isValid(); } |
42 virtual bool supportsFocus() const { return true; } | 42 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
43 | 43 |
44 bool isSupportedAttribute(const QualifiedName&); | 44 bool isSupportedAttribute(const QualifiedName&); |
45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
46 virtual void svgAttributeChanged(const QualifiedName&); | 46 virtual void svgAttributeChanged(const QualifiedName&); |
47 | 47 |
48 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 48 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
49 | 49 |
50 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGElement) | 50 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGElement) |
51 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 51 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
52 END_DECLARE_ANIMATED_PROPERTIES | 52 END_DECLARE_ANIMATED_PROPERTIES |
53 }; | 53 }; |
54 | 54 |
55 } // namespace WebCore | 55 } // namespace WebCore |
56 | 56 |
57 #endif | 57 #endif |
OLD | NEW |