Index: Source/core/inspector/InspectorStyleSheet.h |
diff --git a/Source/core/inspector/InspectorStyleSheet.h b/Source/core/inspector/InspectorStyleSheet.h |
index a87108782648db0a5888944f6b8bbc76c06b65b0..bc8fa1b2713a6bb456aad30a228b0861953392cd 100644 |
--- a/Source/core/inspector/InspectorStyleSheet.h |
+++ b/Source/core/inspector/InspectorStyleSheet.h |
@@ -53,7 +53,7 @@ class InspectorPageAgent; |
class InspectorStyleSheet; |
class Node; |
- |
+typedef Vector<RefPtr<CSSStyleRule> > CSSStyleRuleVector; |
typedef String ErrorString; |
class InspectorCSSId { |
@@ -175,6 +175,7 @@ public: |
typedef HashMap<CSSStyleDeclaration*, RefPtr<InspectorStyle> > InspectorStyleMap; |
static PassRefPtr<InspectorStyleSheet> create(InspectorPageAgent*, const String& id, PassRefPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enum, const String& documentURL, Listener*); |
static String styleSheetURL(CSSStyleSheet* pageStyleSheet); |
+ static void collectFlatRules(PassRefPtr<CSSRuleList>, CSSStyleRuleVector* result); |
virtual ~InspectorStyleSheet(); |
@@ -190,9 +191,9 @@ public: |
CSSStyleRule* addRule(const String& selector, ExceptionCode&); |
bool deleteRule(const InspectorCSSId&, ExceptionCode&); |
CSSStyleRule* ruleForId(const InspectorCSSId&) const; |
- PassRefPtr<TypeBuilder::CSS::CSSStyleSheetBody> buildObjectForStyleSheet(); |
+ bool fillObjectForStyleSheet(PassRefPtr<TypeBuilder::CSS::CSSStyleSheetBody>); |
PassRefPtr<TypeBuilder::CSS::CSSStyleSheetHeader> buildObjectForStyleSheetInfo() const; |
- PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); |
+ PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*, PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> >); |
PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForStyle(CSSStyleDeclaration*); |
bool setStyleText(const InspectorCSSId&, const String& text, String* oldText, ExceptionCode&); |
bool setPropertyText(const InspectorCSSId&, unsigned propertyIndex, const String& text, bool overwrite, String* oldPropertyText, ExceptionCode&); |
@@ -223,10 +224,8 @@ protected: |
virtual PassOwnPtr<Vector<size_t> > lineEndings() const; |
private: |
- typedef Vector<RefPtr<CSSStyleRule> > CSSStyleRuleVector; |
friend class InspectorStyle; |
- static void collectFlatRules(PassRefPtr<CSSRuleList>, CSSStyleRuleVector* result); |
bool checkPageStyleSheet(ExceptionCode&) const; |
bool ensureText() const; |
bool ensureSourceData(); |
@@ -236,7 +235,6 @@ private: |
bool originalStyleSheetText(String* result) const; |
bool resourceStyleSheetText(String* result) const; |
bool inlineStyleSheetText(String* result) const; |
- PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSRule> > buildArrayForRuleList(CSSRuleList*); |
PassRefPtr<TypeBuilder::CSS::SelectorList> buildObjectForSelectorList(CSSStyleRule*); |
String url() const; |
bool hasSourceURL() const; |