first continuation placeholder draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 22 Jun 2018 00:52:15 +0200
changeset 809437 1dc7aa5a3271b82ded596f4b81303885d55e6277
parent 809436 96e021f94cc2a57d52b15d7abb50b311806f5b7f
child 809438 fe942005ce0606f0eb11ea1c155a63fd6068d12c
push id113676
push userbmo:emilio@crisal.io
push dateFri, 22 Jun 2018 03:46:37 +0000
milestone62.0a1
first continuation placeholder MozReview-Commit-ID: Htizql7692e
layout/base/RestyleManager.cpp
--- a/layout/base/RestyleManager.cpp
+++ b/layout/base/RestyleManager.cpp
@@ -3468,17 +3468,17 @@ RestyleManager::DoReparentComputedStyleF
   }
 
   if (!providerFrame) {
     // No providerFrame means we inherited from a display:contents thing.  Our
     // layout parent style is the style of our nearest ancestor frame.  But we have
     // to be careful to do that with our placeholder, not with us, if we're out of
     // flow.
     if (aFrame->HasAnyStateBits(NS_FRAME_OUT_OF_FLOW)) {
-      aFrame->GetPlaceholderFrame()->GetLayoutParentStyleForOutOfFlow(&providerFrame);
+      aFrame->FirstContinuation()->GetPlaceholderFrame()->GetLayoutParentStyleForOutOfFlow(&providerFrame);
     } else {
       providerFrame = nsFrame::CorrectStyleParentFrame(aFrame->GetParent(),
                                                        oldStyle->GetPseudo());
     }
   }
   ComputedStyle* layoutParent = providerFrame->Style();
 
   RefPtr<ComputedStyle> newStyle =