public LinearizerState(LinearizerState parent, ContentNode node, int pos, FontStyle font) { Parent = parent; Node = node; Pos = pos; Font = font; }
public FontStyle FindStyle() { LinearizerState state = this; while (state.Font == FontStyle.None && state != null) { state = state.Parent; } return(state == null ? FontStyle.Plain : state.Font); }