mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
e417f09f06
<link media> applies to both <link rel="stylesheet"> (see HTMLLinkElement::GetStyleSheetInfo) and all link rel="preload" links, regardless of as value (see HTMLLinkElement::CheckPreloadAttrs), so pass it down and check them for all of those cases. Note that in the <link rel="stylesheet"> case we'd still have to load it, but it doesn't block rendering and we defer its loading until more important stylesheets are done (see SheetLoadData::ShouldDefer() which returns false if the media attribute didn't match). So speculatively loading it seems counter-productive. Differential Revision: https://phabricator.services.mozilla.com/D103565 |
||
---|---|---|
.. | ||
expat | ||
html | ||
htmlparser | ||
prototype | ||
xml | ||
moz.build | ||
nsCharsetSource.h |