| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 return 0; | 880 return 0; |
| 881 newElement->appendChild(newChild.release(), es); | 881 newElement->appendChild(newChild.release(), es); |
| 882 if (es.hadException()) | 882 if (es.hadException()) |
| 883 return 0; | 883 return 0; |
| 884 } | 884 } |
| 885 } | 885 } |
| 886 | 886 |
| 887 return newElement.release(); | 887 return newElement.release(); |
| 888 } | 888 } |
| 889 case ATTRIBUTE_NODE: | 889 case ATTRIBUTE_NODE: |
| 890 return Attr::create(this, QualifiedName(nullAtom, toAttr(importedNode)->
name(), nullAtom), toAttr(importedNode)->value()); | 890 return Attr::create(*this, QualifiedName(nullAtom, toAttr(importedNode)-
>name(), nullAtom), toAttr(importedNode)->value()); |
| 891 case DOCUMENT_FRAGMENT_NODE: { | 891 case DOCUMENT_FRAGMENT_NODE: { |
| 892 if (importedNode->isShadowRoot()) { | 892 if (importedNode->isShadowRoot()) { |
| 893 // ShadowRoot nodes should not be explicitly importable. | 893 // ShadowRoot nodes should not be explicitly importable. |
| 894 // Either they are imported along with their host node, or created i
mplicitly. | 894 // Either they are imported along with their host node, or created i
mplicitly. |
| 895 break; | 895 break; |
| 896 } | 896 } |
| 897 DocumentFragment* oldFragment = static_cast<DocumentFragment*>(importedN
ode); | 897 DocumentFragment* oldFragment = static_cast<DocumentFragment*>(importedN
ode); |
| 898 RefPtr<DocumentFragment> newFragment = createDocumentFragment(); | 898 RefPtr<DocumentFragment> newFragment = createDocumentFragment(); |
| 899 if (deep) { | 899 if (deep) { |
| 900 for (Node* oldChild = oldFragment->firstChild(); oldChild; oldChild
= oldChild->nextSibling()) { | 900 for (Node* oldChild = oldFragment->firstChild(); oldChild; oldChild
= oldChild->nextSibling()) { |
| (...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4329 if (!parseQualifiedName(qualifiedName, prefix, localName, es)) | 4329 if (!parseQualifiedName(qualifiedName, prefix, localName, es)) |
| 4330 return 0; | 4330 return 0; |
| 4331 | 4331 |
| 4332 QualifiedName qName(prefix, localName, namespaceURI); | 4332 QualifiedName qName(prefix, localName, namespaceURI); |
| 4333 | 4333 |
| 4334 if (!shouldIgnoreNamespaceChecks && !hasValidNamespaceForAttributes(qName))
{ | 4334 if (!shouldIgnoreNamespaceChecks && !hasValidNamespaceForAttributes(qName))
{ |
| 4335 es.throwDOMException(NamespaceError); | 4335 es.throwDOMException(NamespaceError); |
| 4336 return 0; | 4336 return 0; |
| 4337 } | 4337 } |
| 4338 | 4338 |
| 4339 return Attr::create(this, qName, emptyString()); | 4339 return Attr::create(*this, qName, emptyString()); |
| 4340 } | 4340 } |
| 4341 | 4341 |
| 4342 const SVGDocumentExtensions* Document::svgExtensions() | 4342 const SVGDocumentExtensions* Document::svgExtensions() |
| 4343 { | 4343 { |
| 4344 return m_svgExtensions.get(); | 4344 return m_svgExtensions.get(); |
| 4345 } | 4345 } |
| 4346 | 4346 |
| 4347 SVGDocumentExtensions* Document::accessSVGExtensions() | 4347 SVGDocumentExtensions* Document::accessSVGExtensions() |
| 4348 { | 4348 { |
| 4349 if (!m_svgExtensions) | 4349 if (!m_svgExtensions) |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5451 { | 5451 { |
| 5452 return DocumentLifecycleNotifier::create(this); | 5452 return DocumentLifecycleNotifier::create(this); |
| 5453 } | 5453 } |
| 5454 | 5454 |
| 5455 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5455 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5456 { | 5456 { |
| 5457 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5457 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
| 5458 } | 5458 } |
| 5459 | 5459 |
| 5460 } // namespace WebCore | 5460 } // namespace WebCore |
| OLD | NEW |