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

Side by Side Diff: Source/WebCore/dom/Attr.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/WebCore/dom/AnimationEvent.cpp ('k') | Source/WebCore/dom/AutocompleteErrorEvent.h » ('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 * 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 26 matching lines...) Expand all
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 , m_specified(true) 45 , m_specified(true)
46 { 46 {
47 ScriptWrappable::init(this);
47 } 48 }
48 49
49 Attr::Attr(Document* document, const QualifiedName& name, const AtomicString& st andaloneValue) 50 Attr::Attr(Document* document, const QualifiedName& name, const AtomicString& st andaloneValue)
50 : ContainerNode(document) 51 : ContainerNode(document)
51 , m_element(0) 52 , m_element(0)
52 , m_name(name) 53 , m_name(name)
53 , m_standaloneValue(standaloneValue) 54 , m_standaloneValue(standaloneValue)
54 , m_ignoreChildrenChanged(0) 55 , m_ignoreChildrenChanged(0)
55 , m_specified(true) 56 , m_specified(true)
56 { 57 {
58 ScriptWrappable::init(this);
57 } 59 }
58 60
59 PassRefPtr<Attr> Attr::create(Element* element, const QualifiedName& name) 61 PassRefPtr<Attr> Attr::create(Element* element, const QualifiedName& name)
60 { 62 {
61 RefPtr<Attr> attr = adoptRef(new Attr(element, name)); 63 RefPtr<Attr> attr = adoptRef(new Attr(element, name));
62 attr->createTextChild(); 64 attr->createTextChild();
63 return attr.release(); 65 return attr.release();
64 } 66 }
65 67
66 PassRefPtr<Attr> Attr::create(Document* document, const QualifiedName& name, con st AtomicString& value) 68 PassRefPtr<Attr> Attr::create(Document* document, const QualifiedName& name, con st AtomicString& value)
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 226 }
225 227
226 void Attr::attachToElement(Element* element) 228 void Attr::attachToElement(Element* element)
227 { 229 {
228 ASSERT(!m_element); 230 ASSERT(!m_element);
229 m_element = element; 231 m_element = element;
230 m_standaloneValue = nullAtom; 232 m_standaloneValue = nullAtom;
231 } 233 }
232 234
233 } 235 }
OLDNEW
« no previous file with comments | « Source/WebCore/dom/AnimationEvent.cpp ('k') | Source/WebCore/dom/AutocompleteErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698