mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 950785 - Remove unused selectWord and selectWordContext. r=margaret
This commit is contained in:
parent
f3715768ed
commit
005b693e38
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user