| 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;
|
|
|