diff --git a/content/html/style/src/nsCSSValue.h b/content/html/style/src/nsCSSValue.h
index 8b56c0cbd97..31151af39c9 100644
--- a/content/html/style/src/nsCSSValue.h
+++ b/content/html/style/src/nsCSSValue.h
@@ -233,7 +233,7 @@ public:
NS_HIDDEN_(nscoord) GetLengthTwips() const;
- void Reset() // sets to null
+ NS_HIDDEN_(void) Reset() // sets to null
{
if ((eCSSUnit_String <= mUnit) && (mUnit <= eCSSUnit_Counters) &&
(nsnull != mValue.mString)) {
diff --git a/layout/style/nsCSSValue.h b/layout/style/nsCSSValue.h
index 8b56c0cbd97..31151af39c9 100644
--- a/layout/style/nsCSSValue.h
+++ b/layout/style/nsCSSValue.h
@@ -233,7 +233,7 @@ public:
NS_HIDDEN_(nscoord) GetLengthTwips() const;
- void Reset() // sets to null
+ NS_HIDDEN_(void) Reset() // sets to null
{
if ((eCSSUnit_String <= mUnit) && (mUnit <= eCSSUnit_Counters) &&
(nsnull != mValue.mString)) {