diff --git a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp index 1d4756b06e1..6260603f5b9 100644 --- a/mozilla/content/html/style/src/nsCSSStyleSheet.cpp +++ b/mozilla/content/html/style/src/nsCSSStyleSheet.cpp @@ -1646,8 +1646,6 @@ PRInt32 CSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIAtom* presMedium = nsnull; aPresContext->GetMedium(&presMedium); diff --git a/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp b/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp index 38f18b16950..c4d090621e1 100644 --- a/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp +++ b/mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp @@ -425,8 +425,6 @@ PRInt32 HTMLCSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIStyledContent* styledContent; // just get the one and only style rule from the content's STYLE attribute diff --git a/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp b/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp index 1d4756b06e1..6260603f5b9 100644 --- a/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp +++ b/mozilla/layout/html/style/src/nsCSSStyleSheet.cpp @@ -1646,8 +1646,6 @@ PRInt32 CSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIAtom* presMedium = nsnull; aPresContext->GetMedium(&presMedium); diff --git a/mozilla/layout/html/style/src/nsHTMLCSSStyleSheet.cpp b/mozilla/layout/html/style/src/nsHTMLCSSStyleSheet.cpp index 38f18b16950..c4d090621e1 100644 --- a/mozilla/layout/html/style/src/nsHTMLCSSStyleSheet.cpp +++ b/mozilla/layout/html/style/src/nsHTMLCSSStyleSheet.cpp @@ -425,8 +425,6 @@ PRInt32 HTMLCSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIStyledContent* styledContent; // just get the one and only style rule from the content's STYLE attribute diff --git a/mozilla/layout/style/nsCSSStyleSheet.cpp b/mozilla/layout/style/nsCSSStyleSheet.cpp index 1d4756b06e1..6260603f5b9 100644 --- a/mozilla/layout/style/nsCSSStyleSheet.cpp +++ b/mozilla/layout/style/nsCSSStyleSheet.cpp @@ -1646,8 +1646,6 @@ PRInt32 CSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIAtom* presMedium = nsnull; aPresContext->GetMedium(&presMedium); diff --git a/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp b/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp index 38f18b16950..c4d090621e1 100644 --- a/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp +++ b/mozilla/layout/style/nsHTMLCSSStyleSheet.cpp @@ -425,8 +425,6 @@ PRInt32 HTMLCSSStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext, PRInt32 matchCount = 0; - if (!aPresContext || !aContent || !aResults) return matchCount; - nsIStyledContent* styledContent; // just get the one and only style rule from the content's STYLE attribute