Changeset 131995 in webkit
- Timestamp:
- Oct 20, 2012, 6:57:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/LayoutTests/ChangeLog ¶
r131994 r131995 1 2012-10-20 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/12512710> [mac] Text with zero font size renders as 12px sometimes 4 https://bugs.webkit.org/show_bug.cgi?id=99918 5 6 Reviewed by Geoff Garen. 7 8 * fast/text/zero-font-size-2-expected.html: Added. 9 * fast/text/zero-font-size-2.html: Added. 10 1 11 2012-10-20 Florin Malita <fmalita@chromium.org> 2 12 -
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r131993 r131995 1 2012-10-20 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/12512710> [mac] Text with zero font size renders as 12px sometimes 4 https://bugs.webkit.org/show_bug.cgi?id=99918 5 6 Reviewed by Geoff Garen. 7 8 -[NSFont fontWithName:size:] returns an NSFont of size 12 (the default User Font size) when 9 asked for size 0, and this is what Font::drawGlyphs uses to draw the text. 10 11 Test: fast/text/zero-font-size-2.html 12 13 * platform/graphics/mac/FontMac.mm: 14 (WebCore::Font::drawGlyphs): Added an early return if the size is zero. 15 1 16 2012-10-20 Andreas Kling <kling@webkit.org> 2 17 -
TabularUnified trunk/Source/WebCore/platform/graphics/mac/FontMac.mm ¶
r131365 r131995 140 140 void Font::drawGlyphs(GraphicsContext* context, const SimpleFontData* font, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const 141 141 { 142 if (!font->platformData().size()) 143 return; 144 142 145 CGContextRef cgContext = context->platformContext(); 143 146
Note:
See TracChangeset
for help on using the changeset viewer.