| Index: third_party/WebKit/Source/platform/fonts/Character.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/Character.cpp b/third_party/WebKit/Source/platform/fonts/Character.cpp
|
| index 5ea155b1d48daef3e9c9c8e70d4b0fd31b8974fe..88b05db5424edf83a29a3bfcc9b95ba90ac86d08 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/Character.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/Character.cpp
|
| @@ -34,6 +34,7 @@
|
| #include "wtf/StdLibExtras.h"
|
| #include "wtf/text/StringBuilder.h"
|
| #include <algorithm>
|
| +#include <unicode/uscript.h>
|
|
|
| using namespace WTF;
|
| using namespace Unicode;
|
| @@ -512,4 +513,11 @@ String Character::normalizeSpaces(const UChar* characters, unsigned length)
|
| return normalizeSpacesInternal(characters, length);
|
| }
|
|
|
| +bool Character::isCommonOrInheritedScript(UChar32 character)
|
| +{
|
| + UErrorCode status = U_ZERO_ERROR;
|
| + UScriptCode script = uscript_getScript(character, &status);
|
| + return U_SUCCESS(status) && (script == USCRIPT_COMMON || script == USCRIPT_INHERITED);
|
| +}
|
| +
|
| } // namespace blink
|
|
|