// Token: 0x06006722 RID: 26402 RVA: 0x001CDB67 File Offset: 0x001CBD67 internal void BackgroundFormat(IFlowDocumentFormatter formatter, bool ignoreThrottle) { if (this._throttleBackgroundTimer == null) { formatter.OnContentInvalidated(true); return; } if (ignoreThrottle) { this.OnThrottleBackgroundTimeout(null, EventArgs.Empty); return; } this._pendingBackgroundFormatter = formatter; }
/// <summary> /// Run one iteration of background formatting. Currently that simply requires /// that we invalidate the content. /// </summary> internal void BackgroundFormat(IFlowDocumentFormatter formatter, bool ignoreThrottle) { if (_throttleBackgroundTimer == null) { formatter.OnContentInvalidated(true); } else if (ignoreThrottle) { OnThrottleBackgroundTimeout(null, EventArgs.Empty); } else { // If we had recent user input, wait until the timeout passes // to invalidate. _pendingBackgroundFormatter = formatter; } }