forked from mirrors/gecko-dev
Bug 1869722 Part 1 - Cleanup after fixing tables as flex items. r=dholbert
Flex containers do not need the `alignCB` tweak for table frames in `ReflowInput::InitConstraints`, so I remove the comment, and improve it so that we don't need to call `alignCB->GetParent()` multiple times. This patch doesn't change behavior. Differential Revision: https://phabricator.services.mozilla.com/D196257
This commit is contained in:
parent
d9b0660e84
commit
a7df850035
4 changed files with 6 additions and 8 deletions
|
|
@ -2365,11 +2365,10 @@ void ReflowInput::InitConstraints(
|
|||
}
|
||||
|
||||
nsIFrame* alignCB = mFrame->GetParent();
|
||||
if (alignCB->IsTableWrapperFrame() && alignCB->GetParent()) {
|
||||
// XXX grid-specific for now; maybe remove this check after we address
|
||||
// bug 799725
|
||||
if (alignCB->GetParent()->IsGridContainerFrame()) {
|
||||
alignCB = alignCB->GetParent();
|
||||
if (alignCB->IsTableWrapperFrame()) {
|
||||
nsIFrame* alignCBParent = alignCB->GetParent();
|
||||
if (alignCBParent && alignCBParent->IsGridContainerFrame()) {
|
||||
alignCB = alignCBParent;
|
||||
}
|
||||
}
|
||||
if (alignCB->IsGridContainerFrame()) {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
border: 3px solid grey;
|
||||
height: 73px;
|
||||
width: 110px;
|
||||
align-items: start; /* no support for stretch yet: bug 799725 */
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
table {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
border: 3px solid grey;
|
||||
height: 73px;
|
||||
width: 110px;
|
||||
align-items: start; /* no support for stretch yet: bug 799725 */
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
table {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,6 @@
|
|||
.stretch {
|
||||
background: pink;
|
||||
align-self: stretch;
|
||||
display: block; /* XXXdholbert Hackaround for bug 799725 */
|
||||
}
|
||||
.auto {
|
||||
background: yellow;
|
||||
|
|
|
|||
Loading…
Reference in a new issue