script/dom/execcommand/commands/
fontname.rs1use js::context::JSContext;
6
7use crate::dom::bindings::str::DOMString;
8use crate::dom::document::Document;
9use crate::dom::execcommand::basecommand::CommandName;
10use crate::dom::selection::Selection;
11
12pub(crate) fn execute_fontname_command(
14 cx: &mut JSContext,
15 document: &Document,
16 selection: &Selection,
17 value: DOMString,
18) -> bool {
19 selection.set_the_selection_value(cx, Some(value), CommandName::FontName, document);
21
22 true
23}