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

Side by Side Diff: Source/core/html/HTMLDataListElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/core/html/HTMLDataListElement.h ('k') | Source/core/html/HTMLDetailsElement.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "core/html/HTMLDataListElement.h" 33 #include "core/html/HTMLDataListElement.h"
34 34
35 #include "core/dom/IdTargetObserverRegistry.h" 35 #include "core/dom/IdTargetObserverRegistry.h"
36 #include "core/page/UseCounter.h" 36 #include "core/page/UseCounter.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 inline HTMLDataListElement::HTMLDataListElement(const QualifiedName& tagName, Do cument* document) 40 inline HTMLDataListElement::HTMLDataListElement(const QualifiedName& tagName, Do cument& document)
41 : HTMLElement(tagName, document) 41 : HTMLElement(tagName, document)
42 { 42 {
43 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
44 } 44 }
45 45
46 PassRefPtr<HTMLDataListElement> HTMLDataListElement::create(const QualifiedName& tagName, Document* document) 46 PassRefPtr<HTMLDataListElement> HTMLDataListElement::create(const QualifiedName& tagName, Document& document)
47 { 47 {
48 UseCounter::count(document, UseCounter::DataListElement); 48 UseCounter::count(&document, UseCounter::DataListElement);
49 return adoptRef(new HTMLDataListElement(tagName, document)); 49 return adoptRef(new HTMLDataListElement(tagName, document));
50 } 50 }
51 51
52 PassRefPtr<HTMLCollection> HTMLDataListElement::options() 52 PassRefPtr<HTMLCollection> HTMLDataListElement::options()
53 { 53 {
54 return ensureCachedHTMLCollection(DataListOptions); 54 return ensureCachedHTMLCollection(DataListOptions);
55 } 55 }
56 56
57 void HTMLDataListElement::optionElementChildrenChanged() 57 void HTMLDataListElement::optionElementChildrenChanged()
58 { 58 {
59 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()); 59 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute());
60 } 60 }
61 61
62 } // namespace WebCore 62 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDataListElement.h ('k') | Source/core/html/HTMLDetailsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698