Bug 1375513 Part 1 - Support non-chrome XBL bindings with stylesheets for stylo. r=heycam

MozReview-Commit-ID: bclwwk6uzI

--HG--
extra : rebase_source : 1dcbc7ef2f482333991e3bce1cf18ee5924c2740
This commit is contained in:
Ting-Yu Lin 2017-06-27 22:49:19 -07:00
parent 84841ecdaf
commit 322430d9e4

View File

@ -268,6 +268,13 @@ nsXBLResourceLoader::NotifyBoundElements()
}
if (!sc) {
if (shell->StyleSet()->IsServo()) {
// Ensure the element has servo data so that
// nsChangeHint_ReconstructFrame posted by
// PostRecreateFramesFor() is recognized.
shell->StyleSet()->GetAsServo()->StyleNewlyBoundElement(
content->AsElement());
}
shell->PostRecreateFramesFor(content->AsElement());
}
}