Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' isn't supported by compiler, r=bzbarsky PRE_MOBILE_MERGE PRE_MOBILE_MERGE_20110406
authorCraig Topper <craig.topper@gmail.com>
Wed, 06 Apr 2011 00:11:42 -0700
changeset 64690 b70744835d94e54eec97b8fd186c96da5708a506
parent 64689 ec38f9d0e7c23adff8c6f399a7f71f49d2f3443e
child 64691 65ad9cb63ca29d4786dec78e0b242bf3af25c3c3
push idunknown
push userunknown
push dateunknown
reviewersbzbarsky
bugs577976
milestone2.2a1pre
Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' isn't supported by compiler, r=bzbarsky
layout/style/nsCSSStyleSheet.cpp
--- a/layout/style/nsCSSStyleSheet.cpp
+++ b/layout/style/nsCSSStyleSheet.cpp
@@ -1269,17 +1269,17 @@ nsCSSStyleSheet::FindOwningWindowID() co
       nsIDocument* doc = node->GetOwnerDoc();
       if (doc) {
         windowID = doc->OuterWindowID();
       }
     }
   }
 
   if (windowID == 0 && mOwnerRule) {
-    nsCOMPtr<nsIStyleSheet> sheet = mOwnerRule->GetStyleSheet();
+    nsCOMPtr<nsIStyleSheet> sheet = static_cast<css::Rule*>(mOwnerRule)->GetStyleSheet();
     if (sheet) {
       nsRefPtr<nsCSSStyleSheet> cssSheet = do_QueryObject(sheet);
       if (cssSheet) {
         windowID = cssSheet->FindOwningWindowID();
       }
     }
   }