[Gap Decorations]: Setup paint for simple gap cases This CL uses the gap geometry from crrev.com/c/6092603 to paint gap decorations within grid. The change begins by introducing a `ShouldPaintGapDecorations` method in the `BoxDecorationData` class. This method affects the `ShouldPaint` method, ensuring that gap decorations are painted when necessary. Next, two methods, `PaintColumnGaps` and `PaintRowGaps`, are implemented in the `BoxFragmentPainter` class. These methods use the stored offsets to construct rects, which are passed to appropriate paint ops. Future changes will preliminarily handle row fragmentation and update the painting logic to use gap intersection pairs, as outlined in the spec: https://drafts.csswg.org/css-gaps-1/#break. Bug: 357648037 Change-Id: I87911c3da7a61562ce5126e396684902de5a1b73 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6101656 Reviewed-by: Kurt Catti-Schmidt <kschmi@microsoft.com> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1413342}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.