1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:07:35 +00:00
serenity/Userland/Libraries/LibWeb/Layout
Andreas Kling b1fd801436 LibWeb: Pass correct state to TextNode::compute_text_for_rendering()
This is poorly factored. TextNode needs to know whether the most
recently inserted fragment on the current line was empty or ended in
whitespace. This is used when deciding what to do with leading
whitespace in text nodes.

Let's keep this working for now, but we should eventually sort this out
and make text chunk iteration not depend on this information.
2022-01-23 01:22:41 +01:00
..
BlockContainer.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
BlockContainer.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
BlockFormattingContext.cpp LibWeb: Remove reference_for_percent parameter from Length::resolved() 2022-01-20 00:04:10 +01:00
BlockFormattingContext.h LibWeb: Use W3C urls for CSS-DISPLAY spec links 2021-10-15 21:05:35 +01:00
Box.cpp LibWeb: Remove reference_for_percent parameter from Length::resolved() 2022-01-20 00:04:10 +01:00
Box.h Everywhere: Fix -Winconsistent-missing-override warnings from Clang 2021-12-11 13:14:15 -08:00
BoxModelMetrics.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BoxModelMetrics.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BreakNode.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
BreakNode.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
ButtonBox.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
ButtonBox.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CanvasBox.cpp LibWeb: Make intrinsic width/height/ratio a Box concept and simplify it 2021-10-14 18:39:27 +02:00
CanvasBox.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CheckBox.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
CheckBox.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FlexFormattingContext.cpp LibWeb: Remove reference_for_percent parameter from Length::resolved() 2022-01-20 00:04:10 +01:00
FlexFormattingContext.h LibWeb: Add missing headers 2021-10-20 09:20:18 +01:00
FormattingContext.cpp LibWeb: Remove reference_for_percent parameter from Length::resolved() 2022-01-20 00:04:10 +01:00
FormattingContext.h LibWeb: Remove duplicated auto height computation 2021-10-28 13:33:33 +02:00
FrameBox.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
FrameBox.h AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
ImageBox.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
ImageBox.h LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
InitialContainingBlock.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
InitialContainingBlock.h LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
InlineFormattingContext.cpp LibWeb: Ignore some collapsible whitespace when building lines 2022-01-23 01:22:41 +01:00
InlineFormattingContext.h LibWeb: Use LineBuilder in IFC to layout line boxes incrementally 2022-01-23 01:22:41 +01:00
InlineLevelIterator.cpp LibWeb: Pass correct state to TextNode::compute_text_for_rendering() 2022-01-23 01:22:41 +01:00
InlineLevelIterator.h LibWeb: Pass correct state to TextNode::compute_text_for_rendering() 2022-01-23 01:22:41 +01:00
InlineNode.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
InlineNode.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
Label.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
Label.h LibWeb: Add fast_is<T>() for Layout::Label 2021-10-27 17:58:19 +02:00
LabelableNode.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LayoutPosition.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LayoutPosition.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LineBox.cpp LibWeb: Fix inline blocks swallowing trailing whitespace 2021-10-26 17:27:04 +02:00
LineBox.h LibWeb: Add Layout::LineBuilder class for incremental line box layout 2022-01-23 01:22:41 +01:00
LineBoxFragment.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
LineBoxFragment.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LineBuilder.cpp LibWeb: Align inline-level boxes to the baseline of the line box 2022-01-23 01:22:41 +01:00
LineBuilder.h LibWeb: Make LineBuilder respect LayoutMode::OnlyRequiredLineBreaks 2022-01-23 01:22:41 +01:00
ListItemBox.cpp LibWeb: Render any specified list-style-image for list items 2021-10-29 22:06:49 +02:00
ListItemBox.h LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
ListItemMarkerBox.cpp LibWeb: Render any specified list-style-image for list items 2021-10-29 22:06:49 +02:00
ListItemMarkerBox.h LibWeb: Render any specified list-style-image for list items 2021-10-29 22:06:49 +02:00
Node.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
Node.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
RadioButton.cpp LibWeb: Move BrowsingContext into HTML/ 2021-11-18 21:11:30 +01:00
RadioButton.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ReplacedBox.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
ReplacedBox.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
SVGBox.cpp LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
SVGBox.h LibWeb: Add fast_is<T>() for SVGBox and SVGPathBox 2021-10-19 19:13:58 +02:00
SVGFormattingContext.cpp LibWeb: Expose FormattingContext type 2021-10-17 22:18:59 +02:00
SVGFormattingContext.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGGraphicsBox.cpp AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
SVGGraphicsBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGPathBox.cpp LibWeb: Remove bogus offset when painting an SVG <path> box 2021-09-18 01:39:59 +02:00
SVGPathBox.h LibWeb: Add fast_is<T>() for SVGBox and SVGPathBox 2021-10-19 19:13:58 +02:00
SVGSVGBox.cpp LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGSVGBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
TableBox.cpp LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
TableBox.h LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
TableCellBox.cpp LibWeb: Remove Layout::Box::width_of_logical_containing_block() 2021-10-27 18:00:51 +02:00
TableCellBox.h LibWeb: Remove Layout::Box::width_of_logical_containing_block() 2021-10-27 18:00:51 +02:00
TableFormattingContext.cpp LibWeb: Convert width/height and min-/max- versions to LengthPercentage 2022-01-20 00:04:10 +01:00
TableFormattingContext.h LibWeb: Move line boxes from Layout::Box to BlockContainer 2021-10-06 21:53:25 +02:00
TableRowBox.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TableRowBox.h LibWeb: Start work towards modern CSS "display" values 2021-10-06 19:12:52 +02:00
TableRowGroupBox.cpp LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
TableRowGroupBox.h LibWeb: Rename Layout::BlockBox => BlockContainer 2021-10-06 20:10:36 +02:00
TextNode.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
TextNode.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
TreeBuilder.cpp LibWeb: Don't create anonymous table boxes around whitespace 2021-10-27 18:22:00 +02:00
TreeBuilder.h LibWeb: Add missing headers 2021-10-20 09:20:18 +01:00