summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSFontSelector.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/WebCore/css/CSSFontSelector.h
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/WebCore/css/CSSFontSelector.h')
-rw-r--r--Source/WebCore/css/CSSFontSelector.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/Source/WebCore/css/CSSFontSelector.h b/Source/WebCore/css/CSSFontSelector.h
index dc1ac61f1..8ad74cd77 100644
--- a/Source/WebCore/css/CSSFontSelector.h
+++ b/Source/WebCore/css/CSSFontSelector.h
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -27,8 +27,8 @@
#define CSSFontSelector_h
#include "CachedResourceHandle.h"
-#include "Font.h"
#include "FontSelector.h"
+#include "SimpleFontData.h"
#include "Timer.h"
#include <memory>
#include <wtf/Forward.h>
@@ -49,44 +49,44 @@ class StyleRuleFontFace;
class CSSFontSelector final : public FontSelector {
public:
- static Ref<CSSFontSelector> create(Document& document)
+ static PassRefPtr<CSSFontSelector> create(Document* document)
{
- return adoptRef(*new CSSFontSelector(document));
+ return adoptRef(new CSSFontSelector(document));
}
virtual ~CSSFontSelector();
virtual unsigned version() const override { return m_version; }
virtual unsigned uniqueId() const override { return m_uniqueId; }
- virtual FontRanges fontRangesForFamily(const FontDescription&, const AtomicString&) override;
- virtual size_t fallbackFontCount() override;
- virtual PassRefPtr<Font> fallbackFontAt(const FontDescription&, size_t) override;
+ virtual PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString&) override;
+ virtual size_t fallbackFontDataCount() override;
+ virtual PassRefPtr<FontData> getFallbackFontData(const FontDescription&, size_t) override;
CSSSegmentedFontFace* getFontFace(const FontDescription&, const AtomicString& family);
virtual bool resolvesFamilyFor(const FontDescription&) const override;
void clearDocument();
- void addFontFaceRule(const StyleRuleFontFace*, bool isInitiatingElementInUserAgentShadowTree);
+ void addFontFaceRule(const StyleRuleFontFace*);
void fontLoaded();
virtual void fontCacheInvalidated() override;
bool isEmpty() const;
- virtual void registerForInvalidationCallbacks(FontSelectorClient&) override;
- virtual void unregisterForInvalidationCallbacks(FontSelectorClient&) override;
+ virtual void registerForInvalidationCallbacks(FontSelectorClient*) override;
+ virtual void unregisterForInvalidationCallbacks(FontSelectorClient*) override;
Document* document() const { return m_document; }
void beginLoadingFontSoon(CachedFont*);
private:
- explicit CSSFontSelector(Document&);
+ CSSFontSelector(Document*);
void dispatchInvalidationCallbacks();
- void beginLoadTimerFired();
+ void beginLoadTimerFired(Timer<CSSFontSelector>&);
Document* m_document;
HashMap<String, std::unique_ptr<Vector<RefPtr<CSSFontFace>>>, CaseFoldingHash> m_fontFaces;
@@ -95,7 +95,7 @@ private:
HashSet<FontSelectorClient*> m_clients;
Vector<CachedResourceHandle<CachedFont>> m_fontsToBeginLoading;
- Timer m_beginLoadingTimer;
+ Timer<CSSFontSelector> m_beginLoadingTimer;
unsigned m_uniqueId;
unsigned m_version;