mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Make InlineLevelIterator::m_container a Layout::BlockContainer&
This is always a block container (the IFC's containing block.)
This commit is contained in:
parent
9f39ad8929
commit
36e2799131
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/Noncopyable.h>
|
#include <AK/Noncopyable.h>
|
||||||
#include <LibWeb/Layout/Box.h>
|
#include <LibWeb/Layout/BlockContainer.h>
|
||||||
#include <LibWeb/Layout/TextNode.h>
|
#include <LibWeb/Layout/TextNode.h>
|
||||||
|
|
||||||
namespace Web::Layout {
|
namespace Web::Layout {
|
||||||
|
@ -35,7 +35,7 @@ public:
|
||||||
bool is_collapsible_whitespace { false };
|
bool is_collapsible_whitespace { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit InlineLevelIterator(Layout::Box& container, LayoutMode layout_mode)
|
explicit InlineLevelIterator(Layout::BlockContainer& container, LayoutMode layout_mode)
|
||||||
: m_container(container)
|
: m_container(container)
|
||||||
, m_current_node(container.first_child())
|
, m_current_node(container.first_child())
|
||||||
, m_layout_mode(layout_mode)
|
, m_layout_mode(layout_mode)
|
||||||
|
@ -49,7 +49,7 @@ private:
|
||||||
|
|
||||||
void enter_text_node(Layout::TextNode&);
|
void enter_text_node(Layout::TextNode&);
|
||||||
|
|
||||||
Layout::Box& m_container;
|
Layout::BlockContainer& m_container;
|
||||||
Layout::Node* m_current_node { nullptr };
|
Layout::Node* m_current_node { nullptr };
|
||||||
LayoutMode const m_layout_mode;
|
LayoutMode const m_layout_mode;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue