Bug 172580 - Use a typedef for SVG resource mode flags union
Summary: Use a typedef for SVG resource mode flags union
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-24 22:07 PDT by Simon Fraser (smfr)
Modified: 2017-05-30 20:23 PDT (History)
9 users (show)

See Also:


Attachments
Patch (22.20 KB, patch)
2017-05-24 22:09 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews124 for ios-simulator-wk2 (11.05 MB, application/zip)
2017-05-25 00:42 PDT, Build Bot
no flags Details
Patch (46.21 KB, patch)
2017-05-25 17:59 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2017-05-24 22:07:39 PDT
Use a typedef for SVG resource mode flags union
Comment 1 Simon Fraser (smfr) 2017-05-24 22:09:45 PDT
Created attachment 311196 [details]
Patch
Comment 2 Build Bot 2017-05-25 00:42:22 PDT
Comment on attachment 311196 [details]
Patch

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

New failing tests:
http/tests/cache/cancel-during-revalidation-succeeded.html
Comment 3 Build Bot 2017-05-25 00:42:24 PDT
Created attachment 311209 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 4 Sam Weinig 2017-05-25 08:38:54 PDT
Comment on attachment 311196 [details]
Patch

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

> Source/WebCore/rendering/svg/RenderSVGResource.h:48
> +typedef unsigned RenderSVGResourceMode;

Maybe use OptionSet<RenderSVGResourceModes> instead. If you want to keep it an unsigned, I would recommend using a type alias instead:

using RenderSVGResourceMode = unsigned;

It's not substantially different, just the syntax we have been moving toward, since it supports things like templated type aliases.
Comment 5 Simon Fraser (smfr) 2017-05-25 17:59:27 PDT
Created attachment 311322 [details]
Patch
Comment 6 Sam Weinig 2017-05-25 18:01:01 PDT
Comment on attachment 311322 [details]
Patch

Nice.
Comment 7 WebKit Commit Bot 2017-05-25 18:31:09 PDT
Comment on attachment 311322 [details]
Patch

Clearing flags on attachment: 311322

Committed r217463: <http://trac.webkit.org/changeset/217463>
Comment 8 WebKit Commit Bot 2017-05-25 18:31:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Yusuke Suzuki 2017-05-25 19:41:03 PDT
Committed r217468: <http://trac.webkit.org/changeset/217468>
Comment 10 Simon Fraser (smfr) 2017-05-25 21:00:34 PDT
Thanks for the fix. No idea why GTK/WPE would need different includes.
Comment 11 Radar WebKit Bug Importer 2017-05-30 20:23:54 PDT
<rdar://problem/32479769>