| 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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 ElementRareData& ensureElementRareData(); | 647 ElementRareData& ensureElementRareData(); |
| 648 | 648 |
| 649 WillBeHeapVector<RefPtrWillBeMember<Attr>>& ensureAttrNodeList(); | 649 WillBeHeapVector<RefPtrWillBeMember<Attr>>& ensureAttrNodeList(); |
| 650 void removeAttrNodeList(); | 650 void removeAttrNodeList(); |
| 651 void detachAllAttrNodesFromElement(); | 651 void detachAllAttrNodesFromElement(); |
| 652 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 652 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 653 void detachAttrNodeAtIndex(Attr*, size_t index); | 653 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 654 | 654 |
| 655 bool isJavaScriptURLAttribute(const Attribute&) const; | 655 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 656 | 656 |
| 657 v8::Handle<v8::Object> wrapCustomElement(v8::Isolate*, v8::Handle<v8::Object
> creationContext); | 657 v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object>
creationContext); |
| 658 | 658 |
| 659 RefPtrWillBeMember<ElementData> m_elementData; | 659 RefPtrWillBeMember<ElementData> m_elementData; |
| 660 }; | 660 }; |
| 661 | 661 |
| 662 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 662 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| 663 template <typename T> bool isElementOfType(const Node&); | 663 template <typename T> bool isElementOfType(const Node&); |
| 664 template <> inline bool isElementOfType<const Element>(const Node& node) { retur
n node.isElementNode(); } | 664 template <> inline bool isElementOfType<const Element>(const Node& node) { retur
n node.isElementNode(); } |
| 665 template <typename T> inline bool isElementOfType(const Element& element) { retu
rn isElementOfType<T>(static_cast<const Node&>(element)); } | 665 template <typename T> inline bool isElementOfType(const Element& element) { retu
rn isElementOfType<T>(static_cast<const Node&>(element)); } |
| 666 template <> inline bool isElementOfType<const Element>(const Element&) { return
true; } | 666 template <> inline bool isElementOfType<const Element>(const Element&) { return
true; } |
| 667 | 667 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 888 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 889 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 889 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 890 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 890 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 891 { \ | 891 { \ |
| 892 return adoptRefWillBeNoop(new T(tagName, document)); \ | 892 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 893 } | 893 } |
| 894 | 894 |
| 895 } // namespace | 895 } // namespace |
| 896 | 896 |
| 897 #endif // Element_h | 897 #endif // Element_h |
| OLD | NEW |