Skip to content

Commit b19d408

Browse files
committed
Mozilla bug 256180 - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug.
1 parent aadc9c1 commit b19d408

File tree

3 files changed

+86
-72
lines changed

3 files changed

+86
-72
lines changed

src/nu/validator/htmlparser/impl/StateSnapshot.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public class StateSnapshot<T> implements TreeBuilderState<T> {
3737

3838
private final T headPointer;
3939

40-
private final T deepTreeSurrogateParent;
41-
4240
private final int mode;
4341

4442
private final int originalMode;
@@ -64,14 +62,13 @@ public class StateSnapshot<T> implements TreeBuilderState<T> {
6462
*/
6563
StateSnapshot(StackNode<T>[] stack,
6664
StackNode<T>[] listOfActiveFormattingElements, int[] templateModeStack, T formPointer,
67-
T headPointer, T deepTreeSurrogateParent, int mode, int originalMode,
65+
T headPointer, int mode, int originalMode,
6866
boolean framesetOk, boolean needToDropLF, boolean quirks) {
6967
this.stack = stack;
7068
this.listOfActiveFormattingElements = listOfActiveFormattingElements;
7169
this.templateModeStack = templateModeStack;
7270
this.formPointer = formPointer;
7371
this.headPointer = headPointer;
74-
this.deepTreeSurrogateParent = deepTreeSurrogateParent;
7572
this.mode = mode;
7673
this.originalMode = originalMode;
7774
this.framesetOk = framesetOk;
@@ -121,16 +118,6 @@ public T getHeadPointer() {
121118
return headPointer;
122119
}
123120

124-
/**
125-
* Returns the deepTreeSurrogateParent.
126-
*
127-
* @return the deepTreeSurrogateParent
128-
*/
129-
@Override
130-
public T getDeepTreeSurrogateParent() {
131-
return deepTreeSurrogateParent;
132-
}
133-
134121
/**
135122
* Returns the mode.
136123
*

0 commit comments

Comments
 (0)