| OLD | NEW |
| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 128 } |
| 129 bool operator!=(const QualifiedName& other) const { | 129 bool operator!=(const QualifiedName& other) const { |
| 130 return !(*this == other); | 130 return !(*this == other); |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool Matches(const QualifiedName& other) const { | 133 bool Matches(const QualifiedName& other) const { |
| 134 return impl_ == other.impl_ || (LocalName() == other.LocalName() && | 134 return impl_ == other.impl_ || (LocalName() == other.LocalName() && |
| 135 NamespaceURI() == other.NamespaceURI()); | 135 NamespaceURI() == other.NamespaceURI()); |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool MatchesPossiblyIgnoringCase(const QualifiedName& other, | 138 bool MatchesPossiblyIgnoringASCIICase(const QualifiedName& other, |
| 139 bool should_ignore_case) const { | 139 bool should_ignore_case) const { |
| 140 return impl_ == other.impl_ || | 140 return impl_ == other.impl_ || |
| 141 (EqualPossiblyIgnoringCase(LocalName(), other.LocalName(), | 141 (EqualPossiblyIgnoringASCIICase(LocalName(), other.LocalName(), |
| 142 should_ignore_case) && | 142 should_ignore_case) && |
| 143 NamespaceURI() == other.NamespaceURI()); | 143 NamespaceURI() == other.NamespaceURI()); |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool HasPrefix() const { return impl_->prefix_ != g_null_atom; } | 146 bool HasPrefix() const { return impl_->prefix_ != g_null_atom; } |
| 147 void SetPrefix(const AtomicString& prefix) { | 147 void SetPrefix(const AtomicString& prefix) { |
| 148 *this = QualifiedName(prefix, LocalName(), NamespaceURI()); | 148 *this = QualifiedName(prefix, LocalName(), NamespaceURI()); |
| 149 } | 149 } |
| 150 | 150 |
| 151 const AtomicString& Prefix() const { return impl_->prefix_; } | 151 const AtomicString& Prefix() const { return impl_->prefix_; } |
| 152 const AtomicString& LocalName() const { return impl_->local_name_; } | 152 const AtomicString& LocalName() const { return impl_->local_name_; } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 struct HashTraits<blink::QualifiedName> | 240 struct HashTraits<blink::QualifiedName> |
| 241 : SimpleClassHashTraits<blink::QualifiedName> { | 241 : SimpleClassHashTraits<blink::QualifiedName> { |
| 242 static const bool kEmptyValueIsZero = false; | 242 static const bool kEmptyValueIsZero = false; |
| 243 static const blink::QualifiedName& EmptyValue() { | 243 static const blink::QualifiedName& EmptyValue() { |
| 244 return blink::QualifiedName::Null(); | 244 return blink::QualifiedName::Null(); |
| 245 } | 245 } |
| 246 }; | 246 }; |
| 247 } // namespace WTF | 247 } // namespace WTF |
| 248 | 248 |
| 249 #endif | 249 #endif |
| OLD | NEW |