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

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

Issue 147593008: Remove Element.nodeNamePreservingCase (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove macro 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
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 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 if (other->elementData()) 1220 if (other->elementData())
1221 return other->elementData()->isEquivalent(elementData()); 1221 return other->elementData()->isEquivalent(elementData());
1222 return true; 1222 return true;
1223 } 1223 }
1224 1224
1225 String Element::nodeName() const 1225 String Element::nodeName() const
1226 { 1226 {
1227 return m_tagName.toString(); 1227 return m_tagName.toString();
1228 } 1228 }
1229 1229
1230 String Element::nodeNamePreservingCase() const
1231 {
1232 return m_tagName.toString();
1233 }
1234
1235 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta te) 1230 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta te)
1236 { 1231 {
1237 UseCounter::count(document(), UseCounter::ElementSetPrefix); 1232 UseCounter::count(document(), UseCounter::ElementSetPrefix);
1238 1233
1239 if (!prefix.isEmpty() && !Document::isValidName(prefix)) { 1234 if (!prefix.isEmpty() && !Document::isValidName(prefix)) {
1240 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" + prefix + "' is not a valid name."); 1235 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" + prefix + "' is not a valid name.");
1241 return; 1236 return;
1242 } 1237 }
1243 1238
1244 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in XML specification. 1239 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in XML specification.
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after
3620 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3615 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3621 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3616 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3622 if (hasTagName(optionTag) || hasTagName(optgroupTag)) 3617 if (hasTagName(optionTag) || hasTagName(optgroupTag))
3623 return false; 3618 return false;
3624 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3619 if (FullscreenElementStack::isActiveFullScreenElement(this))
3625 return false; 3620 return false;
3626 return true; 3621 return true;
3627 } 3622 }
3628 3623
3629 } // namespace WebCore 3624 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698