Added type parameter to PartialEq on JSRef (fixes #5112, #3960)

This commit is contained in:
Keith Yeung 2015-03-03 11:39:37 +08:00
parent 801b939479
commit a07a0cf39f
3 changed files with 7 additions and 7 deletions

View file

@ -241,7 +241,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
let browser_context = browser_context.as_ref().unwrap();
let active_document = browser_context.active_document().root();
if self.clone() != active_document.r() {
if self != active_document.r() {
return false;
}
// FIXME: It should also check whether the browser context is top-level or not