Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: Source/core/css/CSSFontSelector.h

Issue 1314843009: Add DocumentTiming metrics for "time to first text paint" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class FontDescription; 43 class FontDescription;
44 44
45 class CORE_EXPORT CSSFontSelector : public FontSelector { 45 class CORE_EXPORT CSSFontSelector : public FontSelector {
46 public: 46 public:
47 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) 47 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document)
48 { 48 {
49 return adoptRefWillBeNoop(new CSSFontSelector(document)); 49 return adoptRefWillBeNoop(new CSSFontSelector(document));
50 } 50 }
51 ~CSSFontSelector() override; 51 ~CSSFontSelector() override;
52 52
53 // FontSelector implementation
53 unsigned version() const override { return m_fontFaceCache.version(); } 54 unsigned version() const override { return m_fontFaceCache.version(); }
54
55 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString& ) override; 55 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString& ) override;
56 void willUseFontData(const FontDescription&, const AtomicString& family, UCh ar32) override; 56 void willUseFontData(const FontDescription&, const AtomicString& family, UCh ar32) override;
57 void reportFirstCustomFontText() override;
58 void reportFirstNonBlankText() override;
59
57 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam ily); 60 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam ily);
58 61
59 #if !ENABLE(OILPAN) 62 #if !ENABLE(OILPAN)
60 void clearDocument(); 63 void clearDocument();
61 #endif 64 #endif
62 65
63 void fontFaceInvalidated(); 66 void fontFaceInvalidated();
64 67
65 // FontCacheClient implementation 68 // FontCacheClient implementation
66 void fontCacheInvalidated() override; 69 void fontCacheInvalidated() override;
(...skipping 26 matching lines...) Expand all
93 FontFaceCache m_fontFaceCache; 96 FontFaceCache m_fontFaceCache;
94 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient>> m_clients; 97 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient>> m_clients;
95 98
96 RefPtrWillBeMember<FontLoader> m_fontLoader; 99 RefPtrWillBeMember<FontLoader> m_fontLoader;
97 GenericFontFamilySettings m_genericFontFamilySettings; 100 GenericFontFamilySettings m_genericFontFamilySettings;
98 }; 101 };
99 102
100 } // namespace blink 103 } // namespace blink
101 104
102 #endif // CSSFontSelector_h 105 #endif // CSSFontSelector_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698