| 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 30 matching lines...) Expand all Loading... |
| 41 class SVGCursorElement; | 41 class SVGCursorElement; |
| 42 class SVGDocumentExtensions; | 42 class SVGDocumentExtensions; |
| 43 class SVGElementInstance; | 43 class SVGElementInstance; |
| 44 class SVGElementRareData; | 44 class SVGElementRareData; |
| 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, public SVGLangSpace { | 49 class SVGElement : public Element, public SVGLangSpace { |
| 50 public: | 50 public: |
| 51 static PassRefPtr<SVGElement> create(const QualifiedName&, Document*); | |
| 52 virtual ~SVGElement(); | 51 virtual ~SVGElement(); |
| 53 | 52 |
| 54 bool isOutermostSVGSVGElement() const; | 53 bool isOutermostSVGSVGElement() const; |
| 55 | 54 |
| 56 virtual String title() const; | 55 virtual String title() const; |
| 57 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } | 56 bool hasRelativeLengths() const { return !m_elementsWithRelativeLengths.isEm
pty(); } |
| 58 virtual bool supportsMarkers() const { return false; } | 57 virtual bool supportsMarkers() const { return false; } |
| 59 PassRefPtr<CSSValue> getPresentationAttribute(const String& name); | 58 PassRefPtr<CSSValue> getPresentationAttribute(const String& name); |
| 60 bool isKnownAttribute(const QualifiedName&); | 59 bool isKnownAttribute(const QualifiedName&); |
| 61 static bool isAnimatableCSSProperty(const QualifiedName&); | 60 static bool isAnimatableCSSProperty(const QualifiedName&); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 void setUseOverrideComputedStyle(bool); | 127 void setUseOverrideComputedStyle(bool); |
| 129 | 128 |
| 130 virtual bool haveLoadedRequiredResources(); | 129 virtual bool haveLoadedRequiredResources(); |
| 131 | 130 |
| 132 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture) OVERRIDE; | 131 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture) OVERRIDE; |
| 133 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture) OVERRIDE; | 132 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture) OVERRIDE; |
| 134 | 133 |
| 135 virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE; | 134 virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE; |
| 136 | 135 |
| 137 protected: | 136 protected: |
| 138 SVGElement(const QualifiedName&, Document*, ConstructionType = CreateSVGElem
ent); | 137 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); |
| 139 | 138 |
| 140 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 139 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 141 | 140 |
| 142 virtual void finishParsingChildren(); | 141 virtual void finishParsingChildren(); |
| 143 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; | 142 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; |
| 144 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV
ERRIDE; | 143 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV
ERRIDE; |
| 145 | 144 |
| 146 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 145 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 147 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 146 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 148 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; | 147 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 208 |
| 210 inline const SVGElement* toSVGElement(const Node* node) | 209 inline const SVGElement* toSVGElement(const Node* node) |
| 211 { | 210 { |
| 212 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); | 211 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
| 213 return static_cast<const SVGElement*>(node); | 212 return static_cast<const SVGElement*>(node); |
| 214 } | 213 } |
| 215 | 214 |
| 216 } | 215 } |
| 217 | 216 |
| 218 #endif | 217 #endif |
| OLD | NEW |