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 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 25 matching lines...) Expand all Loading... |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 using namespace HTMLNames; | 38 using namespace HTMLNames; |
39 | 39 |
40 Attr::Attr(Element& element, const QualifiedName& name) | 40 Attr::Attr(Element& element, const QualifiedName& name) |
41 : ContainerNode(&element.document()) | 41 : ContainerNode(&element.document()) |
42 , m_element(&element) | 42 , m_element(&element) |
43 , m_name(name) | 43 , m_name(name) |
44 , m_ignoreChildrenChanged(0) | 44 , m_ignoreChildrenChanged(0) |
45 { | 45 { |
46 ScriptWrappable::init(this); | |
47 } | 46 } |
48 | 47 |
49 Attr::Attr(Document& document, const QualifiedName& name, const AtomicString& st
andaloneValue) | 48 Attr::Attr(Document& document, const QualifiedName& name, const AtomicString& st
andaloneValue) |
50 : ContainerNode(&document) | 49 : ContainerNode(&document) |
51 , m_element(nullptr) | 50 , m_element(nullptr) |
52 , m_name(name) | 51 , m_name(name) |
53 , m_standaloneValueOrAttachedLocalName(standaloneValue) | 52 , m_standaloneValueOrAttachedLocalName(standaloneValue) |
54 , m_ignoreChildrenChanged(0) | 53 , m_ignoreChildrenChanged(0) |
55 { | 54 { |
56 ScriptWrappable::init(this); | |
57 } | 55 } |
58 | 56 |
59 PassRefPtrWillBeRawPtr<Attr> Attr::create(Element& element, const QualifiedName&
name) | 57 PassRefPtrWillBeRawPtr<Attr> Attr::create(Element& element, const QualifiedName&
name) |
60 { | 58 { |
61 RefPtrWillBeRawPtr<Attr> attr = adoptRefWillBeNoop(new Attr(element, name)); | 59 RefPtrWillBeRawPtr<Attr> attr = adoptRefWillBeNoop(new Attr(element, name)); |
62 attr->createTextChild(); | 60 attr->createTextChild(); |
63 return attr.release(); | 61 return attr.release(); |
64 } | 62 } |
65 | 63 |
66 PassRefPtrWillBeRawPtr<Attr> Attr::create(Document& document, const QualifiedNam
e& name, const AtomicString& value) | 64 PassRefPtrWillBeRawPtr<Attr> Attr::create(Document& document, const QualifiedNam
e& name, const AtomicString& value) |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 m_standaloneValueOrAttachedLocalName = attachedLocalName; | 218 m_standaloneValueOrAttachedLocalName = attachedLocalName; |
221 } | 219 } |
222 | 220 |
223 void Attr::trace(Visitor* visitor) | 221 void Attr::trace(Visitor* visitor) |
224 { | 222 { |
225 visitor->trace(m_element); | 223 visitor->trace(m_element); |
226 ContainerNode::trace(visitor); | 224 ContainerNode::trace(visitor); |
227 } | 225 } |
228 | 226 |
229 } | 227 } |
OLD | NEW |