Automatically generate Settings::unifiedTextCheckerEnabled
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Jan 2013 18:07:37 +0000 (18:07 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Jan 2013 18:07:37 +0000 (18:07 +0000)
commit00c671006303766c17a802bc6a96d3c83e8a43f2
tree2be1927703308c5ee03b85e6b8cb19c10ebb575a
parent18d6d40ff00ecd0d1b52b411afc4242d2441ba37
Automatically generate Settings::unifiedTextCheckerEnabled
https://bugs.webkit.org/show_bug.cgi?id=106382

Reviewed by Adam Barth.

Source/WebCore:

No new tests, no change in behavior. This is covered by existing editing/spelling tests.

* page/Settings.cpp:
(WebCore): Move default value into a global so we can generate the initializer.
(WebCore::Settings::Settings): Remove initializer code that is now generated.
* page/Settings.h:
(Settings): Remove getters and setters.
* page/Settings.in: Add entry to be generated.
* testing/InternalSettings.cpp:
(WebCore::InternalSettings::Backup::Backup): Remove backup since the generated code does this.
(WebCore::InternalSettings::Backup::restoreTo): Remove restore code since the generated code does this.
* testing/InternalSettings.h:
(InternalSettings): Remove member variable.
* testing/InternalSettings.idl: The getter was unused so it's being removed. The setter is now generated.

LayoutTests:

The InternalSettings.idl method didn't match the Settings' getter/setter. Now
that we're using the generated version, make the tests use the same name.

* editing/spelling/grammar-edit-word.html:
* editing/spelling/spellcheck-async-mutation.html:
* editing/spelling/spellcheck-async-remove-frame.html:
* editing/spelling/spellcheck-async.html:
* editing/spelling/spelling-marker-description.html:
* editing/spelling/spelling-unified-emulation.html:
* platform/chromium/editing/spelling/delete-misspelled-word.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139202 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/spelling/grammar-edit-word.html
LayoutTests/editing/spelling/spellcheck-async-mutation.html
LayoutTests/editing/spelling/spellcheck-async-remove-frame.html
LayoutTests/editing/spelling/spellcheck-async.html
LayoutTests/editing/spelling/spelling-marker-description.html
LayoutTests/editing/spelling/spelling-unified-emulation.html
LayoutTests/platform/chromium/editing/spelling/delete-misspelled-word.html
Source/WebCore/ChangeLog
Source/WebCore/page/Settings.cpp
Source/WebCore/page/Settings.h
Source/WebCore/page/Settings.in
Source/WebCore/testing/InternalSettings.cpp
Source/WebCore/testing/InternalSettings.h
Source/WebCore/testing/InternalSettings.idl