Bug 164289 - Remove WebKitCSSFilterValue to make Hyatt happy
Summary: Remove WebKitCSSFilterValue to make Hyatt happy
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-11-01 13:41 PDT by Dean Jackson
Modified: 2016-11-01 15:43 PDT (History)
4 users (show)

See Also:


Attachments
Patch (398.75 KB, patch)
2016-11-01 13:51 PDT, Dean Jackson
simon.fraser: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.37 MB, application/zip)
2016-11-01 15:04 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2016-11-01 13:41:39 PDT
Remove WebKitCSSFilterValue to make Hyatt happy
Comment 1 Dean Jackson 2016-11-01 13:49:03 PDT
<rdar://problem/29050973>
Comment 2 Dean Jackson 2016-11-01 13:51:06 PDT
Created attachment 293585 [details]
Patch
Comment 3 Simon Fraser (smfr) 2016-11-01 13:58:03 PDT
Comment on attachment 293585 [details]
Patch

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

> Source/WebCore/ChangeLog:9
> +        The new CSS parser doesn't want to use WebKitCSSFilterValue. It's non-standard,

"doesn't want to use" -> "should not use". Or say "don't bring WebKitCSSFilterValue over to the new parser".

> Source/WebCore/ChangeLog:15
> +        We did use it in a few places, so it wasn't easy to get rid of. Most of the
> +        built-in filters could be covered by CSSFunctionValue. url() style filters
> +        become CSSPrimitiveValues that are of the URI type.

A bit too much story-telling here.

> Source/WebCore/css/CSSComputedStyleDeclaration.cpp:930
> +                BasicColorMatrixFilterOperation& colorMatrixOperation = downcast<BasicColorMatrixFilterOperation>(filterOperation);
> +                filterValue = CSSFunctionValue::create(CSSValueGrayscale);
> +                filterValue->append(cssValuePool.createValue(colorMatrixOperation.amount(), CSSPrimitiveValue::CSS_NUMBER));

You could write these all as:

  filterValue = CSSFunctionValue::create(CSSValueGrayscale);
  filterValue->append(cssValuePool.createValue(downcast<BasicColorMatrixFilterOperation>(filterOperation).amount(), CSSPrimitiveValue::CSS_NUMBER));
Comment 4 Build Bot 2016-11-01 15:04:03 PDT
Comment on attachment 293585 [details]
Patch

Attachment 293585 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2446095

New failing tests:
js/dom/global-constructors-attributes.html
Comment 5 Build Bot 2016-11-01 15:04:06 PDT
Created attachment 293600 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 6 Dean Jackson 2016-11-01 15:43:33 PDT
Committed r208253: <http://trac.webkit.org/changeset/208253>