Bug 136044

Summary: [CSS Font Loading] Enable Page Caching
Product: WebKit Reporter: Bear Travis <betravis>
Component: CSSAssignee: Bear Travis <betravis>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, beidson, buildbot, commit-queue, rniwa, syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 135390    
Attachments:
Description Flags
Patch Prototype
none
Updated Prototype
none
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
none
Updated Prototype
none
First Draft
none
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
none
Skipping test
kling: review+
Incorporating feedback none

Description Bear Travis 2014-08-18 11:32:37 PDT
The Font Loader API disables page caching. As a first approximation, enable page caching when no font rules are currently loading, and the load() method has not been called.
Comment 1 Bear Travis 2014-08-19 11:35:24 PDT
Created attachment 236818 [details]
Patch Prototype
Comment 2 Bear Travis 2014-08-25 17:09:56 PDT
Created attachment 237119 [details]
Updated Prototype

Updating the prototype. Feature is still toggled on for the bots, so this is not quite ready for review.
Comment 3 Build Bot 2014-08-25 18:43:42 PDT
Comment on attachment 237119 [details]
Updated Prototype

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 4 Build Bot 2014-08-25 18:43:44 PDT
Created attachment 237123 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 5 Build Bot 2014-08-25 19:25:47 PDT
Comment on attachment 237119 [details]
Updated Prototype

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 6 Build Bot 2014-08-25 19:25:51 PDT
Created attachment 237127 [details]
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-02  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 7 Build Bot 2014-08-25 20:20:29 PDT
Comment on attachment 237119 [details]
Updated Prototype

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 8 Build Bot 2014-08-25 20:20:33 PDT
Created attachment 237128 [details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 9 Build Bot 2014-08-25 21:22:05 PDT
Comment on attachment 237119 [details]
Updated Prototype

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 10 Build Bot 2014-08-25 21:22:08 PDT
Created attachment 237134 [details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 11 Bear Travis 2014-08-26 10:17:09 PDT
Created attachment 237155 [details]
Updated Prototype
Comment 12 Bear Travis 2014-08-27 12:32:23 PDT
Created attachment 237237 [details]
First Draft

Removing feature enablement. This patch should be ready for review, but will not have the feature enabled yet.
Comment 13 Build Bot 2014-08-27 13:05:02 PDT
Comment on attachment 237237 [details]
First Draft

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 14 Build Bot 2014-08-27 13:05:06 PDT
Created attachment 237241 [details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 15 Build Bot 2014-08-27 17:48:12 PDT
Comment on attachment 237237 [details]
First Draft

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

New failing tests:
fast/css/fontloader-page-cache.html
Comment 16 Build Bot 2014-08-27 17:48:16 PDT
Created attachment 237276 [details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 17 Bear Travis 2014-08-28 14:33:04 PDT
Created attachment 237326 [details]
Skipping test

Added test must be skipped until feature is enabled
Comment 18 Andreas Kling 2014-09-02 11:33:44 PDT
Comment on attachment 237326 [details]
Skipping test

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

r=me as the logic appears sound.

> Source/WebCore/css/FontLoader.cpp:72
> +    int familyCount() const { return m_numFamilies; }

I'd call it m_familyCount for consistency.

> Source/WebCore/css/FontLoader.h:104
> +    unsigned m_rulesLoading;
> +    unsigned m_stringsLoading;

Can we come up with some better names for these?
m_stringsLoading is especially unobvious.
Comment 19 Bear Travis 2014-09-02 15:22:27 PDT
Created attachment 237518 [details]
Incorporating feedback

Incorporating feedback from kling. Renaming counts to m_numLoadingFromCSS and m_numLoadingFromJS.
Comment 20 WebKit Commit Bot 2014-09-03 10:26:25 PDT
Comment on attachment 237518 [details]
Incorporating feedback

Clearing flags on attachment: 237518

Committed r173209: <http://trac.webkit.org/changeset/173209>
Comment 21 WebKit Commit Bot 2014-09-03 10:26:30 PDT
All reviewed patches have been landed.  Closing bug.