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

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

Issue 171823002: Make text visible when font loading takes longer than 3 seconds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSFontFace.cpp ('k') | Source/core/css/CSSFontFaceSource.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool isLocal() const; 52 bool isLocal() const;
53 bool isLoading() const; 53 bool isLoading() const;
54 bool isLoaded() const; 54 bool isLoaded() const;
55 bool isValid() const; 55 bool isValid() const;
56 56
57 FontResource* resource() { return m_font.get(); } 57 FontResource* resource() { return m_font.get(); }
58 void setFontFace(CSSFontFace* face) { m_face = face; } 58 void setFontFace(CSSFontFace* face) { m_face = face; }
59 59
60 virtual void didStartFontLoad(FontResource*) OVERRIDE; 60 virtual void didStartFontLoad(FontResource*) OVERRIDE;
61 virtual void fontLoaded(FontResource*) OVERRIDE; 61 virtual void fontLoaded(FontResource*) OVERRIDE;
62 virtual void fontLoadWaitLimitExceeded(FontResource*) OVERRIDE;
62 63
63 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); 64 PassRefPtr<SimpleFontData> getFontData(const FontDescription&);
64 65
65 #if ENABLE(SVG_FONTS) 66 #if ENABLE(SVG_FONTS)
66 SVGFontFaceElement* svgFontFaceElement() const; 67 SVGFontFaceElement* svgFontFaceElement() const;
67 void setSVGFontFaceElement(PassRefPtr<SVGFontFaceElement>); 68 void setSVGFontFaceElement(PassRefPtr<SVGFontFaceElement>);
68 bool isSVGFontFaceSource() const; 69 bool isSVGFontFaceSource() const;
69 void setHasExternalSVGFont(bool value) { m_hasExternalSVGFont = value; } 70 void setHasExternalSVGFont(bool value) { m_hasExternalSVGFont = value; }
70 #endif 71 #endif
71 72
(...skipping 27 matching lines...) Expand all
99 #if ENABLE(SVG_FONTS) 100 #if ENABLE(SVG_FONTS)
100 RefPtr<SVGFontFaceElement> m_svgFontFaceElement; 101 RefPtr<SVGFontFaceElement> m_svgFontFaceElement;
101 RefPtr<SVGFontElement> m_externalSVGFontElement; 102 RefPtr<SVGFontElement> m_externalSVGFontElement;
102 bool m_hasExternalSVGFont; 103 bool m_hasExternalSVGFont;
103 #endif 104 #endif
104 }; 105 };
105 106
106 } 107 }
107 108
108 #endif 109 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontFace.cpp ('k') | Source/core/css/CSSFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698