@@ -153,11 +153,10 @@ function buildNode(
153
153
n : serializedNodeWithId ,
154
154
options : {
155
155
doc : Document ;
156
- hackCss : boolean ;
157
156
cache : BuildCache ;
158
157
} ,
159
158
) : Node | null {
160
- const { doc, hackCss , cache } = options ;
159
+ const { doc, cache } = options ;
161
160
switch ( n . type ) {
162
161
case NodeType . Document :
163
162
return doc . implementation . createDocument ( null , '' , null ) ;
@@ -395,7 +394,6 @@ export function buildNodeWithSN(
395
394
doc : Document ;
396
395
mirror : Mirror ;
397
396
skipChild ?: boolean ;
398
- hackCss : boolean ;
399
397
/**
400
398
* This callback will be called for each of this nodes' `.childNodes` after they are appended to _this_ node.
401
399
* Caveat: This callback _doesn't_ get called when this node is appended to the DOM.
@@ -408,7 +406,6 @@ export function buildNodeWithSN(
408
406
doc,
409
407
mirror,
410
408
skipChild = false ,
411
- hackCss = true ,
412
409
afterAppend,
413
410
cache,
414
411
} = options ;
@@ -425,7 +422,7 @@ export function buildNodeWithSN(
425
422
// For safety concern, check if the node in mirror is the same as the node we are trying to build
426
423
if ( isNodeMetaEqual ( meta , n ) ) return mirror . getNode ( n . id ) ;
427
424
}
428
- let node = buildNode ( n , { doc, hackCss , cache } ) ;
425
+ let node = buildNode ( n , { doc, cache } ) ;
429
426
if ( ! node ) {
430
427
return null ;
431
428
}
@@ -474,7 +471,6 @@ export function buildNodeWithSN(
474
471
doc,
475
472
mirror,
476
473
skipChild : false ,
477
- hackCss,
478
474
afterAppend,
479
475
cache,
480
476
} ) ;
@@ -574,7 +570,6 @@ function rebuild(
574
570
doc,
575
571
mirror,
576
572
skipChild : false ,
577
- hackCss,
578
573
afterAppend,
579
574
cache,
580
575
} ) ;
0 commit comments