mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Ensure box objects are obtained from the correct document b=330181 r+sr=jst
This commit is contained in:
parent
84fbd99c0f
commit
d7bd93f921
@ -3217,6 +3217,8 @@ nsDocument::GetBoxObjectFor(nsIDOMElement* aElement, nsIBoxObject** aResult)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(aElement));
|
||||
NS_ENSURE_TRUE(content, NS_ERROR_UNEXPECTED);
|
||||
NS_ENSURE_TRUE(content->GetCurrentDoc() == this,
|
||||
NS_ERROR_DOM_WRONG_DOCUMENT_ERR);
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user