| 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, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009, 2014 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 DEFINE_WRAPPERTYPEINFO(); | 51 DEFINE_WRAPPERTYPEINFO(); |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 ~SVGElement() override; | 54 ~SVGElement() override; |
| 55 void attachLayoutTree(const AttachContext&) override; | 55 void attachLayoutTree(const AttachContext&) override; |
| 56 void detachLayoutTree(const AttachContext&) override; | 56 void detachLayoutTree(const AttachContext&) override; |
| 57 | 57 |
| 58 int tabIndex() const override; | 58 int tabIndex() const override; |
| 59 bool supportsFocus() const override { return false; } | 59 bool supportsFocus() const override { return false; } |
| 60 | 60 |
| 61 // The TreeScope this element should resolve id's against. This differs from |
| 62 // the regular Node::treeScope() by taking <use> into account. |
| 63 TreeScope& treeScopeForIdResolution() const; |
| 64 |
| 61 bool isOutermostSVGSVGElement() const; | 65 bool isOutermostSVGSVGElement() const; |
| 62 | 66 |
| 63 bool hasTagName(const SVGQualifiedName& name) const { | 67 bool hasTagName(const SVGQualifiedName& name) const { |
| 64 return hasLocalName(name.localName()); | 68 return hasLocalName(name.localName()); |
| 65 } | 69 } |
| 66 | 70 |
| 67 String title() const override; | 71 String title() const override; |
| 68 bool hasRelativeLengths() const { | 72 bool hasRelativeLengths() const { |
| 69 return !m_elementsWithRelativeLengths.isEmpty(); | 73 return !m_elementsWithRelativeLengths.isEmpty(); |
| 70 } | 74 } |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ | 334 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ |
| 331 return is##thisType(element); \ | 335 return is##thisType(element); \ |
| 332 } \ | 336 } \ |
| 333 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 337 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 334 | 338 |
| 335 } // namespace blink | 339 } // namespace blink |
| 336 | 340 |
| 337 #include "core/SVGElementTypeHelpers.h" | 341 #include "core/SVGElementTypeHelpers.h" |
| 338 | 342 |
| 339 #endif // SVGElement_h | 343 #endif // SVGElement_h |
| OLD | NEW |