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 12 matching lines...) Expand all Loading... |
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 "HTMLContentElement.h" | 28 #include "HTMLContentElement.h" |
29 | 29 |
30 #include "ContentDistributor.h" | 30 #include "ContentDistributor.h" |
31 #include "ContentSelectorQuery.h" | 31 #include "ContentSelectorQuery.h" |
32 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
33 #include "QualifiedName.h" | |
34 #include "ShadowRoot.h" | |
35 #include "core/css/CSSParser.h" | 33 #include "core/css/CSSParser.h" |
| 34 #include "core/dom/QualifiedName.h" |
| 35 #include "core/dom/ShadowRoot.h" |
36 #include "core/page/RuntimeEnabledFeatures.h" | 36 #include "core/page/RuntimeEnabledFeatures.h" |
37 #include <wtf/StdLibExtras.h> | 37 #include <wtf/StdLibExtras.h> |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 using HTMLNames::selectAttr; | 41 using HTMLNames::selectAttr; |
42 | 42 |
43 const QualifiedName& HTMLContentElement::contentTagName(Document*) | 43 const QualifiedName& HTMLContentElement::contentTagName(Document*) |
44 { | 44 { |
45 return HTMLNames::contentTag; | 45 return HTMLNames::contentTag; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 for (const CSSSelector* selector = m_selectorList.first(); selector; selecto
r = m_selectorList.next(selector)) { | 191 for (const CSSSelector* selector = m_selectorList.first(); selector; selecto
r = m_selectorList.next(selector)) { |
192 if (!validateSelector(selector)) | 192 if (!validateSelector(selector)) |
193 return false; | 193 return false; |
194 } | 194 } |
195 | 195 |
196 return true; | 196 return true; |
197 } | 197 } |
198 } | 198 } |
199 | 199 |
OLD | NEW |