RESOLVED FIXED 44025
[Qt] Shadow blur for rectangle fill
https://bugs.webkit.org/show_bug.cgi?id=44025
Summary [Qt] Shadow blur for rectangle fill
Ariya Hidayat
Reported 2010-08-15 00:33:29 PDT
Implement blur support for shadow of rectangles. Shadow pixel tests need to be updated, too.
Attachments
Patch (67.86 KB, patch)
2010-08-15 19:50 PDT, Ariya Hidayat
no flags
Patch (66.08 KB, patch)
2010-08-16 00:18 PDT, Ariya Hidayat
no flags
Ariya Hidayat
Comment 1 2010-08-15 19:50:30 PDT
Ariya Hidayat
Comment 2 2010-08-16 00:18:56 PDT
Kenneth Rohde Christiansen
Comment 3 2010-08-16 04:25:33 PDT
Comment on attachment 64469 [details] Patch Looks good to me, some minor nits below. WebCore/platform/graphics/qt/ContextShadow.cpp:70 + #define BLUR_SUM_SHIFT 14 Why not use a static const? WebCore/platform/graphics/qt/ContextShadow.cpp:72 + // Note: image must be RGB32 format You could add an assert for that, I guess WebCore/platform/graphics/qt/ContextShadow.cpp:88 + why this extra newline? WebCore/platform/graphics/qt/ContextShadow.cpp:91 + int left, right, pixelCount, prev, next; We normally do not add most variable declarations on the same line. WebCore/platform/graphics/qt/ContextShadow.cpp:128 + ((prev > 0) ? *prevPtr : firstAlpha); why not just keep on one line :-) I guess it is shorter than the above for-one. WebCore/platform/graphics/qt/ContextShadow.cpp:154 + // Step 3: blur green channel and store the result in the alpha channel Add a dot at the end of the comment. WebCore/platform/graphics/qt/ContextShadow.cpp:190 + // "colorize" with the right shadow color here as well WebCore/platform/graphics/qt/ContextShadow.cpp:220 + } Here we shouldnt use braces according to the coding style guide
Ariya Hidayat
Comment 4 2010-08-16 08:02:21 PDT
Ariya Hidayat
Comment 5 2010-08-16 08:11:08 PDT
Comment on attachment 64469 [details] Patch Clearing the review flag.
Note You need to log in before you can comment on or make changes to this bug.