| Summary: | Web Inspector: Disabling attribute styles should not be possible | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Devin Rousso
2015-08-11 22:05:36 PDT
Created attachment 258803 [details]
Patch
Comment on attachment 258803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258803&action=review > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:103 > + if (style.editable && (style.type === WebInspector.CSSStyleDeclaration.Type.Rule || style.type === WebInspector.CSSStyleDeclaration.Type.Inline) Would style.editable be enough? (In reply to comment #2) > Comment on attachment 258803 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=258803&action=review > > > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js:103 > > + if (style.editable && (style.type === WebInspector.CSSStyleDeclaration.Type.Rule || style.type === WebInspector.CSSStyleDeclaration.Type.Inline) > > Would style.editable be enough? Ha I can't believe I didn't think of that. It works exactly as described. Created attachment 258805 [details]
Patch
Comment on attachment 258805 [details] Patch Clearing flags on attachment: 258805 Committed r188326: <http://trac.webkit.org/changeset/188326> All reviewed patches have been landed. Closing bug. |