From 8c322b9c1ed91f2a5dd96e6b2d8abb3b155e051e Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Sun, 29 Apr 2018 21:17:26 +1000 Subject: [PATCH] style: Make KTableEntry an independent type. Bug: 1448759 Reviewed-by: heycam MozReview-Commit-ID: oZfJAigThN --- components/style/gecko/media_queries.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/gecko/media_queries.rs b/components/style/gecko/media_queries.rs index e488fdfa00a..7d9724cc6c5 100644 --- a/components/style/gecko/media_queries.rs +++ b/components/style/gecko/media_queries.rs @@ -13,7 +13,7 @@ use euclid::TypedScale; use gecko::values::{convert_nscolor_to_rgba, convert_rgba_to_nscolor}; use gecko_bindings::bindings; use gecko_bindings::structs; -use gecko_bindings::structs::{nsCSSKeyword, nsCSSProps_KTableEntry, nsCSSUnit, nsCSSValue}; +use gecko_bindings::structs::{nsCSSKTableEntry, nsCSSKeyword, nsCSSUnit, nsCSSValue}; use gecko_bindings::structs::{nsMediaFeature, nsMediaFeature_RangeType}; use gecko_bindings::structs::{nsMediaFeature_ValueType, nsPresContext}; use gecko_bindings::structs::RawGeckoPresContextOwned; @@ -479,7 +479,7 @@ where } unsafe fn find_in_table( - mut current_entry: *const nsCSSProps_KTableEntry, + mut current_entry: *const nsCSSKTableEntry, mut f: F, ) -> Option<(nsCSSKeyword, i16)> where @@ -544,7 +544,7 @@ fn parse_feature_value<'i, 't>( bindings::Gecko_LookupCSSKeyword(keyword.as_bytes().as_ptr(), keyword.len() as u32) }; - let first_table_entry: *const nsCSSProps_KTableEntry = + let first_table_entry: *const nsCSSKTableEntry = unsafe { *feature.mData.mKeywordTable.as_ref() }; let value = match unsafe { find_in_table(first_table_entry, |kw, _| kw == keyword) } {