diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 48879fee1bef..8b34247df47a 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -4964,7 +4964,7 @@ nsCSSFrameConstructor::AddPageBreakItem(nsIContent* aContent, kNameSpaceID_None, nullptr, pseudoStyle.forget(), true); } -nsresult +void nsCSSFrameConstructor::ConstructFrame(nsFrameConstructorState& aState, nsIContent* aContent, nsIFrame* aParentFrame, @@ -4993,8 +4993,6 @@ nsCSSFrameConstructor::ConstructFrame(nsFrameConstructorState& aState, "This is not going to work"); ConstructFramesFromItem(aState, iter, aParentFrame, aFrameItems); } - - return NS_OK; } void diff --git a/layout/base/nsCSSFrameConstructor.h b/layout/base/nsCSSFrameConstructor.h index a57a233496f1..1cb77f65b31e 100644 --- a/layout/base/nsCSSFrameConstructor.h +++ b/layout/base/nsCSSFrameConstructor.h @@ -422,10 +422,10 @@ private: // Construct a frame for aContent and put it in aFrameItems. This should // only be used in cases when it's known that the frame won't need table // pseudo-frame construction and the like. - nsresult ConstructFrame(nsFrameConstructorState& aState, - nsIContent* aContent, - nsIFrame* aParentFrame, - nsFrameItems& aFrameItems); + void ConstructFrame(nsFrameConstructorState& aState, + nsIContent* aContent, + nsIFrame* aParentFrame, + nsFrameItems& aFrameItems); // Add the frame construction items for the given aContent and aParentFrame // to the list. This might add more than one item in some rare cases.