Slide 30
Slide 30 text
ཁૉͷੜॲཧ
void HTMLMarqueeElement::DidAddUserAgentShadowRoot(ShadowRoot& shadow_root) {
auto* style = HTMLStyleElement::Create(GetDocument(),
CreateElementFlags());
style->setTextContent(
":host { display: inline-block; overflow: hidden;"
"text-align: initial; white-space: nowrap; }"
":host([direction=\"up\"]), :host([direction=\"down\"]) { overflow: "
"initial; overflow-y: hidden; white-space: initial; }"
":host > div { will-change: transform; }");
shadow_root.AppendChild(style);
Element* mover = HTMLDivElement::Create(GetDocument());
shadow_root.AppendChild(mover);
mover->AppendChild(
HTMLSlotElement::CreateUserAgentDefaultSlot(GetDocument()));
mover_ = mover;
}
ࢀߟDISPNJVNUIJSE@QBSUZ8FC,JU4PVSDFDPSFIUNM)5.-.BSRVFF&MFNFOUDQQ