Bug 187443

Summary: Shrink various loading-related enums to shrink CachedResource
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, cdumez, commit-queue, ews-watchlist, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews102 for mac-sierra
none
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews126 for ios-simulator-wk2
none
Patch none

Description Simon Fraser (smfr) 2018-07-07 22:28:52 PDT
Shrink various loading-related enums to shrink CachedResource
Comment 1 Simon Fraser (smfr) 2018-07-07 22:34:59 PDT
Created attachment 344538 [details]
Patch
Comment 2 EWS Watchlist 2018-07-07 22:38:08 PDT
Attachment 344538 [details] did not pass style-queue:


ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:867:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:899:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:911:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:1042:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 4 in 101 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 EWS Watchlist 2018-07-07 23:52:06 PDT
Comment on attachment 344538 [details]
Patch

Attachment 344538 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/8471607

New failing tests:
media/media-fullscreen-return-to-inline.html
Comment 4 EWS Watchlist 2018-07-07 23:52:08 PDT
Created attachment 344539 [details]
Archive of layout-test-results from ews102 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 5 Simon Fraser (smfr) 2018-07-08 09:22:38 PDT
Created attachment 344546 [details]
Patch
Comment 6 EWS Watchlist 2018-07-08 09:25:08 PDT
Attachment 344546 [details] did not pass style-queue:


ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:867:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:899:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:911:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:1042:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 4 in 104 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Simon Fraser (smfr) 2018-07-08 09:39:57 PDT
Created attachment 344547 [details]
Patch
Comment 8 EWS Watchlist 2018-07-08 09:41:18 PDT
Attachment 344547 [details] did not pass style-queue:


ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:867:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:899:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:911:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:1042:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 4 in 105 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Simon Fraser (smfr) 2018-07-08 10:51:30 PDT
Created attachment 344549 [details]
Patch
Comment 10 EWS Watchlist 2018-07-08 10:52:54 PDT
Attachment 344549 [details] did not pass style-queue:


ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:867:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:899:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:911:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:1042:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 4 in 106 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 EWS Watchlist 2018-07-08 12:49:29 PDT
Comment on attachment 344549 [details]
Patch

Attachment 344549 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/8475502

New failing tests:
animations/needs-layout.html
Comment 12 EWS Watchlist 2018-07-08 12:49:31 PDT
Created attachment 344551 [details]
Archive of layout-test-results from ews126 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 13 Simon Fraser (smfr) 2018-07-09 13:32:20 PDT
Created attachment 344607 [details]
Patch
Comment 14 EWS Watchlist 2018-07-09 13:34:20 PDT
Attachment 344607 [details] did not pass style-queue:


ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:867:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:899:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:911:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:1042:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 4 in 106 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Chris Dumez 2018-07-09 14:03:03 PDT
Comment on attachment 344607 [details]
Patch

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

> Source/WebCore/loader/FetchOptions.h:60
> +    String integrity;

Shouldn't we move this one up instead? I think we usually order from bigger to smaller types.

> Source/WebCore/loader/FetchOptions.h:61
>      std::optional<DocumentIdentifier> clientIdentifier;

ditto.
Comment 16 WebKit Commit Bot 2018-07-09 16:54:26 PDT
Comment on attachment 344607 [details]
Patch

Clearing flags on attachment: 344607

Committed r233668: <https://trac.webkit.org/changeset/233668>
Comment 17 WebKit Commit Bot 2018-07-09 16:54:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 18 Radar WebKit Bug Importer 2018-07-09 16:55:33 PDT
<rdar://problem/41997321>