RESOLVED FIXED 117600
Web Inspector: New Rule button doesn't reveal the newly added rule if not visible upon creation
https://bugs.webkit.org/show_bug.cgi?id=117600
Summary Web Inspector: New Rule button doesn't reveal the newly added rule if not vis...
Antoine Quint
Reported 2013-06-13 10:05:15 PDT
If you have the Styles sidebar scrolled such that the New Rule button is at the top of the bar, adding a new rule may not scroll to reveal the newly added rule further up in the sidebar.
Attachments
Patch (3.92 KB, patch)
2015-06-12 15:58 PDT, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2013-06-13 10:05:44 PDT
Timothy Hatcher
Comment 2 2014-01-10 15:37:19 PST
Moving to the right component.
Devin Rousso
Comment 3 2015-06-04 14:15:00 PDT
Is this still an issue? Every time I add a new rule I always see the newly added rule appear right below the "New Rule" button. Could you possibly elaborate more as to what the specific issue is? Thanks.
Devin Rousso
Comment 4 2015-06-12 15:58:49 PDT
Timothy Hatcher
Comment 5 2015-06-13 00:56:12 PDT
Comment on attachment 254832 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254832&action=review > Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js:305 > + if (this._previousFocusedSection && this._visible) { What if the previous focused section is no longer in the sidebar after a refresh? Can that happen?
Devin Rousso
Comment 6 2015-06-15 11:44:43 PDT
Comment on attachment 254832 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254832&action=review >> Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js:305 >> + if (this._previousFocusedSection && this._visible) { > > What if the previous focused section is no longer in the sidebar after a refresh? Can that happen? From what I can see, no it is not. nodeStylesRefreshed is called whenever the node changes and refresh is called before nodeStylesRefreshed. previousFocusedSection is set (unless there was no previously focused section) by refresh and then used (if set) immediately after in nodeStylesRefreshed. Once used, it is set back to null so it can't be reused until another refresh.
WebKit Commit Bot
Comment 7 2015-06-18 10:59:29 PDT
Comment on attachment 254832 [details] Patch Clearing flags on attachment: 254832 Committed r185709: <http://trac.webkit.org/changeset/185709>
WebKit Commit Bot
Comment 8 2015-06-18 10:59:33 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.