1 write to _breakRecords
PresentationFramework (1)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
38_breakRecords = new List<BreakRecordTableEntry>();
54 references to _breakRecords
PresentationFramework (54)
MS\Internal\PtsHost\BreakRecordTable.cs (54)
61Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 68Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 69breakRecord = _breakRecords[pageNumber - 1].BreakRecord; 87if (pageNumber < _breakRecords.Count) 89Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 90pageRef = _breakRecords[pageNumber].DocumentPage; 121Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 127while (pageNumber < _breakRecords.Count) 129Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 130textSegments = _breakRecords[pageNumber].TextSegments; 154if (_breakRecords.Count > 0) 157InvalidateBreakRecords(0, _breakRecords.Count); 178if (_breakRecords.Count > 0) 186pageCount = _breakRecords.Count - pageStart; 208if (_breakRecords.Count > 0) 211DisposePages(0, _breakRecords.Count); 215_owner.OnPagesChanged(0, _breakRecords.Count); 228if (_breakRecords.Count > 0) 256Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "The previous BreakRecord does not exist."); 275if (pageNumber == _breakRecords.Count) 277_breakRecords.Add(entry); 286if (_breakRecords[pageNumber].BreakRecord != null && 287_breakRecords[pageNumber].BreakRecord != entry.BreakRecord) 289_breakRecords[pageNumber].BreakRecord.Dispose(); 291if (_breakRecords[pageNumber].DocumentPage != null && 292_breakRecords[pageNumber].DocumentPage.Target != null && 293_breakRecords[pageNumber].DocumentPage.Target != entry.DocumentPage.Target) 295((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.Target).Dispose(); 297_breakRecords[pageNumber] = entry; 322if (pageNumber > _breakRecords.Count) 324Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 325return (_breakRecords[pageNumber - 1].BreakRecord != null); 343get { return _breakRecords.Count; } 353if (_breakRecords.Count == 0) 355Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 356return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 380Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 381Invariant.Assert(start + count <= _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 385Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 386pageRef = _breakRecords[index].DocumentPage; 391_breakRecords[index].DocumentPage = null; 406Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 407Invariant.Assert(start + count == _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 411Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 413pageRef = _breakRecords[index].DocumentPage; 418_breakRecords[index].BreakRecord?.Dispose(); 420_breakRecords.RemoveAt(index); 440while (pageStart < _breakRecords.Count) 442Invariant.Assert(_breakRecords[pageStart] != null, "Invalid BreakRecordTable entry."); 446dependentMax = _breakRecords[pageStart].DependentMax; 453textSegments = _breakRecords[pageStart].TextSegments; 478pageCount = _breakRecords.Count - pageStart;