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

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

Issue 27519002: Have Node::ensureRareData() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/Document.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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); 775 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName);
776 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); 776 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName);
777 777
778 void unregisterNamedFlowContentNode(); 778 void unregisterNamedFlowContentNode();
779 779
780 void createUniqueElementData(); 780 void createUniqueElementData();
781 781
782 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); 782 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
783 783
784 ElementRareData* elementRareData() const; 784 ElementRareData* elementRareData() const;
785 ElementRareData* ensureElementRareData(); 785 ElementRareData& ensureElementRareData();
786 786
787 void detachAllAttrNodesFromElement(); 787 void detachAllAttrNodesFromElement();
788 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); 788 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
789 void detachAttrNodeAtIndex(Attr*, size_t index); 789 void detachAttrNodeAtIndex(Attr*, size_t index);
790 790
791 bool isJavaScriptURLAttribute(const Attribute&) const; 791 bool isJavaScriptURLAttribute(const Attribute&) const;
792 792
793 RefPtr<ElementData> m_elementData; 793 RefPtr<ElementData> m_elementData;
794 }; 794 };
795 795
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1062
1063 inline const Attribute* ElementData::attributeItem(unsigned index) const 1063 inline const Attribute* ElementData::attributeItem(unsigned index) const
1064 { 1064 {
1065 RELEASE_ASSERT(index < length()); 1065 RELEASE_ASSERT(index < length());
1066 return attributeBase() + index; 1066 return attributeBase() + index;
1067 } 1067 }
1068 1068
1069 } // namespace 1069 } // namespace
1070 1070
1071 #endif 1071 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698