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

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

Issue 2413693002: Rename DOM.getLayoutTreeNodes to CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Fix iframe path and drop font-family from test since it's different on mac Created 4 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: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
index 901211a7fb4f7f9545c793190b38e49fee70606f..caf1477186dd15ce7883a29d289ffa05fbdef359 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
@@ -231,6 +231,13 @@ class CORE_EXPORT InspectorCSSAgent final
const String& value,
bool forceImportant = false);
void layoutEditorItemSelected(Element*, CSSStyleDeclaration*);
+ void getLayoutTreeAndStyles(
+ ErrorString*,
+ std::unique_ptr<protocol::Array<String>> styleWhitelist,
+ std::unique_ptr<protocol::Array<protocol::CSS::LayoutTreeNode>>*
+ layoutTreeNodes,
+ std::unique_ptr<protocol::Array<protocol::CSS::ComputedStyle>>*
+ computedStyles) override;
HeapVector<Member<CSSStyleDeclaration>> matchingStyles(Element*);
String styleSheetId(CSSStyleSheet*);
@@ -312,6 +319,25 @@ class CORE_EXPORT InspectorCSSAgent final
void resetPseudoStates();
+ struct VectorStringHashTraits;
+ using ComputedStylesMap = WTF::HashMap<Vector<String>,
+ int,
+ VectorStringHashTraits,
+ VectorStringHashTraits>;
+
+ void visitLayoutTreeNodes(
+ Node*,
+ protocol::Array<protocol::CSS::LayoutTreeNode>& layoutTreeNodes,
+ const Vector<std::pair<String, CSSPropertyID>>& cssPropertyWhitelist,
+ ComputedStylesMap& styleToIndexMap,
+ protocol::Array<protocol::CSS::ComputedStyle>& computedStyles);
+
+ int getStyleIndexForNode(
+ Node*,
+ const Vector<std::pair<String, CSSPropertyID>>& cssPropertyWhitelist,
+ ComputedStylesMap& styleToIndexMap,
+ protocol::Array<protocol::CSS::ComputedStyle>& computedStyles);
+
Member<InspectorDOMAgent> m_domAgent;
Member<InspectedFrames> m_inspectedFrames;
Member<InspectorNetworkAgent> m_networkAgent;

Powered by Google App Engine
This is Rietveld 408576698