Spellcheck should not only work if the element is contentEditable, it should also work if the document is in designMode.  WebKit has an helper function to check if something is editable in any way (and properly excludes things like read only text areas), so use that here instead of our home grown check.  Note that this code defaults text inputs to not be spell checkable, which is preserving the current behavior.
Spellcheck should not only work if the element is contentEditable, it should also work if the document is in designMode.  WebKit has an helper function to check if something is editable in any way (and properly excludes things like read only text areas), so use that here instead of our home grown check.  Note that this code defaults text inputs to not be spell checkable, which is preserving the current behavior.

BUG=14870
TEST=Will commit a WebKit LayoutTest for this after I check this in.
Review URL: http://codereview.chromium.org/155611

git-svn-id: http://src.chromium.org/svn/trunk/src@21034 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: d0eb55a3a82ea7d8d55a1965f2d49a2af8b69eae
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser