Changeset 191740 in webkit
- Timestamp:
- Oct 29, 2015 11:35:17 AM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r191732 r191740 1 2015-10-29 Timothy Hatcher <timothy@apple.com> 2 3 Web Inspector: Navigation bar icons are missing 4 https://bugs.webkit.org/show_bug.cgi?id=150677 5 6 Reviewed by Joseph Pecoraro. 7 8 The glyph width and height were not being set correctly and it broke NavigationBar buttons. 9 The width and height attribute was being set on a div, when it should have used the style property. 10 Also remove the suppressEmboss flag, which is no longer used but the clients and subclasses still did. 11 12 * UserInterface/Base/ImageUtilities.js: 13 (useSVGSymbol): Use style property instead of setting width and height. The attributes 14 didn't accomplish the same thing in all cases. Use title and className property on the 15 wrapper element and remove the comments, which applied when there wasn't a wrapper. 16 17 * UserInterface/Views/ActivateButtonNavigationItem.js: 18 (WebInspector.ActivateButtonNavigationItem): Remove suppressEmboss. 19 * UserInterface/Views/ActivateButtonToolbarItem.js: 20 (WebInspector.ActivateButtonToolbarItem): Remove suppressEmboss. 21 22 * UserInterface/Views/ButtonNavigationItem.js: 23 (WebInspector.ButtonNavigationItem): Remove suppressEmboss. 24 (WebInspector.ButtonNavigationItem.prototype.set image): Use style property instead of setting 25 width and height attributes. This assumed the SVG element was the glyph element, which changed 26 at one point without me remembering to fix this client. 27 28 * UserInterface/Views/ButtonToolbarItem.js: 29 (WebInspector.ButtonToolbarItem): Remove suppressEmboss. 30 * UserInterface/Views/DebuggerDashboardView.js: 31 (WebInspector.DebuggerDashboardView): Remove suppressEmboss use. 32 * UserInterface/Views/FilterBar.js: 33 (WebInspector.FilterBar.prototype.addFilterBarButton): Remove suppressEmboss. 34 * UserInterface/Views/FilterBarButton.js: 35 (WebInspector.FilterBarButton): Remove suppressEmboss. 36 * UserInterface/Views/TimelineSidebarPanel.js: 37 (WebInspector.TimelineSidebarPanel): Remove suppressEmboss use. 38 * UserInterface/Views/ToggleButtonNavigationItem.js: 39 (WebInspector.ToggleButtonNavigationItem): Remove suppressEmboss. 40 1 41 2015-10-29 Joseph Pecoraro <pecoraro@apple.com> 2 42 -
trunk/Source/WebInspectorUI/UserInterface/Base/ImageUtilities.js
r191693 r191740 30 30 31 31 let svgElement = document.createElementNS(svgNamespace, "svg"); 32 svgElement.s etAttribute("width", "100%");33 svgElement.s etAttribute("height", "100%");32 svgElement.style.width = "100%"; 33 svgElement.style.height = "100%"; 34 34 35 35 // URL must contain a fragment reference to a graphical element, like a symbol. If none is given … … 46 46 47 47 if (className) 48 wrapper. setAttribute("class", className); // Can't use className property since this is the SVG DOM.48 wrapper.className = className; 49 49 if (title) 50 wrapper. setAttribute("title", title); // Can't use title property since this is the SVG DOM.50 wrapper.title = title; 51 51 52 52 return wrapper; -
trunk/Source/WebInspectorUI/UserInterface/Views/ActivateButtonNavigationItem.js
r191693 r191740 26 26 WebInspector.ActivateButtonNavigationItem = class ActivateButtonNavigationItem extends WebInspector.ButtonNavigationItem 27 27 { 28 constructor(identifier, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, suppressEmboss,role)28 constructor(identifier, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, role) 29 29 { 30 super(identifier, defaultToolTip, image, imageWidth, imageHeight, suppressEmboss,role);30 super(identifier, defaultToolTip, image, imageWidth, imageHeight, role); 31 31 32 32 this._defaultToolTip = defaultToolTip; -
trunk/Source/WebInspectorUI/UserInterface/Views/ActivateButtonToolbarItem.js
r187519 r191740 26 26 WebInspector.ActivateButtonToolbarItem = class ActivateButtonToolbarItem extends WebInspector.ActivateButtonNavigationItem 27 27 { 28 constructor(identifier, defaultToolTip, activatedToolTip, label, image, suppressEmboss,role)28 constructor(identifier, defaultToolTip, activatedToolTip, label, image, role) 29 29 { 30 super(identifier, defaultToolTip, activatedToolTip, image, 32, 32, suppressEmboss, role);30 super(identifier, defaultToolTip, activatedToolTip, image, 16, 16, role); 31 31 32 32 if (typeof label === "string") { -
trunk/Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js
r191693 r191740 26 26 WebInspector.ButtonNavigationItem = class ButtonNavigationItem extends WebInspector.NavigationItem 27 27 { 28 constructor(identifier, toolTipOrLabel, image, imageWidth, imageHeight, suppressEmboss,role, label)28 constructor(identifier, toolTipOrLabel, image, imageWidth, imageHeight, role, label) 29 29 { 30 30 super(identifier); … … 98 98 99 99 this._glyphElement = useSVGSymbol(this._image, "glyph"); 100 this._glyphElement.s etAttribute("width", this._imageWidth + "px");101 this._glyphElement.s etAttribute("height", this._imageHeight + "px");100 this._glyphElement.style.width = this._imageWidth + "px"; 101 this._glyphElement.style.height = this._imageHeight + "px"; 102 102 this._element.appendChild(this._glyphElement); 103 103 } -
trunk/Source/WebInspectorUI/UserInterface/Views/ButtonToolbarItem.js
r187519 r191740 26 26 WebInspector.ButtonToolbarItem = class ButtonToolbarItem extends WebInspector.ButtonNavigationItem 27 27 { 28 constructor(identifier, toolTip, label, image, suppressEmboss,role)28 constructor(identifier, toolTip, label, image, role) 29 29 { 30 super(identifier, toolTip, image, 16, 16, suppressEmboss,role);30 super(identifier, toolTip, image, 16, 16, role); 31 31 32 32 if (typeof label === "string") { -
trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.js
r187402 r191740 36 36 37 37 var tooltip = WebInspector.UIString("Continue script execution (%s or %s)").format(WebInspector.pauseOrResumeKeyboardShortcut.displayName, WebInspector.pauseOrResumeAlternateKeyboardShortcut.displayName); 38 this._debuggerResumeButtonItem = new WebInspector.ActivateButtonNavigationItem("debugger-dashboard-pause", tooltip, tooltip, "Images/Resume.svg", 15, 15 , true);38 this._debuggerResumeButtonItem = new WebInspector.ActivateButtonNavigationItem("debugger-dashboard-pause", tooltip, tooltip, "Images/Resume.svg", 15, 15); 39 39 this._debuggerResumeButtonItem.activated = true; 40 40 this._debuggerResumeButtonItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._resumeButtonClicked, this); -
trunk/Source/WebInspectorUI/UserInterface/Views/FilterBar.js
r185723 r191740 85 85 } 86 86 87 addFilterBarButton(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight , suppressEmboss)87 addFilterBarButton(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight) 88 88 { 89 var filterBarButton = new WebInspector.FilterBarButton(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight , suppressEmboss);89 var filterBarButton = new WebInspector.FilterBarButton(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight); 90 90 filterBarButton.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._handleFilterBarButtonClicked, this); 91 91 filterBarButton.addEventListener(WebInspector.FilterBarButton.Event.ActivatedStateToggled, this._handleFilterButtonToggled, this); -
trunk/Source/WebInspectorUI/UserInterface/Views/FilterBarButton.js
r182055 r191740 26 26 WebInspector.FilterBarButton = class FilterBarButton extends WebInspector.ActivateButtonNavigationItem 27 27 { 28 constructor(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, suppressEmboss,role)28 constructor(identifier, filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, role) 29 29 { 30 super(identifier, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, suppressEmboss,role);30 super(identifier, defaultToolTip, activatedToolTip, image, imageWidth, imageHeight, role); 31 31 32 32 this._filterFunction = filterFunction; -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineSidebarPanel.js
r191693 r191740 149 149 toolTip = WebInspector.UIString("Start Playback"); 150 150 altToolTip = WebInspector.UIString("Pause Playback"); 151 this._replayPauseResumeButtonItem = new WebInspector.ToggleButtonNavigationItem("replay-pause-resume", toolTip, altToolTip, "Images/Resume.svg", "Images/Pause.svg", 15, 15 , true);151 this._replayPauseResumeButtonItem = new WebInspector.ToggleButtonNavigationItem("replay-pause-resume", toolTip, altToolTip, "Images/Resume.svg", "Images/Pause.svg", 15, 15); 152 152 this._replayPauseResumeButtonItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._replayPauseResumeButtonClicked, this); 153 153 this._replayPauseResumeButtonItem.enabled = false; -
trunk/Source/WebInspectorUI/UserInterface/Views/ToggleButtonNavigationItem.js
r191693 r191740 26 26 WebInspector.ToggleButtonNavigationItem = class ToggleButtonNavigationItem extends WebInspector.ButtonNavigationItem 27 27 { 28 constructor(identifier, defaultToolTip, alternateToolTip, defaultImage, alternateImage, imageWidth, imageHeight , suppressEmboss)28 constructor(identifier, defaultToolTip, alternateToolTip, defaultImage, alternateImage, imageWidth, imageHeight) 29 29 { 30 super(identifier, defaultToolTip, defaultImage, imageWidth, imageHeight , suppressEmboss);30 super(identifier, defaultToolTip, defaultImage, imageWidth, imageHeight); 31 31 32 32 this._toggled = false;
Note: See TracChangeset
for help on using the changeset viewer.