summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/BlockBox.cpp
AgeCommit message (Collapse)Author
2021-09-08LibWeb: Rename InitialContainingBlockBox => InitialContainingBlockAndreas Kling
The "Box" suffix added nothing here.
2021-08-01LibWeb: Remove unused header includesBrian Gianforcaro
2021-06-24AK: Rename downcast<T> => verify_cast<T>Andreas Kling
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
2021-05-02LibGfx: Unify Rect, Point, and SizeMatthew Olsson
This commit unifies methods and method/param names between the above classes, as well as adds [[nodiscard]] and ALWAYS_INLINE where appropriate. It also renamed the various move_by methods to translate_by, as that more closely matches the transformation terminology.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-03-03LibWeb: Stop scrolling above content in BlockBoxdavidot
2021-03-02LibWeb: Return whether handle_mousewheel was handledAngus Gibson
We try scrolling a Node with the handle_mousewheel event, but if it isn't scrollable, the event should be passed back up to the page host. This is the first step in that process.
2021-02-22LibWeb: Only scroll BlockBox on wheel event if overflow==scrollAndreas Kling
We implement this by adding a BlockBox::is_scrollable() helper, and then ignoring wheel events for non-scrollable boxes. Thanks to FireFox317 for pointing this out! :^)
2021-02-22LibWeb: Allow scrolling overflowed content with the mouse wheel :^)Andreas Kling
This is rather crude, but you can now use the mouse wheel to scroll up and down in block-level boxes with clipped overflowing content. There's no limit to how far you can scroll in either direction, since we don't yet track how much overflow there is. But it's a start. :^)
2021-02-22LibWeb: Clip overflowing inline children when overflow != "visible"Andreas Kling
We now apply a paint-time clip to the padding rect of a BlockBox before painting its inline-level children. This covers some of the behavior we want from "overflow: hidden" etc but is far from a complete solution.
2021-02-10LibWeb: Remove low-hanging LibGUI fruit from LibWebAndreas Kling
We'll want to remove the LibGUI dependency from the WebContent process. This is the first basic step of removing unnecessary LibGUI includes and swapping out GUI::Painter for Gfx::Painter.
2021-02-10LibWeb: Remove a whole bunch of unnecessary #includesAndreas Kling
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling