summaryrefslogtreecommitdiffstats
path: root/layout/xul
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-09-03 18:55:28 -0500
committerMoonchild <moonchild@palemoon.org>2020-09-08 11:02:57 +0000
commitabaea77ccbc3658186b2027d2721451e8acb34a3 (patch)
tree912de33bf1a047262c074df22309bdb32ba005dc /layout/xul
parent4698b4b3cadd2547cf87a03daebaa23e3bd92cd5 (diff)
downloadUXP-abaea77ccbc3658186b2027d2721451e8acb34a3.tar
UXP-abaea77ccbc3658186b2027d2721451e8acb34a3.tar.gz
UXP-abaea77ccbc3658186b2027d2721451e8acb34a3.tar.lz
UXP-abaea77ccbc3658186b2027d2721451e8acb34a3.tar.xz
UXP-abaea77ccbc3658186b2027d2721451e8acb34a3.zip
Issue #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')
-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 22b875461..41e7e4d76 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;
}