RFR: 8336097: UserAgent Styles using lookups are promoted to Author level if look-up is defined in Author stylesheet [v5]
John Hendrikx
jhendrikx at openjdk.org
Mon Jul 22 16:01:12 UTC 2024
> This change removes the origin determination from `resolveLookups`. Instead, the origin from the style is used.
>
> Although a comment in the code alluded that this may cause problem with `INLINE` styles, this is not the case. Whenever a `Node` is associated with a `CssStyleHelper`, a suitable shared cache is determined for its use. This already takes into account the presence of an inline style, and only nodes with the same inline style can share such a cache. See `Cache#getStyleMap` and specifically this fragment where an additional selector is added for the inline style:
>
> if (hasInlineStyle) {
> Selector selector = cacheContainer.getInlineStyleSelector(inlineStyle);
> if (selector != null) selectors.add(selector);
> }
John Hendrikx has updated the pull request incrementally with one additional commit since the last revision:
Fixed comments
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/1503/files
- new: https://git.openjdk.org/jfx/pull/1503/files/b882be04..3ac758f3
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=1503&range=04
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=1503&range=03-04
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jfx/pull/1503.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1503/head:pull/1503
PR: https://git.openjdk.org/jfx/pull/1503
More information about the openjfx-dev
mailing list