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

Unified Diff: Source/core/css/InspectorCSSOMWrappers.cpp

Issue 23629018: DevTools: show styles for shadow dom elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix inspector-enabled test Created 7 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/css/InspectorCSSOMWrappers.cpp
diff --git a/Source/core/css/InspectorCSSOMWrappers.cpp b/Source/core/css/InspectorCSSOMWrappers.cpp
index 324c0128f5c3d24585953170b4dd3e1f2d5e6f0c..7474b7f9e00d3f986be7f6df2033d4d6203b1cfe 100644
--- a/Source/core/css/InspectorCSSOMWrappers.cpp
+++ b/Source/core/css/InspectorCSSOMWrappers.cpp
@@ -105,7 +105,10 @@ void InspectorCSSOMWrappers::collectFromStyleSheets(const Vector<RefPtr<CSSStyle
void InspectorCSSOMWrappers::collectFromStyleEngine(StyleEngine* styleSheetCollection)
{
- collectFromStyleSheets(styleSheetCollection->activeAuthorStyleSheets());
+ Vector<const Vector<RefPtr<CSSStyleSheet> >*> activeAuthorStyleSheets;
+ styleSheetCollection->getActiveAuthorStyleSheets(activeAuthorStyleSheets);
+ for (size_t i = 0; i < activeAuthorStyleSheets.size(); ++i)
+ collectFromStyleSheets(*activeAuthorStyleSheets[i]);
collect(styleSheetCollection->pageUserSheet());
collectFromStyleSheets(styleSheetCollection->documentUserStyleSheets());
}
« no previous file with comments | « LayoutTests/inspector/styles/shadow-dom-rules-expected.txt ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698