Bug 49499

Summary: broken-ideographic-font.html fails in release builds
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: Layout and RenderingAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
mitz: review+
Clean up small caps even more and remove the change that Dan noticed was irrelevant. mitz: review+

Description Dave Hyatt 2010-11-13 15:14:59 PST
broken-ideographic-font.html fails in release builds
Comment 1 Dave Hyatt 2010-11-13 15:21:09 PST
Created attachment 73832 [details]
Patch
Comment 2 mitz 2010-11-13 15:27:28 PST
Comment on attachment 73832 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=73832&action=review

> WebCore/platform/graphics/mac/SimpleFontDataCoreText.cpp:44
> -    unsigned key = typesettingFeatures + 1;
> +    unsigned key = 1 + ((typesettingFeatures | (orientation() == Vertical ? 4 : 0)) << 1);

I don’t like this part of the change. orientation() is always the same for a SimpleFontData instance, so there’s never a need to include it in the key.
Comment 3 Dave Hyatt 2010-11-13 15:40:56 PST
Created attachment 73835 [details]
Clean up small caps even more and remove the change that Dan noticed was irrelevant.
Comment 4 mitz 2010-11-13 15:59:41 PST
Comment on attachment 73835 [details]
Clean up small caps even more and remove the change that Dan noticed was irrelevant.

View in context: https://bugs.webkit.org/attachment.cgi?id=73835&action=review

> WebCore/ChangeLog:16
> +        I made sure that the hash for m_CFStringAttributes includes orientation.  I don't think this is a bug
> +        in practice, but this way the code is future-proofed.

No longer part of the change.
Comment 5 Dave Hyatt 2010-11-13 20:04:38 PST
Fixed in r71975.