Skip to content

Commit

Permalink
LibWeb: Remove unused variable in required_box_type_transformation()
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 28, 2022
1 parent f8aa0c1 commit c8f6a20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,6 @@ enum class BoxTypeTransformation {

static BoxTypeTransformation required_box_type_transformation(StyleProperties const& style, DOM::Element const& element, Optional<CSS::Selector::PseudoElement> const&)
{
auto display = style.display();

// Absolute positioning or floating an element blockifies the box’s display type. [CSS2]
if (style.position() == CSS::Position::Absolute || style.position() == CSS::Position::Fixed || style.float_() != CSS::Float::None)
return BoxTypeTransformation::Blockify;
Expand Down

0 comments on commit c8f6a20

Please sign in to comment.