WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
143164
Web Inspector: REGRESSION(
r179286
) Editing Style Metrics Values no longer works
https://bugs.webkit.org/show_bug.cgi?id=143164
Summary
Web Inspector: REGRESSION(r179286) Editing Style Metrics Values no longer works
Joseph Pecoraro
Reported
2015-03-27 16:56:34 PDT
* SUMMARY Editing Style Metrics Values no longer works. * TEST <div style="width: 100px; background: blue">Text</div> * STEPS TO REPRODUCE 1. Inspect div on test 2. Show Styles details sidebar pane 3. Show Metrics tab 4. Double click width/height 5. Input value and commit (return) => Nothing happens * NOTES - Appears to be because we removed CSSProperty.add and friends which this code was using.
r179286
Attachments
[PATCH] Proposed Fix
(3.54 KB, patch)
2015-05-27 14:23 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-03-27 16:56:57 PDT
<
rdar://problem/20334620
>
Joseph Pecoraro
Comment 2
2015-05-27 14:23:19 PDT
Created
attachment 253801
[details]
[PATCH] Proposed Fix
Brian Burg
Comment 3
2015-05-27 15:00:08 PDT
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?
Joseph Pecoraro
Comment 4
2015-05-27 15:33:19 PDT
(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.
WebKit Commit Bot
Comment 5
2015-05-27 16:22:16 PDT
Comment on
attachment 253801
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 253801 Committed
r184925
: <
http://trac.webkit.org/changeset/184925
>
WebKit Commit Bot
Comment 6
2015-05-27 16:22:20 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug