Commit fa24d9a
committed
fix(layout): stop leaking converter fallback refs into section resolution
buildMultiSectionIdentifier previously merged the converter's legacy
header/footer refs into section 0's resolution entry. This let a
footerless first section inherit a converter-level default that belonged
to a later section, painting a footer where the document declares none.
Section-aware resolution now reads only per-section refs; converter
fallbacks remain on the legacy identifier fields for legacy lookups but
are no longer exposed through resolveEffectiveHeaderFooterRef. Guard
HeaderFooterSessionManager so it only consults legacy refs when section
resolution is unavailable, and skip building resolution sections for an
empty identifier.1 parent fb9bf1d commit fa24d9a
4 files changed
Lines changed: 289 additions & 46 deletions
File tree
- packages
- layout-engine/layout-bridge
- src
- test
- super-editor/src/editors/v1/core/presentation-editor
- tests
Lines changed: 22 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
205 | 202 | | |
206 | 203 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
220 | 207 | | |
221 | 208 | | |
222 | 209 | | |
223 | 210 | | |
224 | 211 | | |
225 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
226 | 217 | | |
227 | 218 | | |
228 | 219 | | |
| |||
400 | 391 | | |
401 | 392 | | |
402 | 393 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
407 | 397 | | |
408 | 398 | | |
409 | 399 | | |
| |||
448 | 438 | | |
449 | 439 | | |
450 | 440 | | |
451 | | - | |
452 | | - | |
453 | | - | |
| 441 | + | |
454 | 442 | | |
455 | 443 | | |
456 | 444 | | |
| |||
522 | 510 | | |
523 | 511 | | |
524 | 512 | | |
525 | | - | |
526 | | - | |
527 | | - | |
| 513 | + | |
528 | 514 | | |
529 | 515 | | |
530 | 516 | | |
| |||
Lines changed: 55 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | | - | |
398 | | - | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | 402 | | |
401 | | - | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
405 | 432 | | |
406 | 433 | | |
407 | 434 | | |
| |||
413 | 440 | | |
414 | 441 | | |
415 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
416 | 464 | | |
417 | 465 | | |
418 | | - | |
| 466 | + | |
419 | 467 | | |
420 | 468 | | |
421 | 469 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
2379 | 2387 | | |
2380 | 2388 | | |
2381 | 2389 | | |
| 2390 | + | |
2382 | 2391 | | |
2383 | 2392 | | |
2384 | 2393 | | |
2385 | 2394 | | |
2386 | 2395 | | |
2387 | 2396 | | |
2388 | | - | |
| 2397 | + | |
2389 | 2398 | | |
2390 | 2399 | | |
2391 | 2400 | | |
2392 | 2401 | | |
2393 | 2402 | | |
2394 | 2403 | | |
2395 | 2404 | | |
2396 | | - | |
| 2405 | + | |
2397 | 2406 | | |
2398 | 2407 | | |
2399 | 2408 | | |
| |||
2404 | 2413 | | |
2405 | 2414 | | |
2406 | 2415 | | |
2407 | | - | |
| 2416 | + | |
| 2417 | + | |
2408 | 2418 | | |
2409 | 2419 | | |
2410 | 2420 | | |
| |||
0 commit comments