author | Emilio Cobos Álvarez <emilio@crisal.io> |
Fri, 20 Apr 2018 03:45:04 +0200 | |
changeset 414939 | 046d0e259116679e2c4908cfa288e774dcddbf07 |
parent 414938 | c007f07170a5b3b377f45ab63c6c508ab0ebb58f |
child 414940 | cf89da716c0b74286e13ed7ca6ef704a5372afa9 |
push id | 102433 |
push user | ecoal95@gmail.com |
push date | Sat, 21 Apr 2018 10:09:09 +0000 |
treeherder | mozilla-inbound@046d0e259116 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bholley |
bugs | 1455492 |
milestone | 61.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/layout/style/Loader.cpp +++ b/layout/style/Loader.cpp @@ -1651,17 +1651,17 @@ Loader::DoParseSheetServo(ServoStyleShee // This parse does not need to be synchronous. \o/ // // Note that we need to block onload because there may be no network requests // pending. BlockOnload(); RefPtr<SheetLoadData> loadData = aLoadData; nsCOMPtr<nsISerialEventTarget> target = DispatchTarget(); aSheet->ParseSheet(this, aBytes, aLoadData)->Then(target, __func__, - [loadData](bool aDummy) { + [loadData = Move(loadData)](bool aDummy) { MOZ_ASSERT(NS_IsMainThread()); loadData->mIsBeingParsed = false; loadData->mLoader->UnblockOnload(/* aFireSync = */ false); // If there are no child sheets outstanding, mark us as complete. // Otherwise, the children are holding strong refs to the data and // will call SheetComplete() on it when they complete. if (loadData->mPendingChildren == 0) { loadData->mLoader->SheetComplete(loadData, NS_OK);