Changeset 258729 in webkit
- Timestamp:
- Mar 19, 2020 2:35:47 PM (4 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r258623 r258729 1 2020-03-19 Nikita Vasilyev <nvasilyev@apple.com> 2 3 Web Inspector: remove redundant code in TreeOutline.prototype.removeChildAtIndex 4 https://bugs.webkit.org/show_bug.cgi?id=209301 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Views/TreeOutline.js: 9 (WI.TreeOutline.prototype.removeChildAtIndex): 10 Check `suppressSelectSibling` once instead of three times. 11 1 12 2020-03-17 Devin Rousso <drousso@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
r257380 r258729 361 361 let parent = child.parent; 362 362 363 if (child.deselect(suppressOnDeselect) ) {364 if (child.previousSibling && !suppressSelectSibling)363 if (child.deselect(suppressOnDeselect) && !suppressSelectSibling) { 364 if (child.previousSibling) 365 365 child.previousSibling.select(true, false); 366 else if (child.nextSibling && !suppressSelectSibling)366 else if (child.nextSibling) 367 367 child.nextSibling.select(true, false); 368 else if (!suppressSelectSibling)368 else 369 369 parent.select(true, false); 370 370 }
Note: See TracChangeset
for help on using the changeset viewer.