Bug 133524

Summary: [iOS] Input type=time elements styled with SVG fonts have 0 width
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: Layout and RenderingAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, cdumez, commit-queue, dbates, esprehn+autocc, glenn, gyuyoung.kim, kondapallykalyan, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch simon.fraser: review+

Description Myles C. Maxfield 2014-06-04 13:18:14 PDT
See related bug https://bugs.webkit.org/show_bug.cgi?id=133198. Fixing this requires a somewhat heavyweight refactoring.
Comment 1 Myles C. Maxfield 2014-06-04 18:41:57 PDT
<rdar://problem/17166620>
Comment 2 Myles C. Maxfield 2014-06-13 19:09:35 PDT
Created attachment 233097 [details]
Patch
Comment 3 Simon Fraser (smfr) 2014-06-16 12:48:20 PDT
Comment on attachment 233097 [details]
Patch

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

> Source/WebCore/platform/text/ios/LocalizedDateCache.mm:96
> +    if (m_font == font && m_maxWidthMap.contains(key)) {
> +        cachedResult = m_maxWidthMap.get(key);
> +        return Vector<String>();
> +    }

This conflation of caching max widths per type (globally)? and the getting of list of strings is super confusing, and I don't understand the global per-type cache.
Comment 4 Myles C. Maxfield 2014-06-17 12:56:32 PDT
Created attachment 233255 [details]
Patch
Comment 5 WebKit Commit Bot 2014-06-17 12:57:40 PDT
Attachment 233255 [details] did not pass style-queue:


ERROR: Source/WebCore/rendering/RenderThemeIOS.mm:566:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 1 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Simon Fraser (smfr) 2014-06-17 13:09:24 PDT
Comment on attachment 233255 [details]
Patch

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

> Source/WebCore/platform/text/ios/LocalizedDateCache.h:43
> +    virtual ~MeasureTextClient() { }

Not sure you want this. See https://bugs.webkit.org/show_bug.cgi?id=133908#c3
Comment 7 Myles C. Maxfield 2014-06-17 14:30:04 PDT
Just talked to Anders, we decided to keep it in.

http://trac.webkit.org/changeset/170072