Skip to content

Commit

Permalink
Bug 1331213: Don't make the pres context pointers opaque. r=heycam
Browse files Browse the repository at this point in the history
I don't know why they were that way, but it makes no sense and tests still pass.

MozReview-Commit-ID: HAIuQhqlTtF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
  • Loading branch information
emilio committed Jan 17, 2017
1 parent 10a1b88 commit 646258e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion components/style/build_gecko.rs
Expand Up @@ -415,7 +415,6 @@ mod bindings {
// for clang.
"nsPIDOMWindow", // <- Takes the vtable from a template parameter, and we can't
// generate it conditionally.
"RawGeckoPresContext", // Just passing it through.
"JS::Rooted",
"mozilla::Maybe",
"gfxSize", // <- union { struct { T width; T height; }; T components[2] };
Expand Down
10 changes: 4 additions & 6 deletions components/style/gecko_bindings/structs_debug.rs
Expand Up @@ -12140,7 +12140,7 @@ pub mod root {
pub type RawGeckoNode = root::nsINode;
pub type RawGeckoElement = root::mozilla::dom::Element;
pub type RawGeckoDocument = root::nsIDocument;
pub type RawGeckoPresContext = [u64; 162usize];
pub type RawGeckoPresContext = root::nsPresContext;
pub type RawGeckoAnimationValueList =
root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>;
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
Expand All @@ -12149,11 +12149,9 @@ pub mod root {
pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
pub type RawGeckoPresContextOwned = *mut [u64; 162usize];
pub type RawGeckoPresContextBorrowed = *const [u64; 162usize];
pub type RawGeckoAnimationValueListBorrowedMut =
*mut root::RawGeckoAnimationValueList;
pub type RawGeckoPresContextBorrowedMut = *mut [u64; 162usize];
pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext;
pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext;
pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsCSSTokenSerializationType {
Expand Down
7 changes: 4 additions & 3 deletions components/style/gecko_bindings/structs_release.rs
Expand Up @@ -12067,20 +12067,21 @@ pub mod root {
pub type RawGeckoNode = root::nsINode;
pub type RawGeckoElement = root::mozilla::dom::Element;
pub type RawGeckoDocument = root::nsIDocument;
pub type RawGeckoPresContext = [u64; 158usize];
pub type RawGeckoAnimationValueList =
root::nsTArray<root::mozilla::PropertyStyleAnimationValuePair>;
pub type RawGeckoPresContext = root::nsPresContext;
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement;
pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument;
pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument;
pub type RawGeckoPresContextOwned = *mut [u64; 158usize];
pub type RawGeckoPresContextBorrowed = *const [u64; 158usize];
pub type RawGeckoAnimationValueListBorrowedMut =
*mut root::RawGeckoAnimationValueList;
pub type RawGeckoPresContextBorrowedMut = *mut [u64; 158usize];
pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext;
pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext;
pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext;
#[repr(u32)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum nsCSSTokenSerializationType {
Expand Down

0 comments on commit 646258e

Please sign in to comment.