| Summary: | Web Inspector: Separate creating a style sheet from adding a new rule in the protocol | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||
| Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Joseph Pecoraro
2015-08-26 17:13:42 PDT
Created attachment 260011 [details]
[PATCH] Proposed Fix
An open question here would be, should we allow creating more than one StyleSheet per-Frame?
This patch says no, the backend will only create one. We could change that.
One question I have been wondering is how a playground like feature could use this. It might best to have that create a separate style sheet. But it could also append rules to the existing inspector sheet. It would be easier if it didn't have to worry about mixing with other edits, so deprecate sheets might be more desirable and easier for us to manage. (In reply to comment #3) > One question I have been wondering is how a playground like feature could > use this. It might best to have that create a separate style sheet. But it > could also append rules to the existing inspector sheet. It would be easier > if it didn't have to worry about mixing with other edits, so deprecate > sheets might be more desirable and easier for us to manage. Yeah, I'm going to put up a new patch that makes: - CSS.createStyleSheet(frameId) always creates a new style sheet for that frame - CSSManager.preferredInspectorStyleSheetForFrame(frame) returns one, preferred, style sheet for "Web Inspector" added styles. Created attachment 260036 [details]
[PATCH] Proposed Fix
This makes a lot more sense!
Comment on attachment 260036 [details] [PATCH] Proposed Fix Clearing flags on attachment: 260036 Committed r189104: <http://trac.webkit.org/changeset/189104> All reviewed patches have been landed. Closing bug. |