Changeset 53565 in webkit
- Timestamp:
- Jan 20, 2010, 2:21:59 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53564 r53565 1 2010-01-20 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 <rdar://problem/6579204> Exception thrown when opening a <select> pop-up that 6 uses a web font 7 https://bugs.webkit.org/show_bug.cgi?id=23911 8 9 * platform/mac/PopupMenuMac.mm: 10 (WebCore::PopupMenu::populate): Use the (bold) system font if an NSFont cannot 11 be obtained. 12 1 13 2010-01-19 Nikolas Zimmermann <nzimmermann@rim.com> 2 14 -
trunk/WebCore/platform/mac/PopupMenuMac.mm
r52673 r53565 82 82 PopupMenuStyle style = client()->itemStyle(i); 83 83 NSMutableDictionary* attributes = [[NSMutableDictionary alloc] init]; 84 if (style.font() != Font()) 85 [attributes setObject:style.font().primaryFont()->getNSFont() forKey:NSFontAttributeName]; 84 if (style.font() != Font()) { 85 NSFont *font = style.font().primaryFont()->getNSFont(); 86 if (!font) { 87 CGFloat size = style.font().primaryFont()->platformData().size(); 88 font = style.font().weight() < FontWeightBold ? [NSFont systemFontOfSize:size] : [NSFont boldSystemFontOfSize:size]; 89 } 90 [attributes setObject:font forKey:NSFontAttributeName]; 91 } 86 92 // FIXME: Add support for styling the foreground and background colors. 87 93 // FIXME: Find a way to customize text color when an item is highlighted.
Note:
See TracChangeset
for help on using the changeset viewer.