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

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

Issue 243333003: Add back three deprecated DOM APIs removed from Chrome 34 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make urls clickable Created 6 years, 8 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 | Annotate | Revision Log
« 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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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