Changeset 205555 in webkit


Ignore:
Timestamp:
Sep 7, 2016 10:24:14 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: clicking Computed Styles sidebar "Show All" checkbox doesn't trigger relayout of Properties section
https://bugs.webkit.org/show_bug.cgi?id=161652

Patch by Devin Rousso <Devin Rousso> on 2016-09-07
Reviewed by Brian Burg.

  • UserInterface/Views/CSSStyleDeclarationTextEditor.js:

(WebInspector.CSSStyleDeclarationTextEditor.prototype._iterateOverProperties):
Fixed style issues from r205518 <webkit.org/b/161405>.

  • UserInterface/Views/ComputedStyleDetailsPanel.js:

(WebInspector.ComputedStyleDetailsPanel.prototype.get regionFlow):
(WebInspector.ComputedStyleDetailsPanel.prototype.get contentFlow):
(WebInspector.ComputedStyleDetailsPanel.prototype.get containerRegions):
Added missing space between semicolon and curly-brace.

(WebInspector.ComputedStyleDetailsPanel.prototype._computedStyleShowAllCheckboxValueChanged):
Added updateLayout call to resize and repopulate the CodeMirror instance.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r205554 r205555  
     12016-09-07  Devin Rousso  <dcrousso+webkit@gmail.com>
     2
     3        Web Inspector: clicking Computed Styles sidebar "Show All" checkbox doesn't trigger relayout of Properties section
     4        https://bugs.webkit.org/show_bug.cgi?id=161652
     5
     6        Reviewed by Brian Burg.
     7
     8        * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
     9        (WebInspector.CSSStyleDeclarationTextEditor.prototype._iterateOverProperties):
     10        Fixed style issues from r205518 <webkit.org/b/161405>.
     11
     12        * UserInterface/Views/ComputedStyleDetailsPanel.js:
     13        (WebInspector.ComputedStyleDetailsPanel.prototype.get regionFlow):
     14        (WebInspector.ComputedStyleDetailsPanel.prototype.get contentFlow):
     15        (WebInspector.ComputedStyleDetailsPanel.prototype.get containerRegions):
     16        Added missing space between semicolon and curly-brace.
     17
     18        (WebInspector.ComputedStyleDetailsPanel.prototype._computedStyleShowAllCheckboxValueChanged):
     19        Added updateLayout call to resize and repopulate the CodeMirror instance.
     20
    1212016-09-07  Chris Dumez  <cdumez@apple.com>
    222
  • trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js

    r205518 r205555  
    12201220
    12211221                    break;
     1222
     1223                case WebInspector.CSSStyleDeclarationTextEditor.PropertyVisibilityMode.ShowAll:
     1224                    break;
     1225
     1226                default:
     1227                    console.error("Invalid property visibility mode");
     1228                    break;
    12221229                }
    12231230
     
    12281235        properties = properties.filter(filterFunction);
    12291236        if (this._sortProperties)
    1230                 properties.sort((a, b) => a.name.localeCompare(b.name));
     1237            properties.sort((a, b) => a.name.localeCompare(b.name));
    12311238
    12321239        this._shownProperties = properties;
  • trunk/Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js

    r205518 r205555  
    3737    // Public
    3838
    39     get regionFlow() { return this._regionFlow;}
     39    get regionFlow() { return this._regionFlow; }
    4040    set regionFlow(regionFlow)
    4141    {
     
    4646    }
    4747
    48     get contentFlow() { return this._contentFlow;}
     48    get contentFlow() { return this._contentFlow; }
    4949    set contentFlow(contentFlow)
    5050    {
     
    5555    }
    5656
    57     get containerRegions() { return this._containerRegions;}
     57    get containerRegions() { return this._containerRegions; }
    5858    set containerRegions(regions)
    5959    {
     
    225225    _computedStyleShowAllCheckboxValueChanged(event)
    226226    {
    227         var checked = this._computedStyleShowAllCheckbox.checked;
     227        let checked = this._computedStyleShowAllCheckbox.checked;
    228228        this._computedStyleShowAllSetting.value = checked;
    229229        this._propertiesTextEditor.showsImplicitProperties = checked;
     230        this._propertiesTextEditor.updateLayout();
    230231    }
    231232
Note: See TracChangeset for help on using the changeset viewer.