Bug 133524 - [iOS] Input type=time elements styled with SVG fonts have 0 width
Summary: [iOS] Input type=time elements styled with SVG fonts have 0 width
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-06-04 13:18 PDT by Myles C. Maxfield
Modified: 2014-06-17 14:30 PDT (History)
10 users (show)

See Also:


Attachments
Patch (13.54 KB, patch)
2014-06-13 19:09 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (26.07 KB, patch)
2014-06-17 12:56 PDT, Myles C. Maxfield
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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