diff --git a/layout/base/RestyleManager.cpp b/layout/base/RestyleManager.cpp index db6cd8a16756..0d7810ca9b62 100644 --- a/layout/base/RestyleManager.cpp +++ b/layout/base/RestyleManager.cpp @@ -479,13 +479,13 @@ RestyleManager::RecomputePosition(nsIFrame* aFrame) return false; } -nsresult +void RestyleManager::StyleChangeReflow(nsIFrame* aFrame, nsChangeHint aHint) { // If the frame hasn't even received an initial reflow, then don't // send it a style-change reflow! if (aFrame->GetStateBits() & NS_FRAME_FIRST_REFLOW) - return NS_OK; + return; nsIPresShell::IntrinsicDirty dirtyType; if (aHint & nsChangeHint_ClearDescendantIntrinsics) { @@ -510,7 +510,7 @@ RestyleManager::StyleChangeReflow(nsIFrame* aFrame, nsChangeHint aHint) aFrame = nsLayoutUtils::GetNextContinuationOrIBSplitSibling(aFrame); } while (aFrame); - return NS_OK; + return; } NS_DECLARE_FRAME_PROPERTY(ChangeListProperty, nullptr) diff --git a/layout/base/RestyleManager.h b/layout/base/RestyleManager.h index 0809d4825efb..c2f20eff8410 100644 --- a/layout/base/RestyleManager.h +++ b/layout/base/RestyleManager.h @@ -242,7 +242,7 @@ private: RestyleTracker& aRestyleTracker, bool aRestyleDescendants); - nsresult StyleChangeReflow(nsIFrame* aFrame, nsChangeHint aHint); + void StyleChangeReflow(nsIFrame* aFrame, nsChangeHint aHint); // Returns true if this function managed to successfully move a frame, and // false if it could not process the position change, and a reflow should