From fc1e4e95ed92cd67591cf3e885bede687e725261 Mon Sep 17 00:00:00 2001 From: KuoE0 Date: Tue, 25 Apr 2017 16:41:21 +0800 Subject: [PATCH] Add a new FFI function `Gecko_GetAppUnitsPerPhysicalInch` to get the physical inch of device context in Gecko. MozReview-Commit-ID: HiLkw5r05OT --- components/style/gecko_bindings/bindings.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 1d5a0909913..36075707b5b 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -1074,6 +1074,10 @@ extern "C" { pub fn Gecko_CSSValue_GetAbsoluteLength(css_value: nsCSSValueBorrowed) -> nscoord; } +extern "C" { + pub fn Gecko_GetAppUnitsPerPhysicalInch(pres_context: RawGeckoPresContextBorrowed) + -> i32; +} extern "C" { pub fn Gecko_CSSValue_GetKeyword(aCSSValue: nsCSSValueBorrowed) -> nsCSSKeyword;