X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fdevtools%2Ffront_end%2FStylesSidebarPane.js;h=15a9aed2272b19e25f7d8707d93e12f276aa3656;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=46fa72600f0be3e27dad45b631b5a376409001a9;hpb=d1e23c6ec4202b125fc446349b2230d4cd978d86;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/devtools/front_end/StylesSidebarPane.js b/src/third_party/WebKit/Source/devtools/front_end/StylesSidebarPane.js index 46fa726..15a9aed 100644 --- a/src/third_party/WebKit/Source/devtools/front_end/StylesSidebarPane.js +++ b/src/third_party/WebKit/Source/devtools/front_end/StylesSidebarPane.js @@ -733,7 +733,7 @@ WebInspector.StylesSidebarPane.prototype = { */ addBlankSection: function() { - var blankSection = new WebInspector.BlankStylePropertiesSection(this, this.node ? WebInspector.DOMPresentationUtils.appropriateSelectorFor(this.node, true) : ""); + var blankSection = new WebInspector.BlankStylePropertiesSection(this, this.node ? WebInspector.DOMPresentationUtils.simpleSelector(this.node) : ""); var elementStyleSection = this.sections[0][1]; this._sectionsContainer.insertBefore(blankSection.element, elementStyleSection.element.nextSibling); @@ -970,7 +970,6 @@ WebInspector.StylePropertiesSection = function(parentPane, styleRule, editable, // The "linkedStylesheet" case. anchor = WebInspector.linkifyResourceAsNode(media.sourceURL, undefined, "subtitle", media.sourceURL); } - anchor.preferredPanel = "sources"; anchor.style.float = "right"; refElement.appendChild(anchor); } @@ -1042,6 +1041,11 @@ WebInspector.StylePropertiesSection.prototype = { // Overriding with empty body. }, + handleClick: function() + { + // Avoid consuming events. + }, + /** * @param {string} propertyName * @return {boolean} @@ -1296,7 +1300,6 @@ WebInspector.StylePropertiesSection.prototype = { function linkifyUncopyable(url, line) { var link = WebInspector.linkifyResourceAsNode(url, line, "", url + ":" + (line + 1)); - link.preferredPanel = "sources"; link.classList.add("webkit-html-resource-link"); link.setAttribute("data-uncopyable", link.textContent); link.textContent = ""; @@ -1351,8 +1354,7 @@ WebInspector.StylePropertiesSection.prototype = { var index = event.target._selectorIndex; var styleSheetHeader = WebInspector.cssModel.styleSheetHeaderForId(this.rule.id.styleSheetId); var uiLocation = styleSheetHeader.rawLocationToUILocation(this.rule.lineNumberInSource(index), this.rule.columnNumberInSource(index)); - if (uiLocation) - uiLocation.reveal(); + WebInspector.Revealer.reveal(uiLocation); return; } this._startEditingOnMouseEvent(); @@ -1385,8 +1387,8 @@ WebInspector.StylePropertiesSection.prototype = { element.scrollIntoViewIfNeeded(false); element.textContent = element.textContent; // Reset selector marks in group. - var config = new WebInspector.EditingConfig(this.editingSelectorCommitted.bind(this), this.editingSelectorCancelled.bind(this)); - WebInspector.startEditing(this._selectorElement, config); + var config = new WebInspector.InplaceEditor.Config(this.editingSelectorCommitted.bind(this), this.editingSelectorCancelled.bind(this)); + WebInspector.InplaceEditor.startEditing(this._selectorElement, config); window.getSelection().setBaseAndExtent(element, 0, element, 1); this._parentPane._isEditingStyle = true; @@ -2380,9 +2382,7 @@ WebInspector.StylePropertyTreeElement.prototype = { { console.assert(this.section().navigable); var propertyNameClicked = element === this.nameElement; - var uiLocation = this.property.uiLocation(propertyNameClicked); - if (uiLocation) - uiLocation.reveal(); + WebInspector.Revealer.reveal(this.property.uiLocation(propertyNameClicked)); }, /**