Add ResourceCatalog and ResourceScope to provide explicit strong ownership
and deterministic semantic lookup independently from the live texture
registry.
Let Engine own the global catalog and default Graphics scope, and give
each UISceneNode an isolated scope that can be explicitly shared with
other scenes.
Remove TextureFactory's strong texture retention and name/hash lookup.
The factory now observes textures weakly for identity, diagnostics, and
deferred destruction without controlling their semantic lifetime.
Migrate drawable resolution, texture atlas loading, UI image caches,
tile maps, ecode resources, and related tests to scoped lookup and
publication.
Allow final TexturePtr release from worker threads while keeping actual
texture destruction deferred to the graphics thread. Fix mismatched
pixel deallocation uncovered by asynchronous texture loading tests.
Add ownership, scope isolation, scene sharing, worker release, and
decoder allocation regression tests, and update the shared-resource
architecture plan through Stage 3.
Implement LSP snippet parsing and editing sessions with tab stops, linked placeholders, choices, variables, transforms, visual feedback, and multi-cursor insertion.
This adds snippet support for LSP completion items. User-defined snippets will be implemented separately.
Refs SpartanJ/ecode#111
- introduce process-wide ResourceId, resource handles, and shared metrics
- manage textures through factory-owned control blocks and a weak live registry
- defer final texture destruction until display-time batch work is flushed
- diagnose externally retained textures during Engine shutdown
- migrate texture identity APIs and consumers from Uint32 to ResourceId
- decouple texture memory accounting from the TextureFactory singleton
- replace UITextureViewer callbacks with generation-based weak snapshots
- remove obsolete texture context-reload APIs and loader callback registry
- add registry, identity, memory, restart, and deferred-release tests
- mark Stage 1 complete in the shared-resource architecture plan
- add explicit open, closing, and closed states to the UISceneNode async delivery queue
- reject delivery execution during shutdown and purge retained captures after scene producers join
- reopen the queue cleanly when recreating Engine state in tests
- add regressions for stale deliveries, retained captures, concurrent producers, and Engine restart
- remove the obsolete and unused FrameBuffer context-loss reload API
- simplify redundant namespace qualification in UI tests and ecode declarations
- consolidate completed resource plans into the active ownership architecture
- defer TextureLoader callback removal directly to Stage 1 live-texture observation
- document the requirement to validate legacy lifecycles and prefer removing dead mechanisms
- retain asynchronous HTTP operations until execution or queue disposal
- make HTTP shutdown cancel and join queued and running shared-pool requests
- avoid deadlocks when callbacks clear the HTTP pool
- share atomic cancellation state across request copies
- detect socket creation failures before configuring TCP or UDP sockets
- release partially initialized mbedTLS state after failed handshakes
- replace retained FreeType faces with bounded LRU probe-result caching
- release non-trivial StaticLRU keys when clearing the cache
- resolve the Texture Viewer close icon through the configured icon theme
- add HTTP, TLS, UIWebView fan-out, font descriptor, and LRU regressions
- update resource-refactor prerequisite and ownership planning documents
- Pool-owned HTTP clients stop first.
- The active GL context is made current.
- Scenes are destroyed before batches and resource managers.
- Pending batches explicitly discard vertices and borrowed textures.
- TextLayout cache clears before fonts.
- Framebuffer/vertex managers and textures are released while Renderer/context remain alive.
- ShaderProgramManager is destroyed before Renderer.
- Windows and contexts are destroyed last.
The lifecycle test uncovered and fixed another bug: StaticLRU::clear() retained non-trivial values such as cached shared_ptr<TextLayout> objects. It now releases active values in LRUCache.
Inline frequently used scene and UI state accessors to reduce function
call overhead during layout, rendering, and rich-text traversal.
Add string-view numeric conversion support and parse CSS length values
without temporary number or unit strings. Preserve existing string
overloads for compatibility and keep CSS function parsing unchanged.
Add focused parsing coverage and benchmarks. Full-suite profiling showed
substantial reductions in layout invalidation, whitespace traversal, and
CSS length parsing costs.
Resolve standard property definitions and data-attribute classification
when selectors are parsed, avoiding repeated specification lookups and
attribute-name checks during matching.
Fast-path existence-only data selectors without retrieving their values,
while preserving all attribute operator behavior. Add standard-property
coverage and an attribute-focused benchmark showing a 41.7% reduction
in matching time.
Add a fast path that directly evaluates selectors containing one rule,
avoiding combinator traversal and switch overhead for common class, ID,
tag, and pseudo-class selectors.
Move complex selector traversal into a dedicated function and cache rule
counts in selector loops. Add focused matching coverage and document the
Phase 7 benchmark results.
Index class-anchored selectors by one mandatory class hash so widgets
only evaluate rules associated with their own classes instead of
scanning every class-only rule in the global bucket.
Preserve selector correctness by validating the complete rule after
candidate lookup, and retain stylesheet source order across independent
index buckets for equal-specificity cascade resolution.
Update index clearing, copying, marker removal, and style insertion
paths. Add focused candidate coverage and a legacy full-scan benchmark,
showing a 63% lookup-time reduction on a class-heavy stylesheet.
Cache tag, ID, and class hashes in selector rules and widgets to avoid
repeated string comparisons during selector matching.
Store widget class hashes in a single-element SmallVector so the common
zero and one-class cases remain allocation-free. Reorder UINode and
UIWidget members to recover padding, keeping UIWidget at its original
1144-byte size.
Add selector matching benchmarks and regression coverage for class
mutation, compound selectors, and hash cache synchronization. Document
the measured Phase 5 performance and memory results.
Apply @font-face weights to loaded variable fonts, preserve author
font-family names for internal font-face aliases, and re-resolve text fonts
when style or weight changes after initial font selection.
Also updates the font-weight native variant plan to reflect the current
architecture and remaining work around static native weight variants.
Resolve CSS variable values at the points where properties are applied,
inherited, propagated, and used to seed transitions. This prevents raw
var() values from leaking into widget state or transition start/end
values when style attributes, inherited properties, or state-dependent
rules are involved.
Also refresh style definitions when widgets load so selector-dependent
rules are evaluated with the final widget context, and add regression
coverage for inline style vars, inherited vars, parent-state child rules,
tab close opacity, and foreground tint transitions.
Add CSS box-sizing support for HTML widgets and route CSS-specified
width/height conversion through virtual sizing hooks. Resolve percentage
CSS sizes against the containing block content box, and apply content-box
or border-box conversion consistently across block, flex, grid, table,
and rich text layout paths.
Keep table wrapper width behavior compatible with CSS table layout by
overriding the table width conversion separately, so padded percentage
tables do not overflow their assigned wrapper width.
Add focused regressions for block padding, flex-basis sizing, grid
containers, table containers, and the border rendering cases that depend
on explicit border-box sizing.
/** Enables or disables focus highlighting in this scene and embedded UI scenes. */
void setHighlightFocusRecursive( bool highlight );
/** Enables or disables box debug drawing in this scene and embedded UI scenes. */
void setDrawBoxesRecursive( bool draw );
/** Enables or disables debug-data drawing in this scene and embedded UI scenes. */
void setDrawDebugDataRecursive( bool debug );
Added control over the UISceneNode children and added setHighlightOverRecursive. This allows us to inspect nested UISceneNodes.
Fix hit-box bug when changing display.
Move UIWebView documents into isolated UISceneNode instances, keep document viewport and extent metrics synchronized, and fix shrink/grow behavior after navigation, async CSS, and viewport changes. Scope author styles and font-face resources per document scene, ignore stale async callbacks after navigation or destruction, and add deterministic coverage for CSS, fonts, images, cookies, hit testing, and document extent updates.
Fixes in UIWebView -> doc -> html -> body resizing issues. Added a few tests to catch regressions.
by overwriting an occupied default shortcut, which treated user bindings like mod+d=duplicate-line-or-selection as stale
because that command is not in the default keybinding table. Now it only adds a default when the default shortcut is actually
free.
Added a regression test in src/tests/unit_tests/uicodeeditor_tests.cpp:108 covering the reported case: mod+d reassigned, then
an extra mod+e=show-markdown-preview binding exists. This was reported in SpartanJ/ecode#914.
• Implemented the splitter-level focus state cache, it will remember closed documents cursor state when reopened and it will restore cursor state per-code editor and not per-document (SpartanJ/ecode#893).
Allow to disable GLEW dependency, it will now be disabled by default so we can test. The idea is to remove the dependency completely once this is confirmed to work.