diff options
author | Feng Qian <> | 2009-04-10 18:11:29 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-10 18:11:29 -0700 |
commit | 8f72e70a9fd78eec56623b3a62e68f16b7b27e28 (patch) | |
tree | 181bf9a400c30a1bf34ea6d72560e8d00111d549 /WebCore/dom/QualifiedName.cpp | |
parent | 7ed56f225e0ade046e1c2178977f72b2d896f196 (diff) | |
download | external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.zip external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.tar.gz external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.tar.bz2 |
AI 145796: Land the WebKit merge @r42026.
Automated import of CL 145796
Diffstat (limited to 'WebCore/dom/QualifiedName.cpp')
-rw-r--r-- | WebCore/dom/QualifiedName.cpp | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/WebCore/dom/QualifiedName.cpp b/WebCore/dom/QualifiedName.cpp index f40f398..5953b97 100644 --- a/WebCore/dom/QualifiedName.cpp +++ b/WebCore/dom/QualifiedName.cpp @@ -1,7 +1,5 @@ -/** - * This file is part of the DOM implementation for KDE. - * - * Copyright (C) 2005, 2006 Apple Computer, Inc. +/* + * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -54,7 +52,6 @@ struct QNameComponentsTranslator { static QNameSet* gNameCache; QualifiedName::QualifiedName(const AtomicString& p, const AtomicString& l, const AtomicString& n) - : m_impl(0) { if (!gNameCache) gNameCache = new QNameSet; @@ -65,28 +62,6 @@ QualifiedName::QualifiedName(const AtomicString& p, const AtomicString& l, const m_impl->ref(); } -QualifiedName::~QualifiedName() -{ - deref(); -} - -QualifiedName::QualifiedName(const QualifiedName& other) -{ - m_impl = other.m_impl; - ref(); -} - -const QualifiedName& QualifiedName::operator=(const QualifiedName& other) -{ - if (m_impl != other.m_impl) { - deref(); - m_impl = other.m_impl; - ref(); - } - - return *this; -} - void QualifiedName::deref() { #ifdef QNAME_DEFAULT_CONSTRUCTOR @@ -99,12 +74,6 @@ void QualifiedName::deref() m_impl->deref(); } -void QualifiedName::setPrefix(const AtomicString& prefix) -{ - QualifiedName other(prefix, localName(), namespaceURI()); - *this = other; -} - String QualifiedName::toString() const { String local = localName(); |