Textareas should be resizable by default
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 02:08:50 +0000 (02:08 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 02:08:50 +0000 (02:08 +0000)
commitac5f5eccd228b96675e2bb7a5439f361496279df
tree1f30c4c39aad92aad3caf32f64932b0accaf2d52
parent3ebf1f60df325c2fd8469d2db7207aace377837e
Textareas should be resizable by default
https://bugs.webkit.org/show_bug.cgi?id=49892

Reviewed by Dan Bernstein.

WebKit2:

Test: WebKit2/WKPreferences

* Shared/WebPreferencesStore.cpp:
(WebKit::WebPreferencesStore::WebPreferencesStore):
(WebKit::WebPreferencesStore::encode):
(WebKit::WebPreferencesStore::decode):
* Shared/WebPreferencesStore.h:
Add textAreasAreResizable bit.

* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetJavaEnabled):
(WKPreferencesGetJavaEnabled):
Fix typo, WKPRe... -> WKPre...

(WKPreferencesSetMinimumFontSize):
(WKPreferencesGetMinimumFontSize):
Fix comment to correctly reflect that the default minimumFontSize is 0, not 1.

(WKPreferencesSetTextAreasAreResizable):
(WKPreferencesGetTextAreasAreResizable):
* UIProcess/API/C/WKPreferences.h:
Add API.

* UIProcess/API/C/WKPreferencesPrivate.h:
Don't use PLATFORM in API headers.

* UIProcess/WebPreferences.cpp:
(WebKit::WebPreferences::setTextAreasAreResizable):
(WebKit::WebPreferences::textAreasAreResizable):
* UIProcess/WebPreferences.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
Pipe bit through to the WebProcess and onto WebCore::Settings.

WebKitTools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp: Added.
* TestWebKitAPI/win/TestWebKitAPI.vcproj:
Add preferences test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
WebKit2/ChangeLog
WebKit2/Shared/WebPreferencesStore.cpp
WebKit2/Shared/WebPreferencesStore.h
WebKit2/UIProcess/API/C/WKPreferences.cpp
WebKit2/UIProcess/API/C/WKPreferences.h
WebKit2/UIProcess/API/C/WKPreferencesPrivate.h
WebKit2/UIProcess/WebPreferences.cpp
WebKit2/UIProcess/WebPreferences.h
WebKit2/WebProcess/WebPage/WebPage.cpp
WebKitTools/ChangeLog
WebKitTools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
WebKitTools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp [new file with mode: 0644]
WebKitTools/TestWebKitAPI/win/TestWebKitAPI.vcproj