Hook up the :checked CSS pseudoclass for input elements and use that instead of the _moz-input-checked attribute. Bug 128947, r=jkeiser, sr=ben, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@116476 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
#include "nsIDOMHTMLAnchorElement.h"
|
||||
#include "nsIDOMHTMLLinkElement.h"
|
||||
#include "nsIDOMHTMLAreaElement.h"
|
||||
#include "nsIDOMHTMLInputElement.h"
|
||||
#include "nsIDOMHTMLOptionElement.h"
|
||||
#include "nsIDOMStyleSheetList.h"
|
||||
#include "nsIDOMCSSStyleSheet.h"
|
||||
@@ -3312,6 +3313,9 @@ RuleProcessorData::RuleProcessorData(nsIPresContext* aPresContext,
|
||||
if (mContentTag == nsHTMLAtoms::option) {
|
||||
nsCOMPtr<nsIDOMHTMLOptionElement> optEl = do_QueryInterface(mContent);
|
||||
optEl->GetSelected(&isChecked);
|
||||
} else if (mContentTag == nsHTMLAtoms::input) {
|
||||
nsCOMPtr<nsIDOMHTMLInputElement> inputEl = do_QueryInterface(mContent);
|
||||
inputEl->GetChecked(&isChecked);
|
||||
}
|
||||
|
||||
mIsChecked = isChecked;
|
||||
|
||||
Reference in New Issue
Block a user