mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 04:41:54 +00:00
Allow grid groups to contain other grid groups, to fix mail compose window and other <listbox> bustage. b=317480
This commit is contained in:
parent
0aabcad6c8
commit
6a21a28fbe
@ -111,7 +111,8 @@ public:
|
||||
* Return whether this grid part is an appropriate parent for the argument.
|
||||
*/
|
||||
PRBool CanContain(nsIGridPart* aPossibleChild) {
|
||||
return GetType() + 1 == aPossibleChild->GetType();
|
||||
Type thisType = GetType(), childType = aPossibleChild->GetType();
|
||||
return thisType + 1 == childType || (thisType == eRowGroup && childType == eRowGroup);
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user