Backing out the patch for bug 386729 again to see if it fixes the rlk increase

This commit is contained in:
martijn.martijn%gmail.com 2007-07-23 22:09:25 +00:00
Родитель 36ac7f4ffb
Коммит f18d2c6841
1 изменённых файлов: 4 добавлений и 7 удалений

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

@ -559,10 +559,7 @@ nsContextMenu.prototype = {
.getInterface(Ci.nsIWebNavigation) .getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIInterfaceRequestor) .QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIEditingSession); .getInterface(Ci.nsIEditingSession);
if (editingSession.windowIsEditable(win) && isEditable = editingSession.windowIsEditable(win);
this.getComputedStyle(this.target, "-moz-user-modify") == "read-write") {
isEditable = true;
}
} }
catch(ex) { catch(ex) {
// If someone built with composer disabled, we can't get an editing session. // If someone built with composer disabled, we can't get an editing session.
@ -590,9 +587,9 @@ nsContextMenu.prototype = {
// Returns the computed style attribute for the given element. // Returns the computed style attribute for the given element.
getComputedStyle: function(aElem, aProp) { getComputedStyle: function(aElem, aProp) {
return aElem.ownerDocument return elem.ownerDocument
.defaultView .defaultView
.getComputedStyle(aElem, "").getPropertyValue(aProp); .getComputedStyle(aElem, "").getPropertyValue(prop);
}, },
// Returns a "url"-type computed style attribute value, with the url() stripped. // Returns a "url"-type computed style attribute value, with the url() stripped.