summaryrefslogtreecommitdiff
path: root/layout/forms/nsLegendFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/forms/nsLegendFrame.cpp')
-rw-r--r--layout/forms/nsLegendFrame.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/layout/forms/nsLegendFrame.cpp b/layout/forms/nsLegendFrame.cpp
index 95efc2c878..b985ed8fc3 100644
--- a/layout/forms/nsLegendFrame.cpp
+++ b/layout/forms/nsLegendFrame.cpp
@@ -24,9 +24,7 @@ NS_NewLegendFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
#endif
nsIFrame* f = new (aPresShell) nsLegendFrame(aContext);
- if (f) {
- f->AddStateBits(NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT);
- }
+ f->AddStateBits(NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS);
return f;
}