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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2489403002: DevTools: Ghost text shouldn't affect textWithCurrentSuggestion (Closed)
Patch Set: Created 4 years, 1 month 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/elements/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index 4f0782843aa49141378101174e5351cab56233f4..c0661802fb57a859651eabd02aad309305948661 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -2457,7 +2457,7 @@ WebInspector.StylePropertyTreeElement = class extends TreeElement {
}
_applyFreeFlowStyleTextEdit() {
- var valueText = this.valueElement.textContent;
+ var valueText = this._prompt.textWithCurrentSuggestion();
if (valueText.indexOf(';') === -1)
this.applyStyleText(this.nameElement.textContent + ': ' + valueText, false);
}

Powered by Google App Engine
This is Rietveld 408576698