[webkit-reviews] review granted: [Bug 28362] SVG Filter feComposite implementation is missing : [Attachment 35118] feComposite implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 22 18:53:06 PDT 2009


Nikolas Zimmermann <zimmermann at kde.org> has granted Dirk Schulze
<krit at webkit.org>'s request for review:
Bug 28362: SVG Filter feComposite implementation is missing
https://bugs.webkit.org/show_bug.cgi?id=28362

Attachment 35118: feComposite implementation
https://bugs.webkit.org/attachment.cgi?id=35118&action=review

------- Additional Comments from Nikolas Zimmermann <zimmermann at kde.org>
r+, some comments, before landing;

> +		     2008 Dirk Schulze <krit at webkit.org>
2009.

> +inline void arithmetic(const RefPtr<CanvasPixelArray>& srcPixelArrayA,
CanvasPixelArray*& srcPixelArrayB,
> +			  const float& k1, const float& k2, const float& k3,
const float& k4)
s/const float&/float/. We don't use this style in WebKit, even though it's
correct, there's no gain.


> +    FloatRect srcRect = FloatRect(0, 0, -1, -1);
Use (0.0f, 0.0f, -1.0f, -1.0f) to be consistent with other callsites.

> +    switch (m_type) {
> +	   case FECOMPOSITE_OPERATOR_OVER:
> +	   case FECOMPOSITE_OPERATOR_IN:
> +	   case FECOMPOSITE_OPERATOR_OUT:
> +	   case FECOMPOSITE_OPERATOR_ATOP:
> +	   case FECOMPOSITE_OPERATOR_XOR:
> +	   case FECOMPOSITE_OPERATOR_ARITHMETIC: {
Indention, case & switch should be aligned.


More information about the webkit-reviews mailing list