| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/css/CSSMediaRule.h" | 34 #include "core/css/CSSMediaRule.h" |
| 35 #include "core/css/CSSParser.h" | 35 #include "core/css/CSSParser.h" |
| 36 #include "core/css/CSSPropertySourceData.h" | 36 #include "core/css/CSSPropertySourceData.h" |
| 37 #include "core/css/CSSRule.h" | 37 #include "core/css/CSSRule.h" |
| 38 #include "core/css/CSSRuleList.h" | 38 #include "core/css/CSSRuleList.h" |
| 39 #include "core/css/CSSStyleRule.h" | 39 #include "core/css/CSSStyleRule.h" |
| 40 #include "core/css/CSSStyleSheet.h" | 40 #include "core/css/CSSStyleSheet.h" |
| 41 #include "core/css/CSSSupportsRule.h" | 41 #include "core/css/CSSSupportsRule.h" |
| 42 #include "core/css/StylePropertySet.h" | 42 #include "core/css/StylePropertySet.h" |
| 43 #include "core/css/StyleRule.h" | 43 #include "core/css/StyleRule.h" |
| 44 #include "core/css/StyleRuleImport.h" | |
| 45 #include "core/css/StyleSheetContents.h" | 44 #include "core/css/StyleSheetContents.h" |
| 46 #include "core/css/StyleSheetList.h" | |
| 47 #include "core/dom/Document.h" | 45 #include "core/dom/Document.h" |
| 48 #include "core/dom/Element.h" | 46 #include "core/dom/Element.h" |
| 49 #include "core/dom/Node.h" | 47 #include "core/dom/Node.h" |
| 50 #include "core/html/HTMLHeadElement.h" | |
| 51 #include "core/html/parser/HTMLParserIdioms.h" | 48 #include "core/html/parser/HTMLParserIdioms.h" |
| 52 #include "core/inspector/ContentSearchUtils.h" | 49 #include "core/inspector/ContentSearchUtils.h" |
| 53 #include "core/inspector/InspectorCSSAgent.h" | 50 #include "core/inspector/InspectorCSSAgent.h" |
| 54 #include "core/inspector/InspectorPageAgent.h" | 51 #include "core/inspector/InspectorPageAgent.h" |
| 55 #include "core/inspector/InspectorValues.h" | 52 #include "core/inspector/InspectorValues.h" |
| 56 #include "core/page/ContentSecurityPolicy.h" | |
| 57 #include "core/platform/text/RegularExpression.h" | 53 #include "core/platform/text/RegularExpression.h" |
| 58 | 54 |
| 59 #include <wtf/OwnPtr.h> | 55 #include <wtf/OwnPtr.h> |
| 60 #include <wtf/PassOwnPtr.h> | 56 #include <wtf/PassOwnPtr.h> |
| 61 #include <wtf/text/StringBuilder.h> | 57 #include <wtf/text/StringBuilder.h> |
| 62 #include <wtf/Vector.h> | 58 #include <wtf/Vector.h> |
| 63 | 59 |
| 64 using WebCore::TypeBuilder::Array; | 60 using WebCore::TypeBuilder::Array; |
| 65 using WebCore::RuleSourceDataList; | 61 using WebCore::RuleSourceDataList; |
| 66 using WebCore::CSSRuleSourceData; | 62 using WebCore::CSSRuleSourceData; |
| (...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1896 | 1892 |
| 1897 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c
reate(); | 1893 RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::c
reate(); |
| 1898 RuleSourceDataList ruleSourceDataResult; | 1894 RuleSourceDataList ruleSourceDataResult; |
| 1899 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc
ument()->elementSheet()->contents(), &ruleSourceDataResult); | 1895 StyleSheetHandler handler(m_styleText, m_element->document(), m_element->doc
ument()->elementSheet()->contents(), &ruleSourceDataResult); |
| 1900 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get
(), m_styleText, &handler, m_element->document()->elementSheet()->contents()); | 1896 createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get
(), m_styleText, &handler, m_element->document()->elementSheet()->contents()); |
| 1901 return ruleSourceDataResult.first().release(); | 1897 return ruleSourceDataResult.first().release(); |
| 1902 } | 1898 } |
| 1903 | 1899 |
| 1904 } // namespace WebCore | 1900 } // namespace WebCore |
| 1905 | 1901 |
| OLD | NEW |