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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 PassRefPtr<HTMLContentElement> HTMLContentElement::create(const QualifiedName& t
agName, Document* document) | 61 PassRefPtr<HTMLContentElement> HTMLContentElement::create(const QualifiedName& t
agName, Document* document) |
62 { | 62 { |
63 return adoptRef(new HTMLContentElement(tagName, document)); | 63 return adoptRef(new HTMLContentElement(tagName, document)); |
64 } | 64 } |
65 | 65 |
66 HTMLContentElement::HTMLContentElement(const QualifiedName& name, Document* docu
ment) | 66 HTMLContentElement::HTMLContentElement(const QualifiedName& name, Document* docu
ment) |
67 : InsertionPoint(name, document) | 67 : InsertionPoint(name, document) |
68 , m_shouldParseSelectorList(false) | 68 , m_shouldParseSelectorList(false) |
69 , m_isValidSelector(true) | 69 , m_isValidSelector(true) |
70 { | 70 { |
| 71 if (RuntimeEnabledFeatures::shadowDOMEnabled()) |
| 72 ScriptWrappable::init(this); |
71 } | 73 } |
72 | 74 |
73 HTMLContentElement::~HTMLContentElement() | 75 HTMLContentElement::~HTMLContentElement() |
74 { | 76 { |
75 } | 77 } |
76 | 78 |
77 InsertionPoint::MatchType HTMLContentElement::matchTypeFor(Node*) | 79 InsertionPoint::MatchType HTMLContentElement::matchTypeFor(Node*) |
78 { | 80 { |
79 if (select().isNull() || select().isEmpty()) | 81 if (select().isNull() || select().isEmpty()) |
80 return AlwaysMatches; | 82 return AlwaysMatches; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 213 } |
212 | 214 |
213 HTMLContentElement::HTMLContentElement(const QualifiedName& tagName, Document* d
ocument) | 215 HTMLContentElement::HTMLContentElement(const QualifiedName& tagName, Document* d
ocument) |
214 : InsertionPoint(tagName, document) | 216 : InsertionPoint(tagName, document) |
215 { } | 217 { } |
216 | 218 |
217 #endif // if ENABLE(SHADOW_DOM) | 219 #endif // if ENABLE(SHADOW_DOM) |
218 | 220 |
219 } | 221 } |
220 | 222 |
OLD | NEW |