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

Unified Diff: Source/WebCore/inspector/front-end/StylesSidebarPane.js

Issue 13084008: Revert 140817 "Web Inspector: [Styles] Editing a property value ..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « LayoutTests/inspector/styles/edit-value-with-trimmed-url-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/StylesSidebarPane.js
===================================================================
--- Source/WebCore/inspector/front-end/StylesSidebarPane.js (revision 147339)
+++ Source/WebCore/inspector/front-end/StylesSidebarPane.js (working copy)
@@ -2089,14 +2089,10 @@
selectElement = selectElement.enclosingNodeOrSelfWithClass("webkit-css-property") || selectElement.enclosingNodeOrSelfWithClass("value");
var isEditingName = selectElement === this.nameElement;
- if (!isEditingName) {
- if (selectElement !== this.valueElement) {
- // Click in the LI - start editing value.
- isEditingName = false;
- selectElement = this.valueElement;
- }
-
- this.valueElement.textContent = this.value;
+ if (!isEditingName && selectElement !== this.valueElement) {
+ // Double-click in the LI - start editing value.
+ isEditingName = false;
+ selectElement = this.valueElement;
}
if (WebInspector.isBeingEdited(selectElement))
« no previous file with comments | « LayoutTests/inspector/styles/edit-value-with-trimmed-url-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698