| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |