Skip to content
Browse files

Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' is…

…n't supported by compiler, r=bzbarsky
  • Loading branch information...
1 parent 4d575fe commit 79dd891370c6bcb36b5db7be2992bd4be2cdcd1b Craig Topper committed Apr 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 layout/style/nsCSSStyleSheet.cpp
View
2 layout/style/nsCSSStyleSheet.cpp
@@ -1274,7 +1274,7 @@ nsCSSStyleSheet::FindOwningWindowID() const
}
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) {

0 comments on commit 79dd891

Please sign in to comment.
Something went wrong with that request. Please try again.