diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 61f130d15e0..4231b8b33ab 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -8533,7 +8533,7 @@ nsCSSFrameConstructor::RemoveDummyFrameFromSelect(nsIPresContext* aPresContext, PRUint32 numOptions = 0; nsresult result = aSelectElement->GetLength(&numOptions); if (NS_SUCCEEDED(result)) { - if (1 == numOptions) { + if (0 == numOptions) { nsIFrame* parentFrame; nsIFrame* childFrame; // Get the childFrame for the added child (option) diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 61f130d15e0..4231b8b33ab 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -8533,7 +8533,7 @@ nsCSSFrameConstructor::RemoveDummyFrameFromSelect(nsIPresContext* aPresContext, PRUint32 numOptions = 0; nsresult result = aSelectElement->GetLength(&numOptions); if (NS_SUCCEEDED(result)) { - if (1 == numOptions) { + if (0 == numOptions) { nsIFrame* parentFrame; nsIFrame* childFrame; // Get the childFrame for the added child (option)