Changeset 281139 in webkit


Ignore:
Timestamp:
Aug 17, 2021, 9:01:58 AM (4 years ago)
Author:
Razvan Caliman
Message:

Web Inspector: Do not show contextual documentation popup in the Changes panel
https://bugs.webkit.org/show_bug.cgi?id=229001
<rdar://problem/81792379>

Reviewed by Devin Rousso.

Add config option to WI.SpreadsheetStyleProperty to prevent showing a contextual documentation button.

  • UserInterface/Views/ChangesDetailsSidebarPanel.js:

(WI.ChangesDetailsSidebarPanel.prototype._createRuleElement.onEach):

  • UserInterface/Views/SpreadsheetStyleProperty.js:

(WI.SpreadsheetStyleProperty.prototype._addContextualDocumentationButton):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r280989 r281139  
     12021-08-17  Razvan Caliman  <rcaliman@apple.com>
     2
     3        Web Inspector: Do not show contextual documentation popup in the Changes panel
     4        https://bugs.webkit.org/show_bug.cgi?id=229001
     5        <rdar://problem/81792379>
     6
     7        Reviewed by Devin Rousso.
     8
     9        Add config option to WI.SpreadsheetStyleProperty to prevent showing a contextual documentation button.
     10
     11        * UserInterface/Views/ChangesDetailsSidebarPanel.js:
     12        (WI.ChangesDetailsSidebarPanel.prototype._createRuleElement.onEach):
     13        * UserInterface/Views/SpreadsheetStyleProperty.js:
     14        (WI.SpreadsheetStyleProperty.prototype._addContextualDocumentationButton):
     15
    1162021-08-12  Patrick Angle  <pangle@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/ChangesDetailsSidebarPanel.js

    r270134 r281139  
    144144
    145145            const delegate = null;
    146             let stylePropertyView = new WI.SpreadsheetStyleProperty(delegate, cssProperty, {readOnly: true});
     146            let stylePropertyView = new WI.SpreadsheetStyleProperty(delegate, cssProperty, {readOnly: true, hideDocumentation: true});
    147147            propertyLineElement.append(WI.indentString(), stylePropertyView.element, "\n");
    148148        }
  • trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js

    r279510 r281139  
    3535        this._property = property;
    3636        this._readOnly = options.readOnly || false;
     37        this._hideDocumentation = !!options.hideDocumentation;
    3738        this._element = document.createElement("div");
    3839
     
    528529    _addContextualDocumentationButton()
    529530    {
     531        if (this._hideDocumentation)
     532            return;
     533
    530534        if (this._contextualDocumentationButton) {
    531535            this._contextualDocumentationButton.remove();
Note: See TracChangeset for help on using the changeset viewer.