mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 06:45:07 +00:00
LibWeb: Move CSS classes into the Web::CSS namespace
This commit is contained in:
parent
3e389f4cdc
commit
1f008c95b6
100 changed files with 358 additions and 366 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
LayoutReplaced::LayoutReplaced(DOM::Document& document, const DOM::Element& element, NonnullRefPtr<StyleProperties> style)
|
||||
LayoutReplaced::LayoutReplaced(DOM::Document& document, const DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style)
|
||||
: LayoutBox(document, &element, move(style))
|
||||
{
|
||||
// FIXME: Allow non-inline replaced elements.
|
||||
|
@ -45,7 +45,7 @@ float LayoutReplaced::calculate_width() const
|
|||
{
|
||||
// 10.3.2 [Inline,] replaced elements
|
||||
|
||||
auto zero_value = Length::make_px(0);
|
||||
auto zero_value = CSS::Length::make_px(0);
|
||||
auto& containing_block = *this->containing_block();
|
||||
|
||||
auto margin_left = style().margin().left.resolved_or_zero(*this, containing_block.width());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue