summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h
index b3247963d6..c47bb716df 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h
@@ -12,6 +12,7 @@
namespace Web::Layout {
+// https://drafts.csswg.org/css-display/#block-formatting-context
class BlockFormattingContext : public FormattingContext {
public:
explicit BlockFormattingContext(Box&, FormattingContext* parent);
@@ -27,6 +28,10 @@ public:
static float compute_theoretical_height(const Box&);
void compute_width(Box&);
+ // https://drafts.csswg.org/css-display/#block-formatting-context-root
+ Box& root() { return context_box(); }
+ Box const& root() const { return context_box(); }
+
protected:
static void compute_height(Box&);
void compute_position(Box&);