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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSFontFace.h

Issue 1773633003: [DO NOT COMMIT] Trace events for layout-based First Meaningful Paint detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 FontFace* fontFace() const { return m_fontFace; } 57 FontFace* fontFace() const { return m_fontFace; }
58 58
59 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } 59 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; }
60 60
61 void setSegmentedFontFace(CSSSegmentedFontFace*); 61 void setSegmentedFontFace(CSSSegmentedFontFace*);
62 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } 62 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; }
63 63
64 bool isValid() const { return !m_sources.isEmpty(); } 64 bool isValid() const { return !m_sources.isEmpty(); }
65 bool isBlank() const;
65 66
66 void addSource(CSSFontFaceSource*); 67 void addSource(CSSFontFaceSource*);
67 68
68 void didBeginLoad(); 69 void didBeginLoad();
69 void fontLoaded(RemoteFontFaceSource*); 70 void fontLoaded(RemoteFontFaceSource*);
70 void didBecomeVisibleFallback(RemoteFontFaceSource*); 71 void didBecomeVisibleFallback(RemoteFontFaceSource*);
71 72
72 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); 73 PassRefPtr<SimpleFontData> getFontData(const FontDescription&);
73 74
74 FontFace::LoadStatusType loadStatus() const { return m_fontFace->loadStatus( ); } 75 FontFace::LoadStatusType loadStatus() const { return m_fontFace->loadStatus( ); }
(...skipping 11 matching lines...) Expand all
86 87
87 RefPtr<UnicodeRangeSet> m_ranges; 88 RefPtr<UnicodeRangeSet> m_ranges;
88 Member<CSSSegmentedFontFace> m_segmentedFontFace; 89 Member<CSSSegmentedFontFace> m_segmentedFontFace;
89 HeapDeque<Member<CSSFontFaceSource>> m_sources; 90 HeapDeque<Member<CSSFontFaceSource>> m_sources;
90 Member<FontFace> m_fontFace; 91 Member<FontFace> m_fontFace;
91 }; 92 };
92 93
93 } // namespace blink 94 } // namespace blink
94 95
95 #endif 96 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSFontFace.cpp » ('j') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698