зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1000875 - Give nsDOMWindowUtils::CheckAndClearPaintedState the ability to check paints of canvas frames. r=roc
This commit is contained in:
Родитель
c3c2709899
Коммит
691caf748b
|
@ -3076,6 +3076,17 @@ nsDOMWindowUtils::CheckAndClearPaintedState(nsIDOMElement* aElement, bool* aResu
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get the outermost frame for the content node, so that we can test
|
||||||
|
// canvasframe invalidations by observing the documentElement.
|
||||||
|
for (;;) {
|
||||||
|
nsIFrame* parentFrame = frame->GetParent();
|
||||||
|
if (parentFrame && parentFrame->GetContent() == content) {
|
||||||
|
frame = parentFrame;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
*aResult = frame->CheckAndClearPaintedState();
|
*aResult = frame->CheckAndClearPaintedState();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче