From 48511a3494bacc42cd1a116fd13882b548aa22a6 Mon Sep 17 00:00:00 2001 From: "attinasi%netscape.com" Date: Wed, 7 Jun 2000 23:07:57 +0000 Subject: [PATCH] Fixed problem where anchors with no HREF were being styled like links in composer. b=31594 r=kmcclusk --- content/html/style/src/nsCSSStyleSheet.cpp | 3 +-- layout/html/style/src/nsCSSStyleSheet.cpp | 3 +-- layout/style/nsCSSStyleSheet.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/content/html/style/src/nsCSSStyleSheet.cpp b/content/html/style/src/nsCSSStyleSheet.cpp index 13504323a1f2..e1e75f275017 100644 --- a/content/html/style/src/nsCSSStyleSheet.cpp +++ b/content/html/style/src/nsCSSStyleSheet.cpp @@ -3113,8 +3113,7 @@ static PRBool SelectorMatches(nsIPresContext* aPresContext, // Now 'href' will contain a canonical URI that we can // look up in global history. - - if (aTestState) { + if ((PR_FALSE != result) && (aTestState)) { if (! linkHandler) { aPresContext->GetLinkHandler(&linkHandler); if (linkHandler) { diff --git a/layout/html/style/src/nsCSSStyleSheet.cpp b/layout/html/style/src/nsCSSStyleSheet.cpp index 13504323a1f2..e1e75f275017 100644 --- a/layout/html/style/src/nsCSSStyleSheet.cpp +++ b/layout/html/style/src/nsCSSStyleSheet.cpp @@ -3113,8 +3113,7 @@ static PRBool SelectorMatches(nsIPresContext* aPresContext, // Now 'href' will contain a canonical URI that we can // look up in global history. - - if (aTestState) { + if ((PR_FALSE != result) && (aTestState)) { if (! linkHandler) { aPresContext->GetLinkHandler(&linkHandler); if (linkHandler) { diff --git a/layout/style/nsCSSStyleSheet.cpp b/layout/style/nsCSSStyleSheet.cpp index 13504323a1f2..e1e75f275017 100644 --- a/layout/style/nsCSSStyleSheet.cpp +++ b/layout/style/nsCSSStyleSheet.cpp @@ -3113,8 +3113,7 @@ static PRBool SelectorMatches(nsIPresContext* aPresContext, // Now 'href' will contain a canonical URI that we can // look up in global history. - - if (aTestState) { + if ((PR_FALSE != result) && (aTestState)) { if (! linkHandler) { aPresContext->GetLinkHandler(&linkHandler); if (linkHandler) {