|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2016-04-06 Myles C. Maxfield <mmaxfield@apple.com> |
| 2 |
|
| 3 |
REGRESSION (r188591): thingiverse.com direct messaging UI is not rendered properly |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=156241 |
| 5 |
<rdar://problem/25262213> |
| 6 |
|
| 7 |
Reviewed by NOBODY (OOPS!). |
| 8 |
|
| 9 |
When creating a CoreText font with a size of 0, the CoreText docs say that it will |
| 10 |
interpret this as a missing argument, and create a font of size 12 instead. However, |
| 11 |
this doesn't cause a problem (at least on this particular website) because we will |
| 12 |
use CGFontGetGlyphAdvancesForStyle(), which gets scaled by the supplied font |
| 13 |
size (which is 0). However, if you turn on text-rendering: optimizeLegibility, we |
| 14 |
will use CTFontGetAdvancesForGlyphs() instead, which does not scale by the font size. |
| 15 |
The solution is to detect this case, and force the advance to 0. |
| 16 |
|
| 17 |
Test: fast/text/zero-sized-fonts.html |
| 18 |
|
| 19 |
* platform/graphics/cocoa/FontCocoa.mm: |
| 20 |
(WebCore::Font::platformWidthForGlyph): |
| 21 |
|
| 1 |
2016-04-05 Said Abou-Hallawa <sabouhallawa@apple.com> |
22 |
2016-04-05 Said Abou-Hallawa <sabouhallawa@apple.com> |
| 2 |
|
23 |
|
| 3 |
Avoid context save/restore in GraphicsContext::drawNativeImage |
24 |
Avoid context save/restore in GraphicsContext::drawNativeImage |