Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 71 |
| 72 protected: | 72 protected: |
| 73 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat eSVGElement); | 73 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat eSVGElement); |
| 74 | 74 |
| 75 virtual bool supportsFocus() const override { return Element::supportsFocus( ) || hasFocusEventListeners(); } | 75 virtual bool supportsFocus() const override { return Element::supportsFocus( ) || hasFocusEventListeners(); } |
| 76 | 76 |
| 77 bool isSupportedAttribute(const QualifiedName&); | 77 bool isSupportedAttribute(const QualifiedName&); |
| 78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; | 78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; |
| 79 virtual void svgAttributeChanged(const QualifiedName&) override; | 79 virtual void svgAttributeChanged(const QualifiedName&) override; |
| 80 | 80 |
| 81 static void boundsChanged(RenderObject*); | |
|
pdr.
2014/10/22 17:42:12
I don't understand the advantage of this over just
fs
2014/10/23 09:15:29
Nothing really, I was toying around/probing the sp
| |
| 82 | |
| 81 RefPtr<SVGAnimatedTransformList> m_transform; | 83 RefPtr<SVGAnimatedTransformList> m_transform; |
| 82 | 84 |
| 83 private: | 85 private: |
| 84 virtual bool isSVGGraphicsElement() const override final { return true; } | 86 virtual bool isSVGGraphicsElement() const override final { return true; } |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 inline bool isSVGGraphicsElement(const SVGElement& element) | 89 inline bool isSVGGraphicsElement(const SVGElement& element) |
| 88 { | 90 { |
| 89 return element.isSVGGraphicsElement(); | 91 return element.isSVGGraphicsElement(); |
| 90 } | 92 } |
| 91 | 93 |
| 92 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); | 94 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
| 93 | 95 |
| 94 } // namespace blink | 96 } // namespace blink |
| 95 | 97 |
| 96 #endif // SVGGraphicsElement_h | 98 #endif // SVGGraphicsElement_h |
| OLD | NEW |