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 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2016 | 2016 |
2017 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); | 2017 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); |
2018 | 2018 |
2019 attrNode->attachToElement(this); | 2019 attrNode->attachToElement(this); |
2020 treeScope().adoptIfNeeded(*attrNode); | 2020 treeScope().adoptIfNeeded(*attrNode); |
2021 ensureAttrNodeListForElement(this).append(attrNode); | 2021 ensureAttrNodeListForElement(this).append(attrNode); |
2022 | 2022 |
2023 return oldAttrNode.release(); | 2023 return oldAttrNode.release(); |
2024 } | 2024 } |
2025 | 2025 |
2026 PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionState& excepti
onState) | |
2027 { | |
2028 return setAttributeNode(attr, exceptionState); | |
2029 } | |
2030 | |
2031 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) | 2026 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) |
2032 { | 2027 { |
2033 if (!attr) { | 2028 if (!attr) { |
2034 exceptionState.throwDOMException(TypeMismatchError, "The node provided i
s invalid."); | 2029 exceptionState.throwDOMException(TypeMismatchError, "The node provided i
s invalid."); |
2035 return 0; | 2030 return 0; |
2036 } | 2031 } |
2037 if (attr->ownerElement() != this) { | 2032 if (attr->ownerElement() != this) { |
2038 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); | 2033 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); |
2039 return 0; | 2034 return 0; |
2040 } | 2035 } |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3615 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3610 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3616 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3611 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3617 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3612 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3618 return false; | 3613 return false; |
3619 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3614 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3620 return false; | 3615 return false; |
3621 return true; | 3616 return true; |
3622 } | 3617 } |
3623 | 3618 |
3624 } // namespace WebCore | 3619 } // namespace WebCore |
OLD | NEW |