summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 06:18:58 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 06:18:58 +0000
commite738ea51ac8011f8c16c10666fba1bb7b930fbb3 (patch)
tree65cdae9bce903f5a7717d1242e8d640d70ab51d0 /webkit/glue/webview_impl.cc
parent779aae5fa525671293b0db3ddad27cc3811a362a (diff)
downloadchromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.zip
chromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.tar.gz
chromium_src-e738ea51ac8011f8c16c10666fba1bb7b930fbb3.tar.bz2
Reverting 11953.
Review URL: http://codereview.chromium.org/48121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 27e1842..69ca561 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -1192,37 +1192,6 @@ bool WebViewImpl::ImeUpdateStatus(bool* enable_ime,
return true;
}
-void WebViewImpl::SetTextDirection(WebTextDirection direction) {
- // The Editor::setBaseWritingDirection() function checks if we can change
- // the text direction of the selected node and updates its DOM "dir"
- // attribute and its CSS "direction" property.
- // So, we just call the function as Safari does.
- const Frame* focused = GetFocusedWebCoreFrame();
- if (!focused)
- return;
- Editor* editor = focused->editor();
- if (!editor || !editor->canEdit())
- return;
-
- switch (direction) {
- case WEB_TEXT_DIRECTION_DEFAULT:
- editor->setBaseWritingDirection(WebCore::NaturalWritingDirection);
- break;
-
- case WEB_TEXT_DIRECTION_LTR:
- editor->setBaseWritingDirection(WebCore::LeftToRightWritingDirection);
- break;
-
- case WEB_TEXT_DIRECTION_RTL:
- editor->setBaseWritingDirection(WebCore::RightToLeftWritingDirection);
- break;
-
- default:
- NOTIMPLEMENTED();
- break;
- }
-}
-
void WebViewImpl::RestoreFocus() {
if (last_focused_frame_.get()) {
if (last_focused_frame_->page()) {