Web Inspector: Make debounce use an ES6 Proxy
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2016 21:58:44 +0000 (21:58 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Apr 2016 21:58:44 +0000 (21:58 +0000)
commit4603c9345430b83f735964e85c3b2a3e9a60cfbf
tree3d14781d565ec8f0b18246929f08981e45224b31
parent62b353260f5b9af2e4692a30472a84fa73ebb686
Web Inspector: Make debounce use an ES6 Proxy

https://bugs.webkit.org/show_bug.cgi?id=156756
rdar://problem/25809771

Reviewed by Joseph Pecoraro.

Source/WebInspectorUI:

* UserInterface/Base/Utilities.js:
(Object.prototype.soon): Added.
(Object.prototype.debounce): Added.
(Function.prototype.debounce): Deleted.
(Function.prototype.cancelDebounce): Added.

* UserInterface/Views/BezierEditor.js:
(WebInspector.BezierEditor.createBezierInput): Use new debounce proxy.
* UserInterface/Views/VisualStyleBackgroundPicker.js:
(WebInspector.VisualStyleBackgroundPicker): Ditto.
* UserInterface/Views/VisualStyleURLInput.js:
(WebInspector.VisualStyleURLInput): Ditto.

LayoutTests:

* inspector/unit-tests/debounce-expected.txt: Added.
* inspector/unit-tests/debounce.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/unit-tests/debounce-expected.txt [new file with mode: 0644]
LayoutTests/inspector/unit-tests/debounce.html [new file with mode: 0644]
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Utilities.js
Source/WebInspectorUI/UserInterface/Views/BezierEditor.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleBackgroundPicker.js
Source/WebInspectorUI/UserInterface/Views/VisualStyleURLInput.js