⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243964 in webkit


Ignore:
Timestamp:
Apr 6, 2019, 7:54:58 PM (7 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION(r237196): Web Inspector: Computed panel shouldn't update when it isn't visible
https://bugs.webkit.org/show_bug.cgi?id=196667
<rdar://problem/49664912>

Reviewed by Timothy Hatcher.

Explicitly define hidden and shown methods instead of relying on SidebarPanel's visible getter.

  • UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:

(WI.GeneralStyleDetailsSidebarPanel.prototype.visibilityDidChange): Deleted.
(WI.GeneralStyleDetailsSidebarPanel.prototype.hidden): Added.
(WI.GeneralStyleDetailsSidebarPanel.prototype.shown): Added.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243953 r243964  
     12019-04-06  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        REGRESSION(r237196): Web Inspector: Computed panel shouldn't update when it isn't visible
     4        https://bugs.webkit.org/show_bug.cgi?id=196667
     5        <rdar://problem/49664912>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        Explicitly define `hidden` and `shown` methods instead of relying on SidebarPanel's `visible` getter.
     10
     11        * UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:
     12        (WI.GeneralStyleDetailsSidebarPanel.prototype.visibilityDidChange): Deleted.
     13        (WI.GeneralStyleDetailsSidebarPanel.prototype.hidden): Added.
     14        (WI.GeneralStyleDetailsSidebarPanel.prototype.shown): Added.
     15
    1162019-04-05  Devin Rousso  <drousso@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js

    r240967 r243964  
    4646    }
    4747
    48     visibilityDidChange()
    49     {
    50         super.visibilityDidChange();
     48    hidden()
     49    {
     50        super.hidden();
     51
     52        if (this._panel)
     53            this._panel.hidden();
     54    }
     55
     56    shown()
     57    {
     58        super.shown();
    5159
    5260        if (!this._panel)
    5361            return;
    5462
    55         if (!this.visible) {
    56             this._panel.hidden();
    57             return;
    58         }
     63        console.assert(this.visible, `Shown panel ${this._identifier} must be visible.`);
    5964
    6065        this._updateNoForcedPseudoClassesScrollOffset();
    61 
    6266        this._panel.shown();
    6367        this._panel.markAsNeedsRefresh(this.domNode);
Note: See TracChangeset for help on using the changeset viewer.