mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibWeb: Rename Layout::BlockBox => BlockContainer
There's a subtle difference here. A "block box" in the spec is a block-level box, while a "block container" is a box whose children are either all inline-level boxes in an IFC, or all block-level boxes participating in a BFC. Notably, an "inline-block" box is a "block container" but not a "block box" since it is itself inline-level.
This commit is contained in:
parent
5408913b22
commit
c4826eae4f
38 changed files with 95 additions and 94 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <LibWeb/DOM/Event.h>
|
||||
#include <LibWeb/DOM/ShadowRoot.h>
|
||||
#include <LibWeb/DOMParsing/InnerHTML.h>
|
||||
#include <LibWeb/Layout/BlockBox.h>
|
||||
#include <LibWeb/Layout/BlockContainer.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -32,7 +32,7 @@ EventTarget* ShadowRoot::get_parent(const Event& event)
|
|||
|
||||
RefPtr<Layout::Node> ShadowRoot::create_layout_node()
|
||||
{
|
||||
return adopt_ref(*new Layout::BlockBox(document(), this, CSS::ComputedValues {}));
|
||||
return adopt_ref(*new Layout::BlockContainer(document(), this, CSS::ComputedValues {}));
|
||||
}
|
||||
|
||||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue