Bug 637975 - Make XUL textboxes use the normal input textbox spellchecking binding, instead of directly managing it from XBL code, so that spellchecking is less fragile on those textboxes; r=roc

This commit is contained in:
Ehsan Akhgari 2011-03-16 15:34:30 -04:00
Родитель 7026ee8af0
Коммит f2493a67e9
1 изменённых файлов: 3 добавлений и 16 удалений

Просмотреть файл

@ -21,7 +21,7 @@
<children/>
<xul:hbox class="textbox-input-box" flex="1" xbl:inherits="context,spellcheck">
<html:input class="textbox-input" flex="1" anonid="input"
xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,noinitialfocus,mozactionhint"/>
xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,noinitialfocus,mozactionhint,spellcheck"/>
</xul:hbox>
</content>
@ -308,7 +308,7 @@
<children/>
<xul:hbox class="textbox-input-box" flex="1" xbl:inherits="context,spellcheck" align="center">
<html:input class="textbox-input" flex="1" anonid="input" mozactionhint="search"
xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,mozactionhint"/>
xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,mozactionhint,spellcheck"/>
<xul:deck class="textbox-search-icons" anonid="search-icons">
<xul:image class="textbox-search-icon"
onclick="document.getBindingParent(this)._iconClick();"
@ -435,7 +435,7 @@
<content>
<xul:hbox class="textbox-input-box" flex="1" xbl:inherits="context,spellcheck">
<html:textarea class="textbox-textarea" flex="1" anonid="input"
xbl:inherits="onfocus,onblur,xbl:text=value,disabled,tabindex,rows,cols,readonly,wrap,placeholder,mozactionhint"><children/></html:textarea>
xbl:inherits="onfocus,onblur,xbl:text=value,disabled,tabindex,rows,cols,readonly,wrap,placeholder,mozactionhint,spellcheck"><children/></html:textarea>
</xul:hbox>
</content>
</binding>
@ -570,19 +570,6 @@
]]></getter>
</property>
<constructor>
<![CDATA[
// can't initialize the spell checker in the constructor as not
// everything is initialized and the editor will fail to create the
// inline spell checker object
var _delayedInitSpellCheck = function delayedInitSpellCheck(self) {
var spellui = self.spellCheckerUI;
if (spellui)
spellui.enabled = true;
}
setTimeout(_delayedInitSpellCheck, 0, this)
]]>
</constructor>
<method name="_doPopupItemEnablingSpell">
<parameter name="popupNode"/>
<body>