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

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

Issue 15622005: Introduce LiteralSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaned Created 7 years, 7 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void createQualifiedName(void* targetAddress, StringImpl* name, const AtomicStri ng& nameNamespace) 167 void createQualifiedName(void* targetAddress, StringImpl* name, const AtomicStri ng& nameNamespace)
168 { 168 {
169 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS tring(name), nameNamespace); 169 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS tring(name), nameNamespace);
170 } 170 }
171 171
172 void createQualifiedName(void* targetAddress, StringImpl* name) 172 void createQualifiedName(void* targetAddress, StringImpl* name)
173 { 173 {
174 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS tring(name), nullAtom); 174 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS tring(name), nullAtom);
175 } 175 }
176 176
177 bool lessThanByImplAddress(const QualifiedName* const& a, const QualifiedName* c onst& b)
178 {
179 return a->impl() < b->impl();
177 } 180 }
181
182 bool lessThanByLocalNameImplAddress(const QualifiedName* const& a, const Qualifi edName* const& b)
183 {
184 return a->localName().impl() < b->localName().impl();
185 }
186
187 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698