From 5fc7e904bc3f92f18af06fb1cbf918d74b398f0f Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Tue, 22 Jun 1999 19:24:50 +0000 Subject: [PATCH] removed unnecessary null tests (tested at call site for performance) git-svn-id: svn://10.0.0.236/trunk@36308 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/style/src/nsCSSStyleSheet.cpp | 2 -- mozilla/content/html/style/src/nsHTMLCSSStyleSheet.cpp | 2 -- mozilla/layout/html/style/src/nsCSSStyleSheet.cpp | 2 -- mozilla/layout/html/style/src/nsHTMLCSSStyleSheet.cpp | 2 -- mozilla/layout/style/nsCSSStyleSheet.cpp | 2 -- mozilla/layout/style/nsHTMLCSSStyleSheet.cpp | 2 -- 6 files changed, 12 deletions(-) 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