Changeset 228296 in webkit


Ignore:
Timestamp:
Feb 8, 2018 3:18:28 PM (6 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Styles: Typing value and quickly moving focus away may display outdated value in UI
https://bugs.webkit.org/show_bug.cgi?id=182588
<rdar://problem/37332161>

Reviewed by Matt Baker.

CSSProperty models were updated with a 250ms delay. Quickly adding a blank property after modifying
an existing property could result in outdated values being shown.

This patch removes the 250ms delay.

  • UserInterface/Views/SpreadsheetStyleProperty.js:

(WI.SpreadsheetStyleProperty.prototype.spreadsheetTextFieldDidChange):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r228251 r228296  
     12018-02-08  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: Styles: Typing value and quickly moving focus away may display outdated value in UI
     4        https://bugs.webkit.org/show_bug.cgi?id=182588
     5        <rdar://problem/37332161>
     6
     7        Reviewed by Matt Baker.
     8
     9        CSSProperty models were updated with a 250ms delay. Quickly adding a blank property after modifying
     10        an existing property could result in outdated values being shown.
     11
     12        This patch removes the 250ms delay.
     13
     14        * UserInterface/Views/SpreadsheetStyleProperty.js:
     15        (WI.SpreadsheetStyleProperty.prototype.spreadsheetTextFieldDidChange):
     16
    1172018-02-07  Matt Baker  <mattbaker@apple.com>
    218
  • trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js

    r228232 r228296  
    248248    {
    249249        if (textField === this._valueTextField)
    250             this.debounce(WI.SpreadsheetStyleProperty.CommitCoalesceDelay)._handleValueChange();
     250            this._handleValueChange();
    251251        else if (textField === this._nameTextField)
    252             this.debounce(WI.SpreadsheetStyleProperty.CommitCoalesceDelay)._handleNameChange();
     252            this._handleNameChange();
    253253    }
    254254
     
    667667
    668668WI.SpreadsheetStyleProperty.StyleClassName = "property";
    669 
    670 WI.SpreadsheetStyleProperty.CommitCoalesceDelay = 250;
Note: See TracChangeset for help on using the changeset viewer.