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

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

Issue 27142002: Use DEFINE_NODE_TYPE_CASTS instead of using manual toHTMLFooElement() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/core/html/HTMLDialogElement.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DEFINE_NODE_TYPE_CASTS(HTMLDataListElement, hasTagName(HTMLNames::datalistTag));
53 {
54 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::datali stTag));
55 return static_cast<HTMLDataListElement*>(node);
56 }
57 53
58 } // namespace WebCore 54 } // namespace WebCore
59 55
60 #endif // HTMLDataListElement_h 56 #endif // HTMLDataListElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/core/html/HTMLDialogElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698