зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
c4cb1dfd38
Коммит
c35a0ff478
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче