Bug 138686 - Subclass CachedFont for SVG fonts
Summary: Subclass CachedFont for SVG fonts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on: 138837 138924
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-12 22:33 PST by Myles C. Maxfield
Modified: 2014-11-20 04:35 PST (History)
3 users (show)

See Also:


Attachments
Patch (38.35 KB, patch)
2014-11-12 22:50 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 (593.08 KB, application/zip)
2014-11-13 19:36 PST, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion (562.03 KB, application/zip)
2014-11-13 20:23 PST, Build Bot
no flags Details
Patch (43.14 KB, patch)
2014-11-17 16:49 PST, 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-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