mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Auto merge of #18241 - canaltinova:font-feature-values-lookup, r=emilio,xidorn
stylo: Implement font feature values lookup This PR reviewed by emilio and xidorn on bugzilla. That is backed out because of Windows build problems. Fixed and landing it again. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes [Bug 1355721](https://bugzilla.mozilla.org/show_bug.cgi?id=1355721) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18241) <!-- Reviewable:end -->
This commit is contained in:
commit
dc8f26432f
8 changed files with 1183 additions and 718 deletions
|
@ -66,6 +66,7 @@ use gecko_bindings::structs::StyleBasicShape;
|
|||
use gecko_bindings::structs::StyleBasicShapeType;
|
||||
use gecko_bindings::structs::StyleShapeSource;
|
||||
use gecko_bindings::structs::StyleTransition;
|
||||
use gecko_bindings::structs::gfxFontFeatureValueSet;
|
||||
use gecko_bindings::structs::nsBorderColors;
|
||||
use gecko_bindings::structs::nsCSSCounterStyleRule;
|
||||
use gecko_bindings::structs::nsCSSFontFaceRule;
|
||||
|
@ -910,6 +911,22 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_nsFont_Destroy(dst: *mut nsFont);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AppendFeatureValueHashEntry(value_set:
|
||||
*mut gfxFontFeatureValueSet,
|
||||
family: *mut nsIAtom,
|
||||
alternate: u32,
|
||||
name: *mut nsIAtom)
|
||||
-> *mut nsTArray<::std::os::raw::c_uint>;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_nsFont_SetFontFeatureValuesLookup(font: *mut nsFont,
|
||||
pres_context:
|
||||
*const RawGeckoPresContext);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_nsFont_ResetFontFeatureValuesLookup(font: *mut nsFont);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_ClearAlternateValues(font: *mut nsFont, length: usize);
|
||||
}
|
||||
|
@ -2034,6 +2051,13 @@ extern "C" {
|
|||
name: *mut nsIAtom)
|
||||
-> *mut nsCSSCounterStyleRule;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_BuildFontFeatureValueSet(set:
|
||||
RawServoStyleSetBorrowed,
|
||||
list:
|
||||
*mut gfxFontFeatureValueSet)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_ResolveForDeclarations(set:
|
||||
RawServoStyleSetBorrowed,
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue