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

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

Issue 2455613002: Fix index used to join results of DOM.getDocument and CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Fix skew between property names and values when emepty ones are skipped. 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 caf1477186dd15ce7883a29d289ffa05fbdef359..6cff66eda3a0a8444fa0f5c4ee58bd061552a406 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.h
@@ -332,6 +332,8 @@ class CORE_EXPORT InspectorCSSAgent final
ComputedStylesMap& styleToIndexMap,
protocol::Array<protocol::CSS::ComputedStyle>& computedStyles);
+ // A non-zero index corresponds to a style in |computedStyles|, -1 means an
+ // empty style.
int getStyleIndexForNode(
Node*,
const Vector<std::pair<String, CSSPropertyID>>& cssPropertyWhitelist,

Powered by Google App Engine
This is Rietveld 408576698