1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00
serenity/Libraries/LibHTML/Layout
Andreas Kling 749e3f0f30 LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less
Since LayoutText always inherits style, it shouldn't store any style of
its own. This patch adds a LayoutNodeWithStyle class to sit between
LayoutNode and everyone who wants to inherit from LayoutNode except
LayoutText :^)

Since LayoutText can never have children, we also know that the parent
of any LayoutNode is always going to be a LayoutNodeWithStyle.
So this patch makes LayoutNode::parent() return LayoutNodeWithStyle*.
2019-10-07 10:56:44 +02:00
..
BoxModelMetrics.cpp LibHTML: Rename ComputedStyle to BoxModelMetrics 2019-10-04 15:50:50 +02:00
BoxModelMetrics.h LibHTML: Rename ComputedStyle to BoxModelMetrics 2019-10-04 15:50:50 +02:00
LayoutBlock.cpp LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutBlock.h LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutDocument.cpp LibHTML: Rename "style_properties" to "style" everywhere 2019-10-07 10:56:44 +02:00
LayoutDocument.h LibHTML: LayoutText should always use parent's style properties 2019-10-04 12:12:39 +02:00
LayoutImage.cpp LibHTML: Use current style's text colour for alt text on images 2019-10-06 14:33:00 +02:00
LayoutImage.h LibHTML: Implement basic layout for inline <img alt> 2019-10-05 23:29:01 +02:00
LayoutInline.cpp LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutInline.h LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutNode.cpp LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutNode.h LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutReplaced.cpp LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutReplaced.h LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutText.cpp LibHTML: Add LayoutNodeWithStyle class, make LayoutText style-less 2019-10-07 10:56:44 +02:00
LayoutText.h LibHTML: Move font loading from LayoutText to StyleProperties 2019-10-06 11:26:34 +02:00
LineBox.cpp LibHTML: Rewrite inline and text layout 2019-10-03 15:20:13 +02:00
LineBox.h LibHTML: Rewrite inline and text layout 2019-10-03 15:20:13 +02:00
LineBoxFragment.cpp LibHTML: Rewrite inline and text layout 2019-10-03 15:20:13 +02:00
LineBoxFragment.h LibHTML: Rewrite inline and text layout 2019-10-03 15:20:13 +02:00