Implement the Servo parser for FontFaceSet Web API.

This commit is contained in:
Boris Chiou 2017-12-05 13:50:50 +08:00
parent 1e29e64000
commit aa52e644fe
2 changed files with 61 additions and 0 deletions

View file

@ -2162,6 +2162,9 @@ extern "C" {
} extern "C" {
# [ link_name = "\u{1}_Servo_ParseFontDescriptor" ]
pub fn Servo_ParseFontDescriptor ( desc_id : nsCSSFontDesc , value : * const nsAString , data : * mut RawGeckoURLExtraData , arg1 : nsCSSValueBorrowedMut , ) -> bool ;
} extern "C" {
# [ link_name = "\u{1}_Servo_ParseFontShorthandForMatching" ]
pub fn Servo_ParseFontShorthandForMatching ( value : * const nsAString , data : * mut RawGeckoURLExtraData , family : * mut RefPtr < SharedFontList > , style : nsCSSValueBorrowedMut , stretch : nsCSSValueBorrowedMut , weight : nsCSSValueBorrowedMut , ) -> bool ;
} extern "C" {
# [ link_name = "\u{1}_Gecko_CreateCSSErrorReporter" ]
pub fn Gecko_CreateCSSErrorReporter ( sheet : * mut ServoStyleSheet , loader : * mut Loader , uri : * mut nsIURI , ) -> * mut ErrorReporter ;