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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // This will catch HTML elements in the wrong namespace that are not correct
ly copied. | 261 // This will catch HTML elements in the wrong namespace that are not correct
ly copied. |
262 // This is a sanity check as HTML overloads some of the DOM methods. | 262 // This is a sanity check as HTML overloads some of the DOM methods. |
263 DCHECK_EQ(isHTMLElement(), clone->isHTMLElement()); | 263 DCHECK_EQ(isHTMLElement(), clone->isHTMLElement()); |
264 | 264 |
265 clone->cloneDataFromElement(*this); | 265 clone->cloneDataFromElement(*this); |
266 return clone; | 266 return clone; |
267 } | 267 } |
268 | 268 |
269 Element* Element::cloneElementWithoutAttributesAndChildren() | 269 Element* Element::cloneElementWithoutAttributesAndChildren() |
270 { | 270 { |
271 return document().createElement(tagQName(), false); | 271 return document().createElement(tagQName(), CreatedByCloneNode); |
272 } | 272 } |
273 | 273 |
274 Attr* Element::detachAttribute(size_t index) | 274 Attr* Element::detachAttribute(size_t index) |
275 { | 275 { |
276 DCHECK(elementData()); | 276 DCHECK(elementData()); |
277 const Attribute& attribute = elementData()->attributes().at(index); | 277 const Attribute& attribute = elementData()->attributes().at(index); |
278 Attr* attrNode = attrIfExists(attribute.name()); | 278 Attr* attrNode = attrIfExists(attribute.name()); |
279 if (attrNode) { | 279 if (attrNode) { |
280 detachAttrNodeAtIndex(attrNode, index); | 280 detachAttrNodeAtIndex(attrNode, index); |
281 } else { | 281 } else { |
(...skipping 3425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3707 | 3707 |
3708 DEFINE_TRACE_WRAPPERS(Element) | 3708 DEFINE_TRACE_WRAPPERS(Element) |
3709 { | 3709 { |
3710 if (hasRareData()) { | 3710 if (hasRareData()) { |
3711 visitor->traceWrappers(elementRareData()); | 3711 visitor->traceWrappers(elementRareData()); |
3712 } | 3712 } |
3713 ContainerNode::traceWrappers(visitor); | 3713 ContainerNode::traceWrappers(visitor); |
3714 } | 3714 } |
3715 | 3715 |
3716 } // namespace blink | 3716 } // namespace blink |
OLD | NEW |