From a34a1d0043943c3c62a776f0490af6c7a12530f0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 6 Apr 2011 00:11:42 -0700 Subject: [PATCH] Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' isn't supported by compiler, r=bzbarsky --- layout/style/nsCSSStyleSheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/style/nsCSSStyleSheet.cpp b/layout/style/nsCSSStyleSheet.cpp index e7e73917f601..728fed38541a 100644 --- a/layout/style/nsCSSStyleSheet.cpp +++ b/layout/style/nsCSSStyleSheet.cpp @@ -1274,7 +1274,7 @@ nsCSSStyleSheet::FindOwningWindowID() const } if (windowID == 0 && mOwnerRule) { - nsCOMPtr sheet = mOwnerRule->GetStyleSheet(); + nsCOMPtr sheet = static_cast(mOwnerRule)->GetStyleSheet(); if (sheet) { nsRefPtr cssSheet = do_QueryObject(sheet); if (cssSheet) {