| Summary: | Web Inspector: Highlight DOM node attribute changes in parallel, not sequentially | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Nikita Vasilyev
2015-08-13 23:12:34 PDT
Created attachment 259024 [details]
Patch
Created attachment 259031 [details]
Patch
Comment on attachment 259024 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259024&action=review > Source/WebInspectorUI/ChangeLog:3 > + Web Inspector: Highlight DOM node attribute changes in parallel, not consequent I fixed the bug title grammar, please ditto. > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:1470 > + for (let i = 0; i < this._nodeStateChanges; ++i) { It makes me sad we have to duplicate our helper Array.prototype.remove but we can't do much better until arrows land. Maybe one day it could be: this._nodeStateChanges.removeIf((node) => element === node.element); > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:1477 > + this._boundNodeChangedAnimationEnd = animationEnd.bind(this); Should only need to bind this once, right? > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:1486 > element.classList.add("node-state-changed"); There (used to be) a bug where adding and removing a class would not cause the animation to restart, so we would have to use delayedWork. Is this no longer the case? Do new animations interrupt old ones? Created attachment 259033 [details]
Patch
Comment on attachment 259033 [details]
Patch
r=me
Comment on attachment 259033 [details] Patch Clearing flags on attachment: 259033 Committed r188496: <http://trac.webkit.org/changeset/188496> All reviewed patches have been landed. Closing bug. |