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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js

Issue 2215253002: DevTools: do not use CSSMetadata instances for autocompletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-meta-data
Patch Set: address comments Created 4 years, 4 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/devtools/front_end/sources/CSSSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
index af853de702c031147ba23d87a2af25f9d818feb0..e1170ab1e71fb0cd4f56ecfd2cb439e9d6569e80 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js
@@ -358,7 +358,7 @@ WebInspector.CSSSourceFrame.AutocompleteDelegate.prototype = {
var line = editor.line(prefixRange.startLine);
var tokenContent = line.substring(propertyToken.startColumn, propertyToken.endColumn);
- var keywords = WebInspector.CSSMetadata.keywordsForProperty(tokenContent);
- return keywords.startsWith(prefix);
+ var propertyValues = WebInspector.CSSMetadata.propertyValues(tokenContent);
+ return propertyValues.filter(value => value.startsWith(prefix));
},
}

Powered by Google App Engine
This is Rietveld 408576698