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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/FontResource.h

Issue 2550663002: Allow creating font data while FontResource is revalidating (Closed)
Patch Set: Allow to create font data while revalidating Created 4 years 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 | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ('k') | no next file » | 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 void setRevalidatingRequest(const ResourceRequest&) override; 54 void setRevalidatingRequest(const ResourceRequest&) override;
55 55
56 void allClientsAndObserversRemoved() override; 56 void allClientsAndObserversRemoved() override;
57 void startLoadLimitTimers(); 57 void startLoadLimitTimers();
58 58
59 void setCORSFailed() override { m_corsFailed = true; } 59 void setCORSFailed() override { m_corsFailed = true; }
60 bool isCORSFailed() const { return m_corsFailed; } 60 bool isCORSFailed() const { return m_corsFailed; }
61 String otsParsingMessage() const { return m_otsParsingMessage; } 61 String otsParsingMessage() const { return m_otsParsingMessage; }
62 62
63 bool hasCustomFontData() const { return static_cast<bool>(m_fontData); }
63 bool ensureCustomFontData(); 64 bool ensureCustomFontData();
64 FontPlatformData platformDataFromCustomData( 65 FontPlatformData platformDataFromCustomData(
65 float size, 66 float size,
66 bool bold, 67 bool bold,
67 bool italic, 68 bool italic,
68 FontOrientation = FontOrientation::Horizontal); 69 FontOrientation = FontOrientation::Horizontal);
69 70
70 // Returns true if the loading priority of the remote font resource can be 71 // Returns true if the loading priority of the remote font resource can be
71 // lowered. The loading priority of the font can be lowered only if the 72 // lowered. The loading priority of the font can be lowered only if the
72 // font is not needed for painting the text. 73 // font is not needed for painting the text.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Only the RemoteFontFaceSources clients can prevent lowering of loading 127 // Only the RemoteFontFaceSources clients can prevent lowering of loading
127 // priority of the remote fonts. Set the default to true to prevent 128 // priority of the remote fonts. Set the default to true to prevent
128 // other clients from incorrectly returning false. 129 // other clients from incorrectly returning false.
129 return true; 130 return true;
130 } 131 }
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 #endif 136 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698