зеркало из https://github.com/mozilla/gecko-dev.git
3b3de3f3e7
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 |
||
---|---|---|
.. | ||
tests | ||
InspectorFontFace.cpp | ||
InspectorFontFace.h | ||
InspectorUtils.cpp | ||
InspectorUtils.h | ||
ServoStyleRuleMap.cpp | ||
ServoStyleRuleMap.h | ||
inDeepTreeWalker.cpp | ||
inDeepTreeWalker.h | ||
inIDeepTreeWalker.idl | ||
inLayoutUtils.cpp | ||
inLayoutUtils.h | ||
moz.build |