12010-12-06 Yuzo Fujishima <yuzo@google.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Fix for Bug 43704 - Web font is printed as blank if it is not cached
6 https://bugs.webkit.org/show_bug.cgi?id=43704
7
8 In setting printing, we should not validate resources already cached for the document.
9 If we do, web fonts used for screen are revalidated and possiby reloaded. Then the fonts can be shown as blank on print.
10 This patch won't save the case where screen and print use different web fonts. Nonetheless, this is an improvement.
11
12 No new tests because there seems to be no good way to test print images.
13
14 * loader/cache/CachedResourceLoader.cpp:
15 (WebCore::CachedResourceLoader::CachedResourceLoader):
16 (WebCore::CachedResourceLoader::checkForReload):
17 * loader/cache/CachedResourceLoader.h:
18 (WebCore::DocumentResourceCacheValidationSuppressor::DocumentResourceCacheValidationSuppressor):
19 (WebCore::DocumentResourceCacheValidationSuppressor::~DocumentResourceCacheValidationSuppressor):
20 * page/Frame.cpp:
21 (WebCore::Frame::setPrinting):
22