mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1176449 - Enter an update here to avoid assertions on startup. r=dbaron
This commit is contained in:
parent
ca95220856
commit
4f264bff9d
@ -92,6 +92,7 @@
|
||||
#include "nsJSUtils.h"
|
||||
#include "mozilla/dom/URL.h"
|
||||
#include "nsIContentPolicy.h"
|
||||
#include "mozAutoDocUpdate.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
@ -2967,10 +2968,14 @@ XULDocument::DoneWalking()
|
||||
// XXXldb This is where we should really be setting the chromehidden
|
||||
// attribute.
|
||||
|
||||
uint32_t count = mOverlaySheets.Length();
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
AddStyleSheet(mOverlaySheets[i]);
|
||||
{
|
||||
mozAutoDocUpdate updateBatch(this, UPDATE_STYLE, true);
|
||||
uint32_t count = mOverlaySheets.Length();
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
AddStyleSheet(mOverlaySheets[i]);
|
||||
}
|
||||
}
|
||||
|
||||
mOverlaySheets.Clear();
|
||||
|
||||
if (!mDocumentLoaded) {
|
||||
|
Loading…
Reference in New Issue
Block a user