1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 12:15:07 +00:00
serenity/Libraries/LibHTML/Layout
Andreas Kling c41bae3d54 LibHTML+Browser: Support scrolling to anchor with <a href="#foo">
This patch implements basic support for <a href="#foo"> fragment links.

To figure out where we actually want to scroll to, we have to do
something different based on the layout node's box type. So if it's a
regular LayoutBox we can just use the LayoutBox::position().

However, if it's an inline layout node, we use the position of the
first line box fragment in the containing block contributed by this
layout node or one of its descendants.
2019-10-20 10:07:26 +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: Make "children are inline" flag imperative 2019-10-17 23:39:31 +02:00
LayoutBlock.h LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
LayoutBox.cpp LibHTML: Implement basic tiled background image support 2019-10-19 11:49:46 +02:00
LayoutBox.h LibHTML: Implement basic tiled background image support 2019-10-19 11:49:46 +02:00
LayoutBreak.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutBreak.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutDocument.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +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 ImageLoader for <img> elements to defer bitmap decoding 2019-10-15 21:53:08 +02:00
LayoutImage.h LibHTML: Implement basic layout for inline <img alt> 2019-10-05 23:29:01 +02:00
LayoutInline.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutInline.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutListItem.cpp LibHTML: Add some convenient geometry getters on LayoutNode 2019-10-13 18:47:16 +02:00
LayoutListItem.h LibHTML: Add LayoutNode classes for "display: list-item" and its marker 2019-10-11 23:16:53 +02:00
LayoutListItemMarker.cpp LibHTML: Use the correct inherited color for LayoutListItemMarker 2019-10-19 11:54:28 +02:00
LayoutListItemMarker.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutNode.cpp LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
LayoutNode.h LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
LayoutReplaced.cpp LibHTML: Replaced elements should not break lines at start of line 2019-10-19 09:44:40 +02:00
LayoutReplaced.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutTable.cpp LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTable.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableCell.cpp LibHTML: Add stub classes for basic table layout 2019-10-17 23:39:31 +02:00
LayoutTableCell.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableRow.cpp LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableRow.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutText.cpp LibHTML: Don't insert unnecessary line breaks at start of text lines 2019-10-19 21:34:15 +02:00
LayoutText.h LibHTML: Add is<T> and to<T> helpers for LayoutNode class family 2019-10-15 14:24:26 +02:00
LayoutTreeBuilder.cpp LibHTML: Hard-code LayoutTable to never have inline children 2019-10-17 23:39:31 +02:00
LayoutTreeBuilder.h LibHTML: Move layout tree building to a LayoutTreeBuilder class 2019-10-15 14:24:26 +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: Add is<T> and to<T> helpers for LayoutNode class family 2019-10-15 14:24:26 +02:00
LineBoxFragment.h LibHTML: Rewrite inline and text layout 2019-10-03 15:20:13 +02:00