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 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1978 | 1978 |
1979 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); | 1979 setAttributeInternal(index, attrNode->qualifiedName(), attrNode->value(), No
tInSynchronizationOfLazyAttribute); |
1980 | 1980 |
1981 attrNode->attachToElement(this); | 1981 attrNode->attachToElement(this); |
1982 treeScope().adoptIfNeeded(*attrNode); | 1982 treeScope().adoptIfNeeded(*attrNode); |
1983 ensureAttrNodeListForElement(this).append(attrNode); | 1983 ensureAttrNodeListForElement(this).append(attrNode); |
1984 | 1984 |
1985 return oldAttrNode.release(); | 1985 return oldAttrNode.release(); |
1986 } | 1986 } |
1987 | 1987 |
| 1988 PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionState& excepti
onState) |
| 1989 { |
| 1990 return setAttributeNode(attr, exceptionState); |
| 1991 } |
| 1992 |
1988 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) | 1993 PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& except
ionState) |
1989 { | 1994 { |
1990 if (!attr) { | 1995 if (!attr) { |
1991 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Attr")); | 1996 exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::a
rgumentNullOrIncorrectType(1, "Attr")); |
1992 return nullptr; | 1997 return nullptr; |
1993 } | 1998 } |
1994 if (attr->ownerElement() != this) { | 1999 if (attr->ownerElement() != this) { |
1995 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); | 2000 exceptionState.throwDOMException(NotFoundError, "The node provided is ow
ned by another element."); |
1996 return nullptr; | 2001 return nullptr; |
1997 } | 2002 } |
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3362 || isHTMLObjectElement(*this) | 3367 || isHTMLObjectElement(*this) |
3363 || isHTMLAppletElement(*this) | 3368 || isHTMLAppletElement(*this) |
3364 || isHTMLCanvasElement(*this)) | 3369 || isHTMLCanvasElement(*this)) |
3365 return false; | 3370 return false; |
3366 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3371 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3367 return false; | 3372 return false; |
3368 return true; | 3373 return true; |
3369 } | 3374 } |
3370 | 3375 |
3371 } // namespace WebCore | 3376 } // namespace WebCore |
OLD | NEW |