Bug 672709 - Update the intrinsic state for elements in designMode documents correctly; r=bzbarsky

This patch fixes two things:
 * The intrinsic state on elements inserted in a contenteditable section when the
   document is in designMode (the nsGenericElement::UpdateEditableState change).
 * The intrinsic state on elements existing in the document when the document first
   enters designMode (the nsHTMLDocument::EditingStateChanged change).

The reftest included tests both cases.
This commit is contained in:
Ehsan Akhgari
2011-07-20 15:58:25 -04:00
parent 0a5af4f801
commit cb2c4131e0
5 changed files with 48 additions and 17 deletions

View File

@@ -2946,7 +2946,7 @@ nsHTMLDocument::EditingStateChanged()
if (updateState) {
nsAutoScriptBlocker scriptBlocker;
NotifyEditableStateChange(this, this, !designMode);
NotifyEditableStateChange(this, this, designMode);
}
// Resync the editor's spellcheck state.