Skip to content
  • pfeldman@chromium.org's avatar
    Web Inspector: TabbedPane: measure tab widths in batches. · fb430742
    pfeldman@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=94484
    
    Reviewed by Vsevolod Vlasov.
    
    Source/WebCore:
    
    - Introduces global batch update schema
    - Migrates Toolbar and TabbedPane to the new schema
    
    * inspector/front-end/ScriptsPanel.js:
    (WebInspector.ScriptsPanel):
    * inspector/front-end/TabbedPane.js:
    (WebInspector.TabbedPane.prototype.appendTab):
    (WebInspector.TabbedPane.prototype._updateTabElements):
    (WebInspector.TabbedPane.prototype._innerUpdateTabElements):
    (WebInspector.TabbedPane.prototype._updateWidths):
    (WebInspector.TabbedPane.prototype._measureWidths):
    (WebInspector.TabbedPaneTab):
    (WebInspector.TabbedPaneTab.prototype.width):
    (WebInspector.TabbedPaneTab.prototype.setWidth):
    * inspector/front-end/Toolbar.js:
    (WebInspector.Toolbar):
    (WebInspector.Toolbar.prototype._updateDropdownButtonAndHideDropdown):
    (WebInspector.Toolbar.prototype._innerUpdateDropdownButtonAndHideDropdown):
    * inspector/front-end/UIUtils.js:
    (WebInspector.startBatchUpdate):
    (WebInspector.invokeOnceAfterBatchUpdate.get if):
    (WebInspector.invokeOnceAfterBatchUpdate):
    * inspector/front-end/inspector.js:
    * inspector/front-end/utilities.js:
    
    LayoutTests:
    
    * inspector/start-end-batch-update-expected.txt: Added.
    * inspector/start-end-batch-update.html: Added.
    * inspector/tabbed-pane-tabs-to-show.html:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fb430742