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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 m_customElementDefinition = definition; 150 m_customElementDefinition = definition;
151 } 151 }
152 CustomElementDefinition* customElementDefinition() const { 152 CustomElementDefinition* customElementDefinition() const {
153 return m_customElementDefinition.get(); 153 return m_customElementDefinition.get();
154 } 154 }
155 155
156 AttrNodeList& ensureAttrNodeList(); 156 AttrNodeList& ensureAttrNodeList();
157 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } 157 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); }
158 void removeAttrNodeList() { m_attrNodeList.clear(); } 158 void removeAttrNodeList() { m_attrNodeList.clear(); }
159 void addAttr(Attr* attr) { 159 void addAttr(Attr* attr) {
160 ensureAttrNodeList().append(attr); 160 ensureAttrNodeList().push_back(attr);
161 ScriptWrappableVisitor::writeBarrier(this, attr); 161 ScriptWrappableVisitor::writeBarrier(this, attr);
162 } 162 }
163 163
164 ElementIntersectionObserverData* intersectionObserverData() const { 164 ElementIntersectionObserverData* intersectionObserverData() const {
165 return m_intersectionObserverData.get(); 165 return m_intersectionObserverData.get();
166 } 166 }
167 ElementIntersectionObserverData& ensureIntersectionObserverData() { 167 ElementIntersectionObserverData& ensureIntersectionObserverData() {
168 if (!m_intersectionObserverData) { 168 if (!m_intersectionObserverData) {
169 m_intersectionObserverData = new ElementIntersectionObserverData(); 169 m_intersectionObserverData = new ElementIntersectionObserverData();
170 ScriptWrappableVisitor::writeBarrier(this, m_intersectionObserverData); 170 ScriptWrappableVisitor::writeBarrier(this, m_intersectionObserverData);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 inline CompositorProxiedPropertySet& 267 inline CompositorProxiedPropertySet&
268 ElementRareData::ensureCompositorProxiedPropertySet() { 268 ElementRareData::ensureCompositorProxiedPropertySet() {
269 if (!m_proxiedProperties) 269 if (!m_proxiedProperties)
270 m_proxiedProperties = CompositorProxiedPropertySet::create(); 270 m_proxiedProperties = CompositorProxiedPropertySet::create();
271 return *m_proxiedProperties; 271 return *m_proxiedProperties;
272 } 272 }
273 273
274 } // namespace blink 274 } // namespace blink
275 275
276 #endif // ElementRareData_h 276 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698