Bug 556027: Propagate 'accelerated' attribute from nsXULWindow. r=roc

This commit is contained in:
Bas Schouten 2010-03-31 05:03:00 +02:00
parent bd0de20082
commit 256635a5cf

View File

@ -1374,6 +1374,13 @@ void nsXULWindow::SyncAttributesToWidget()
mWindow->HideWindowChrome(PR_TRUE);
}
// "accelerated" attribute
PRBool isAccelerated;
rv = windowElement->HasAttribute(NS_LITERAL_STRING("accelerated"), &isAccelerated);
if (NS_SUCCEEDED(rv)) {
mWindow->SetAcceleratedRendering(isAccelerated);
}
// "windowtype" attribute
rv = windowElement->GetAttribute(NS_LITERAL_STRING("windowtype"), attr);
if (NS_SUCCEEDED(rv) && !attr.IsEmpty()) {