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

Changeset 237481 in webkit


Ignore:
Timestamp:
Oct 26, 2018, 1:43:04 PM (8 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'this._classListContainer.children')
​https://bugs.webkit.org/show_bug.cgi?id=190966

Reviewed by Joseph Pecoraro.

  • UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:

(WI.GeneralStyleDetailsSidebarPanel.prototype.layout):
(WI.GeneralStyleDetailsSidebarPanel.prototype._classToggleButtonClicked):
(WI.GeneralStyleDetailsSidebarPanel.prototype._populateClassToggles):
Don't try to reload the class toggles if the we haven't layout yet, as the element won't
yet exist.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r237436 r237481  
     12018-10-26  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'this._classListContainer.children')
     4        https://bugs.webkit.org/show_bug.cgi?id=190966
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/GeneralStyleDetailsSidebarPanel.js:
     9        (WI.GeneralStyleDetailsSidebarPanel.prototype.layout):
     10        (WI.GeneralStyleDetailsSidebarPanel.prototype._classToggleButtonClicked):
     11        (WI.GeneralStyleDetailsSidebarPanel.prototype._populateClassToggles):
     12        Don't try to reload the class toggles if the we haven't `layout` yet, as the element won't
     13        yet exist.
     14
    1152018-10-25  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js

    r236766 r237481  
    105105
    106106        this._updatePseudoClassCheckboxes();
    107 
    108         if (!this._classListContainer.hidden)
    109             this._populateClassToggles();
     107        this._populateClassToggles();
    110108    }
    111109
    … …  
    325323        this._classListContainer.hidden = !this._classListContainer.hidden;
    326324        this._classListContainerToggledSetting.value = !this._classListContainer.hidden;
    327         if (this._classListContainer.hidden)
    328             return;
    329 
    330325        this._populateClassToggles();
    331326    }
    … …  
    354349    _populateClassToggles()
    355350    {
     351        if (!this._classListContainer || this._classListContainer.hidden)
     352            return;
     353
    356354        // Ensure that _addClassContainer is the first child of _classListContainer.
    357355        while (this._classListContainer.children.length > 1)
Note: See TracChangeset for help on using the changeset viewer.