haikuwebkit/LayoutTests/css3/filters/effect-reference-expected.txt

86 lines
4.5 KiB
Plaintext
Raw Permalink Normal View History

layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderSVGRoot {svg} at (8,118) size 0x0
RenderSVGHiddenContainer {defs} at (0,0) size 0x0
RenderSVGResourceFilter {filter} [id="colormatrix"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feColorMatrix type="HUEROTATE" values="180.00"]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="morphology"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feMorphology operator="DILATE" radius="10.00, 10.00"]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="componenttransfer"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
Improve filter logging https://bugs.webkit.org/show_bug.cgi?id=180182 Reviewed by Sam Weinig. Source/WebCore: Add a parameter to FilterEffect::externalRepresentation() so that we can log extra data without breaking layout tests. Add TextStream output for ColorSpace. Improve logging of FEComponentTransfer ComponentTransferFunctions by logging the data that's appropriate for the function type, and rebaseline affected tests. * platform/graphics/Color.cpp: (WebCore::operator<<): * platform/graphics/Color.h: * platform/graphics/filters/FEBlend.cpp: (WebCore::FEBlend::externalRepresentation const): * platform/graphics/filters/FEBlend.h: * platform/graphics/filters/FEColorMatrix.cpp: (WebCore::FEColorMatrix::externalRepresentation const): * platform/graphics/filters/FEColorMatrix.h: * platform/graphics/filters/FEComponentTransfer.cpp: (WebCore::operator<<): (WebCore::FEComponentTransfer::externalRepresentation const): * platform/graphics/filters/FEComponentTransfer.h: * platform/graphics/filters/FEComposite.cpp: (WebCore::FEComposite::externalRepresentation const): * platform/graphics/filters/FEComposite.h: * platform/graphics/filters/FEConvolveMatrix.cpp: (WebCore::FEConvolveMatrix::externalRepresentation const): * platform/graphics/filters/FEConvolveMatrix.h: * platform/graphics/filters/FEDiffuseLighting.cpp: (WebCore::FEDiffuseLighting::externalRepresentation const): * platform/graphics/filters/FEDiffuseLighting.h: * platform/graphics/filters/FEDisplacementMap.cpp: (WebCore::FEDisplacementMap::externalRepresentation const): * platform/graphics/filters/FEDisplacementMap.h: * platform/graphics/filters/FEDropShadow.cpp: (WebCore::FEDropShadow::externalRepresentation const): * platform/graphics/filters/FEDropShadow.h: * platform/graphics/filters/FEFlood.cpp: (WebCore::FEFlood::externalRepresentation const): * platform/graphics/filters/FEFlood.h: * platform/graphics/filters/FEGaussianBlur.cpp: (WebCore::FEGaussianBlur::externalRepresentation const): * platform/graphics/filters/FEGaussianBlur.h: * platform/graphics/filters/FEMerge.cpp: (WebCore::FEMerge::externalRepresentation const): * platform/graphics/filters/FEMerge.h: * platform/graphics/filters/FEMorphology.cpp: (WebCore::FEMorphology::externalRepresentation const): * platform/graphics/filters/FEMorphology.h: * platform/graphics/filters/FEOffset.cpp: (WebCore::FEOffset::externalRepresentation const): * platform/graphics/filters/FEOffset.h: * platform/graphics/filters/FESpecularLighting.cpp: (WebCore::FESpecularLighting::externalRepresentation const): * platform/graphics/filters/FESpecularLighting.h: * platform/graphics/filters/FETile.cpp: (WebCore::FETile::externalRepresentation const): * platform/graphics/filters/FETile.h: * platform/graphics/filters/FETurbulence.cpp: (WebCore::FETurbulence::externalRepresentation const): * platform/graphics/filters/FETurbulence.h: * platform/graphics/filters/FilterEffect.cpp: (WebCore::FilterEffect::externalRepresentation const): (WebCore::operator<<): * platform/graphics/filters/FilterEffect.h: * platform/graphics/filters/SourceAlpha.cpp: (WebCore::SourceAlpha::externalRepresentation const): * platform/graphics/filters/SourceAlpha.h: * platform/graphics/filters/SourceGraphic.cpp: (WebCore::SourceGraphic::externalRepresentation const): * platform/graphics/filters/SourceGraphic.h: * rendering/svg/RenderSVGResourceFilter.cpp: (WebCore::RenderSVGResourceFilter::applyResource): * svg/graphics/filters/SVGFEImage.cpp: (WebCore::FEImage::externalRepresentation const): * svg/graphics/filters/SVGFEImage.h: LayoutTests: Improve logging of FEComponentTransfer ComponentTransferFunctions by logging the data that's appropriate for the function type, and rebaseline affected tests. * css3/filters/effect-reference-expected.txt: * css3/filters/effect-reference-hw-expected.txt: * platform/mac/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt: * platform/mac/svg/custom/feComponentTransfer-Discrete-expected.txt: * platform/mac/svg/custom/feComponentTransfer-Gamma-expected.txt: * platform/mac/svg/custom/feComponentTransfer-Linear-expected.txt: * platform/mac/svg/custom/feComponentTransfer-Table-expected.txt: * svg/filters/filter-refresh-expected.txt: Canonical link: https://commits.webkit.org/196216@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-12-01 00:05:11 +00:00
[feComponentTransfer
{red: type="LINEAR" slope="0.50" intercept="0.00"}
{green: type="UNKNOWN}
{blue: type="UNKNOWN}
{alpha: type="UNKNOWN}]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="blurY"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feGaussianBlur stdDeviation="0.00, 5.00"]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="blend"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
Add all blend modes to feBlend feBlend should support all blend modes from CSS and Canvas https://bugs.webkit.org/show_bug.cgi?id=134296 Source/WebCore: Reviewed by Dean Jackson. Add all blend modes to <feBlend> (the SVG filter primitive) that are also supported by HTML Canvas and CSS. In addition, add "normal" blend mode to HTML Canvas as requested by the CSS Compositing and Blending specification. (Referenced from HTML Canvas.) With this change, SVG, CSS and Canvas truly share the same blend modes and even the same keywords. This is much easier to for web authors. http://www.w3.org/TR/2014/CR-compositing-1-20140220/#ltblendmodegt Test: svg/filters/feBlend-all-blendmodes.svg * platform/graphics/GraphicsTypes.cpp: Reorder blend mode text streams to match enumeration order. Add a new function to parse blend modes independent of compositing modes. Add a string "normal" that is supported by CSS, feBlend and HTML Canvas now. (WebCore::parseBlendMode): (WebCore::parseCompositeAndBlendOperator): * platform/graphics/GraphicsTypes.h: Reorder BlendMode enumeration values to match the SVG JS enumeration for blend modes. * platform/graphics/cpu/arm/filters/FEBlendNEON.h: Move all software code that is no longer required by the software path but still used by NEON here. (WebCore::FEBlend::platformApplySoftware): (WebCore::FEBlend::platformApplyNEON): * platform/graphics/filters/FEBlend.cpp: Use drawImageBuffer() to blend the results of previous filter primitives. This allows removing more than 60% of the code. (WebCore::FEBlend::FEBlend): (WebCore::FEBlend::create): (WebCore::FEBlend::blendMode): (WebCore::FEBlend::setBlendMode): (WebCore::FEBlend::platformApplySoftware): (WebCore::FEBlend::dump): (WebCore::FEBlend::externalRepresentation): (WebCore::feBlendNormal): Deleted. (WebCore::feBlendMultiply): Deleted. (WebCore::feBlendScreen): Deleted. (WebCore::feBlendDarken): Deleted. (WebCore::feBlendLighten): Deleted. (WebCore::feBlendUnknown): Deleted. (WebCore::platformApply): Deleted. (WebCore::FEBlend::platformApplyGeneric): Deleted. (WebCore::operator<<): Deleted. * platform/graphics/filters/FEBlend.h: * svg/SVGAnimatedEnumeration.cpp: Use the global BlendMode enumeration. (WebCore::enumerationValueForTargetAttribute): * svg/SVGFEBlendElement.cpp: (WebCore::SVGFEBlendElement::SVGFEBlendElement): Use the global BlendMode enumeration. No new enumeration values added or exposed to SVG DOM as requested by SVG WG. (WebCore::SVGFEBlendElement::parseAttribute): * svg/SVGFEBlendElement.h: Replace BlendModeType with global BlendMode enumeration. Remove blend mode parsing code and use the code in GraphicsTypes instead. (WebCore::SVGPropertyTraits<BlendMode>::highestEnumValue): (WebCore::SVGPropertyTraits<BlendMode>::toString): (WebCore::SVGPropertyTraits<BlendModeType>::highestEnumValue): Deleted. (WebCore::SVGPropertyTraits<BlendModeType>::toString): Deleted. (WebCore::SVGPropertyTraits<BlendModeType>::fromString): Deleted. LayoutTests: Added tests for new blend modes in feBlend as well as a test for 'normal' blend mode on HTML Canvas. Reviewed by Dean Jackson. * fast/canvas/canvas-blend-image-expected.txt: * fast/canvas/canvas-blend-solid-expected.txt: * fast/canvas/script-tests/canvas-blend-image.js: Test 'normal' blend mode in Canvas. (prepareTestScenario): * fast/canvas/script-tests/canvas-blend-solid.js: Ditto. (prepareTestScenario): * platform/mac/svg/W3C-SVG-1.1/filters-blend-01-b-expected.png: * platform/mac/svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt: DRT output is lowercase now. * platform/mac/svg/filters/feBlend-all-blendmodes-expected.png: Added. * platform/mac/svg/filters/feBlend-all-blendmodes-expected.txt: Added. * svg/filters/feBlend-all-blendmodes.svg: Added. Tests all blend modes now supported by feBlend. * svg/filters/feBlend-invalid-mode.xhtml: Add an upper bound check as well. Canonical link: https://commits.webkit.org/152283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-06-25 19:03:47 +00:00
[feBlend mode="screen"]
[feGaussianBlur stdDeviation="5.00, 5.00"]
[SourceGraphic]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="lighting"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
Add all blend modes to feBlend feBlend should support all blend modes from CSS and Canvas https://bugs.webkit.org/show_bug.cgi?id=134296 Source/WebCore: Reviewed by Dean Jackson. Add all blend modes to <feBlend> (the SVG filter primitive) that are also supported by HTML Canvas and CSS. In addition, add "normal" blend mode to HTML Canvas as requested by the CSS Compositing and Blending specification. (Referenced from HTML Canvas.) With this change, SVG, CSS and Canvas truly share the same blend modes and even the same keywords. This is much easier to for web authors. http://www.w3.org/TR/2014/CR-compositing-1-20140220/#ltblendmodegt Test: svg/filters/feBlend-all-blendmodes.svg * platform/graphics/GraphicsTypes.cpp: Reorder blend mode text streams to match enumeration order. Add a new function to parse blend modes independent of compositing modes. Add a string "normal" that is supported by CSS, feBlend and HTML Canvas now. (WebCore::parseBlendMode): (WebCore::parseCompositeAndBlendOperator): * platform/graphics/GraphicsTypes.h: Reorder BlendMode enumeration values to match the SVG JS enumeration for blend modes. * platform/graphics/cpu/arm/filters/FEBlendNEON.h: Move all software code that is no longer required by the software path but still used by NEON here. (WebCore::FEBlend::platformApplySoftware): (WebCore::FEBlend::platformApplyNEON): * platform/graphics/filters/FEBlend.cpp: Use drawImageBuffer() to blend the results of previous filter primitives. This allows removing more than 60% of the code. (WebCore::FEBlend::FEBlend): (WebCore::FEBlend::create): (WebCore::FEBlend::blendMode): (WebCore::FEBlend::setBlendMode): (WebCore::FEBlend::platformApplySoftware): (WebCore::FEBlend::dump): (WebCore::FEBlend::externalRepresentation): (WebCore::feBlendNormal): Deleted. (WebCore::feBlendMultiply): Deleted. (WebCore::feBlendScreen): Deleted. (WebCore::feBlendDarken): Deleted. (WebCore::feBlendLighten): Deleted. (WebCore::feBlendUnknown): Deleted. (WebCore::platformApply): Deleted. (WebCore::FEBlend::platformApplyGeneric): Deleted. (WebCore::operator<<): Deleted. * platform/graphics/filters/FEBlend.h: * svg/SVGAnimatedEnumeration.cpp: Use the global BlendMode enumeration. (WebCore::enumerationValueForTargetAttribute): * svg/SVGFEBlendElement.cpp: (WebCore::SVGFEBlendElement::SVGFEBlendElement): Use the global BlendMode enumeration. No new enumeration values added or exposed to SVG DOM as requested by SVG WG. (WebCore::SVGFEBlendElement::parseAttribute): * svg/SVGFEBlendElement.h: Replace BlendModeType with global BlendMode enumeration. Remove blend mode parsing code and use the code in GraphicsTypes instead. (WebCore::SVGPropertyTraits<BlendMode>::highestEnumValue): (WebCore::SVGPropertyTraits<BlendMode>::toString): (WebCore::SVGPropertyTraits<BlendModeType>::highestEnumValue): Deleted. (WebCore::SVGPropertyTraits<BlendModeType>::toString): Deleted. (WebCore::SVGPropertyTraits<BlendModeType>::fromString): Deleted. LayoutTests: Added tests for new blend modes in feBlend as well as a test for 'normal' blend mode on HTML Canvas. Reviewed by Dean Jackson. * fast/canvas/canvas-blend-image-expected.txt: * fast/canvas/canvas-blend-solid-expected.txt: * fast/canvas/script-tests/canvas-blend-image.js: Test 'normal' blend mode in Canvas. (prepareTestScenario): * fast/canvas/script-tests/canvas-blend-solid.js: Ditto. (prepareTestScenario): * platform/mac/svg/W3C-SVG-1.1/filters-blend-01-b-expected.png: * platform/mac/svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt: DRT output is lowercase now. * platform/mac/svg/filters/feBlend-all-blendmodes-expected.png: Added. * platform/mac/svg/filters/feBlend-all-blendmodes-expected.txt: Added. * svg/filters/feBlend-all-blendmodes.svg: Added. Tests all blend modes now supported by feBlend. * svg/filters/feBlend-invalid-mode.xhtml: Add an upper bound check as well. Canonical link: https://commits.webkit.org/152283@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-06-25 19:03:47 +00:00
[feBlend mode="multiply"]
[feColorMatrix type="MATRIX" values="0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00"]
[feSpecularLighting surfaceScale="1.00" specualConstant="1.00" specularExponent="1.00"]
[SourceGraphic]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="offset"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feOffset dx="10.00" dy="10.00"]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="convolvematrix"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feConvolveMatrix order="width=3 height=3" kernelMatrix="[1.00, 1.00, 1.00, 1.00, -7.00, 1.00, 1.00, 1.00, 1.00]" divisor="1.00" bias="0.30" target="(1,1)" edgeMode="DUPLICATE" kernelUnitLength="(1,1)" preserveAlpha="0"]
[SourceGraphic]
RenderSVGResourceFilter {filter} [id="displacement"] [filterUnits=objectBoundingBox] [primitiveUnits=userSpaceOnUse]
[feDisplacementMap scale="10.00" xChannelSelector="RED" yChannelSelector="GREEN"]
[SourceGraphic]
[SourceGraphic]
RenderText {#text} at (0,96) size 4x18
text run at (0,96) width 4: " "
RenderText {#text} at (0,0) size 0x0
RenderImage {IMG} at (14,10) size 160x90
RenderText {#text} at (184,96) size 4x18
text run at (184,96) width 4: " "
RenderText {#text} at (368,96) size 4x18
text run at (368,96) width 4: " "
RenderText {#text} at (552,96) size 4x18
text run at (552,96) width 4: " "
RenderText {#text} at (736,96) size 4x18
text run at (736,96) width 4: " "
RenderText {#text} at (180,210) size 4x18
text run at (180,210) width 4: " "
RenderText {#text} at (364,210) size 4x18
text run at (364,210) width 4: " "
RenderText {#text} at (548,210) size 4x18
text run at (548,210) width 4: " "
RenderText {#text} at (732,210) size 4x18
text run at (732,210) width 4: " "
RenderText {#text} at (180,324) size 4x18
text run at (180,324) width 4: " "
RenderText {#text} at (0,0) size 0x0
layer at (206,18) size 160x90
RenderImage {IMG} at (198,10) size 160x90
layer at (390,18) size 160x90
RenderImage {IMG} at (382,10) size 160x90
layer at (574,18) size 160x90
RenderImage {IMG} at (566,10) size 160x90
layer at (18,132) size 160x90
RenderImage {IMG} at (10,124) size 160x90
layer at (202,132) size 160x90
RenderImage {IMG} at (194,124) size 160x90
layer at (386,132) size 160x90
RenderImage {IMG} at (378,124) size 160x90
layer at (570,132) size 160x90
RenderImage {IMG} at (562,124) size 160x90
layer at (18,246) size 160x90
RenderImage {IMG} at (10,238) size 160x90
layer at (202,246) size 160x90
RenderImage {IMG} at (194,238) size 160x90