| 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 21 matching lines...) Expand all Loading... |
| 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 |
| OLD | NEW |