зеркало из https://github.com/mozilla/pjs.git
Bug 458740: revert special casing of XUL content in CanvasBrowser since it's unnecessary, r=mfinkle
This commit is contained in:
Родитель
70bb9b52c3
Коммит
0d247a63cd
|
@ -445,11 +445,6 @@ CanvasBrowser.prototype = {
|
|||
get _contentAreaDimensions() {
|
||||
var cdoc = this._browser.contentDocument;
|
||||
|
||||
// Return the document width/height for XUL documents (which is
|
||||
// essentially the same as the viewport width/height).
|
||||
if (cdoc instanceof XULDocument)
|
||||
return [cdoc.width, cdoc.height];
|
||||
|
||||
if (cdoc instanceof SVGDocument) {
|
||||
let rect = cdoc.rootElement.getBoundingClientRect();
|
||||
return [rect.width, rect.height];
|
||||
|
|
Загрузка…
Ссылка в новой задаче