Fix context menus on pages with background images. Patch from Mark Loiselle <mloiselle@yahoo.com>. r=dbaron sr=shaver b=80473

This commit is contained in:
dbaron%fas.harvard.edu 2001-05-12 21:19:45 +00:00
Родитель e7196a0271
Коммит 4f53297cd6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -272,7 +272,7 @@ nsContextMenu.prototype = {
} else if ( this.target.getAttribute( "background" ) ) {
this.hasBGImage = true;
// Convert background attribute to absolute URL.
this.bgImageURL = this.makeURLAbsolute( this.target.baseURI,
this.bgImageURL = this.makeURLAbsolute( this.target.ownerDocument,
this.target.getAttribute( "background" ) );
} else if ( "HTTPIndex" in _content &&
_content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) {
@ -378,7 +378,7 @@ nsContextMenu.prototype = {
if ( !this.hasBGImage && elem.background ) {
this.hasBGImage = true;
// Convert background attribute to absolute URL.
this.bgImageURL = this.makeURLAbsolute( elem.baseURI,
this.bgImageURL = this.makeURLAbsolute( elem.ownerDocument,
elem.background );
}
}