| Summary: | Web Inspector: Highlighting a CSS section does not deselect previously highlighted CSS sections | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Minor | CC: | commit-queue, graouts, hi, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Devin Rousso
2015-05-26 18:31:58 PDT
Created attachment 254102 [details]
Patch
Comment on attachment 254102 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254102&action=review > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:287 > + this._delegate.editorFocused(this); This should check for existence of the auction before calling it. This would also be "cssStyleDeclarationSectionEditorFocused". > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:73 > + if (typeof this._delegate.editorFocused === "function") Delegate methods should be prefixed with the class name, so they can't conflict with others or built-in methods. So this should be "cssStyleDeclarationTextEditorFocused" to match the other delegate methods on this class. > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:330 > + if (typeof this._delegate.editorFocused === "function") > + this._delegate.editorFocused(); Ditto. > Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js:260 > + editorFocused(ignoredSection) This would be cssStyleDeclarationSectionEditorFocused. Created attachment 254391 [details]
Patch
Comment on attachment 254391 [details] Patch Clearing flags on attachment: 254391 Committed r185279: <http://trac.webkit.org/changeset/185279> All reviewed patches have been landed. Closing bug. |