Bug 60535

Summary: Web Inspector: there is a problem with computed style properties with wrong values
Product: WebKit Reporter: Ilya Tikhonovsky <loislo>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, commit-queue, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
screenshot
none
Testcase
none
Patch
yurys: review-
Patch with test none

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.