diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
index 201fb3abc30..2f9ece41fe9 100644
--- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/mozilla/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/mozilla/content/html/content/src/nsHTMLAppletElement.cpp b/mozilla/content/html/content/src/nsHTMLAppletElement.cpp
index 91f9891b8e3..433562ac68c 100644
--- a/mozilla/content/html/content/src/nsHTMLAppletElement.cpp
+++ b/mozilla/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/mozilla/content/html/content/src/nsHTMLSharedElement.cpp b/mozilla/content/html/content/src/nsHTMLSharedElement.cpp
index 6c701339b19..707d729d5d3 100644
--- a/mozilla/content/html/content/src/nsHTMLSharedElement.cpp
+++ b/mozilla/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();
}