| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 PassRefPtr<TypeBuilder::CSS::SourceRange> mediaQueryExpValueSourceRange(CSSR
ule*, size_t mediaQueryIndex, size_t mediaQueryExpIndex); | 141 PassRefPtr<TypeBuilder::CSS::SourceRange> mediaQueryExpValueSourceRange(CSSR
ule*, size_t mediaQueryIndex, size_t mediaQueryExpIndex); |
| 142 | 142 |
| 143 bool isInlineStyle() override { return false; } | 143 bool isInlineStyle() override { return false; } |
| 144 const CSSRuleVector& flatRules(); | 144 const CSSRuleVector& flatRules(); |
| 145 | 145 |
| 146 protected: | 146 protected: |
| 147 virtual PassRefPtrWillBeRawPtr<InspectorStyle> inspectorStyle(RefPtrWillBeRa
wPtr<CSSStyleDeclaration>) override; | 147 virtual PassRefPtrWillBeRawPtr<InspectorStyle> inspectorStyle(RefPtrWillBeRa
wPtr<CSSStyleDeclaration>) override; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 InspectorStyleSheet(InspectorResourceAgent*, const String& id, PassRefPtrWil
lBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enu
m, const String& documentURL, InspectorCSSAgent*); | 150 InspectorStyleSheet(InspectorResourceAgent*, const String& id, PassRefPtrWil
lBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enu
m, const String& documentURL, InspectorCSSAgent*); |
| 151 unsigned ruleIndexBySourceRange(CSSMediaRule* parentMediaRule, const SourceR
ange&); | 151 RefPtrWillBeRawPtr<CSSRuleSourceData> ruleAfterSourceRange(const SourceRange
&); |
| 152 RefPtrWillBeRawPtr<CSSRuleSourceData> findRuleByHeaderRange(const SourceRang
e&); | 152 RefPtrWillBeRawPtr<CSSRuleSourceData> findRuleByHeaderRange(const SourceRang
e&); |
| 153 RefPtrWillBeRawPtr<CSSRuleSourceData> findRuleByBodyRange(const SourceRange&
); | 153 RefPtrWillBeRawPtr<CSSRuleSourceData> findRuleByBodyRange(const SourceRange&
); |
| 154 RefPtrWillBeRawPtr<CSSRule> ruleForSourceData(CSSRuleSourceData*); | 154 RefPtrWillBeRawPtr<CSSRule> ruleForSourceData(CSSRuleSourceData*); |
| 155 RefPtrWillBeRawPtr<CSSRuleSourceData> sourceDataForRule(CSSRule*); | 155 RefPtrWillBeRawPtr<CSSRuleSourceData> sourceDataForRule(CSSRule*); |
| 156 CSSStyleRule* insertCSSOMRuleInStyleSheet(const SourceRange&, const String&
ruleText, ExceptionState&); | 156 CSSStyleRule* insertCSSOMRuleInStyleSheet(CSSRule* insertBefore, const Strin
g& ruleText, ExceptionState&); |
| 157 CSSStyleRule* insertCSSOMRuleInMediaRule(CSSMediaRule*, const SourceRange&,
const String& ruleText, ExceptionState&); | 157 CSSStyleRule* insertCSSOMRuleInMediaRule(CSSMediaRule*, CSSRule* insertBefor
e, const String& ruleText, ExceptionState&); |
| 158 CSSStyleRule* insertCSSOMRuleBySourceRange(const SourceRange&, const String&
ruleText, ExceptionState&); | 158 CSSStyleRule* insertCSSOMRuleBySourceRange(const SourceRange&, const String&
ruleText, ExceptionState&); |
| 159 String sourceMapURL(); | 159 String sourceMapURL(); |
| 160 String sourceURL(); | 160 String sourceURL(); |
| 161 void collectFlatRules(); | 161 void collectFlatRules(); |
| 162 bool resourceStyleSheetText(String* result); | 162 bool resourceStyleSheetText(String* result); |
| 163 bool inlineStyleSheetText(String* result); | 163 bool inlineStyleSheetText(String* result); |
| 164 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Selector>> selectorsFromSour
ce(CSSRuleSourceData*, const String&); | 164 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Selector>> selectorsFromSour
ce(CSSRuleSourceData*, const String&); |
| 165 PassRefPtr<TypeBuilder::CSS::SelectorList> buildObjectForSelectorList(CSSSty
leRule*); | 165 PassRefPtr<TypeBuilder::CSS::SelectorList> buildObjectForSelectorList(CSSSty
leRule*); |
| 166 String url(); | 166 String url(); |
| 167 bool hasSourceURL(); | 167 bool hasSourceURL(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 InspectorStyleSheetForInlineStyle(const String& id, PassRefPtrWillBeRawPtr<E
lement>, Listener*); | 203 InspectorStyleSheetForInlineStyle(const String& id, PassRefPtrWillBeRawPtr<E
lement>, Listener*); |
| 204 const String& elementStyleText(); | 204 const String& elementStyleText(); |
| 205 | 205 |
| 206 RefPtrWillBeMember<Element> m_element; | 206 RefPtrWillBeMember<Element> m_element; |
| 207 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; | 207 RefPtrWillBeMember<InspectorStyle> m_inspectorStyle; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace blink | 210 } // namespace blink |
| 211 | 211 |
| 212 #endif // !defined(InspectorStyleSheet_h) | 212 #endif // !defined(InspectorStyleSheet_h) |
| OLD | NEW |