Bug 60535 - Web Inspector: there is a problem with computed style properties with wrong values
Summary: Web Inspector: there is a problem with computed style properties with wrong v...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 00:29 PDT by Ilya Tikhonovsky
Modified: 2011-05-28 13:08 PDT (History)
11 users (show)

See Also:


Attachments
screenshot (155.92 KB, image/png)
2011-05-10 00:29 PDT, Ilya Tikhonovsky
no flags Details
Testcase (272 bytes, text/html)
2011-05-25 12:02 PDT, tonistiigi
no flags Details
Patch (1.83 KB, patch)
2011-05-25 12:03 PDT, tonistiigi
yurys: review-
Details | Formatted Diff | Diff
Patch with test (5.76 KB, patch)
2011-05-28 06:10 PDT, tonistiigi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2011-05-10 00:29:53 PDT
Created attachment 92925 [details]
screenshot

If the property of a rule has wrong value, as example text-decoration with value normal
then computed style pane will show this property as applied but actually the previous was applied.
Comment 1 tonistiigi 2011-05-25 12:02:14 PDT
Created attachment 94827 [details]
Testcase
Comment 2 tonistiigi 2011-05-25 12:03:29 PDT
Created attachment 94828 [details]
Patch
Comment 3 Alexander Pavlov (apavlov) 2011-05-25 13:35:05 PDT
Comment on attachment 94828 [details]
Patch

Looks good. I have a similar fix in my pending rewrite of the StylesSidebarPane (hopefully, it will become much more readable). It's a good idea to have a test for this change.
Comment 4 Yury Semikhatsky 2011-05-26 07:13:53 PDT
According to Alexander it should be fairly easy to test this, you could extend existing test: LayoutTests\inspector\styles\styles-computed-trace.html
Comment 5 Yury Semikhatsky 2011-05-26 07:14:06 PDT
Comment on attachment 94828 [details]
Patch

r- for now.
Comment 6 tonistiigi 2011-05-28 06:10:25 PDT
Created attachment 95259 [details]
Patch with test
Comment 7 WebKit Commit Bot 2011-05-28 10:55:29 PDT
Comment on attachment 95259 [details]
Patch with test

Clearing flags on attachment: 95259

Committed r87617: <http://trac.webkit.org/changeset/87617>
Comment 8 WebKit Commit Bot 2011-05-28 10:55:35 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Alexander Pavlov (apavlov) 2011-05-28 13:02:24 PDT
Comment on attachment 95259 [details]
Patch with test

Looks good. Thanks for the test, Tonis!
Comment 10 Alexander Pavlov (apavlov) 2011-05-28 13:08:49 PDT
Comment on attachment 95259 [details]
Patch with test

Ouch, I didn't realize the patch had landed.