gecko-dev/layout/style/test/gtest
Emilio Cobos Álvarez 29a01bdd3d Bug 1847440 - Always store relative line numbers in CSS rules. r=zrhoffman
CSS rules were storing absolute rather than relative line numbers (this
was done to match the old style system).

So when we hit the cached inline stylesheet code-path, for which we
share the CSS rules of the stylesheet, for the cache hit the line
numbers were completely off.

This particular page was probably regressed by bug 1834081, but the
issue could happen before with Shadow DOM.

Always store relative numbers and convert to absolute when asked by the
inspector, rather than the other way around.

This is simpler and makes the cache work.

Differential Revision: https://phabricator.services.mozilla.com/D185916
2023-08-16 09:37:27 +00:00
..
example.css
generate_example_stylesheet.py
ImportScannerTest.cpp
moz.build
StyloParsingBench.cpp Bug 1847440 - Always store relative line numbers in CSS rules. r=zrhoffman 2023-08-16 09:37:27 +00:00