DescriptionWebFonts: reset m_loadLimitState on memory cache revalidation
On reload, RevalidationPolicy Revalidate is applied.
This policy reuses the same Resource instance for the reloading
Resource, and FontResource::startLoadLimitTimersIfNeeded() is
called again.
FontResource does not expect that startLoadLimitTimersIfNeeded()
is called twice, and needs a place to reset an internal state
to manage font loading timeouts.
This patch changes Resource::setRevalidatingRequest to virtual
and reset m_loadLimitState at FontResource::setRevalidatingRequest.
BUG=603392
Committed: https://crrev.com/27d8b39e91bfc8ffd53c27cfb8dee3029b122d24
Cr-Commit-Position: refs/heads/master@{#389359}
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : ASSERT wasn't correct #Patch Set 4 : add a LayoutTest #
Total comments: 2
Patch Set 5 : address hiroshige's comments at #11 #
Total comments: 6
Patch Set 6 : #14 #Messages
Total messages: 28 (11 generated)
|