| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 PassRefPtrWillBeRawPtr<Attr> getAttributeNode(const AtomicString& name); | 223 PassRefPtrWillBeRawPtr<Attr> getAttributeNode(const AtomicString& name); |
| 224 PassRefPtrWillBeRawPtr<Attr> getAttributeNodeNS(const AtomicString& namespac
eURI, const AtomicString& localName); | 224 PassRefPtrWillBeRawPtr<Attr> getAttributeNodeNS(const AtomicString& namespac
eURI, const AtomicString& localName); |
| 225 PassRefPtrWillBeRawPtr<Attr> setAttributeNode(Attr*, ExceptionState&); | 225 PassRefPtrWillBeRawPtr<Attr> setAttributeNode(Attr*, ExceptionState&); |
| 226 PassRefPtrWillBeRawPtr<Attr> setAttributeNodeNS(Attr*, ExceptionState&); | 226 PassRefPtrWillBeRawPtr<Attr> setAttributeNodeNS(Attr*, ExceptionState&); |
| 227 PassRefPtrWillBeRawPtr<Attr> removeAttributeNode(Attr*, ExceptionState&); | 227 PassRefPtrWillBeRawPtr<Attr> removeAttributeNode(Attr*, ExceptionState&); |
| 228 | 228 |
| 229 PassRefPtrWillBeRawPtr<Attr> attrIfExists(const QualifiedName&); | 229 PassRefPtrWillBeRawPtr<Attr> attrIfExists(const QualifiedName&); |
| 230 PassRefPtrWillBeRawPtr<Attr> ensureAttr(const QualifiedName&); | 230 PassRefPtrWillBeRawPtr<Attr> ensureAttr(const QualifiedName&); |
| 231 | 231 |
| 232 const WillBeHeapVector<RefPtrWillBeMember<Attr> >& attrNodeList(); | 232 WillBeHeapVector<RefPtrWillBeMember<Attr> >* attrNodeList(); |
| 233 | 233 |
| 234 CSSStyleDeclaration* style(); | 234 CSSStyleDeclaration* style(); |
| 235 | 235 |
| 236 const QualifiedName& tagQName() const { return m_tagName; } | 236 const QualifiedName& tagQName() const { return m_tagName; } |
| 237 String tagName() const { return nodeName(); } | 237 String tagName() const { return nodeName(); } |
| 238 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match
es(tagName); } | 238 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match
es(tagName); } |
| 239 | 239 |
| 240 // Should be called only by Document::createElementNS to fix up m_tagName im
mediately after construction. | 240 // Should be called only by Document::createElementNS to fix up m_tagName im
mediately after construction. |
| 241 void setTagNameForCreateElementNS(const QualifiedName&); | 241 void setTagNameForCreateElementNS(const QualifiedName&); |
| 242 | 242 |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); | 635 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); |
| 636 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); | 636 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); |
| 637 | 637 |
| 638 void createUniqueElementData(); | 638 void createUniqueElementData(); |
| 639 | 639 |
| 640 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 640 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
| 641 | 641 |
| 642 ElementRareData* elementRareData() const; | 642 ElementRareData* elementRareData() const; |
| 643 ElementRareData& ensureElementRareData(); | 643 ElementRareData& ensureElementRareData(); |
| 644 | 644 |
| 645 WillBeHeapVector<RefPtrWillBeMember<Attr> >& ensureAttrNodeList(); |
| 646 void removeAttrNodeList(); |
| 645 void detachAllAttrNodesFromElement(); | 647 void detachAllAttrNodesFromElement(); |
| 646 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 648 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 647 void detachAttrNodeAtIndex(Attr*, size_t index); | 649 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 648 | 650 |
| 649 bool isJavaScriptURLAttribute(const Attribute&) const; | 651 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 650 | 652 |
| 651 RefPtr<ElementData> m_elementData; | 653 RefPtr<ElementData> m_elementData; |
| 652 }; | 654 }; |
| 653 | 655 |
| 654 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 656 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 887 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 886 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 888 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 887 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 889 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 888 { \ | 890 { \ |
| 889 return adoptRefWillBeNoop(new T(tagName, document)); \ | 891 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 890 } | 892 } |
| 891 | 893 |
| 892 } // namespace | 894 } // namespace |
| 893 | 895 |
| 894 #endif | 896 #endif |
| OLD | NEW |