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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 bool operator==(const QualifiedName& other) const { 124 bool operator==(const QualifiedName& other) const {
125 return m_impl == other.m_impl; 125 return m_impl == other.m_impl;
126 } 126 }
127 bool operator!=(const QualifiedName& other) const { 127 bool operator!=(const QualifiedName& other) const {
128 return !(*this == other); 128 return !(*this == other);
129 } 129 }
130 130
131 bool matches(const QualifiedName& other) const { 131 bool matches(const QualifiedName& other) const {
132 return m_impl == other.m_impl || (localName() == other.localName() && 132 return m_impl == other.m_impl ||
133 namespaceURI() == other.namespaceURI()); 133 (localName() == other.localName() &&
134 namespaceURI() == other.namespaceURI());
134 } 135 }
135 136
136 bool matchesPossiblyIgnoringCase(const QualifiedName& other, 137 bool matchesPossiblyIgnoringCase(const QualifiedName& other,
137 bool shouldIgnoreCase) const { 138 bool shouldIgnoreCase) const {
138 return m_impl == other.m_impl || 139 return m_impl == other.m_impl ||
139 (equalPossiblyIgnoringCase(localName(), other.localName(), 140 (equalPossiblyIgnoringCase(localName(), other.localName(),
140 shouldIgnoreCase) && 141 shouldIgnoreCase) &&
141 namespaceURI() == other.namespaceURI()); 142 namespaceURI() == other.namespaceURI());
142 } 143 }
143 144
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 struct HashTraits<blink::QualifiedName> 237 struct HashTraits<blink::QualifiedName>
237 : SimpleClassHashTraits<blink::QualifiedName> { 238 : SimpleClassHashTraits<blink::QualifiedName> {
238 static const bool emptyValueIsZero = false; 239 static const bool emptyValueIsZero = false;
239 static blink::QualifiedName emptyValue() { 240 static blink::QualifiedName emptyValue() {
240 return blink::QualifiedName::null(); 241 return blink::QualifiedName::null();
241 } 242 }
242 }; 243 };
243 } // namespace WTF 244 } // namespace WTF
244 245
245 #endif 246 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698