File size: 355 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
use lightningcss::{
stylesheet::{ParserOptions, StyleSheet},
traits::IntoOwned,
};
pub fn stylesheet_into_static<'i, 'o>(
ss: &StyleSheet,
options: ParserOptions<'o, 'i>,
) -> StyleSheet<'i, 'o> {
let sources = ss.sources.clone();
let rules = ss.rules.clone().into_owned();
//
StyleSheet::new(sources, rules, options)
}
|