mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Further changes required by Servo
This commit is contained in:
parent
bcd0b74838
commit
a95a742599
3 changed files with 13 additions and 12 deletions
|
@ -71,6 +71,7 @@ static ENVIRONMENT_VARIABLES: [EnvironmentVariable; 4] = [
|
|||
make_variable!(atom!("safe-area-inset-right"), get_safearea_inset_right),
|
||||
];
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
macro_rules! lnf_int {
|
||||
($id:ident) => {
|
||||
unsafe {
|
||||
|
@ -81,6 +82,14 @@ macro_rules! lnf_int {
|
|||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
macro_rules! lnf_int {
|
||||
($id:ident) => {
|
||||
// TODO: implement this.
|
||||
0
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! lnf_int_variable {
|
||||
($atom:expr, $id:ident, $ctor:ident) => {{
|
||||
fn __eval(_: &Device) -> VariableValue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue