Bug 138686

Summary: Subclass CachedFont for SVG fonts
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 138837, 138924    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion
none
Patch simon.fraser: review+

Description Myles C. Maxfield 2014-11-12 22:33:26 PST
Subclass CachedFont for SVG fongs
Comment 1 Myles C. Maxfield 2014-11-12 22:50:05 PST
Created attachment 241470 [details]
Patch
Comment 2 Build Bot 2014-11-13 19:36:19 PST
Comment on attachment 241470 [details]
Patch

Attachment 241470 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5725993381658624

Number of test failures exceeded the failure limit.
Comment 3 Build Bot 2014-11-13 19:36:21 PST
Created attachment 241532 [details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-10  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 4 Build Bot 2014-11-13 20:23:27 PST
Comment on attachment 241470 [details]
Patch

Attachment 241470 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5481747181469696

New failing tests:
svg/custom/acid3-test-77.html
Comment 5 Build Bot 2014-11-13 20:23:29 PST
Created attachment 241542 [details]
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-03  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 6 Myles C. Maxfield 2014-11-17 16:49:33 PST
Created attachment 241750 [details]
Patch
Comment 7 Simon Fraser (smfr) 2014-11-17 18:32:13 PST
Comment on attachment 241750 [details]
Patch

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

> Source/WebCore/css/CSSFontFaceSource.h:35
> +#if ENABLE(SVG_FONTS)
> +#include "SVGFontElement.h"
> +#include "SVGFontFaceElement.h"
> +#endif

We normally pull #ifdeffed sets of headers to the end of the list.

> Source/WebCore/loader/cache/CachedSVGFont.cpp:102
> +        size_t start = remoteURI.find('#');
> +        if (start != notFound)
> +            fragmentIdentifier = remoteURI.string().substring(start + 1);

What does this do if remoteURI is "foo#"?

> Source/WebCore/loader/cache/CachedSVGFont.h:53
> +    SVGFontElement* m_externalSVGFontElement;

Should this be a RefPtr?
Comment 8 Myles C. Maxfield 2014-11-18 10:06:42 PST
http://trac.webkit.org/changeset/176264
Comment 9 WebKit Commit Bot 2014-11-18 10:47:36 PST
Re-opened since this is blocked by bug 138837
Comment 10 Myles C. Maxfield 2014-11-18 12:05:07 PST
The test failures were caused by flakey bots, not this commit. Re-landed in http://trac.webkit.org/changeset/176276