Index: third_party/WebKit/Source/platform/fonts/FontFallbackPriority.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackPriority.cpp b/third_party/WebKit/Source/platform/fonts/FontFallbackPriority.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58f4c293c7eb072ce13007b0882b13c6838ee2c5 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/fonts/FontFallbackPriority.cpp |
@@ -0,0 +1,17 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "platform/fonts/FontFallbackPriority.h" |
+ |
+namespace blink { |
+ |
+bool isNonTextFallbackPriority(FontFallbackPriority fallbackPriority) |
+{ |
+ return fallbackPriority == FontFallbackPriority::Symbols |
wkorman
2016/01/22 00:50:45
Why not return fallbackPriority != FontFallbackPri
drott
2016/01/22 14:28:21
I chose to enumerate them because I would like the
|
+ || fallbackPriority == FontFallbackPriority::Math |
+ || fallbackPriority == FontFallbackPriority::EmojiText |
+ || fallbackPriority == FontFallbackPriority::EmojiEmoji; |
+}; |
+ |
+} |