summaryrefslogtreecommitdiff
path: root/layout/xul/nsXULLabelFrame.cpp
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-09-03 18:55:28 -0500
committerathenian200 <athenian200@outlook.com>2020-09-03 18:55:28 -0500
commite75ee9df13ce73c612f55f7dca426ab870f55c0c (patch)
treebd30f18df9a1d98b88a24c5e9482551ec84ff8ec /layout/xul/nsXULLabelFrame.cpp
parente23247adfaeedf5d924ded4f5f105e79c40e3961 (diff)
downloaduxp-e75ee9df13ce73c612f55f7dca426ab870f55c0c.tar.gz
Issue mcp-graveyard/UXP#1641 - Implement CSS flow-root keyword
This is just a clean port of 1322191 and follow-up 1325970. It really seems to add create a new way to access existing code relating to block formatting and floating elements rather than implementing new functionality, and it is mercifully straightforwards.
Diffstat (limited to 'layout/xul/nsXULLabelFrame.cpp')
-rw-r--r--layout/xul/nsXULLabelFrame.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/layout/xul/nsXULLabelFrame.cpp b/layout/xul/nsXULLabelFrame.cpp
index 22b8754617..41e7e4d765 100644
--- a/layout/xul/nsXULLabelFrame.cpp
+++ b/layout/xul/nsXULLabelFrame.cpp
@@ -16,9 +16,7 @@ nsIFrame*
NS_NewXULLabelFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
{
nsXULLabelFrame* it = new (aPresShell) nsXULLabelFrame(aContext);
-
- it->AddStateBits(NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT);
-
+ it->AddStateBits(NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS);
return it;
}