diff options
author | athenian200 <athenian200@outlook.com> | 2020-09-03 18:55:28 -0500 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-08 11:02:57 +0000 |
commit | abaea77ccbc3658186b2027d2721451e8acb34a3 (patch) | |
tree | 912de33bf1a047262c074df22309bdb32ba005dc /layout/style/nsRuleNode.cpp | |
parent | 4698b4b3cadd2547cf87a03daebaa23e3bd92cd5 (diff) | |
download | UXP-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/style/nsRuleNode.cpp')
-rw-r--r-- | layout/style/nsRuleNode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index 1a451a2ef..036d97f86 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -250,6 +250,7 @@ nsRuleNode::EnsureBlockDisplay(StyleDisplay& display, case StyleDisplay::Flex: case StyleDisplay::WebkitBox: case StyleDisplay::Grid: + case StyleDisplay::FlowRoot: // do not muck with these at all - already blocks // This is equivalent to nsStyleDisplay::IsBlockOutside. (XXX Maybe we // should just call that?) @@ -293,6 +294,7 @@ nsRuleNode::EnsureInlineDisplay(StyleDisplay& display) // see if the display value is already inline switch (display) { case StyleDisplay::Block: + case StyleDisplay::FlowRoot: display = StyleDisplay::InlineBlock; break; case StyleDisplay::Table: |