mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 756229 - Fix some layout warnings. r=roc
This commit is contained in:
parent
21841cc405
commit
a31ed06074
@ -8,8 +8,8 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
class StackBlock;
|
||||
class StackMark;
|
||||
struct StackBlock;
|
||||
struct StackMark;
|
||||
class AutoStackArena;
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
//-----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user