Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GPU Process] [Filters] Remove SVGFilterBuilder
https://bugs.webkit.org/show_bug.cgi?id=241577 <rdar://problem/95074247> Reviewed by Simon Fraser. After r295498, all the methods of SVGFilterBuilder became static. So this patch removes it and moves its methods to SVGFilter. -- colorInterpolationForElement() will be moved to SVGElement::colorInterpolation(). -- effectGeometryFlagsForElement() will be moved to SVGFilterPrimitiveStandardAttributes::effectGeometryFlags(). -- FilterData::boundaries is removed. It is set in RenderSVGResourceFilter:: applyResource() and used only in RenderSVGResourceFilter::postApplyResource() where we check '!isEmpty()'. This check can be replaced by checking if filter is not nullptr. -- FilterData::scale is removed since it is not used. -- FilterData::sourceGraphicBuffer and FilterData::drawingRegion are renamed sourceImage and sourceImageRect respectively to match the named of the inputs of GraphicsContext::drawFilteredImageBuffer(). * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/rendering/CSSFilter.cpp: (WebCore::calculateReferenceFilterOutsets): * Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp: (WebCore::RenderSVGResourceFilter::applyResource): (WebCore::RenderSVGResourceFilter::postApplyResource): (WebCore::RenderSVGResourceFilter::drawingRegion const): * Source/WebCore/rendering/svg/RenderSVGResourceFilter.h: * Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp: (WebCore::writeSVGResourceContainer): * Source/WebCore/svg/SVGElement.cpp: (WebCore::SVGElement::colorInterpolation const): * Source/WebCore/svg/SVGElement.h: * Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp: (WebCore::SVGFilterPrimitiveStandardAttributes::effectGeometryFlags const): * Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h: * Source/WebCore/svg/graphics/filters/SVGFilter.cpp: (WebCore::SVGFilter::create): (WebCore::buildFilterEffectsGraph): (WebCore::SVGFilter::buildExpression): (WebCore::buildFilterPrimitivesGraph): (WebCore::SVGFilter::calculateOutsets): * Source/WebCore/svg/graphics/filters/SVGFilter.h: * Source/WebCore/svg/graphics/filters/SVGFilterBuilder.cpp: Removed. * Source/WebCore/svg/graphics/filters/SVGFilterBuilder.h: Removed. Canonical link: https://commits.webkit.org/251522@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
13 changed files
with
166 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.