mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-05 23:07:12 +00:00
implement html5ever append_based_on_parent_node and append_before_sibling
This commit is contained in:
@@ -69,6 +69,19 @@ pub type RemoveFromParentCallback = unsafe extern "C" fn(ctx: Ref, target: Ref)
|
||||
|
||||
pub type ReparentChildrenCallback = unsafe extern "C" fn(ctx: Ref, node: Ref, new_parent: Ref) -> ();
|
||||
|
||||
pub type AppendBeforeSiblingCallback = unsafe extern "C" fn(
|
||||
ctx: Ref,
|
||||
sibling: Ref,
|
||||
node_or_text: CNodeOrText
|
||||
) -> ();
|
||||
|
||||
pub type AppendBasedOnParentNodeCallback = unsafe extern "C" fn(
|
||||
ctx: Ref,
|
||||
element: Ref,
|
||||
prev_element: Ref,
|
||||
node_or_text: CNodeOrText
|
||||
) -> ();
|
||||
|
||||
pub type Ref = *const c_void;
|
||||
|
||||
#[repr(C)]
|
||||
|
||||
Reference in New Issue
Block a user