Bug 756229 - Fix some layout warnings. r=roc

This commit is contained in:
David Zbarsky 2012-05-18 11:42:39 -04:00
parent 21841cc405
commit a31ed06074
2 changed files with 2 additions and 22 deletions

View File

@ -8,8 +8,8 @@
namespace mozilla {
class StackBlock;
class StackMark;
struct StackBlock;
struct StackMark;
class AutoStackArena;
/**

View File

@ -346,26 +346,6 @@ GetMaxOptionHeight(nsIFrame* aContainer)
return result;
}
static PRUint32
GetNumberOfOptionsRecursive(nsIContent* aContent)
{
if (!aContent) {
return 0;
}
PRUint32 optionCount = 0;
for (nsIContent* cur = aContent->GetFirstChild();
cur;
cur = cur->GetNextSibling()) {
if (cur->IsHTML(nsGkAtoms::option)) {
++optionCount;
} else if (cur->IsHTML(nsGkAtoms::optgroup)) {
optionCount += GetNumberOfOptionsRecursive(cur);
}
}
return optionCount;
}
//-----------------------------------------------------------------
// Main Reflow for ListBox/Dropdown
//-----------------------------------------------------------------