Merge SVGImageBufferTools to SVGRenderingContext
authorzherczeg@webkit.org <zherczeg@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 12:51:40 +0000 (12:51 +0000)
committerzherczeg@webkit.org <zherczeg@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Mar 2012 12:51:40 +0000 (12:51 +0000)
commitf8ba2ecb40a5a789559aea6f45e463ca77d2bcc8
treef18b78eb14b6b33a2695a56aaa6e4f2305d57594
parentb7281db90b7530077d4996f25d52382ccb493b84
Merge SVGImageBufferTools to SVGRenderingContext
https://bugs.webkit.org/show_bug.cgi?id=81890

Reviewed by Nikolas Zimmermann.

Copy the code to SVGRenderingContext and delete
SVGImageBufferTools[.cpp.h]. Update build systems,
no functionality change. This is the first step
towards making SVGImageBufferTools stageful.

Existing tests cover this issue.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.xcodeproj/project.pbxproj:
* platform/graphics/filters/FETile.cpp:
(WebCore::FETile::platformApplySoftware):
* rendering/svg/RenderSVGAllInOne.cpp:
* rendering/svg/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::computeNewScaledFontForStyle):
* rendering/svg/RenderSVGResourceClipper.cpp:
(WebCore::RenderSVGResourceClipper::applyClippingToContext):
(WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage):
* rendering/svg/RenderSVGResourceFilter.cpp:
(WebCore::RenderSVGResourceFilter::applyResource):
* rendering/svg/RenderSVGResourceGradient.cpp:
(WebCore::createMaskAndSwapContextForTextGradient):
(WebCore::clipToTextMask):
* rendering/svg/RenderSVGResourceMasker.cpp:
(WebCore::RenderSVGResourceMasker::applyResource):
(WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
* rendering/svg/RenderSVGResourcePattern.cpp:
(WebCore::RenderSVGResourcePattern::applyResource):
(WebCore::RenderSVGResourcePattern::createTileImage):
* rendering/svg/SVGImageBufferTools.cpp: Removed.
* rendering/svg/SVGImageBufferTools.h: Removed.
* rendering/svg/SVGInlineTextBox.cpp:
* rendering/svg/SVGRenderingContext.cpp:
(WebCore::currentContentTransformation):
(WebCore):
(WebCore::SVGRenderingContext::calculateTransformationToOutermostSVGCoordinateSystem):
(WebCore::SVGRenderingContext::createImageBuffer):
(WebCore::SVGRenderingContext::createImageBufferForPattern):
(WebCore::SVGRenderingContext::renderSubtreeToImageBuffer):
(WebCore::SVGRenderingContext::clipToImageBuffer):
(WebCore::SVGRenderingContext::clampedAbsoluteTargetRect):
(WebCore::SVGRenderingContext::clampedAbsoluteSize):
(WebCore::SVGRenderingContext::clear2DRotation):
* rendering/svg/SVGRenderingContext.h:
(SVGRenderingContext):
(WebCore::SVGRenderingContext::calculateImageBufferRect):
* svg/graphics/filters/SVGFEImage.cpp:
(WebCore::FEImage::platformApplySoftware):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/graphics/filters/FETile.cpp
Source/WebCore/rendering/svg/RenderSVGAllInOne.cpp
Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
Source/WebCore/rendering/svg/RenderSVGResourceClipper.cpp
Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
Source/WebCore/rendering/svg/SVGImageBufferTools.cpp [deleted file]
Source/WebCore/rendering/svg/SVGImageBufferTools.h [deleted file]
Source/WebCore/rendering/svg/SVGInlineTextBox.cpp
Source/WebCore/rendering/svg/SVGRenderingContext.cpp
Source/WebCore/rendering/svg/SVGRenderingContext.h
Source/WebCore/svg/graphics/filters/SVGFEImage.cpp