Cleanup: return NS_NOINTERFACE not NS_OK if getting the primary frame fails.
git-svn-id: svn://10.0.0.236/trunk@22515 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4b77b70cb2
commit
95b65d4e20
@ -1419,7 +1419,7 @@ nsGenericHTMLElement::GetPrimaryFrame(nsIHTMLContent* aContent,
|
||||
nsIFormControlFrame *&aFormControlFrame)
|
||||
{
|
||||
nsIDocument* doc = nsnull;
|
||||
nsresult res = NS_OK;
|
||||
nsresult res = NS_NOINTERFACE;
|
||||
// Get the document
|
||||
if (NS_OK == aContent->GetDocument(doc)) {
|
||||
if (nsnull != doc) {
|
||||
|
||||
@ -1419,7 +1419,7 @@ nsGenericHTMLElement::GetPrimaryFrame(nsIHTMLContent* aContent,
|
||||
nsIFormControlFrame *&aFormControlFrame)
|
||||
{
|
||||
nsIDocument* doc = nsnull;
|
||||
nsresult res = NS_OK;
|
||||
nsresult res = NS_NOINTERFACE;
|
||||
// Get the document
|
||||
if (NS_OK == aContent->GetDocument(doc)) {
|
||||
if (nsnull != doc) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user