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 10 matching lines...) Expand all Loading... |
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/html/shadow/HTMLContentElement.h" | 28 #include "core/html/shadow/HTMLContentElement.h" |
29 | 29 |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "RuntimeEnabledFeatures.h" | |
32 #include "core/css/CSSParser.h" | 31 #include "core/css/CSSParser.h" |
33 #include "core/dom/QualifiedName.h" | 32 #include "core/dom/QualifiedName.h" |
34 #include "core/dom/shadow/ContentDistributor.h" | |
35 #include "core/dom/shadow/ContentSelectorQuery.h" | |
36 #include "core/dom/shadow/ShadowRoot.h" | 33 #include "core/dom/shadow/ShadowRoot.h" |
37 #include <wtf/StdLibExtras.h> | 34 #include <wtf/StdLibExtras.h> |
38 | 35 |
39 namespace WebCore { | 36 namespace WebCore { |
40 | 37 |
41 using HTMLNames::selectAttr; | 38 using HTMLNames::selectAttr; |
42 | 39 |
43 const QualifiedName& HTMLContentElement::contentTagName(Document*) | 40 const QualifiedName& HTMLContentElement::contentTagName(Document*) |
44 { | 41 { |
45 return HTMLNames::contentTag; | 42 return HTMLNames::contentTag; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 187 |
191 for (const CSSSelector* selector = m_selectorList.first(); selector; selecto
r = m_selectorList.next(selector)) { | 188 for (const CSSSelector* selector = m_selectorList.first(); selector; selecto
r = m_selectorList.next(selector)) { |
192 if (!validateSelector(selector)) | 189 if (!validateSelector(selector)) |
193 return false; | 190 return false; |
194 } | 191 } |
195 | 192 |
196 return true; | 193 return true; |
197 } | 194 } |
198 } | 195 } |
199 | 196 |
OLD | NEW |