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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 ElementRareData& ensureElementRareData(); | 623 ElementRareData& ensureElementRareData(); |
624 | 624 |
625 WillBeHeapVector<RefPtrWillBeMember<Attr>>& ensureAttrNodeList(); | 625 WillBeHeapVector<RefPtrWillBeMember<Attr>>& ensureAttrNodeList(); |
626 void removeAttrNodeList(); | 626 void removeAttrNodeList(); |
627 void detachAllAttrNodesFromElement(); | 627 void detachAllAttrNodesFromElement(); |
628 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 628 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
629 void detachAttrNodeAtIndex(Attr*, size_t index); | 629 void detachAttrNodeAtIndex(Attr*, size_t index); |
630 | 630 |
631 bool isJavaScriptURLAttribute(const Attribute&) const; | 631 bool isJavaScriptURLAttribute(const Attribute&) const; |
632 | 632 |
633 v8::Handle<v8::Object> wrapCustomElement(v8::Handle<v8::Object> creationCont
ext, v8::Isolate*); | 633 v8::Handle<v8::Object> wrapCustomElement(v8::Isolate*, v8::Handle<v8::Object
> creationContext); |
634 | 634 |
635 RefPtrWillBeMember<ElementData> m_elementData; | 635 RefPtrWillBeMember<ElementData> m_elementData; |
636 }; | 636 }; |
637 | 637 |
638 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 638 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
639 template <typename T> bool isElementOfType(const Node&); | 639 template <typename T> bool isElementOfType(const Node&); |
640 template <> inline bool isElementOfType<const Element>(const Node& node) { retur
n node.isElementNode(); } | 640 template <> inline bool isElementOfType<const Element>(const Node& node) { retur
n node.isElementNode(); } |
641 template <typename T> inline bool isElementOfType(const Element& element) { retu
rn isElementOfType<T>(static_cast<const Node&>(element)); } | 641 template <typename T> inline bool isElementOfType(const Element& element) { retu
rn isElementOfType<T>(static_cast<const Node&>(element)); } |
642 template <> inline bool isElementOfType<const Element>(const Element&) { return
true; } | 642 template <> inline bool isElementOfType<const Element>(const Element&) { return
true; } |
643 | 643 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
867 { \ | 867 { \ |
868 return adoptRefWillBeNoop(new T(tagName, document)); \ | 868 return adoptRefWillBeNoop(new T(tagName, document)); \ |
869 } | 869 } |
870 | 870 |
871 } // namespace | 871 } // namespace |
872 | 872 |
873 #endif // Element_h | 873 #endif // Element_h |
OLD | NEW |