| 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 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1883 | 1883 |
| 1884 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); | 1884 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); |
| 1885 | 1885 |
| 1886 attrNode->attachToElement(this); | 1886 attrNode->attachToElement(this); |
| 1887 treeScope().adoptIfNeeded(*attrNode); | 1887 treeScope().adoptIfNeeded(*attrNode); |
| 1888 ensureAttrNodeListForElement(this).append(attrNode); | 1888 ensureAttrNodeListForElement(this).append(attrNode); |
| 1889 | 1889 |
| 1890 return oldAttrNode.release(); | 1890 return oldAttrNode.release(); |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionState& excepti
onState) |
| 1894 { |
| 1895 return setAttributeNode(attr, exceptionState); |
| 1896 } |
| 1897 |
| 1893 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) | 1898 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) |
| 1894 { | 1899 { |
| 1895 if (!attr) { | 1900 if (!attr) { |
| 1896 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Attr")); | 1901 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Attr")); |
| 1897 return nullptr; | 1902 return nullptr; |
| 1898 } | 1903 } |
| 1899 if (attr->ownerElement() != this) { | 1904 if (attr->ownerElement() != this) { |
| 1900 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); | 1905 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); |
| 1901 return nullptr; | 1906 return nullptr; |
| 1902 } | 1907 } |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3268 || isHTMLObjectElement(*this) | 3273 || isHTMLObjectElement(*this) |
| 3269 || isHTMLAppletElement(*this) | 3274 || isHTMLAppletElement(*this) |
| 3270 || isHTMLCanvasElement(*this)) | 3275 || isHTMLCanvasElement(*this)) |
| 3271 return false; | 3276 return false; |
| 3272 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3277 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3273 return false; | 3278 return false; |
| 3274 return true; | 3279 return true; |
| 3275 } | 3280 } |
| 3276 | 3281 |
| 3277 } // namespace WebCore | 3282 } // namespace WebCore |
| OLD | NEW |