| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |