Mark PRPackedBool member variable as 1-bit (expecting to add more & conserve memory).
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 11 May 2010 14:01:35 -0700
changeset 1566 cb78dd9fdfbac6edfc5c55869d3817518a7c9b06
parent 1565 666b312593ec40fa36be974dd5108de6314388df
child 1567 3fb6129afcdf0a7f2cc236822a0358cefc09b303
push id1263
push userdholbert@mozilla.com
push dateTue, 11 May 2010 21:01:38 +0000
Mark PRPackedBool member variable as 1-bit (expecting to add more & conserve memory).
svg_images
--- a/svg_images
+++ b/svg_images
@@ -1035,17 +1035,17 @@ new file mode 100644
 +public:
 +  imgContainerSVG();
 +  virtual ~imgContainerSVG();
 +
 +  NS_DECL_ISUPPORTS
 +  NS_DECL_IMGICONTAINER
 +
 +private:
-+  PRPackedBool mError;
++  PRPackedBool mError:1;
 +};
 +
 +#endif // imgContainerSVG_H_
 diff --git a/modules/libpr0n/src/imgRequest.cpp b/modules/libpr0n/src/imgRequest.cpp
 --- a/modules/libpr0n/src/imgRequest.cpp
 +++ b/modules/libpr0n/src/imgRequest.cpp
 @@ -963,16 +963,18 @@ NS_IMETHODIMP imgRequest::OnDataAvailabl
  {