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:
@@ -2946,7 +2946,7 @@ nsHTMLDocument::EditingStateChanged()
|
||||
|
||||
if (updateState) {
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
NotifyEditableStateChange(this, this, !designMode);
|
||||
NotifyEditableStateChange(this, this, designMode);
|
||||
}
|
||||
|
||||
// Resync the editor's spellcheck state.
|
||||
|
||||
Reference in New Issue
Block a user