зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset a372a90a9475 (bug 1119126) for gaia-js-integration-8 failures
This commit is contained in:
Родитель
1f5fc51bf7
Коммит
eddc094885
|
@ -638,8 +638,6 @@ BrowserElementChild.prototype = {
|
|||
// We clear selectionStateChangedTarget if selection carets are invisible.
|
||||
if (e.visible && !isCollapsed) {
|
||||
this._selectionStateChangedTarget = e.target;
|
||||
} else if (canPaste && isCollapsed) {
|
||||
this._selectionStateChangedTarget = e.target;
|
||||
} else {
|
||||
this._selectionStateChangedTarget = null;
|
||||
}
|
||||
|
@ -1146,7 +1144,6 @@ BrowserElementChild.prototype = {
|
|||
|
||||
_recvDoCommand: function(data) {
|
||||
if (this._isCommandEnabled(data.json.command)) {
|
||||
this._selectionStateChangedTarget = null;
|
||||
docShell.doCommand(COMMAND_MAP[data.json.command]);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1220,12 +1220,6 @@ SelectionCarets::ScrollPositionChanged()
|
|||
SelectionState::Updateposition);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
nsRefPtr<dom::Selection> selection = GetSelection();
|
||||
if (selection && selection->RangeCount() && selection->IsCollapsed()) {
|
||||
DispatchSelectionStateChangedEvent(selection,
|
||||
SelectionState::Updateposition);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1323,12 +1317,6 @@ SelectionCarets::Reflow(DOMHighResTimeStamp aStart, DOMHighResTimeStamp aEnd)
|
|||
DispatchSelectionStateChangedEvent(GetSelection(),
|
||||
SelectionState::Updateposition);
|
||||
}
|
||||
} else {
|
||||
nsRefPtr<dom::Selection> selection = GetSelection();
|
||||
if (selection && selection->RangeCount() && selection->IsCollapsed()) {
|
||||
DispatchSelectionStateChangedEvent(selection,
|
||||
SelectionState::Updateposition);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче