Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backed out changeset a372a90a9475 (bug 1119126) for gaia-js-integrati…
Browse files Browse the repository at this point in the history
…on-8 failures
  • Loading branch information
BavarianTomcat committed Feb 9, 2015
1 parent 5c39c8b commit 9977133
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions dom/browser-element/BrowserElementChildPreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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]);
}
},
Expand Down
12 changes: 0 additions & 12 deletions layout/base/SelectionCarets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,12 +1220,6 @@ SelectionCarets::ScrollPositionChanged()
SelectionState::Updateposition);
}
}
} else {
nsRefPtr<dom::Selection> selection = GetSelection();
if (selection && selection->RangeCount() && selection->IsCollapsed()) {
DispatchSelectionStateChangedEvent(selection,
SelectionState::Updateposition);
}
}
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9977133

Please sign in to comment.