Commit 5d04d09
layout: Do not assume layout data structures exist during queries
Data structures, such as the fragment tree and and stacking context
tree, might not exist even after a layout if there is no root element.
This change makes it so that the code stops asusming they exist. This
does expose us to cases where logic errors may mean we try to run a
script query without running the appropriate phase of layout first, but
that is better than panicking.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>1 parent 61688e1 commit 5d04d09
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments