mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
55
Libraries/LibWeb/Layout/InlineFormattingContext.h
Normal file
55
Libraries/LibWeb/Layout/InlineFormattingContext.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2024, Andreas Kling <andreas@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Layout/BlockContainer.h>
|
||||
#include <LibWeb/Layout/FormattingContext.h>
|
||||
|
||||
namespace Web::Layout {
|
||||
|
||||
class InlineFormattingContext final : public FormattingContext {
|
||||
public:
|
||||
InlineFormattingContext(LayoutState&, LayoutMode, BlockContainer const& containing_block, LayoutState::UsedValues& containing_block_used_values, BlockFormattingContext& parent);
|
||||
~InlineFormattingContext();
|
||||
|
||||
BlockFormattingContext& parent();
|
||||
BlockFormattingContext const& parent() const;
|
||||
|
||||
BlockContainer const& containing_block() const { return static_cast<BlockContainer const&>(context_box()); }
|
||||
|
||||
virtual void run(AvailableSpace const&) override;
|
||||
virtual CSSPixels automatic_content_height() const override;
|
||||
virtual CSSPixels automatic_content_width() const override;
|
||||
StaticPositionRect calculate_static_position_rect(Box const&) const;
|
||||
|
||||
void dimension_box_on_line(Box const&, LayoutMode);
|
||||
|
||||
CSSPixels leftmost_inline_offset_at(CSSPixels y) const;
|
||||
AvailableSize available_space_for_line(CSSPixels y) const;
|
||||
bool any_floats_intrude_at_block_offset(CSSPixels block_offset) const;
|
||||
bool can_fit_new_line_at_block_offset(CSSPixels block_offset) const;
|
||||
|
||||
CSSPixels vertical_float_clearance() const;
|
||||
void set_vertical_float_clearance(CSSPixels);
|
||||
|
||||
private:
|
||||
void generate_line_boxes();
|
||||
void apply_justification_to_fragments(CSS::TextJustify, LineBox&, bool is_last_line);
|
||||
|
||||
LayoutState::UsedValues& m_containing_block_used_values;
|
||||
|
||||
Optional<AvailableSpace> m_available_space;
|
||||
|
||||
CSSPixels m_automatic_content_width { 0 };
|
||||
CSSPixels m_automatic_content_height { 0 };
|
||||
|
||||
CSSPixels m_vertical_float_clearance { 0 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue