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

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

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/HTMLDListElement.cpp ('k') | Source/core/html/HTMLDataListElement.cpp » ('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 21 matching lines...) Expand all
32 #ifndef HTMLDataListElement_h 32 #ifndef HTMLDataListElement_h
33 #define HTMLDataListElement_h 33 #define HTMLDataListElement_h
34 34
35 #include "core/html/HTMLCollection.h" 35 #include "core/html/HTMLCollection.h"
36 #include "core/html/HTMLElement.h" 36 #include "core/html/HTMLElement.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class HTMLDataListElement FINAL : public HTMLElement { 40 class HTMLDataListElement FINAL : public HTMLElement {
41 public: 41 public:
42 static PassRefPtr<HTMLDataListElement> create(const QualifiedName&, Document *); 42 static PassRefPtr<HTMLDataListElement> create(const QualifiedName&, Document &);
43 43
44 PassRefPtr<HTMLCollection> options(); 44 PassRefPtr<HTMLCollection> options();
45 45
46 void optionElementChildrenChanged(); 46 void optionElementChildrenChanged();
47 47
48 private: 48 private:
49 HTMLDataListElement(const QualifiedName&, Document*); 49 HTMLDataListElement(const QualifiedName&, Document&);
50 }; 50 };
51 51
52 inline HTMLDataListElement* toHTMLDataListElement(Node* node) 52 inline HTMLDataListElement* toHTMLDataListElement(Node* node)
53 { 53 {
54 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::datali stTag)); 54 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::datali stTag));
55 return static_cast<HTMLDataListElement*>(node); 55 return static_cast<HTMLDataListElement*>(node);
56 } 56 }
57 57
58 } // namespace WebCore 58 } // namespace WebCore
59 59
60 #endif // HTMLDataListElement_h 60 #endif // HTMLDataListElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDListElement.cpp ('k') | Source/core/html/HTMLDataListElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698