Bug 1322094: Fixes for Stylo's binding generation in master bindgen. r?heycam draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 05 Dec 2016 03:39:24 +0100
changeset 447463 9f5f909c6599a12bdc02e0f47266881187949d2b
parent 447392 12637ae351d64ecbf6b74cdbf26d7eb24ac0f659
child 539035 b43cdcb8eb9bf56408594bfdc930461bd15a1650
push id38062
push userbmo:ecoal95@gmail.com
push dateMon, 05 Dec 2016 07:41:25 +0000
reviewersheycam
bugs1322094
milestone53.0a1
Bug 1322094: Fixes for Stylo's binding generation in master bindgen. r?heycam MozReview-Commit-ID: FSp9XfwX3FJ
dom/base/nsIDocument.h
layout/style/nsStyleStruct.h
--- a/dom/base/nsIDocument.h
+++ b/dom/base/nsIDocument.h
@@ -3023,28 +3023,28 @@ protected:
   RefPtr<mozilla::dom::FontFaceSet> mFontFaceSet;
 
   // Compatibility mode
   nsCompatibility mCompatMode;
 
   // Our readyState
   ReadyState mReadyState;
 
+  // Whether this document has (or will have, once we have a pres shell) a
+  // Gecko- or Servo-backed style system.
+  mozilla::StyleBackendType mStyleBackendType;
+
 #ifdef MOZILLA_INTERNAL_API
   // Our visibility state
   mozilla::dom::VisibilityState mVisibilityState;
   static_assert(sizeof(mozilla::dom::VisibilityState) == sizeof(uint32_t), "Error size of mVisibilityState and mDummy");
 #else
   uint32_t mDummy;
 #endif
 
-  // Whether this document has (or will have, once we have a pres shell) a
-  // Gecko- or Servo-backed style system.
-  mozilla::StyleBackendType mStyleBackendType;
-
   // True if BIDI is enabled.
   bool mBidiEnabled : 1;
   // True if a MathML element has ever been owned by this document.
   bool mMathMLEnabled : 1;
 
   // True if this document is the initial document for a window.  This should
   // basically be true only for documents that exist in newly-opened windows or
   // documents created to satisfy a GetDocument() on a window when there's no
--- a/layout/style/nsStyleStruct.h
+++ b/layout/style/nsStyleStruct.h
@@ -3953,17 +3953,17 @@ struct nsSize_Simple {
   nscoord width, height;
 };
 
 STATIC_ASSERT_TYPE_LAYOUTS_MATCH(nsSize, nsSize_Simple);
 STATIC_ASSERT_FIELD_OFFSET_MATCHES(nsSize, nsSize_Simple, width);
 STATIC_ASSERT_FIELD_OFFSET_MATCHES(nsSize, nsSize_Simple, height);
 
 /**
- * <div rustbindgen="true" replaces="UniquePtr">
+ * <div rustbindgen="true" replaces="mozilla_UniquePtr">
  *
  * TODO(Emilio): This is a workaround and we should be able to get rid of this
  * one.
  */
 template<typename T, typename Deleter = mozilla::DefaultDelete<T>>
 struct UniquePtr_Simple {
   T* mPtr;
 };