Document should be a FontSelectorClient.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2015 21:39:28 +0000 (21:39 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jan 2015 21:39:28 +0000 (21:39 +0000)
commitc0ce75e48424cfc7d44f514cfbd0d93efd983335
treee918c13add1d9cc73c4fda3d10d4fb98ff84b94b
parent2bfedfe1a98e14b1e9d8e79a3b22de34b908510b
Document should be a FontSelectorClient.
<https://webkit.org/b/140833>

Reviewed by Antti Koivisto.

Make Document a FontSelectorClient so it can listen to the invalidation
callbacks from FontSelector instead of having code in FontSelector that
calls out to Document on invalidation.

* css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::dispatchInvalidationCallbacks):
* dom/Document.cpp:
(WebCore::Document::fontsNeedUpdate):
(WebCore::Document::fontSelector):
(WebCore::Document::clearStyleResolver):
* dom/Document.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSFontSelector.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h