| Summary: | Web Inspector: REGRESSION(r179286) Editing Style Metrics Values no longer works | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | burg, 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-03-27 16:56:34 PDT
Created attachment 253801 [details]
[PATCH] Proposed Fix
Comment on attachment 253801 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=253801&action=review r=me > Source/WebInspectorUI/UserInterface/Views/BoxModelDetailsSectionRow.js:425 > + function didToggle() Reading the callback code, this will get called even if there was an error in the backend (passed: error, result, wasThrown). Should it only update if something actually changed? (In reply to comment #3) > Comment on attachment 253801 [details] > [PATCH] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253801&action=review > > r=me > > > Source/WebInspectorUI/UserInterface/Views/BoxModelDetailsSectionRow.js:425 > > + function didToggle() > > Reading the callback code, this will get called even if there was an error > in the backend (passed: error, result, wasThrown). Should it only update if > something actually changed? I thought about doing a "style.getPropertyValue" and seeing if the value changed, but decided against it. Unknown side effects / errors could happen if someone overrides `CSSStyleDeclaration.prototype.setProperty` and ultimately still could have changed the property and so a refresh would still be useful. Always doing a refresh is the safe bet as long as we are using overridable APIs. Technically setProperty can trigger an error naturally if invoked on a readonly style, but I don't think that should ever be the case for us. Comment on attachment 253801 [details] [PATCH] Proposed Fix Clearing flags on attachment: 253801 Committed r184925: <http://trac.webkit.org/changeset/184925> All reviewed patches have been landed. Closing bug. |