Commit Graph
6 Commits
Author SHA1 Message Date
waozi 1be70904a3 Remove the semantic DOM backend
No project used the dom profile, and it added a second browser host to
maintain beside Canvas. This removes dom_host, dom_tree, dom_paint, dom_run
and dom_app_run, the dom profile in the project tool, docs/dom.md, and the
DOM tests and their three make targets.

The shared browser code loses its DOM branches: page_events no longer tells
a DOM host about presses, blur and document layout, page_core and
page_texture drop the native DOM flag and the img decode kept for it, and
CanvasAppMainLoop takes no argument. The web template builds a Canvas2D
page. The cursor and rotated text tests cover the Canvas profile only.
2026-11-14 06:04:15 -03:00
waozi 681fd26ddf Checkpoint desktop painter and context menu work
Committed at the owner's request while the work continues.

- Detect unchanged GTK painter surfaces by exact byte comparison, clear
  and copy them in bulk, and reuse resolved GTK style metrics and CSS
  layers within a style generation.
- Present desktop frames before publishing accessibility changes.
- Context menu widget, keyboard and canvas input updates with tests.
2026-11-12 20:12:14 -03:00
waozi e8c6aa25c1 Integrate components and the public UI surface 2026-11-10 15:37:48 +00:00
waozi 8f2291577c Show an application pointing cursor only over clickable targets
CursorSetPointing sets the cursor shown where a click does something:
clickable widgets and painted targets an app hit-tests itself and marks
with CursorHover while it builds the frame. The mark commits with the
tree, so retained or cancelled frames keep it and the cursor changes only
when the hovered target does. PressProps.cursor lets a press the app
refines with its own hit test name the arrow off its painted shape, on
desktop, Canvas and DOM, without changing presses, touch or keys.
2026-11-03 22:11:47 -03:00
waozi 4f1e8d4610 Show custom cursors in Canvas and DOM pages
Cursor CSS was built from WebText views of Wasm memory, which have no
JavaScript handle, so web pages kept the default arrow. PageTextHandle
makes a real string handle for the cursor override, the image-set text
and the hidden cursor.

The cursor test now also builds the probe for Canvas and DOM and checks
every request in a private headless Chromium: the 2x image set with its
hotspot, the application cursor, hidden, refused sizes, and no style
rewrite while a request repeats.
2026-11-03 18:02:58 -03:00
waozi cbc605bd13 Keep custom cursors stable with an application-wide default
Cursor requests now persist until the next deliberate change instead of
lasting one frame, and CursorSetDefault gives every session an
application cursor that replaces the default, clickable and disabled
shapes. Desktop caches decoded cursors, sets the system cursor only when
the resolved cursor changes, keeps it across focus and leave, and gives
X11 premultiplied pixels so soft edges show no light fringe. Canvas and
DOM build one density-aware CSS cursor and apply it only on change.
2026-11-03 17:30:55 -03:00