зеркало из https://github.com/mozilla/pjs.git
Fix spew of 'couldn't get canvas size' assertions. (Bug 566603) r=vlad
This commit is contained in:
Родитель
acd7fc2c52
Коммит
c0b6d20a97
|
@ -112,15 +112,10 @@ nsIntSize
|
|||
nsHTMLCanvasFrame::GetCanvasSize()
|
||||
{
|
||||
nsIntSize size(0,0);
|
||||
nsresult rv;
|
||||
nsHTMLCanvasElement *canvas = CanvasElementFromContent(GetContent());
|
||||
if (canvas) {
|
||||
size = canvas->GetSize();
|
||||
} else {
|
||||
rv = NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_NOTREACHED("couldn't get canvas size");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче