Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 2065593002: Unprefix the CSS 'filter' property (Closed)

Created:
4 years, 6 months ago by fs
Modified:
4 years, 6 months ago
CC:
ajuma+watch-canvas_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, dcheng, dglazkov+blink, dshwang, krit, eae+blinkwatch, Eric Willigers, f(malita), gyuyoung2, haraken, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unprefix the CSS 'filter' property Parse 'filter' in the same way as '-webkit-filter', and make the latter an alias of the former. For SVG content, only the "url(...)" function is allowed still, with the exception of the outermost <svg> (LayoutSVGRoot), since that "has a box". Update tests to use 'filter' where reasonable and applicable. Intent to Ship: https://groups.google.com/a/chromium.org/d/topic/blink-dev/ZVT2kxuFMaA/discussion Based on https://codereview.chromium.org/1987943002 by noel@chromium.org. BUG=613441, 618160, 550249, 535786, 244295, 109224 Committed: https://crrev.com/7a0f0e2eb0abdd68fb377d5b789682acfe10757d Cr-Commit-Position: refs/heads/master@{#400752}

Patch Set 1 #

Patch Set 2 : Use testharness for prefixed alias test #

Patch Set 3 : Paint SVG root filter through PaintLayer #

Patch Set 4 : Adjust test #

Total comments: 8

Patch Set 5 : nits #

Total comments: 6

Patch Set 6 : Revert DCHECKs #

Total comments: 3

Patch Set 7 : Remove disabler. Try different DCHECK expressions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+935 lines, -545 lines) Patch
A third_party/WebKit/LayoutTests/animations/animated-filter-svg-element.html View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/animated-filter-svg-element-expected.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/compositing/will-change/stacking-context-creation.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/compositing/will-change/stacking-context-creation-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-all-on-background-expected.html View 1 chunk +11 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-blur.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-blur-hw.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-brightness.html View 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-brightness-clamping.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-brightness-clamping-hw.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-brightness-hw.html View 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-combined.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-combined-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-contrast.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-contrast-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-drop-shadow.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-drop-shadow-hw.html View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-grayscale.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-grayscale-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-hue-rotate.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-hue-rotate-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-invert.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-invert-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-opacity.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-opacity-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference.html View 1 chunk +14 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-composite.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-composite-hw.html View 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-hw.html View 1 chunk +14 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-ordering.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-ordering-hw.html View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-saturate.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-saturate-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-sepia.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/effect-sepia-hw.html View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/fecomposite-non-zero-inoffset.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/feoffset-region-zoom-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-property-computed-style.html View 1 chunk +65 lines, -65 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-property-parsing.html View 1 chunk +85 lines, -85 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-property-parsing-invalid.html View 1 chunk +60 lines, -60 lines 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-region-transformed-child-expected.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-repaint-blur.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/css3/filters/filter-repaint-shadow.html View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/css3/filters/unprefixed.html View 1 1 chunk +121 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/css/getComputedStyle-listing-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/filters/filter-refresh-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-element-invalid-filter.html View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-element-invalid-filter-expected.html View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html View 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect-expected.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-filter-root-box-reflect.html View 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/filters/svg-filter-root-box-reflect-expected.html View 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/CompositorAnimations.cpp View 1 2 3 4 5 6 7 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/DeferredLegacyStyleInterpolationTest.cpp View 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimations.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/FilterListPropertyFunctions.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/PropertyInterpolationTypesMapping.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp View 1 chunk +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp View 1 2 3 4 5 6 2 chunks +17 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGResources.h View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGResources.cpp View 1 2 3 4 5 6 4 chunks +15 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGResourcesCache.cpp View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGPaintContext.cpp View 1 2 3 4 5 6 4 chunks +13 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGRootPainter.cpp View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyle.h View 1 2 3 4 4 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyleDefs.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp View 1 2 3 4 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (11 generated)
fs
This is largely a rebase of https://codereview.chromium.org/1987943002 - core/css and core/animation should be pretty much ...
4 years, 6 months ago (2016-06-14 10:46:58 UTC) #6
Timothy Loh
core/css lgtm++
4 years, 6 months ago (2016-06-14 12:03:46 UTC) #8
alancutter (OOO until 2018)
core/animation lgtm. BTW there's a small vim leak in the description; "latterxx".
4 years, 6 months ago (2016-06-15 04:31:46 UTC) #9
fs
On 2016/06/15 at 04:31:46, alancutter wrote: > core/animation lgtm. > > BTW there's a small ...
4 years, 6 months ago (2016-06-15 08:02:24 UTC) #11
pdr.
https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp File third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp (right): https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp#newcode596 third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp:596: // quash it for now. FIXME: why is this ...
4 years, 6 months ago (2016-06-15 09:50:32 UTC) #12
fs
Quick upload before running to the taxi - what could possibly go wrong! https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp File ...
4 years, 6 months ago (2016-06-15 11:02:43 UTC) #13
pdr.
LGTM
4 years, 6 months ago (2016-06-15 11:53:27 UTC) #14
chrishtr
https://codereview.chromium.org/2065593002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/2065593002/diff/80001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode251 third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp:251: if (!layoutObject->isSVGRoot()) Can a non-SVGRoot SVG object have a ...
4 years, 6 months ago (2016-06-15 15:56:03 UTC) #15
fs
https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp File third_party/WebKit/Source/core/paint/SVGPaintContext.cpp (right): https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp#newcode82 third_party/WebKit/Source/core/paint/SVGPaintContext.cpp:82: // Layer takes care of root opacity and blend ...
4 years, 6 months ago (2016-06-15 22:02:10 UTC) #16
chrishtr
https://codereview.chromium.org/2065593002/diff/80001/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp File third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp (right): https://codereview.chromium.org/2065593002/diff/80001/third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp#newcode596 third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp:596: // quash it for now. TODO(fs): why is this ...
4 years, 6 months ago (2016-06-16 04:55:21 UTC) #17
fs
https://codereview.chromium.org/2065593002/diff/100001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/2065593002/diff/100001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode251 third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp:251: if (!layoutObject->isSVGRoot()) On 2016/06/16 at 04:55:21, chrishtr wrote: > ...
4 years, 6 months ago (2016-06-16 23:06:41 UTC) #18
fs
4 years, 6 months ago (2016-06-16 23:06:43 UTC) #19
chrishtr
https://codereview.chromium.org/2065593002/diff/100001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/2065593002/diff/100001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode251 third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp:251: if (!layoutObject->isSVGRoot()) On 2016/06/16 at 23:06:41, fs wrote: > ...
4 years, 6 months ago (2016-06-17 06:33:45 UTC) #20
fs
+junov for the 2 trivial changes in modules/canvas2d (will TBR after timeout) https://codereview.chromium.org/2065593002/diff/60001/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp File third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ...
4 years, 6 months ago (2016-06-20 10:47:07 UTC) #22
chrishtr
lgtm
4 years, 6 months ago (2016-06-20 16:01:41 UTC) #23
Justin Novosad
On 2016/06/20 16:01:41, chrishtr wrote: > lgtm lgtm
4 years, 6 months ago (2016-06-20 18:13:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2065593002/120001
4 years, 6 months ago (2016-06-20 19:05:24 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-20 20:00:03 UTC) #28
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 20:02:08 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7a0f0e2eb0abdd68fb377d5b789682acfe10757d
Cr-Commit-Position: refs/heads/master@{#400752}

Powered by Google App Engine
This is Rietveld 408576698