From c35a0ff478861874bc2c1eae6cf8619a2485e2d0 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Tue, 30 Oct 2001 06:36:06 +0000 Subject: [PATCH] Avoid attempting to do CSS selector matching on text nodes, comments, or processing instructions by adding a 'NonElement' style resolution method that assumes that no rules match (temporarily, until we don't have style contexts for text nodes) and by cleaning code that was using textPseudo (the usual case) or passing the text node directly (only a few unusual cases). b=56117 r=hyatt sr=attinasi --- layout/base/src/nsPresContext.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/base/src/nsPresContext.h b/layout/base/src/nsPresContext.h index 4985943626d..59b295145e3 100644 --- a/layout/base/src/nsPresContext.h +++ b/layout/base/src/nsPresContext.h @@ -83,6 +83,9 @@ public: nsIStyleContext* aParentContext, PRBool aForceUnique, nsIStyleContext** aResult); + NS_IMETHOD ResolveStyleContextForNonElement(nsIStyleContext* aParentContext, + PRBool aForceUnique, + nsIStyleContext** aResult); NS_IMETHOD ResolvePseudoStyleContextFor(nsIContent* aParentContent, nsIAtom* aPseudoTag, nsIStyleContext* aParentContext,