Bug 1414666 part 1 - Add nsIFrame::PresShell() for convenient access to the shell. r=emilio

MozReview-Commit-ID: 8FPTPKWyVtY
This commit is contained in:
Mats Palmgren
2017-11-09 03:00:48 +01:00
parent 6599cc449b
commit 2544eb586c
70 changed files with 255 additions and 251 deletions

View File

@@ -212,7 +212,7 @@ nsProgressFrame::AttributeChanged(int32_t aNameSpaceID,
if (aNameSpaceID == kNameSpaceID_None &&
(aAttribute == nsGkAtoms::value || aAttribute == nsGkAtoms::max)) {
auto shell = PresContext()->PresShell();
auto shell = PresShell();
for (auto childFrame : PrincipalChildList()) {
shell->FrameNeedsReflow(childFrame, nsIPresShell::eResize,
NS_FRAME_IS_DIRTY);