summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Painting
AgeCommit message (Collapse)Author
2020-10-10LibWeb: Add a basic SVGContext object, add to PaintContextMatthew Olsson
This will be used to transmit any svg-relevant data between svg nodes. This is prep for moving a lot of the SVG logic into Layout nodes.
2020-08-15LibWeb: Only paint focus outline when browser window has focusAndreas Kling
This is communicated through the PaintContext::has_focus() flag.
2020-08-05LibWeb: Specialize hit testing for text cursor purposesAndreas Kling
The text cursor follows slightly different "intuitive" rules than the regular hit testing. Clicking past the right edge of a text box should still "hit" the text box, and place the cursor at its end, for example. We solve this by adding a HitTestType enum that is passed to hit_test() and determines whether past-the-edge candidates are considered.
2020-07-26LibWeb: Switch to using AK::is and AK::downcastAndreas Kling
2020-07-01LibWeb: Use the StackingContext tree for hit testingAndreas Kling
This makes it possible to click links that are above other content due to stacking context order (e.g via CSS z-index.)
2020-07-01LibWeb: StackingContext was sorting the wrong list of childrenAndreas Kling
Oops, we're supposed to sort the *parent's* children, not our own.
2020-06-24LibWeb: Add LayoutStyle, a place to store style info for layout & paintAndreas Kling
StyleProperties is really only the specified "input" to what eventually becomes the used/computed style we use for layout and painting. Unlike StyleProperties, LayoutStyle will have strongly typed values for everything it contains (i.e no CSS::ValueID or strings, etc.) This first patch moves z-index into LayoutStyle.
2020-06-24LibWeb: Rename LayoutNode::style() => specified_style()Andreas Kling
Let's make way for a slightly-more-cooked style() that will eventually replace the raw specified_style() for layout and paint purposes.
2020-06-18LibWeb: Fix broken #include after moving files aroundAndreas Kling
2020-06-18LibWeb: Move StackingContext from Layout/ to Painting/Andreas Kling
The stacking context tree doesn't affect layout at all, so let's move it into the Painting/ directory. I'm not sure yet if it's worth going for a fullly separate painting tree. So far I'm thinking a stacking context tree with pointers into the layout tree might be enough.
2020-06-18LibWeb: Rename LayoutNode::render() to paint()Andreas Kling
"Paint" matches what we call this in the rest of the system. Let's not confuse things by mixing paint/render/draw all the time. I'm guilty of this in more places.. Also rename RenderingContext => PaintContext.