Commit 5116221
Mark SVG element references as tree-scope dependent
SVG element references (url(#foo)) are dependent on the tree-scope for
looking up the referenced element. This means a resolved style which
contains an element reference can't be cached in the MPC. This was not a
problem before 5c2e1f921ce1c11c2952ff98c81806bb55db1894, because SVG
elements wouldn't be cacheable in the MPC at all.
Set the has-tree-scoped-reference for local element references to signal
that the resolved style in which they participate cannot be cached in
the MPC.
Funnel all calls to ElementStyleResources::GetSVGResourceFromValue
through a helper in StyleResolverState::GetSVGResource to allow handling
this in a single place.
Fixed: 393395935
Change-Id: I758ac5aeef9c1917275dc26962fa89bcb4518b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309244
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1426194}1 parent 46cd2c7 commit 5116221
1 file changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments