瀏覽代碼

LibWeb: Make InlineLevelIterator::m_container a Layout::BlockContainer&

This is always a block container (the IFC's containing block.)
Andreas Kling 3 年之前
父節點
當前提交
36e2799131
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Userland/Libraries/LibWeb/Layout/InlineLevelIterator.h

+ 3 - 3
Userland/Libraries/LibWeb/Layout/InlineLevelIterator.h

@@ -7,7 +7,7 @@
 #pragma once
 
 #include <AK/Noncopyable.h>
-#include <LibWeb/Layout/Box.h>
+#include <LibWeb/Layout/BlockContainer.h>
 #include <LibWeb/Layout/TextNode.h>
 
 namespace Web::Layout {
@@ -35,7 +35,7 @@ public:
         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_current_node(container.first_child())
         , m_layout_mode(layout_mode)
@@ -49,7 +49,7 @@ private:
 
     void enter_text_node(Layout::TextNode&);
 
-    Layout::Box& m_container;
+    Layout::BlockContainer& m_container;
     Layout::Node* m_current_node { nullptr };
     LayoutMode const m_layout_mode;