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

Unified Diff: Source/core/platform/graphics/CustomFontNotReadyAction.h

Issue 18551004: Miscellaneous cleanup to reduce number of includes in platform/graphics/ Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/graphics/BitmapImage.cpp ('k') | Source/core/platform/graphics/FloatPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/CustomFontNotReadyAction.h
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/platform/graphics/CustomFontNotReadyAction.h
similarity index 89%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/core/platform/graphics/CustomFontNotReadyAction.h
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..d2ca0f364db0def8697316a50e7c0873c769f7a8 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/core/platform/graphics/CustomFontNotReadyAction.h
@@ -28,17 +28,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+#ifndef CustomFontNotReadyAction_h
+#define CustomFontNotReadyAction_h
namespace WebCore {
-static unsigned long s_uniqueIdentifier = 0;
-
-unsigned long createUniqueIdentifier()
-{
- return ++s_uniqueIdentifier;
-}
+enum CustomFontNotReadyAction { DoNotPaintIfFontNotReady, UseFallbackIfFontNotReady };
} // namespace WebCore
+#endif // CustomFontNotReadyAction_h
« no previous file with comments | « Source/core/platform/graphics/BitmapImage.cpp ('k') | Source/core/platform/graphics/FloatPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698