Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: Source/core/dom/Element.cpp

Issue 143173003: Remove unused feature ElementSetAttributeNodeNS (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed failing test case expectation Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698