[Webkit-unassigned] [Bug 38683] SVG FilterEffects need more detailed DRT information

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 16:33:28 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38683


Eric Seidel <eric at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #55294|review?                     |review-
               Flag|                            |




--- Comment #4 from Eric Seidel <eric at webkit.org>  2010-05-06 16:33:28 PST ---
(From update of attachment 55294)
WebCore/platform/graphics/filters/FEBlend.cpp:163
 +      case FEBLEND_MODE_DARKEN:
I prefer to write this sort of code in terms of helper functions which convert
from the ENUM to a char*.  That would simplify this code slightly and make it
easier to re-use.

WebCore/platform/graphics/filters/FEColorMatrix.cpp:202
 +          ts << "UNKNOWN";
Again here. :)

WebCore/platform/graphics/filters/FEColorMatrix.cpp:226
 +      if (!m_values.isEmpty()) {
I would have also made this a separate function... but I'm all crazy about
using lots of little inlines. :)

WebCore/platform/graphics/filters/FEColorMatrix.h:54
 +          TextStream& externalRepresentation(TextStream& ts, int indent)
const;
no "ts" needed.

WebCore/platform/graphics/filters/FEComponentTransfer.cpp:220
 +      ts << "{red:   type=\"" << m_redFunc.type << "\" slope=\""
Should use a helper function. :)


only looked through the first little bit, but there is more cleanup needed
here.  The copy/paste with the m_redFunc stuff is r-. :(

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list