Changeset 120467 in webkit
- Timestamp:
- Jun 15, 2012, 8:56:18 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 17 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/chromium-linux/svg/W3C-SVG-1.1/filters-specular-01-f-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-in-attr-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularConstant-attr-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularExponent-attr-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-suraceScale-attr-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-in-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularConstant-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularExponent-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-suraceScale-prop-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium-linux/svg/filters/feLighting-crash-expected.png (modified) ( previous)
-
LayoutTests/platform/chromium/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
LayoutTests/svg/filters/feSpecularLight-premultiplied-expected.svg (added)
-
LayoutTests/svg/filters/feSpecularLight-premultiplied.svg (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/filters/FELighting.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120464 r120467 1 2012-06-15 Florin Malita <fmalita@chromium.org> 2 3 Specular light filters produce dark results 4 https://bugs.webkit.org/show_bug.cgi?id=89116 5 6 Reviewed by Dirk Schulze. 7 8 * platform/chromium-linux/svg/W3C-SVG-1.1/filters-specular-01-f-expected.png: 9 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-in-attr-expected.png: 10 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularConstant-attr-expected.png: 11 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularExponent-attr-expected.png: 12 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-dom-suraceScale-attr-expected.png: 13 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop-expected.png: 14 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop-expected.png: 15 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-in-prop-expected.png: 16 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularConstant-prop-expected.png: 17 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularExponent-prop-expected.png: 18 * platform/chromium-linux/svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-suraceScale-prop-expected.png: 19 * platform/chromium-linux/svg/filters/feLighting-crash-expected.png: 20 * platform/chromium/TestExpectations: 21 * platform/mac/TestExpectations: 22 * svg/filters/feSpecularLight-premultiplied-expected.svg: Added. 23 * svg/filters/feSpecularLight-premultiplied.svg: Added. 24 1 25 2012-06-15 Stephen Chenney <schenney@chromium.org> 2 26 -
trunk/LayoutTests/platform/chromium/TestExpectations
r120446 r120467 1236 1236 BUGWK81217 : svg/hixie/perf/003.xml = PASS IMAGE 1237 1237 1238 // Need rebaseline after https://bugs.webkit.org/show_bug.cgi?id=89116 1239 BUGWK89116 WIN MAC : svg/W3C-SVG-1.1/filters-specular-01-f.svg = PASS IMAGE 1240 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-dom-in-attr.html = PASS IMAGE 1241 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularConstant-attr.html = PASS IMAGE 1242 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularExponent-attr.html = PASS IMAGE 1243 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-dom-suraceScale-attr.html = PASS IMAGE 1244 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop.html = PASS IMAGE 1245 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop.html = PASS IMAGE 1246 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-in-prop.html = PASS IMAGE 1247 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularConstant-prop.html = PASS IMAGE 1248 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularExponent-prop.html = PASS IMAGE 1249 BUGWK89116 WIN MAC : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-suraceScale-prop.html = PASS IMAGE 1250 BUGWK89116 WIN MAC : svg/filters/feLighting-crash.svg = PASS IMAGE 1251 1238 1252 BUGWK81240 MAC : svg/text/bidi-reorder-value-lists.svg = PASS IMAGE+TEXT 1239 1253 -
trunk/LayoutTests/platform/mac/TestExpectations
r120371 r120467 212 212 BUGWK85408 : svg/batik/text/longTextOnPath.svg = TEXT PASS 213 213 214 // Need rebaseline after https://bugs.webkit.org/show_bug.cgi?id=89116 215 BUGWK89116 : svg/W3C-SVG-1.1/filters-specular-01-f.svg = PASS IMAGE 216 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-dom-in-attr.html = PASS IMAGE 217 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularConstant-attr.html = PASS IMAGE 218 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-dom-specularExponent-attr.html = PASS IMAGE 219 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-dom-suraceScale-attr.html = PASS IMAGE 220 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop.html = PASS IMAGE 221 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop.html = PASS IMAGE 222 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-in-prop.html = PASS IMAGE 223 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularConstant-prop.html = PASS IMAGE 224 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-specularExponent-prop.html = PASS IMAGE 225 BUGWK89116 : svg/dynamic-updates/SVGFESpecularLightingElement-svgdom-suraceScale-prop.html = PASS IMAGE 226 BUGWK89116 : svg/filters/feLighting-crash.svg = PASS IMAGE 227 214 228 // Needs rebaseline after https://bugs.webkit.org/show_bug.cgi?id=79682 215 229 BUGWK79682 : svg/repaint/text-mask-update.svg = MISSING IMAGE+TEXT IMAGE TEXT PASS -
trunk/Source/WebCore/ChangeLog
r120465 r120467 1 2012-06-15 Florin Malita <fmalita@chromium.org> 2 3 Specular light filters produce dark results 4 https://bugs.webkit.org/show_bug.cgi?id=89116 5 6 Reviewed by Dirk Schulze. 7 8 Tests: svg/filters/feSpecularLight-premultiplied-expected.svg 9 svg/filters/feSpecularLight-premultiplied.svg 10 11 Per spec (http://www.w3.org/TR/SVG/filters.html#feSpecularLightingElement), 12 light filters should operate on pre-multiplied RGBA. Currently, the results 13 are stored in the unmultiplied buffer but the alpha channel is calculated 14 for premultiplied values (which causes a darkening of the result upon the 15 subsequent unmultiplied->premultiplied conversion). This patch updates 16 FELighting to generate premultiplied results. 17 18 * platform/graphics/filters/FELighting.cpp: 19 (WebCore::FELighting::platformApplySoftware): 20 1 21 2012-06-15 Andrey Kosyakov <caseq@chromium.org> 2 22 -
trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp
r117048 r120467 389 389 FilterEffect* in = inputEffect(0); 390 390 391 Uint8ClampedArray* srcPixelArray = create UnmultipliedImageResult();391 Uint8ClampedArray* srcPixelArray = createPremultipliedImageResult(); 392 392 if (!srcPixelArray) 393 393 return; … … 396 396 397 397 IntRect effectDrawingRect = requestedRegionOfInputImageData(in->absolutePaintRect()); 398 in->copy UnmultipliedImage(srcPixelArray, effectDrawingRect);398 in->copyPremultipliedImage(srcPixelArray, effectDrawingRect); 399 399 400 400 // FIXME: support kernelUnitLengths other than (1,1). The issue here is that the W3
Note:
See TracChangeset
for help on using the changeset viewer.