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

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

Issue 202443003: Revert 169354 "DevTools: track stylesheets by document, not loca..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 9 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 | « trunk/Source/core/dom/Document.cpp ('k') | trunk/Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/inspector/InspectorCSSAgent.h
===================================================================
--- trunk/Source/core/inspector/InspectorCSSAgent.h (revision 169388)
+++ trunk/Source/core/inspector/InspectorCSSAgent.h (working copy)
@@ -118,8 +118,8 @@
void willMutateStyle();
void didMutateStyle(CSSStyleDeclaration*, bool);
+public:
void activeStyleSheetsUpdated(Document*);
- void documentDisposed(Document*);
void frameDetachedFromParent(LocalFrame*);
virtual void getComputedStyleForNode(ErrorString*, int nodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSComputedStyleProperty> >&) OVERRIDE;
@@ -159,8 +159,8 @@
void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&);
void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&);
- void updateActiveStyleSheets(Document*, StyleSheetsUpdateType);
- void setActiveStyleSheets(Document*, const Vector<CSSStyleSheet*>&, StyleSheetsUpdateType);
+ void updateActiveStyleSheetsForDocument(Document*, StyleSheetsUpdateType);
+ void updateActiveStyleSheets(LocalFrame*, const Vector<CSSStyleSheet*>&, StyleSheetsUpdateType);
void collectPlatformFontsForRenderer(RenderText*, HashCountedSet<String>*);
@@ -194,8 +194,7 @@
IdToInspectorStyleSheet m_idToInspectorStyleSheet;
HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > m_cssStyleSheetToInspectorStyleSheet;
- typedef HashMap<Document*, OwnPtr<HashSet<CSSStyleSheet*> > > DocumentStyleSheets;
- DocumentStyleSheets m_documentToCSSStyleSheets;
+ HashMap<LocalFrame*, OwnPtr<HashSet<CSSStyleSheet*> > > m_frameToCSSStyleSheets;
NodeToInspectorStyleSheet m_nodeToInspectorStyleSheet;
HashMap<RefPtr<Document>, RefPtr<InspectorStyleSheet> > m_documentToViaInspectorStyleSheet; // "via inspector" stylesheets
« no previous file with comments | « trunk/Source/core/dom/Document.cpp ('k') | trunk/Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698