Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Settings] Remove all custom code from Settings.h/cpp
https://bugs.webkit.org/show_bug.cgi?id=178330 Reviewed by Simon Fraser. Source/WebCore: Removes the two remaining functions out of Settings paving the way for the file to be generated. - pageDestroyed was moved down into SettingsBase. - effectiveFrameFlattening was moved to FrameView (to reduce the need for additional includes, the FrameFlattening enum was converted to an enum class to allow it to be forward declared). Also moves default values into SettingsDefaultValues.h * WebCore.xcodeproj/project.pbxproj: Add new files. * page/FrameView.cpp: * page/FrameView.h: Move effectiveFrameFlattening function here from Settings. * page/Settings.cpp: * page/Settings.h: Move effectiveFrameFlattening, pageDestroyed and default values out. * page/Settings.in: Update for turning FrameFlattening into an enum class. * page/SettingsBase.h: Turn FrameFlattening into an enum class and move pageDestroyed here. * page/SettingsDefaultValues.h: Added. Move all the default values from Settings here. * rendering/RenderFrameSet.cpp: * rendering/RenderIFrame.cpp: * rendering/RenderView.cpp: Get effectiveFrameFlattening from the FrameView. * testing/InternalSettings.cpp: * testing/InternalSettings.h: Update now that FrameFlattening is an enum class. Source/WebKit: * Shared/WebPreferencesDefinitions.h: * UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetFrameFlatteningEnabled): (WKPreferencesGetFrameFlatteningEnabled): * UIProcess/API/glib/WebKitSettings.cpp: (webkit_settings_get_enable_frame_flattening): (webkit_settings_set_enable_frame_flattening): * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::setFrameFlatteningEnabled): Update for naming changes of FrameFlattening now that it is an enum class. * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::contentsSizeChanged const): Ge the effectiveFrameFlattening from the FrameView, rather than the Settings. Source/WebKitLegacy/mac: * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Update for naming changes of FrameFlattening now that it is an enum class. Source/WebKitLegacy/win: * WebView.cpp: (WebView::notifyPreferencesChanged): Update for naming changes of FrameFlattening now that it is an enum class. Canonical link: https://commits.webkit.org/194576@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
254 additions
and 148 deletions.
- +54 −0 Source/WebCore/ChangeLog
- +2 −0 Source/WebCore/WebCore.xcodeproj/project.pbxproj
- +13 −1 Source/WebCore/page/FrameView.cpp
- +4 −0 Source/WebCore/page/FrameView.h
- +1 −99 Source/WebCore/page/Settings.cpp
- +2 −6 Source/WebCore/page/Settings.h
- +1 −1 Source/WebCore/page/Settings.in
- +7 −5 Source/WebCore/page/SettingsBase.h
- +100 −0 Source/WebCore/page/SettingsDefaultValues.h
- +1 −1 Source/WebCore/rendering/RenderFrameSet.cpp
- +2 −2 Source/WebCore/rendering/RenderIFrame.cpp
- +1 −1 Source/WebCore/rendering/RenderView.cpp
- +2 −17 Source/WebCore/testing/InternalSettings.cpp
- +2 −2 Source/WebCore/testing/InternalSettings.h
- +24 −0 Source/WebKit/ChangeLog
- +2 −2 Source/WebKit/Shared/WebPreferencesDefinitions.h
- +2 −2 Source/WebKit/UIProcess/API/C/WKPreferences.cpp
- +3 −3 Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
- +1 −1 Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp
- +3 −2 Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp
- +12 −0 Source/WebKitLegacy/mac/ChangeLog
- +2 −2 Source/WebKitLegacy/mac/WebView/WebPreferences.mm
- +12 −0 Source/WebKitLegacy/win/ChangeLog
- +1 −1 Source/WebKitLegacy/win/WebView.cpp
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
Oops, something went wrong.