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

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

Issue 14320027: DevTools: Track CSSStyleSheetHeaders in the front-end real time (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for trybots (with [Slow]) Created 7 years, 8 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
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.h
diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
index e5ecf90ff6cf57e67b265ff906cea8d9e34fa51b..c59d0950d1980362c008ac729caa8547cc23a931 100644
--- a/Source/core/inspector/InspectorCSSAgent.h
+++ b/Source/core/inspector/InspectorCSSAgent.h
@@ -37,6 +37,7 @@
#include <wtf/HashSet.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
+#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
@@ -58,6 +59,7 @@ class NodeList;
class SelectorProfile;
class StyleResolver;
class StyleRule;
+class StyleSheetVisitor;
class UpdateRegionLayoutTask;
@@ -106,6 +108,7 @@ public:
void willRemoveNamedFlow(Document*, NamedFlow*);
void didUpdateRegionLayout(Document*, NamedFlow*);
void regionLayoutUpdated(NamedFlow*, int documentNodeId);
+ void activeStyleSheetsUpdated(const Vector<RefPtr<StyleSheet> >& newSheets);
virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&);
virtual void getInlineStylesForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::CSS::CSSStyle>& inlineStyle, RefPtr<TypeBuilder::CSS::CSSStyle>& attributes);
@@ -153,9 +156,11 @@ private:
InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element);
Element* elementForId(ErrorString*, int nodeId);
int documentNodeWithRequestedFlowsId(Document*);
- void collectStyleSheets(CSSStyleSheet*, TypeBuilder::Array<WebCore::TypeBuilder::CSS::CSSStyleSheetHeader>*);
+ void collectAllStyleSheets(Vector<InspectorStyleSheet*>&);
+ void collectStyleSheets(CSSStyleSheet*, Vector<InspectorStyleSheet*>&);
InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*);
+ String unbindStyleSheet(InspectorStyleSheet*);
InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent);
InspectorStyleSheet* assertStyleSheetForId(ErrorString*, const String&);
TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageStyleSheet, Document* ownerDocument);
@@ -189,8 +194,11 @@ private:
OwnPtr<UpdateRegionLayoutTask> m_updateRegionLayoutTask;
int m_lastStyleSheetId;
+ bool m_creatingViaInspectorStyleSheet;
OwnPtr<SelectorProfile> m_currentSelectorProfile;
+
+ friend class StyleSheetBinder;
};
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698