Since the way (and when) options were added then number of options is now different
so it must check against zero instead of 1 b=44266,r=kmcclusk git-svn-id: svn://10.0.0.236/trunk@75419 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ed7cd7c8bc
commit
908046df7e
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user