code wiki / _hdl_build / nx_layout_debug.nx
nx_layout_debug.nx
buildroot/runtime/_hdl_build/nx_layout_debug.nx
about
nx_layout_debug.nx -- GROUND-TRUTH check of the box<->element MAPPING on the real last_fetch.html.
Runs the exact from_dom + rh_extract + mapping that _rh_to_fb uses, then reports whether <main> and
the .vector-menu-content-list <ul>s map to the RIGHT boxes (tag+class). If they don't, the two-walk
mapping is drifting -- which is what breaks <main>-crop and display:none on the live render.
dependencies 13 imports · 0 importers
diagram shows first 10 each side; +3 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_parse.nxnx_css_apply.nxnx_css_color_decode.nxnx_css_selector_match.nxnx_html_tokenizer.nxnx_dom_query.nxnx_layout_box.nxnx_layout_default_display.nxnx_layout_from_dom.nxnx_layout_block.nxnx_render_html.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 18 | const K_MAGIC_16384: i64 = 16384 |
functions
| 20 | func ps(s: *u8) -> i64 { var k: i64=0; while s[k]!=(0 as u8){k=k+1} sys_write(1,s,k); return 0 } |
| 21 | func pn(v0: i64) -> i64 { var v: i64=v0; if v<0 { let m: *u8=sys_mmap(8); m[0]=45 as u8; sys_write(1,m,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 } |
| 22 | func emit(src: *u8, off: i64, len: i64) -> i64 { sys_write(1, ((src as i64)+off) as *u8, len); return 0 } |
| 23 | func dx_contains(src: *u8, off: i64, len: i64, pat: *u8, patlen: i64) -> i64 called by 1: main |
| 34 | func tag_is(src: *u8, e: *CssElement, m: *u8, ml: i64) -> i64 called by 1: main |
| 41 | func main() -> i64 |