Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1186)

Unified Diff: Source/core/inspector/InspectorStyleSheet.h

Issue 1202233002: DevTools: remove parsedstylesheet struct, inline it into inspectorstylesheet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorStyleSheet.h
diff --git a/Source/core/inspector/InspectorStyleSheet.h b/Source/core/inspector/InspectorStyleSheet.h
index 5cca9b11ee544028b71169ca3e6e93fa12b6db4c..3f1be2d45eb35a4b141232f1c52548872732f3a2 100644
--- a/Source/core/inspector/InspectorStyleSheet.h
+++ b/Source/core/inspector/InspectorStyleSheet.h
@@ -36,8 +36,6 @@
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
-class ParsedStyleSheet;
-
namespace blink {
class CSSMediaRule;
@@ -158,9 +156,7 @@ private:
CSSStyleRule* insertCSSOMRuleBySourceRange(const SourceRange&, const String& ruleText, ExceptionState&);
String sourceMapURL();
String sourceURL();
- bool ensureText();
void ensureFlatRules();
- bool originalStyleSheetText(String* result);
bool resourceStyleSheetText(String* result);
bool inlineStyleSheetText(String* result);
PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::Selector> > selectorsFromSource(const CSSRuleSourceData*, const String&);
@@ -170,9 +166,8 @@ private:
bool startsAtZero();
unsigned indexOf(CSSStyleDeclaration*);
- bool ensureParsedDataReady();
void replaceText(const SourceRange&, const String& text, SourceRange* newRange, String* oldText);
- void innerSetText(const String& newText);
+ void innerSetText(const String& newText, bool markAsLocallyModified);
Element* ownerStyleElement();
RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
@@ -180,7 +175,8 @@ private:
RefPtrWillBeMember<CSSStyleSheet> m_pageStyleSheet;
TypeBuilder::CSS::StyleSheetOrigin::Enum m_origin;
String m_documentURL;
- OwnPtrWillBeMember<ParsedStyleSheet> m_parsedStyleSheet;
+ OwnPtrWillBeMember<RuleSourceDataList> m_sourceData;
+ String m_text;
CSSRuleVector m_flatRules;
String m_sourceURL;
};
« no previous file with comments | « no previous file | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | Source/core/inspector/InspectorStyleSheet.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698