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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html

Issue 2300523002: DevTools: cleanup WI.CSSWorkspaceBindings (Closed)
Patch Set: address comments Created 4 years, 3 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/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html
index 30ab9f066a1b5d7c9e93b85b533d5b25a3a037fe..fb37fc503496d9a330c308cc0100760ec04fa3bd 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html
@@ -65,11 +65,8 @@ function test()
{
var locationsCount = 0;
var targetInfos = WebInspector.cssWorkspaceBinding._modelToTargetInfo.valuesArray();
- for (var targetInfo of targetInfos) {
- var headerInfos = targetInfo._headerInfoById.valuesArray();
- for (var headerInfo of headerInfos)
- locationsCount += headerInfo._locations.size;
- }
+ for (var targetInfo of targetInfos)
+ locationsCount += targetInfo._locations.valuesArray().length;
return locationsCount;
}
}

Powered by Google App Engine
This is Rietveld 408576698