| 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 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2014 | 2014 |
| 2015 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); | 2015 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); |
| 2016 | 2016 |
| 2017 attrNode->attachToElement(this); | 2017 attrNode->attachToElement(this); |
| 2018 treeScope().adoptIfNeeded(*attrNode); | 2018 treeScope().adoptIfNeeded(*attrNode); |
| 2019 ensureAttrNodeListForElement(this).append(attrNode); | 2019 ensureAttrNodeListForElement(this).append(attrNode); |
| 2020 | 2020 |
| 2021 return oldAttrNode.release(); | 2021 return oldAttrNode.release(); |
| 2022 } | 2022 } |
| 2023 | 2023 |
| 2024 PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionState& excepti
onState) | |
| 2025 { | |
| 2026 return setAttributeNode(attr, exceptionState); | |
| 2027 } | |
| 2028 | |
| 2029 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) | 2024 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) |
| 2030 { | 2025 { |
| 2031 if (!attr) { | 2026 if (!attr) { |
| 2032 exceptionState.throwDOMException(TypeMismatchError, "The node provided i
s invalid."); | 2027 exceptionState.throwDOMException(TypeMismatchError, "The node provided i
s invalid."); |
| 2033 return 0; | 2028 return 0; |
| 2034 } | 2029 } |
| 2035 if (attr->ownerElement() != this) { | 2030 if (attr->ownerElement() != this) { |
| 2036 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); | 2031 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); |
| 2037 return 0; | 2032 return 0; |
| 2038 } | 2033 } |
| (...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3631 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3626 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3632 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3627 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3633 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3628 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3634 return false; | 3629 return false; |
| 3635 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3630 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3636 return false; | 3631 return false; |
| 3637 return true; | 3632 return true; |
| 3638 } | 3633 } |
| 3639 | 3634 |
| 3640 } // namespace WebCore | 3635 } // namespace WebCore |
| OLD | NEW |