RESOLVED FIXED 100119
Web Inspector: [Styles] Handle non-parsedOk properties as inactive ones
https://bugs.webkit.org/show_bug.cgi?id=100119
Summary Web Inspector: [Styles] Handle non-parsedOk properties as inactive ones
Alexander Pavlov (apavlov)
Reported 2012-10-23 06:48:12 PDT
This will help fix the display of matched and computed styles. Patch to follow.
Attachments
Patch (30.50 KB, patch)
2012-10-23 07:15 PDT, Alexander Pavlov (apavlov)
no flags
Patch (10.14 KB, patch)
2012-10-24 03:14 PDT, Alexander Pavlov (apavlov)
no flags
Patch (7.78 KB, patch)
2012-10-26 08:22 PDT, Alexander Pavlov (apavlov)
no flags
Patch for landing (8.99 KB, patch)
2012-10-29 00:51 PDT, Alexander Pavlov (apavlov)
no flags
Alexander Pavlov (apavlov)
Comment 1 2012-10-23 07:08:36 PDT
For this snippet: body { text-align: left; text-align: bar; text-align: justify; } "text-align: bar" is non-parsedOk (has an exclamation mark) but does not have a strike-through. Also, all of these properties will be shown as active in the computed trace, hence the user confusion.
Alexander Pavlov (apavlov)
Comment 2 2012-10-23 07:15:17 PDT
Pavel Feldman
Comment 3 2012-10-23 08:41:26 PDT
Comment on attachment 170156 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170156&action=review > Source/WebCore/inspector/InspectorStyleSheet.cpp:533 > + CSSPropertyID propertyId = cssPropertyID(name); We already have this code on the front-end, why having it here as well?
Alexander Pavlov (apavlov)
Comment 4 2012-10-24 03:04:21 PDT
As agreed offline, this change will be coded in the front-end instead.
Alexander Pavlov (apavlov)
Comment 5 2012-10-24 03:14:32 PDT
Alexander Pavlov (apavlov)
Comment 6 2012-10-26 08:22:55 PDT
Vsevolod Vlasov
Comment 7 2012-10-26 08:28:46 PDT
Comment on attachment 170932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170932&action=review > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1465 > + if (property.inactive || !property.parsedOk || section.isPropertyOverloaded(property.name)) I would add not-parsed-ok class to the rule that is setting line-through decoration instead. > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1955 > + if (this.property.inactive || !this.parsedOk) ditto
Alexander Pavlov (apavlov)
Comment 8 2012-10-29 00:51:07 PDT
Created attachment 171170 [details] Patch for landing
WebKit Review Bot
Comment 9 2012-10-29 01:30:56 PDT
Comment on attachment 171170 [details] Patch for landing Clearing flags on attachment: 171170 Committed r132768: <http://trac.webkit.org/changeset/132768>
WebKit Review Bot
Comment 10 2012-10-29 01:31:00 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.