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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 return true; | 1194 return true; |
1195 } | 1195 } |
1196 | 1196 |
1197 String Element::nodeName() const | 1197 String Element::nodeName() const |
1198 { | 1198 { |
1199 return m_tagName.toString(); | 1199 return m_tagName.toString(); |
1200 } | 1200 } |
1201 | 1201 |
1202 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta
te) | 1202 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta
te) |
1203 { | 1203 { |
1204 UseCounter::count(document(), UseCounter::ElementSetPrefix); | 1204 UseCounter::countDeprecation(document(), UseCounter::ElementSetPrefix); |
1205 | 1205 |
1206 if (!prefix.isEmpty() && !Document::isValidName(prefix)) { | 1206 if (!prefix.isEmpty() && !Document::isValidName(prefix)) { |
1207 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" +
prefix + "' is not a valid name."); | 1207 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" +
prefix + "' is not a valid name."); |
1208 return; | 1208 return; |
1209 } | 1209 } |
1210 | 1210 |
1211 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in
XML specification. | 1211 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in
XML specification. |
1212 | 1212 |
1213 const AtomicString& nodeNamespaceURI = namespaceURI(); | 1213 const AtomicString& nodeNamespaceURI = namespaceURI(); |
1214 if (nodeNamespaceURI.isEmpty() && !prefix.isEmpty()) { | 1214 if (nodeNamespaceURI.isEmpty() && !prefix.isEmpty()) { |
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3301 | 3301 |
3302 void Element::trace(Visitor* visitor) | 3302 void Element::trace(Visitor* visitor) |
3303 { | 3303 { |
3304 if (hasRareData()) | 3304 if (hasRareData()) |
3305 visitor->trace(elementRareData()); | 3305 visitor->trace(elementRareData()); |
3306 | 3306 |
3307 ContainerNode::trace(visitor); | 3307 ContainerNode::trace(visitor); |
3308 } | 3308 } |
3309 | 3309 |
3310 } // namespace WebCore | 3310 } // namespace WebCore |
OLD | NEW |