Changeset 18369 in webkit
- Timestamp:
- Dec 20, 2006, 5:29:17 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r18366 r18369 1 2006-12-20 David Harrison <harrison@apple.com> 2 3 Reviewed by John Sullivan. 4 5 <rdar://problem/4893376> REGRESSION: Crash occurs at WebCoreFrameBridge fontForSelection: when drag selecting from a line break 6 7 No layout test added because crash only happens in path where editing window is key, 8 which is never the case for the automated tests. 9 10 * page/mac/WebCoreFrameBridge.mm: 11 (-[WebCoreFrameBridge fontForSelection:]): 12 Add nil check of fontForSelection() result. 13 1 14 2006-12-21 Nikolas Zimmermann <zimmermann@kde.org> 2 15 -
trunk/WebCore/page/mac/WebCoreFrameBridge.mm
r18245 r18369 1425 1425 bool multipleFonts = false; 1426 1426 NSFont *font = nil; 1427 if (m_frame) 1428 font = m_frame->editor()->fontForSelection(multipleFonts)->getNSFont(); 1427 if (m_frame) { 1428 const FontData* fd = m_frame->editor()->fontForSelection(multipleFonts); 1429 if (fd) 1430 font = fd->getNSFont(); 1431 } 1432 1429 1433 if (hasMultipleFonts) 1430 1434 *hasMultipleFonts = multipleFonts;
Note:
See TracChangeset
for help on using the changeset viewer.