Bug 193983 - Web Inspector: Styles: enable computed style cascades by default
Summary: Web Inspector: Styles: enable computed style cascades by default
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks: 193986
  Show dependency treegraph
 
Reported: 2019-01-29 14:24 PST by Nikita Vasilyev
Modified: 2019-01-29 16:37 PST (History)
5 users (show)

See Also:


Attachments
Patch (7.43 KB, patch)
2019-01-29 14:28 PST, Nikita Vasilyev
mattbaker: review+
Details | Formatted Diff | Diff
Patch (9.99 KB, patch)
2019-01-29 15:04 PST, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2019-01-29 14:24:16 PST
<rdar://problem/47645821>
Comment 1 Nikita Vasilyev 2019-01-29 14:28:31 PST
Created attachment 360502 [details]
Patch
Comment 2 Nikita Vasilyev 2019-01-29 14:31:43 PST
Note that this patch doesn't remove a lot of the old code. The Variables section is still based on SpreadsheetCSSStyleDeclarationEditor and uses the old computed tab logic.
Comment 3 Matt Baker 2019-01-29 14:33:22 PST
Comment on attachment 360502 [details]
Patch

rs=me
Comment 4 Devin Rousso 2019-01-29 14:38:59 PST
Comment on attachment 360502 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=360502&action=review

> Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js:107
>  

Style: remove this newline.

> Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsSidebarPanel.js:32
> +        this.element.classList.add("computed-with-traces");

Rather than just always adding this class, why not merge the styles?
Comment 5 Nikita Vasilyev 2019-01-29 15:04:25 PST
Created attachment 360504 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=360502&action=review

>> Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsSidebarPanel.js:32
>> +        this.element.classList.add("computed-with-traces");
> 
> Rather than just always adding this class, why not merge the styles?

Sure, that was actually not that hard!
Comment 6 WebKit Commit Bot 2019-01-29 16:37:06 PST
Comment on attachment 360504 [details]
Patch

Clearing flags on attachment: 360504

Committed r240691: <https://trac.webkit.org/changeset/240691>
Comment 7 WebKit Commit Bot 2019-01-29 16:37:08 PST
All reviewed patches have been landed.  Closing bug.