Bug 157674

Summary: Web Inspector: Computed style shows both prefixed and unprefixed variants of properties
Product: WebKit Reporter: Antoine Quint <graouts>
Component: Web InspectorAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch for landing bburg: commit-queue-

Description Antoine Quint 2016-05-13 06:16:41 PDT
If you set an animation property, which is supported both prefixed and unprefixed in WebKit, both the prefixed and unprefixed variants will show in the computed styles. Only properties that are explicitly set should be shown.
Comment 1 Radar WebKit Bug Importer 2016-05-13 06:17:01 PDT
<rdar://problem/26266679>
Comment 2 Antoine Quint 2016-05-13 06:17:11 PDT
<rdar://problem/24339756>
Comment 3 Antoine Quint 2016-05-13 06:19:37 PDT
Created attachment 278837 [details]
Patch
Comment 4 Timothy Hatcher 2016-05-13 09:54:34 PDT
Comment on attachment 278837 [details]
Patch

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

> Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js:962
> +        return this._orderedStyles.some(function(style) {
> +            return style.properties.some(function (property) {

We have been using arrow functions for things like this. They are fast! Also no space before (.
Comment 5 Matt Baker 2016-05-13 13:41:47 PDT
Comment on attachment 278837 [details]
Patch

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

> Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:211
> +

Lately we've been making simple getters/settings one line:
set implicit(implicit) { this._implicit = implicit; }
Comment 6 Antoine Quint 2016-05-16 11:24:55 PDT
Created attachment 279029 [details]
Patch for landing
Comment 7 BJ Burg 2016-05-16 11:25:41 PDT
Committed r200952: <http://trac.webkit.org/changeset/200952>
Comment 8 BJ Burg 2016-05-16 11:26:14 PDT
Comment on attachment 279029 [details]
Patch for landing

Already landed it through my local checkout.