mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Stylo: Bug 1350175 - Support getting line / column number of CSS rules
Fix font_cache_thread test
This commit is contained in:
parent
58253f545b
commit
bc156cfe1c
12 changed files with 151 additions and 56 deletions
|
@ -117,7 +117,9 @@ impl ToNsCssValue for Vec<UnicodeRange> {
|
|||
impl From<FontFaceRuleData> for FontFaceRule {
|
||||
fn from(data: FontFaceRuleData) -> FontFaceRule {
|
||||
let mut result = unsafe {
|
||||
UniqueRefPtr::from_addrefed(bindings::Gecko_CSSFontFaceRule_Create())
|
||||
UniqueRefPtr::from_addrefed(bindings::Gecko_CSSFontFaceRule_Create(
|
||||
data.source_location.line as u32, data.source_location.column as u32
|
||||
))
|
||||
};
|
||||
data.set_descriptors(&mut result.mDecl.mDescriptors);
|
||||
result.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue