Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Side by Side Diff: Source/core/svg/SVGGradientElement.h

Issue 166163005: [SVG2] Add tabindex handling in svg. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: let form controls override tabindex() Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat, 49 SVG_SPREADMETHOD_REFLECT = SVGSpreadMethodRepeat,
50 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown 50 SVG_SPREADMETHOD_REPEAT = SVGSpreadMethodUnknown
51 }; 51 };
52 52
53 Vector<Gradient::ColorStop> buildStops(); 53 Vector<Gradient::ColorStop> buildStops();
54 54
55 SVGAnimatedTransformList* gradientTransform() { return m_gradientTransform.g et(); } 55 SVGAnimatedTransformList* gradientTransform() { return m_gradientTransform.g et(); }
56 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { return m_sprea dMethod.get(); } 56 SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { return m_sprea dMethod.get(); }
57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { return m_gradientUnits.get(); } 57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { return m_gradientUnits.get(); }
58 58
59 virtual bool supportsFocus() const OVERRIDE { return false; }
60
59 protected: 61 protected:
60 SVGGradientElement(const QualifiedName&, Document&); 62 SVGGradientElement(const QualifiedName&, Document&);
61 63
62 bool isSupportedAttribute(const QualifiedName&); 64 bool isSupportedAttribute(const QualifiedName&);
63 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 65 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
64 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 66 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
65 67
66 private: 68 private:
67 virtual bool needsPendingResourceHandling() const OVERRIDE FINAL { return fa lse; } 69 virtual bool needsPendingResourceHandling() const OVERRIDE FINAL { return fa lse; }
68 70
69 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE FINAL; 71 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE FINAL;
70 72
71 RefPtr<SVGAnimatedTransformList> m_gradientTransform; 73 RefPtr<SVGAnimatedTransformList> m_gradientTransform;
72 RefPtr<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod; 74 RefPtr<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod;
73 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits; 75 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits;
74 }; 76 };
75 77
76 inline bool isSVGGradientElement(const Node& node) 78 inline bool isSVGGradientElement(const Node& node)
77 { 79 {
78 return node.hasTagName(SVGNames::radialGradientTag) || node.hasTagName(SVGNa mes::linearGradientTag); 80 return node.hasTagName(SVGNames::radialGradientTag) || node.hasTagName(SVGNa mes::linearGradientTag);
79 } 81 }
80 82
81 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); 83 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement);
82 84
83 } // namespace WebCore 85 } // namespace WebCore
84 86
85 #endif 87 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698