Backed out changeset a372a90a9475 (bug 1119126) for gaia-js-integration-8 failures

This commit is contained in:
Carsten "Tomcat" Book 2015-02-09 15:33:24 +01:00
Родитель 1f5fc51bf7
Коммит eddc094885
2 изменённых файлов: 0 добавлений и 15 удалений

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

@ -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;
}