[webkit-changes] [WebKit/WebKit] 74b151: [Filters] Add an internal feature key for enabling...
Said Abou-Hallawa
noreply at github.com
Sun Nov 27 18:35:01 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74b151e788b03d24ea9ce1a2fc876a01d6589f14
https://github.com/WebKit/WebKit/commit/74b151e788b03d24ea9ce1a2fc876a01d6589f14
Author: Said Abou-Hallawa <said at apple.com>
Date: 2022-11-27 (Sun, 27 Nov 2022)
Changed paths:
M Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/page/Page.cpp
M Source/WebCore/platform/graphics/GraphicsContext.h
M Source/WebCore/platform/graphics/GraphicsContextState.cpp
A Source/WebCore/platform/graphics/filters/FilterStyleTargetSwitcher.cpp
A Source/WebCore/platform/graphics/filters/FilterStyleTargetSwitcher.h
M Source/WebCore/platform/graphics/filters/FilterTargetSwitcher.cpp
Log Message:
-----------
[Filters] Add an internal feature key for enabling GraphicsContext filters
https://bugs.webkit.org/show_bug.cgi?id=248375
rdar://102689264
Reviewed by Sam Weinig.
This key will be used for enabling GraphicsContext filters giving that all the
FilterEffects in the filter chain support CoreGraphics filters.
* Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/page/Page.cpp:
(WebCore::Page::preferredFilterRenderingModes const):
* Source/WebCore/platform/graphics/GraphicsContext.h:
(WebCore::GraphicsContext::style const):
(WebCore::GraphicsContext::setStyle):
* Source/WebCore/platform/graphics/GraphicsContextState.cpp:
(WebCore::GraphicsContextState::mergeLastChanges):
* Source/WebCore/platform/graphics/filters/FilterStyleTargetSwitcher.cpp: Copied from Source/WebCore/platform/graphics/filters/FilterTargetSwitcher.cpp.
(WebCore::FilterStyleTargetSwitcher::FilterStyleTargetSwitcher):
(WebCore::FilterStyleTargetSwitcher::willDrawSourceImage):
(WebCore::FilterStyleTargetSwitcher::didDrawSourceImage):
* Source/WebCore/platform/graphics/filters/FilterStyleTargetSwitcher.h: Copied from Source/WebCore/platform/graphics/filters/FilterTargetSwitcher.cpp.
* Source/WebCore/platform/graphics/filters/FilterTargetSwitcher.cpp:
(WebCore::FilterTargetSwitcher::create):
Canonical link: https://commits.webkit.org/257055@main
More information about the webkit-changes
mailing list