/// <summary> /// Init. /// </summary> /// <param name="owner">the CSS box owner of the word</param> /// <param name="text">the word chars </param> /// <param name="hasSpaceBefore">was there a whitespace before the word chars (before trim)</param> /// <param name="hasSpaceAfter">was there a whitespace after the word chars (before trim)</param> private CssTextRun(CssRunKind kind, int start, int len) : base(kind) { _textStartIndex = start; _textLength = len; }
/// <summary> /// Init. /// </summary> /// <param name="owner">the CSS box owner of the word</param> /// <param name="text">the word chars </param> /// <param name="hasSpaceBefore">was there a whitespace before the word chars (before trim)</param> /// <param name="hasSpaceAfter">was there a whitespace after the word chars (before trim)</param> private CssTextRun(CssRunKind rectKind, int start, int len) : base(rectKind) { this._textStartIndex = start; this._textLength = len; }
// Token: 0x060012AF RID: 4783 RVA: 0x00084D35 File Offset: 0x00082F35 public bool PrepareAndAddInvalidRun(CssRunKind cssRunKind, int end) { if (!base.PrepareToAddMoreRuns(1)) { return(false); } base.AddInvalidRun(end, (uint)cssRunKind); return(true); }
/// <summary> /// Init. /// </summary> /// <param name="owner">the CSS box owner of the word</param> protected CssRun(CssRunKind rectKind) { #if DEBUG if (dbugId == 19) { } #endif _runKind = rectKind; }
// Token: 0x060012B0 RID: 4784 RVA: 0x00084D4B File Offset: 0x00082F4B public bool PrepareAndAddLiteralRun(CssRunKind cssRunKind, int start, int end, int value) { if (end != start) { if (!base.PrepareToAddMoreRuns(1)) { return(false); } base.AddRun((RunType)3221225472U, RunTextType.NonSpace, (uint)cssRunKind, start, end, value); } return(true); }
// Token: 0x060012AE RID: 4782 RVA: 0x00084CFA File Offset: 0x00082EFA public bool PrepareAndAddRun(CssRunKind cssRunKind, int start, int end) { if (end != start) { if (!base.PrepareToAddMoreRuns(1)) { return(false); } base.AddRun((cssRunKind == CssRunKind.Invalid) ? RunType.Invalid : ((RunType)2147483648U), (cssRunKind == CssRunKind.Space) ? RunTextType.Space : RunTextType.NonSpace, (uint)cssRunKind, start, end, 0); } return(true); }
public bool PrepareAndAddRun(CssRunKind cssRunKind, int start, int end) { if (end != start) { if (!this.PrepareToAddMoreRuns(1)) { return(false); } base.AddRun( cssRunKind == CssRunKind.Invalid ? RunType.Invalid : RunType.Normal, cssRunKind == CssRunKind.Space ? RunTextType.Space : RunTextType.NonSpace, (uint)cssRunKind, start, end, 0); } return(true); }
public void InvalidateLastValidRun(CssRunKind kind) { int tail = this.token.whole.tail; InternalDebug.Assert(tail > 0); do { tail--; CssToken.RunEntry tailEntry = this.token.runList[tail]; if (tailEntry.Type != RunType.Invalid) { if ((uint)kind == (uint)tailEntry.Kind) { this.token.runList[tail].Initialize(RunType.Invalid, tailEntry.TextType, tailEntry.Kind, tailEntry.Length, tailEntry.Value); } break; } }while (tail > 0); }
// Token: 0x060012B1 RID: 4785 RVA: 0x00084D74 File Offset: 0x00082F74 public void InvalidateLastValidRun(CssRunKind kind) { int num = this.token.Whole.Tail; Token.RunEntry runEntry; for (;;) { num--; runEntry = this.token.RunList[num]; if (runEntry.Type != RunType.Invalid) { break; } if (num <= 0) { return; } } if (kind == (CssRunKind)runEntry.Kind) { this.token.RunList[num].Initialize(RunType.Invalid, runEntry.TextType, runEntry.Kind, runEntry.Length, runEntry.Value); return; } }
private CssTextRun(CssRunKind kind) : base(kind) { //for single space only _textLength = 1; }
/// <summary> /// Init. /// </summary> /// <param name="owner">the CSS box owner of the word</param> protected CssRun(CssRunKind rectKind) { this._runKind = rectKind; }
private CssTextRun(CssRunKind kind) : base(kind) { //for single space only this._textLength = 1; }
/// <summary> /// Init. /// </summary> /// <param name="owner">the CSS box owner of the word</param> protected CssRun(CssRunKind rectKind) { _runKind = rectKind; }