forked from mirrors/gecko-dev
Bug 556027: Propagate 'accelerated' attribute from nsXULWindow. r=roc
This commit is contained in:
parent
7e768a330f
commit
bd41f89063
1 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue