From 30e51725aa7ed0ba1269416a63c74b37ee89164c Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 1 Nov 2001 05:40:35 +0000 Subject: [PATCH] #88100 r=simon@softel.co.il, sr=blizzard Hookup Bidi preferences --- docshell/base/nsDocShell.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index f8430f28771..72d660c27a5 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -3589,10 +3589,6 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer) NS_ENSURE_SUCCESS(GetSameTypeParent(getter_AddRefs(parentAsItem)), NS_ERROR_FAILURE); nsCOMPtr parent(do_QueryInterface(parentAsItem)); -#ifdef IBMBIDI - PRUint32 options; - nsIMarkupDocumentViewer *newViewer = nsnull; -#endif // IBMBIDI if (mContentViewer || parent) { nsCOMPtr oldMUDV; @@ -3630,11 +3626,6 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer) NS_ENSURE_SUCCESS(oldMUDV-> GetHintCharacterSetSource(&hintCharsetSource), NS_ERROR_FAILURE); -#ifdef IBMBIDI - NS_ENSURE_SUCCESS(oldMUDV->GetBidiOptions(&options), - NS_ERROR_FAILURE); - newViewer = newMUDV.get(); -#endif // IBMBIDI // set the old state onto the new content viewer NS_ENSURE_SUCCESS(newMUDV->SetDefaultCharacterSet(defaultCharset), @@ -3785,12 +3776,6 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer) } } -#ifdef IBMBIDI - if (newViewer) { - // set the old state onto the new content viewer - NS_ENSURE_SUCCESS(newViewer->SetBidiOptions(options), NS_ERROR_FAILURE); - } -#endif // IBMBIDI // XXX: It looks like the LayoutState gets restored again in Embed() // right after the call to SetupNewViewer(...)