Bug 1532661 - Part 3: Add WillSetX and DidSetX callbacks for BrowsingContext synced fields, r=farre

Depends on D22191

Differential Revision: https://phabricator.services.mozilla.com/D22192
This commit is contained in:
Nika Layzell
2019-03-14 18:51:07 +00:00
parent 9b066f2565
commit 41a40bdcc5
2 changed files with 17 additions and 2 deletions

View File

@@ -688,7 +688,9 @@ void BrowsingContext::Transaction::Apply(BrowsingContext* aBrowsingContext,
ContentParent* aSource) {
#define MOZ_BC_FIELD(name, ...) \
if (m##name) { \
aBrowsingContext->WillSet##name(*m##name, aSource); \
aBrowsingContext->m##name = std::move(*m##name); \
aBrowsingContext->DidSet##name(aSource); \
m##name.reset(); \
}
#include "mozilla/dom/BrowsingContextFieldList.h"