зеркало из https://github.com/mozilla/gecko-dev.git
Bug 950785 - Remove unused selectWord and selectWordContext. r=margaret
This commit is contained in:
Родитель
a4d6c89f3e
Коммит
5b486f5042
|
@ -6230,22 +6230,6 @@ var ClipboardHelper = {
|
|||
}
|
||||
},
|
||||
|
||||
selectWord: function(aElement, aX, aY) {
|
||||
SelectionHandler.startSelection(aElement, {
|
||||
mode: SelectionHandler.SELECT_AT_POINT,
|
||||
x: aX,
|
||||
y: aY
|
||||
});
|
||||
},
|
||||
|
||||
searchWith: function(aElement) {
|
||||
SelectionHandler.searchSelection(aElement);
|
||||
},
|
||||
|
||||
share: function() {
|
||||
SelectionHandler.shareSelection();
|
||||
},
|
||||
|
||||
paste: function(aElement) {
|
||||
if (!aElement || !(aElement instanceof Ci.nsIDOMNSEditableElement))
|
||||
return;
|
||||
|
@ -6284,15 +6268,6 @@ var ClipboardHelper = {
|
|||
}
|
||||
},
|
||||
|
||||
selectWordContext: {
|
||||
matches: function selectWordContextMatches(aElement) {
|
||||
if (NativeWindow.contextmenus.textContext.matches(aElement))
|
||||
return aElement.textLength > 0;
|
||||
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
selectAllContext: {
|
||||
matches: function selectAllContextMatches(aElement, aX, aY) {
|
||||
if (SelectionHandler.isSelectionActive())
|
||||
|
|
Загрузка…
Ссылка в новой задаче