1 write to _breakRecords
PresentationFramework (1)
MS\Internal\PtsHost\BreakRecordTable.cs (1)
37_breakRecords = new List<BreakRecordTableEntry>();
54 references to _breakRecords
PresentationFramework (54)
MS\Internal\PtsHost\BreakRecordTable.cs (54)
60Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 67Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 68breakRecord = _breakRecords[pageNumber - 1].BreakRecord; 86if (pageNumber < _breakRecords.Count) 88Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 89pageRef = _breakRecords[pageNumber].DocumentPage; 120Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "Invalid PageNumber."); 126while (pageNumber < _breakRecords.Count) 128Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 129textSegments = _breakRecords[pageNumber].TextSegments; 153if (_breakRecords.Count > 0) 156InvalidateBreakRecords(0, _breakRecords.Count); 177if (_breakRecords.Count > 0) 185pageCount = _breakRecords.Count - pageStart; 207if (_breakRecords.Count > 0) 210DisposePages(0, _breakRecords.Count); 214_owner.OnPagesChanged(0, _breakRecords.Count); 227if (_breakRecords.Count > 0) 255Invariant.Assert(pageNumber >= 0 && pageNumber <= _breakRecords.Count, "The previous BreakRecord does not exist."); 274if (pageNumber == _breakRecords.Count) 276_breakRecords.Add(entry); 285if (_breakRecords[pageNumber].BreakRecord != null && 286_breakRecords[pageNumber].BreakRecord != entry.BreakRecord) 288_breakRecords[pageNumber].BreakRecord.Dispose(); 290if (_breakRecords[pageNumber].DocumentPage != null && 291_breakRecords[pageNumber].DocumentPage.Target != null && 292_breakRecords[pageNumber].DocumentPage.Target != entry.DocumentPage.Target) 294((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.Target).Dispose(); 296_breakRecords[pageNumber] = entry; 321if (pageNumber > _breakRecords.Count) 323Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 324return (_breakRecords[pageNumber - 1].BreakRecord != null); 342get { return _breakRecords.Count; } 352if (_breakRecords.Count == 0) 354Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 355return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 379Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 380Invariant.Assert(start + count <= _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 384Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 385pageRef = _breakRecords[index].DocumentPage; 390_breakRecords[index].DocumentPage = null; 405Invariant.Assert(start >= 0 && start < _breakRecords.Count, "Invalid starting index for BreakRecordTable invalidation."); 406Invariant.Assert(start + count == _breakRecords.Count, "Partial invalidation of BreakRecordTable is not allowed."); 410Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 412pageRef = _breakRecords[index].DocumentPage; 417_breakRecords[index].BreakRecord?.Dispose(); 419_breakRecords.RemoveAt(index); 439while (pageStart < _breakRecords.Count) 441Invariant.Assert(_breakRecords[pageStart] != null, "Invalid BreakRecordTable entry."); 445dependentMax = _breakRecords[pageStart].DependentMax; 452textSegments = _breakRecords[pageStart].TextSegments; 477pageCount = _breakRecords.Count - pageStart;