Bug 183017 - Templatize SVGAnimatedType
Summary: Templatize SVGAnimatedType
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on: 183165
Blocks: 168586
  Show dependency treegraph
 
Reported: 2018-02-21 14:20 PST by Said Abou-Hallawa
Modified: 2018-03-08 10:48 PST (History)
9 users (show)

See Also:


Attachments
Patch (118.46 KB, patch)
2018-02-21 14:25 PST, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews125 for ios-simulator-wk2 (2.32 MB, application/zip)
2018-02-21 16:00 PST, EWS Watchlist
no flags Details
Patch (117.30 KB, patch)
2018-03-04 00:21 PST, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Patch (117.30 KB, patch)
2018-03-04 01:17 PST, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff
Patch (117.30 KB, patch)
2018-03-05 11:29 PST, Said Abou-Hallawa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2018-02-21 14:20:31 PST
This is a code refactoring, It is part of the patch of https://bugs.webkit.org/show_bug.cgi?id=168586. The goal to have SVGAnimatedType be type independent. The appropriate method of this template will be implicitly instantiated based to the type of the animated attribute(s).
Comment 1 Said Abou-Hallawa 2018-02-21 14:25:30 PST
Created attachment 334415 [details]
Patch
Comment 2 EWS Watchlist 2018-02-21 16:00:43 PST
Comment on attachment 334415 [details]
Patch

Attachment 334415 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/6615190

New failing tests:
svg/text/text-altglyph-01-b.svg
svg/W3C-SVG-1.1/text-altglyph-01-b.svg
Comment 3 EWS Watchlist 2018-02-21 16:00:44 PST
Created attachment 334422 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 4 Said Abou-Hallawa 2018-03-04 00:21:29 PST
Created attachment 334977 [details]
Patch
Comment 5 Said Abou-Hallawa 2018-03-04 01:17:31 PST
Created attachment 334978 [details]
Patch
Comment 6 Said Abou-Hallawa 2018-03-05 11:29:01 PST
Created attachment 335008 [details]
Patch
Comment 7 Said Abou-Hallawa 2018-03-06 17:12:08 PST
Can one of the reviewers in the CC list have a look at this bug? Please let me know if a more detailed description of the fix can move this patch forward.
Comment 8 Dean Jackson 2018-03-07 17:37:37 PST
Comment on attachment 335008 [details]
Patch

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

> Source/WebCore/svg/SVGAnimatedAngle.cpp:83
> +    const auto& fromAngleAndEnumeration = (m_animationElement->animationMode() == ToAnimation ? animated : from)->as<std::pair<SVGAngleValue, unsigned>>();

Given that you have to call this test so often, maybe it could be a helper?

m_animationElement->isToAnimation() ? animated : from
Comment 9 Said Abou-Hallawa 2018-03-08 10:27:30 PST
Comment on attachment 335008 [details]
Patch

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

>> Source/WebCore/svg/SVGAnimatedAngle.cpp:83
>> +    const auto& fromAngleAndEnumeration = (m_animationElement->animationMode() == ToAnimation ? animated : from)->as<std::pair<SVGAngleValue, unsigned>>();
> 
> Given that you have to call this test so often, maybe it could be a helper?
> 
> m_animationElement->isToAnimation() ? animated : from

I will include this change in the next patch.
Comment 10 WebKit Commit Bot 2018-03-08 10:47:51 PST
Comment on attachment 335008 [details]
Patch

Clearing flags on attachment: 335008

Committed r229417: <https://trac.webkit.org/changeset/229417>
Comment 11 WebKit Commit Bot 2018-03-08 10:47:52 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2018-03-08 10:48:25 PST
<rdar://problem/38268664>