From 4e5a0d760718828ac535d94a9f2fdb14347a06ca Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Fri, 18 Nov 2005 05:22:04 +0000 Subject: [PATCH] Bug 316867 Should clean up the changed code by bug 55751 and bug 316715 r+sr=roc --- content/html/content/src/nsGenericHTMLElement.cpp | 6 +++--- content/html/content/src/nsHTMLAppletElement.cpp | 4 ++-- content/html/content/src/nsHTMLSharedElement.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 201fb3abc30..2f9ece41fe9 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -3074,14 +3074,14 @@ nsGenericHTMLFormElement::GetDesiredIMEState() nsCOMPtr editor = nsnull; nsresult rv = GetEditorInternal(getter_AddRefs(editor)); if (NS_FAILED(rv) || !editor) - return nsIContent::GetDesiredIMEState(); + return nsGenericHTMLElement::GetDesiredIMEState(); nsCOMPtr imeEditor = do_QueryInterface(editor); if (!imeEditor) - return nsIContent::GetDesiredIMEState(); + return nsGenericHTMLElement::GetDesiredIMEState(); PRUint32 state; rv = imeEditor->GetPreferredIMEState(&state); if (NS_FAILED(rv)) - return nsIContent::GetDesiredIMEState(); + return nsGenericHTMLElement::GetDesiredIMEState(); return state; } diff --git a/content/html/content/src/nsHTMLAppletElement.cpp b/content/html/content/src/nsHTMLAppletElement.cpp index 91f9891b8e3..433562ac68c 100644 --- a/content/html/content/src/nsHTMLAppletElement.cpp +++ b/content/html/content/src/nsHTMLAppletElement.cpp @@ -330,8 +330,8 @@ nsHTMLAppletElement::IsFocusable(PRInt32 *aTabIndex) PRUint32 nsHTMLAppletElement::GetDesiredIMEState() { - if (nsObjectLoadingContent::Type() == eType_Plugin) + if (Type() == eType_Plugin) return nsIContent::IME_STATUS_ENABLE; - return nsIContent::GetDesiredIMEState(); + return nsGenericHTMLElement::GetDesiredIMEState(); } diff --git a/content/html/content/src/nsHTMLSharedElement.cpp b/content/html/content/src/nsHTMLSharedElement.cpp index 6c701339b19..707d729d5d3 100644 --- a/content/html/content/src/nsHTMLSharedElement.cpp +++ b/content/html/content/src/nsHTMLSharedElement.cpp @@ -610,7 +610,7 @@ PRUint32 nsHTMLSharedElement::GetDesiredIMEState() { if (mNodeInfo->Equals(nsHTMLAtoms::embed) && - nsObjectLoadingContent::Type() == eType_Plugin) + Type() == eType_Plugin) return nsIContent::IME_STATUS_ENABLE; - return nsIContent::GetDesiredIMEState(); + return nsGenericHTMLElement::GetDesiredIMEState(); }