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

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

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: back to DOMSnapshot domain, with custom node types + traversal. Created 3 years, 6 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 81f8b8b53d8d1aaad1a0eff2faa3d3c3b41f9f9c..4df96610f579c45a13f682ee5b6b21148079441a 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
@@ -217,12 +217,6 @@ class CORE_EXPORT InspectorCSSAgent final
CSSStyleDeclaration* FindEffectiveDeclaration(
CSSPropertyID,
const HeapVector<Member<CSSStyleDeclaration>>& styles);
- protocol::Response getLayoutTreeAndStyles(
- std::unique_ptr<protocol::Array<String>> style_whitelist,
- std::unique_ptr<protocol::Array<protocol::CSS::LayoutTreeNode>>*
- layout_tree_nodes,
- std::unique_ptr<protocol::Array<protocol::CSS::ComputedStyle>>*
- computed_styles) override;
HeapVector<Member<CSSStyleDeclaration>> MatchingStyles(Element*);
String StyleSheetId(CSSStyleSheet*);
@@ -308,27 +302,6 @@ 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>& layout_tree_nodes,
- const Vector<std::pair<String, CSSPropertyID>>& css_property_whitelist,
- ComputedStylesMap& style_to_index_map,
- protocol::Array<protocol::CSS::ComputedStyle>& computed_styles);
-
- // A non-zero index corresponds to a style in |computedStyles|, -1 means an
- // empty style.
- int GetStyleIndexForNode(
- Node*,
- const Vector<std::pair<String, CSSPropertyID>>& css_property_whitelist,
- ComputedStylesMap& style_to_index_map,
- protocol::Array<protocol::CSS::ComputedStyle>& computed_styles);
-
Member<InspectorDOMAgent> dom_agent_;
Member<InspectedFrames> inspected_frames_;
Member<InspectorNetworkAgent> network_agent_;

Powered by Google App Engine
This is Rietveld 408576698