mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 556027: Propagate 'accelerated' attribute from nsXULWindow. r=roc
This commit is contained in:
parent
bd0de20082
commit
256635a5cf
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user