1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00
serenity/Libraries/LibHTML
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
..
CSS LibHTML: Implement basic tiled background image support 2019-10-19 11:49:46 +02:00
DOM LibHTML: Add Element::name() convenience attribute getter 2019-10-20 10:07:26 +02:00
Layout LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
Parser LibHTML: Do DOM tree fixup before firing insertion callbacks 2019-10-19 20:54:47 +02:00
Scripts Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
Dump.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
Dump.h LibHTML: Hide debugging output unless HTML_DEBUG is defined 2019-09-28 18:29:42 +02:00
FontCache.cpp LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
FontCache.h LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
Frame.cpp LibHTML: Implement the <blink> element 2019-10-09 21:25:29 +02:00
Frame.h LibHTML: Make TreeNode inherit from Weakable by default 2019-10-19 09:42:20 +02:00
HtmlView.cpp LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
HtmlView.h LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
install.sh LibHTML: Add install.sh 2019-09-28 18:29:42 +02:00
Makefile Userland+LibHTML: Add the html command 2019-09-28 18:29:42 +02:00
Makefile.host AK: Remove empty files JsonArray.cpp and JsonObject.cpp 2019-10-01 11:24:54 +02:00
Makefile.shared LibHTML: Add a simple font cache 2019-10-18 23:06:03 +02:00
RenderingContext.h LibHTML: Add the currently visible viewport rect to RenderingContext 2019-10-15 21:52:01 +02:00
ResourceLoader.cpp LibHTML+Browser: Show the number of pending resource loads 2019-10-10 22:07:08 +02:00
ResourceLoader.h LibHTML+Browser: Show the number of pending resource loads 2019-10-10 22:07:08 +02:00
TreeNode.h LibHTML: Add TreeNode<T>::for_each_in_subtree(callback) 2019-10-19 18:14:54 +02:00