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

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

Issue 666883002: DevTools: [CSS] cache lineEndings in InspectorStyleSheet (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: get rid of pointer magic Created 6 years, 2 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 20d90b71577aeebd7c19c866e17b442225ecf651..03f24a940f9ad581e4c02f601990ac447c8ab7df 100644
--- a/Source/core/inspector/InspectorStyleSheet.h
+++ b/Source/core/inspector/InspectorStyleSheet.h
@@ -54,6 +54,7 @@ class InspectorStyleSheetBase;
typedef WillBeHeapVector<RefPtrWillBeMember<CSSRule> > CSSRuleVector;
typedef String ErrorString;
+typedef Vector<unsigned> LineEndings;
class InspectorCSSId {
public:
@@ -168,8 +169,8 @@ protected:
InspectorStyleSheetBase(const String& id, Listener*);
Listener* listener() const { return m_listener; }
- void fireStyleSheetChanged();
- PassOwnPtr<Vector<unsigned> > lineEndings();
+ void onStyleSheetTextChanged();
+ const LineEndings* lineEndings();
virtual PassRefPtrWillBeRawPtr<InspectorStyle> inspectorStyleForId(const InspectorCSSId&) = 0;
virtual unsigned ruleCount() = 0;
@@ -183,6 +184,7 @@ private:
String m_id;
Listener* m_listener;
+ OwnPtr<LineEndings> m_lineEndings;
};
class InspectorStyleSheet : public InspectorStyleSheetBase {

Powered by Google App Engine
This is Rietveld 408576698