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

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

Issue 121263002: DevTools: Do not force style sheets update on inspector start. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test Created 7 years 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/InspectorCSSAgent.h
diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
index f4768ff85f553e9b09b25918d3fd9267c0b38f3b..90529a9d07cec33624e5c93d5703d50c66b41280 100644
--- a/Source/core/inspector/InspectorCSSAgent.h
+++ b/Source/core/inspector/InspectorCSSAgent.h
@@ -77,6 +77,11 @@ public:
MediaListSourceImportRule
};
+ enum StyleSheetsUpdateType {
+ InitialFrontendLoad = 0,
+ ExistingFrontendRefresh,
+ };
+
class InlineStyleOverrideScope {
public:
InlineStyleOverrideScope(SecurityContext* context)
@@ -176,7 +181,7 @@ private:
void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&);
void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&);
- void updateActiveStyleSheets(Document*, const Vector<CSSStyleSheet*>&);
+ void updateActiveStyleSheets(Document*, const Vector<CSSStyleSheet*>&, StyleSheetsUpdateType);
void collectPlatformFontsForRenderer(RenderText*, HashCountedSet<String>*);
« no previous file with comments | « LayoutTests/inspector-protocol/stylesheet-tracking-restart-expected.txt ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698