mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibWeb: Allow to set a root mode value when constructing a ShadowRoot
This commit is contained in:
parent
01e2cc5330
commit
9ed4fe7049
3 changed files with 4 additions and 3 deletions
|
@ -12,8 +12,9 @@
|
|||
|
||||
namespace Web::DOM {
|
||||
|
||||
ShadowRoot::ShadowRoot(Document& document, Element& host)
|
||||
ShadowRoot::ShadowRoot(Document& document, Element& host, Bindings::ShadowRootMode mode)
|
||||
: DocumentFragment(document)
|
||||
, m_mode(mode)
|
||||
{
|
||||
set_host(&host);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue