diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.cpp b/mozilla/layout/generic/nsHTMLContainerFrame.cpp
index 72045030b0e..16933fd3d2d 100644
--- a/mozilla/layout/generic/nsHTMLContainerFrame.cpp
+++ b/mozilla/layout/generic/nsHTMLContainerFrame.cpp
@@ -309,7 +309,6 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
if (aForce) {
// Create a view
nsIFrame* parent;
- nsIView* view;
aFrame->GetParentWithView(&parent);
NS_ASSERTION(parent, "GetParentWithView failed");
diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp
index 72045030b0e..16933fd3d2d 100644
--- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp
+++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp
@@ -309,7 +309,6 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
if (aForce) {
// Create a view
nsIFrame* parent;
- nsIView* view;
aFrame->GetParentWithView(&parent);
NS_ASSERTION(parent, "GetParentWithView failed");