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

Side by Side Diff: third_party/WebKit/Source/core/dom/QualifiedName.cpp

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 QualifiedName::QualifiedNameImpl::~QualifiedNameImpl() 87 QualifiedName::QualifiedNameImpl::~QualifiedNameImpl()
88 { 88 {
89 qualifiedNameCache().remove(this); 89 qualifiedNameCache().remove(this);
90 } 90 }
91 91
92 String QualifiedName::toString() const 92 String QualifiedName::toString() const
93 { 93 {
94 String local = localName(); 94 String local = localName();
95 if (hasPrefix()) 95 if (hasPrefix())
96 return prefix().string() + ":" + local; 96 return prefix().getString() + ":" + local;
97 return local; 97 return local;
98 } 98 }
99 99
100 // Global init routines 100 // Global init routines
101 DEFINE_GLOBAL(QualifiedName, anyName, nullAtom, starAtom, starAtom) 101 DEFINE_GLOBAL(QualifiedName, anyName, nullAtom, starAtom, starAtom)
102 DEFINE_GLOBAL(QualifiedName, nullName, nullAtom, nullAtom, nullAtom) 102 DEFINE_GLOBAL(QualifiedName, nullName, nullAtom, nullAtom, nullAtom)
103 103
104 void QualifiedName::initAndReserveCapacityForSize(unsigned size) 104 void QualifiedName::initAndReserveCapacityForSize(unsigned size)
105 { 105 {
106 ASSERT(starAtom.impl()); 106 ASSERT(starAtom.impl());
(...skipping 24 matching lines...) Expand all
131 { 131 {
132 new (targetAddress) QualifiedName(nullAtom, AtomicString(name), nameNamespac e, true); 132 new (targetAddress) QualifiedName(nullAtom, AtomicString(name), nameNamespac e, true);
133 } 133 }
134 134
135 void QualifiedName::createStatic(void* targetAddress, StringImpl* name) 135 void QualifiedName::createStatic(void* targetAddress, StringImpl* name)
136 { 136 {
137 new (targetAddress) QualifiedName(nullAtom, AtomicString(name), nullAtom, tr ue); 137 new (targetAddress) QualifiedName(nullAtom, AtomicString(name), nullAtom, tr ue);
138 } 138 }
139 139
140 } // namespace blink 140 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/SpaceSplitString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698