gecko-dev/layout/inspector
Emilio Cobos Álvarez 3b3de3f3e7 Bug 1590280 - Allow to use the sheet cache to avoid parsing as long as CSSOM hasn't mutated the stylesheet. r=heycam
We need to ensure we have a unique inner so that ruleLists and such have the
right pointer identity (we could do better, really, but it's harder).

But as long as the CSSOM hasn't modified them there should be no reason not to
use the cache. We can do a deep clone synchronously instead of refetching /
reparsing.

This is important because, as of right now, just using the inspector makes the
stylesheets unique, which is unfortunate.

We'll still have the modified rule bit for sheets with @import, because our
notification system for @import is silly, and on parents of imported sheets.

Fixing those are future improvements, but I see no reason not to land this.

Differential Revision: https://phabricator.services.mozilla.com/D55163

--HG--
extra : moz-landing-system : lando
2019-12-03 11:04:03 +00:00
..
tests Bug 1600155 - Remove StyleSheet{Added,Removed} and StyleRule{Added,Removed,Changed} events. r=heycam,smaug 2019-11-30 12:24:32 +00:00
InspectorFontFace.cpp
InspectorFontFace.h
InspectorUtils.cpp Bug 1590280 - Allow to use the sheet cache to avoid parsing as long as CSSOM hasn't mutated the stylesheet. r=heycam 2019-12-03 11:04:03 +00:00
InspectorUtils.h
ServoStyleRuleMap.cpp Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio 2019-10-24 17:15:32 +00:00
ServoStyleRuleMap.h
inDeepTreeWalker.cpp Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio 2019-10-24 17:15:32 +00:00
inDeepTreeWalker.h
inIDeepTreeWalker.idl
inLayoutUtils.cpp Bug 1590639 part 6: Fix non-unified build issues in layout/inspector. r=emilio 2019-10-24 17:15:32 +00:00
inLayoutUtils.h
moz.build Bug 1593119 - Remove dom/xbl and the MOZ_XBL build option r=bzbarsky 2019-11-07 00:35:32 +00:00