diff --git a/content/html/style/src/nsCSSValue.h b/content/html/style/src/nsCSSValue.h
index 08c0b5785373..f94075596b13 100644
--- a/content/html/style/src/nsCSSValue.h
+++ b/content/html/style/src/nsCSSValue.h
@@ -310,7 +310,7 @@ public:
MOZ_DECL_CTOR_COUNTER(nsCSSValue::Image)
- struct nsCSSValue::Image : public nsCSSValue::URL {
+ struct Image : public URL {
// Not making the constructor and destructor inline because that would
// force us to include imgIRequest.h, which leads to REQUIRES hell, since
// this header is included all over.
diff --git a/layout/style/nsCSSValue.h b/layout/style/nsCSSValue.h
index 08c0b5785373..f94075596b13 100644
--- a/layout/style/nsCSSValue.h
+++ b/layout/style/nsCSSValue.h
@@ -310,7 +310,7 @@ public:
MOZ_DECL_CTOR_COUNTER(nsCSSValue::Image)
- struct nsCSSValue::Image : public nsCSSValue::URL {
+ struct Image : public URL {
// Not making the constructor and destructor inline because that would
// force us to include imgIRequest.h, which leads to REQUIRES hell, since
// this header is included all over.