Summary: | Web Inspector: Unable to get cursor in new Rule section after creating multiple New Rules | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Joseph Pecoraro
2015-05-21 20:28:40 PDT
It appears as if the sections are "readOnly". Because they are getting the readonly placeholder string and not the editable placeholder string. CSSStyleDeclarationTextEditor's _resetContent sets things readonly if: // Only allow editing if we have a style, it is editable and we have text range in the stylesheet. var readOnly = !this._style || !this._style.editable || !this._style.styleSheetTextRange; In this case, the styleSheetTextRange is null... I have a feeling this happened with the InspectorStyleSheet::styleSheetMutated changes. I'm going to try allowing InspectorStyleSheet parsed data always for the inspector style sheet, since we control modifications to it. Building now. Created attachment 253599 [details]
[PATCH] Proposed Fix
Comment on attachment 253599 [details] [PATCH] Proposed Fix Clearing flags on attachment: 253599 Committed r184792: <http://trac.webkit.org/changeset/184792> All reviewed patches have been landed. Closing bug. |