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

Issue 435623002: Add support for additional blend modes to SVGFEBlendElement (Closed)

Created:
6 years, 4 months ago by fs
Modified:
6 years, 3 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, rwlbuis, kouhei+svg_chromium.org, dstockwell, Timothy Loh, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, Eric Willigers
Project:
blink
Visibility:
Public.

Description

Add support for additional blend modes to SVGFEBlendElement New modes to be supported are: overlay, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color and luminosity Since the new modes don't have any corresponding IDL constants exposed on the SVGFEBlendElement interface, a mechanism is added to be able to differentiate between "internal" and "exposed" enumeration values, and reject those that are "internal-only" from being read or written through SVGAnimatedEnumeration. Test feBlend-all-modes.html evolved from test in WebKit commit http://trac.webkit.org/changeset/170433 by Dirk Schulze. BUG=389594

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -21 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEBlendElement.js View 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/svg/filters/feBlend-all-modes.html View 1 chunk +57 lines, -0 lines 0 comments Download
M Source/core/svg/SVGEnumeration.h View 4 chunks +19 lines, -7 lines 1 comment Download
M Source/core/svg/SVGEnumeration.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/svg/SVGFEBlendElement.h View 2 chunks +16 lines, -1 line 0 comments Download
M Source/core/svg/SVGFEBlendElement.cpp View 2 chunks +37 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Erik Dahlström (inactive)
Non-owner LGTM.
6 years, 4 months ago (2014-08-01 15:11:45 UTC) #1
krit
On 2014/08/01 15:11:45, Erik Dahlström wrote: > Non-owner LGTM. Having that would be really awesome!
6 years, 4 months ago (2014-08-01 16:12:54 UTC) #2
pdr.
This is well implemented but I don't think this is the right approach. This patch ...
6 years, 4 months ago (2014-08-01 21:58:22 UTC) #3
krit
On 2014/08/01 21:58:22, pdr wrote: > This is well implemented but I don't think this ...
6 years, 4 months ago (2014-08-02 05:16:32 UTC) #4
pdr.
On 2014/08/02 05:16:32, krit wrote: > On 2014/08/01 21:58:22, pdr wrote: > > This is ...
6 years, 4 months ago (2014-08-02 20:05:25 UTC) #5
pdr.
On 2014/08/02 20:05:25, pdr wrote: > On 2014/08/02 05:16:32, krit wrote: > > On 2014/08/01 ...
6 years, 4 months ago (2014-08-05 07:38:14 UTC) #6
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 4 months ago (2014-08-05 17:28:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/435623002/1
6 years, 4 months ago (2014-08-05 17:30:10 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 4 months ago (2014-08-05 21:46:11 UTC) #9
pdr.
On 2014/08/05 21:46:11, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 4 months ago (2014-08-05 22:08:57 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 00:08:04 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/11960)
6 years, 4 months ago (2014-08-06 00:08:05 UTC) #12
Erik Dahlström (inactive)
On 2014/08/06 00:08:05, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-07 09:29:42 UTC) #13
fs
On 2014/08/05 07:38:14, pdr wrote: > On 2014/08/02 20:05:25, pdr wrote: > > On 2014/08/02 ...
6 years, 4 months ago (2014-08-19 22:34:32 UTC) #14
Erik Dahlström (inactive)
6 years, 4 months ago (2014-08-20 07:17:11 UTC) #15
On 2014/08/19 22:34:32, fs (ooo) wrote:
> On 2014/08/05 07:38:14, pdr wrote:
> > On 2014/08/02 20:05:25, pdr wrote:
> > > On 2014/08/02 05:16:32, krit wrote:
> > > > On 2014/08/01 21:58:22, pdr wrote:
> > > > > This is well implemented but I don't think this is the right approach.
> > This
> > > > > patch adds a lot of complexity to avoid exposing certain enum values,
> and
> > by
> > > > not
> > > > > exposing these values we are creating an unnecessary discontinuity for
> > > > authors.
> > > > > 
> > > > > Why are these not just exposed on SVGFEBlendElement?
> > > > > 
> > > > 
> > > > It is a resolution of the SVG WG to not expose any new values to the SVG
> DOM
> > > at
> > > > this point. We want to deprecate SVG DOM and not encourage authors to
> write
> > > more
> > > > content for it. So it didn't seem to help the cause by adding new
> > enumeration
> > > > values to the SVG DOM.
> > > 
> > > We all agree with the SVG WG's decision to phase out the SVG DOM, but
doing
> > this
> > > piecemeal on a single enum property will make removing the SVG DOM
trickier.
> > If
> > > we are going to continue shipping an SVG DOM, why bend over backwards to
> ship
> > a
> > > half-working version of it?
> > > 
> > > It doesn't look like the WebKit patch implements the exposed and
non-exposed
> > > enumeration. Does WebKit not yet have this or was it implemented
> differently?
> > 
> > It looks like I am in the minority with this view. The downsides I listed
> aren't
> > big issues, at least not big enough to hold up progress in this area.
> 
> Personally I do share your views concerning exposed/non-exposed enumerations
> (constants really). I think krit's WebKit patch implemented something similar
to
> this scheme though (maybe less obvious though because of th differences in
> enum-handling in general...)

I'll bring this topic up in the SVG WG F2F next week. I think that we want to
drop all const enums from the SVG DOM IDL files, and to replace the enums with
plain DOMStrings going forward.

Powered by Google App Engine
This is Rietveld 408576698