From 7c7a4b28738de4ed7831d266a5684f59fe02ebf1 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Wed, 17 May 2006 02:33:48 +0000 Subject: [PATCH] - Implement the :checked CSS pseudoclass which maps to the "selected" property on option elements. - Eliminate the _moz-option-selected attribute; move the actual selected state into the option content node. - Change all users of _moz-option-selected to use :checked. - Add a third parameter to nsIDocument[Observer]::ContentStatesChanged to indicate which pseudoclass changed, this is used for optimizing handling of :checked state changes. Bug 128947, r=dbaron, sr=jst, a=asa. --- layout/inspector/src/inDOMView.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/inspector/src/inDOMView.h b/layout/inspector/src/inDOMView.h index 6cebaf7337bd..559685739506 100644 --- a/layout/inspector/src/inDOMView.h +++ b/layout/inspector/src/inDOMView.h @@ -91,7 +91,8 @@ public: nsISupports* aSubContent) { return NS_OK; } NS_IMETHOD ContentStatesChanged(nsIDocument* aDocument, nsIContent* aContent1, - nsIContent* aContent2) { return NS_OK; } + nsIContent* aContent2, + nsIAtom* aChangedPseudoClass) { return NS_OK; } NS_IMETHOD BeginUpdate(nsIDocument *aDocument) { return NS_OK; } NS_IMETHOD EndUpdate(nsIDocument *aDocument) { return NS_OK; } NS_IMETHOD BeginLoad(nsIDocument *aDocument) { return NS_OK; }