OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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 * Copyright (C) 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class SVGDocumentExtensions; | 42 class SVGDocumentExtensions; |
43 class SVGElementRareData; | 43 class SVGElementRareData; |
44 class SVGFitToViewBox; | 44 class SVGFitToViewBox; |
45 class SVGSVGElement; | 45 class SVGSVGElement; |
46 | 46 |
47 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName); | 47 void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyName
ToIdMap, const QualifiedName& attrName); |
48 | 48 |
49 class SVGElement : public Element { | 49 class SVGElement : public Element { |
50 public: | 50 public: |
51 virtual ~SVGElement(); | 51 virtual ~SVGElement(); |
| 52 virtual void attach(const AttachContext&) OVERRIDE; |
| 53 virtual void detach(const AttachContext&) OVERRIDE; |
52 | 54 |
53 virtual short tabIndex() const OVERRIDE; | 55 virtual short tabIndex() const OVERRIDE; |
54 virtual bool supportsFocus() const OVERRIDE { return false; } | 56 virtual bool supportsFocus() const OVERRIDE { return false; } |
55 | 57 |
56 bool isOutermostSVGSVGElement() const; | 58 bool isOutermostSVGSVGElement() const; |
57 | 59 |
58 virtual String title() const OVERRIDE; | 60 virtual String title() const OVERRIDE; |
59 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } | 61 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } |
60 static bool isAnimatableCSSProperty(const QualifiedName&); | 62 static bool isAnimatableCSSProperty(const QualifiedName&); |
61 enum CTMScope { | 63 enum CTMScope { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } | 256 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } |
255 }; | 257 }; |
256 | 258 |
257 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); | 259 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); |
258 | 260 |
259 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } | 261 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } |
260 | 262 |
261 } | 263 } |
262 | 264 |
263 #endif | 265 #endif |
OLD | NEW |