OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef HTMLContentElement_h | 31 #ifndef HTMLContentElement_h |
32 #define HTMLContentElement_h | 32 #define HTMLContentElement_h |
33 | 33 |
34 #include "core/css/CSSSelectorList.h" | 34 #include "core/css/CSSSelectorList.h" |
35 #include "core/dom/shadow/InsertionPoint.h" | 35 #include "core/dom/shadow/InsertionPoint.h" |
36 #include <wtf/Forward.h> | |
37 | 36 |
38 namespace WebCore { | 37 namespace WebCore { |
39 | 38 |
40 class HTMLContentElement FINAL : public InsertionPoint { | 39 class HTMLContentElement FINAL : public InsertionPoint { |
41 public: | 40 public: |
42 static const QualifiedName& contentTagName(Document*); | 41 static const QualifiedName& contentTagName(Document*); |
43 static PassRefPtr<HTMLContentElement> create(const QualifiedName&, Document*
); | 42 static PassRefPtr<HTMLContentElement> create(const QualifiedName&, Document*
); |
44 static PassRefPtr<HTMLContentElement> create(Document*); | 43 static PassRefPtr<HTMLContentElement> create(Document*); |
45 | 44 |
46 virtual ~HTMLContentElement(); | 45 virtual ~HTMLContentElement(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 86 |
88 inline HTMLContentElement* toHTMLContentElement(Node* node) | 87 inline HTMLContentElement* toHTMLContentElement(Node* node) |
89 { | 88 { |
90 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLContentElement(node)); | 89 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLContentElement(node)); |
91 return static_cast<HTMLContentElement*>(node); | 90 return static_cast<HTMLContentElement*>(node); |
92 } | 91 } |
93 | 92 |
94 } | 93 } |
95 | 94 |
96 #endif | 95 #endif |
OLD | NEW |