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

Unified Diff: Source/devtools/front_end/elements/StylesPopoverHelper.js

Issue 1300703004: DevTools: only set title w/ shortcut via Tooltip manager API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 5 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: Source/devtools/front_end/elements/StylesPopoverHelper.js
diff --git a/Source/devtools/front_end/elements/StylesPopoverHelper.js b/Source/devtools/front_end/elements/StylesPopoverHelper.js
index 81e426d0b4451745195d272788631ec6724999ca..95e32e36df668e1edf88c268fd1d8f2c1bc5fe61 100644
--- a/Source/devtools/front_end/elements/StylesPopoverHelper.js
+++ b/Source/devtools/front_end/elements/StylesPopoverHelper.js
@@ -163,7 +163,7 @@ WebInspector.BezierPopoverIcon.prototype = {
_createDOM: function(text)
{
this._element = createElement("nobr");
- WebInspector.Tooltip.install(this._element, WebInspector.UIString("Open cubic bezier editor"));
+ this._element.title = WebInspector.UIString("Open cubic bezier editor");
this._iconElement = this._element.createSVGChild("svg", "popover-icon bezier-icon");
this._iconElement.setAttribute("height", 10);
@@ -237,7 +237,7 @@ WebInspector.ColorSwatchPopoverIcon = function(treeElement, stylesPopoverHelper,
this._swatch.setColorText(colorText);
this._swatch.setFormat(WebInspector.ColorSwatchPopoverIcon._colorFormat(this._swatch.color()));
var shiftClickMessage = WebInspector.UIString("Shift + Click to change color format.");
- WebInspector.Tooltip.install(this._swatch.iconElement(), WebInspector.UIString("Open color picker. %s", shiftClickMessage));
+ this._swatch.iconElement().title = WebInspector.UIString("Open color picker. %s", shiftClickMessage);
this._swatch.iconElement().addEventListener("click", this._iconClick.bind(this));
this._contrastColor = null;
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698