summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/PaintContext.h
AgeCommit message (Collapse)Author
2022-12-14LibWeb: Split PaintContext::viewport_rect() into device/css variantsSam Atkins
For now, everyone uses `device_viewport_rect()`, until I convert them.
2022-12-14LibWeb: Make PaintContext aware of CSS and DevicePixelsSam Atkins
Store the ratio between device and CSS pixels on the PaintContext, so that it can convert between the two. Co-authored-by: MacDue <macdue@dueutil.tech>
2022-12-10LibWeb+WebContent+headless-browser: Remove PaintContext::scroll_offset()Sam Atkins
Nobody uses this. They get the scroll_offset from the BlockContainer instead.
2022-12-07Meta+Userland: Pass Gfx::IntPoint by valueMacDue
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
2022-04-08LibWeb: Use the correct painter for painting stacking contextsSimon Wanner
When cloning the PaintContext we should be using the painter backed by the bitmap created for this stacking context layer. Fixes: 54c3053bc3b0 ("LibWeb: Preserve paint state when painting...")
2022-03-26LibWeb: Preserve paint state when painting stacking contexts indirectlyAndreas Kling
For layers that require indirect painting (due to opacity, transform, etc.) we create a nested PaintContext. Until now, that PaintContext was created fresh without transferring all the state from the parent PaintContext.
2022-02-28LibWeb: Move some of PaintContext out of lineAndreas Kling
2021-08-05LibWeb: Clear SVG context after SVGSVGBox children are paintedK-Adam
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-01-22Libraries: Add missing headersBen Wiederhake
A C++ source file containing just #include <LibFoo/Bar.h> should always compile cleanly. This patch adds missing header inclusions that could have caused weird error messages if they were used in a different context. Also, this confused QtCreator.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling