Chromium Code Reviews| Index: Source/core/inspector/InspectorStyleSheet.h |
| diff --git a/Source/core/inspector/InspectorStyleSheet.h b/Source/core/inspector/InspectorStyleSheet.h |
| index 6179cf01c48973aef9a57fa94f41e1c999d02f71..a1f96b1dcdd8767f9411565b01a30fd0847d6339 100644 |
| --- a/Source/core/inspector/InspectorStyleSheet.h |
| +++ b/Source/core/inspector/InspectorStyleSheet.h |
| @@ -175,9 +175,10 @@ public: |
| virtual Document* ownerDocument() const override; |
| virtual bool setText(const String&, ExceptionState&) override; |
| virtual bool getText(String* result) const override; |
| - CSSStyleRule* setRuleSelector(const SourceRange&, const String& selector, SourceRange* newRange, String* oldSelector, ExceptionState&); |
| - CSSMediaRule* setMediaRuleText(const SourceRange&, const String& selector, SourceRange* newRange, String* oldSelector, ExceptionState&); |
| - CSSStyleRule* addRule(const String& ruleText, const SourceRange& location, SourceRange* addedRange, ExceptionState&); |
| + RefPtrWillBeRawPtr<CSSStyleRule> setRuleSelector(const SourceRange&, const String& selector, SourceRange* newRange, String* oldSelector, ExceptionState&); |
| + RefPtrWillBeRawPtr<CSSStyleRule> setStyleText(const SourceRange&, const String& text, SourceRange* newRange, String* oldSelector, ExceptionState&); |
|
lushnikov
2015/06/17 13:55:10
this needs to be in InspectorStyleSheetBase
|
| + RefPtrWillBeRawPtr<CSSMediaRule> setMediaRuleText(const SourceRange&, const String& selector, SourceRange* newRange, String* oldSelector, ExceptionState&); |
| + RefPtrWillBeRawPtr<CSSStyleRule> addRule(const String& ruleText, const SourceRange& location, SourceRange* addedRange, ExceptionState&); |
| bool deleteRule(const SourceRange&, ExceptionState&); |
| CSSStyleSheet* pageStyleSheet() const { return m_pageStyleSheet.get(); } |
| @@ -210,6 +211,7 @@ private: |
| InspectorStyleSheet(InspectorResourceAgent*, const String& id, PassRefPtrWillBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enum, const String& documentURL, InspectorCSSAgent*); |
| unsigned ruleIndexBySourceRange(const CSSMediaRule* parentMediaRule, const SourceRange&); |
| bool findRuleByHeaderRange(const SourceRange&, CSSRule**, CSSRuleSourceData**); |
| + bool findRuleByBodyRange(const SourceRange&, CSSRule**, CSSRuleSourceData**); |
|
lushnikov
2015/06/17 13:55:10
ditto
|
| CSSStyleRule* insertCSSOMRuleInStyleSheet(const SourceRange&, const String& ruleText, ExceptionState&); |
| CSSStyleRule* insertCSSOMRuleInMediaRule(CSSMediaRule*, const SourceRange&, const String& ruleText, ExceptionState&); |
| CSSStyleRule* insertCSSOMRuleBySourceRange(const SourceRange&, const String& ruleText, ExceptionState&); |