зеркало из https://github.com/mozilla/gecko-dev.git
114169 - Use hasAttribute (which will be optimized even further soon) to avoid excessive string copying. r=ben sr=hewitt
113582 - put global xbl widgets on a diet. r=ben sr=hewitt
This commit is contained in:
Родитель
d6e67d2247
Коммит
08b3e77648
|
@ -109,10 +109,13 @@
|
||||||
|
|
||||||
<property name="deferAttached">
|
<property name="deferAttached">
|
||||||
<getter>
|
<getter>
|
||||||
return this.getAttribute("deferattached");
|
return (this.hasAttribute("deferattached") ? "true" : "false");
|
||||||
</getter>
|
</getter>
|
||||||
<setter>
|
<setter>
|
||||||
this.setAttribute("deferattached", val);
|
if (val)
|
||||||
|
this.setAttribute("deferattached", "true");
|
||||||
|
else
|
||||||
|
this.removeAttribute("deferattached");
|
||||||
return val;
|
return val;
|
||||||
</setter>
|
</setter>
|
||||||
</property>
|
</property>
|
||||||
|
@ -221,10 +224,13 @@
|
||||||
<implementation>
|
<implementation>
|
||||||
<property name="collapsed">
|
<property name="collapsed">
|
||||||
<getter>
|
<getter>
|
||||||
return this.getAttribute("moz_grippy_collapsed");
|
return this.hasAttribute("moz_grippy_collapsed");
|
||||||
</getter>
|
</getter>
|
||||||
<setter>
|
<setter>
|
||||||
this.setAttribute("moz_grippy_collapsed", val);
|
if (val)
|
||||||
|
this.setAttribute("moz_grippy_collapsed", "true");
|
||||||
|
else
|
||||||
|
this.removeAttribute("moz_grippy_collapsed");
|
||||||
return val;
|
return val;
|
||||||
</setter>
|
</setter>
|
||||||
</property>
|
</property>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче