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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGGraphicsElement.h

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Updated expectations Created 4 years, 1 month 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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2014 Google, Inc. 4 * Copyright (C) 2014 Google, Inc.
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 protected: 78 protected:
79 SVGGraphicsElement(const QualifiedName&, 79 SVGGraphicsElement(const QualifiedName&,
80 Document&, 80 Document&,
81 ConstructionType = CreateSVGElement); 81 ConstructionType = CreateSVGElement);
82 82
83 bool supportsFocus() const override { 83 bool supportsFocus() const override {
84 return Element::supportsFocus() || hasFocusEventListeners(); 84 return Element::supportsFocus() || hasFocusEventListeners();
85 } 85 }
86 86
87 void collectStyleForPresentationAttribute(const QualifiedName&,
88 const AtomicString&,
89 MutableStylePropertySet*) override;
87 void svgAttributeChanged(const QualifiedName&) override; 90 void svgAttributeChanged(const QualifiedName&) override;
88 91
89 Member<SVGAnimatedTransformList> m_transform; 92 Member<SVGAnimatedTransformList> m_transform;
90 93
91 private: 94 private:
92 bool isSVGGraphicsElement() const final { return true; } 95 bool isSVGGraphicsElement() const final { return true; }
93 }; 96 };
94 97
95 inline bool isSVGGraphicsElement(const SVGElement& element) { 98 inline bool isSVGGraphicsElement(const SVGElement& element) {
96 return element.isSVGGraphicsElement(); 99 return element.isSVGGraphicsElement();
97 } 100 }
98 101
99 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); 102 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement);
100 103
101 } // namespace blink 104 } // namespace blink
102 105
103 #endif // SVGGraphicsElement_h 106 #endif // SVGGraphicsElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698