Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: Source/core/dom/Element.h

Issue 328243005: Remove attrNodeListMap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PS1 + minor fixes Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Attr.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Attr.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698