OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "core/inspector/InspectorStyleSheet.h" | 26 #include "core/inspector/InspectorStyleSheet.h" |
27 | 27 |
28 #include "CSSPropertyNames.h" | 28 #include "CSSPropertyNames.h" |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "SVGNames.h" | 30 #include "SVGNames.h" |
31 #include "core/css/CSSHostRule.h" | 31 #include "core/css/CSSHostRule.h" |
32 #include "core/css/CSSImportRule.h" | |
33 #include "core/css/CSSKeyframesRule.h" | 32 #include "core/css/CSSKeyframesRule.h" |
34 #include "core/css/CSSMediaRule.h" | 33 #include "core/css/CSSMediaRule.h" |
35 #include "core/css/CSSParser.h" | 34 #include "core/css/CSSParser.h" |
36 #include "core/css/CSSPropertySourceData.h" | 35 #include "core/css/CSSPropertySourceData.h" |
37 #include "core/css/CSSRule.h" | 36 #include "core/css/CSSRule.h" |
38 #include "core/css/CSSRuleList.h" | 37 #include "core/css/CSSRuleList.h" |
39 #include "core/css/CSSStyleRule.h" | 38 #include "core/css/CSSStyleRule.h" |
40 #include "core/css/CSSStyleSheet.h" | 39 #include "core/css/CSSStyleSheet.h" |
41 #include "core/css/CSSSupportsRule.h" | 40 #include "core/css/CSSSupportsRule.h" |
42 #include "core/css/StylePropertySet.h" | 41 #include "core/css/StylePropertySet.h" |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 | 1809 |
1811 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c
reate(); | 1810 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c
reate(); |
1812 RuleSourceDataList ruleSourceDataResult; | 1811 RuleSourceDataList ruleSourceDataResult; |
1813 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc
ument()->elementSheet()->contents(), &ruleSourceDataResult); | 1812 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc
ument()->elementSheet()->contents(), &ruleSourceDataResult); |
1814 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get
(), m_styleText, &handler, m_element->document()->elementSheet()->contents()); | 1813 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get
(), m_styleText, &handler, m_element->document()->elementSheet()->contents()); |
1815 return ruleSourceDataResult.first().release(); | 1814 return ruleSourceDataResult.first().release(); |
1816 } | 1815 } |
1817 | 1816 |
1818 } // namespace WebCore | 1817 } // namespace WebCore |
1819 | 1818 |
OLD | NEW |