| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 void detachAllAttrNodesFromElement(); | 661 void detachAllAttrNodesFromElement(); |
| 662 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 662 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 663 void detachAttrNodeAtIndex(Attr*, size_t index); | 663 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 664 | 664 |
| 665 bool isJavaScriptURLAttribute(const Attribute&) const; | 665 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 666 | 666 |
| 667 RefPtr<ElementData> m_elementData; | 667 RefPtr<ElementData> m_elementData; |
| 668 }; | 668 }; |
| 669 | 669 |
| 670 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 670 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| 671 template <typename T> bool isElementOfType(const Element&); |
| 672 template <typename T> inline bool isElementOfType(const Node& node) { return nod
e.isElementNode() && isElementOfType<const T>(toElement(node)); } |
| 673 template <> inline bool isElementOfType<const Element>(const Element&) { return
true; } |
| 671 | 674 |
| 672 inline bool isDisabledFormControl(const Node* node) | 675 inline bool isDisabledFormControl(const Node* node) |
| 673 { | 676 { |
| 674 return node->isElementNode() && toElement(node)->isDisabledFormControl(); | 677 return node->isElementNode() && toElement(node)->isDisabledFormControl(); |
| 675 } | 678 } |
| 676 | 679 |
| 677 inline bool Node::hasTagName(const QualifiedName& name) const | 680 inline bool Node::hasTagName(const QualifiedName& name) const |
| 678 { | 681 { |
| 679 return isElementNode() && toElement(this)->hasTagName(name); | 682 return isElementNode() && toElement(this)->hasTagName(name); |
| 680 } | 683 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 } | 858 } |
| 856 | 859 |
| 857 inline bool isShadowHost(const Element* element) | 860 inline bool isShadowHost(const Element* element) |
| 858 { | 861 { |
| 859 return element && element->shadow(); | 862 return element && element->shadow(); |
| 860 } | 863 } |
| 861 | 864 |
| 862 } // namespace | 865 } // namespace |
| 863 | 866 |
| 864 #endif | 867 #endif |
| OLD | NEW |