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 id19387
push userbzbarsky@mozilla.com
push dateWed, 06 Apr 2011 19:53:34 +0000
treeherdermozilla-central@b70744835d94 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs577976
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();
       }
     }
   }