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