"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "accessible/base/SelectionManager.cpp" between
seamonkey-2.53.8.source.tar.xz and seamonkey-2.53.8.1.source.tar.xz

About: SeaMonkey is an all-in-one internet application suite. Using much of the Mozilla source code it contains a Web-browser, email & newsgroup and feed client, IRC chat, and an included HTML editor.

SelectionManager.cpp  (seamonkey-2.53.8.source.tar.xz):SelectionManager.cpp  (seamonkey-2.53.8.1.source.tar.xz)
skipping to change at line 123 skipping to change at line 123
const nsFrameSelection* frameSel = aPresShell->ConstFrameSelection(); const nsFrameSelection* frameSel = aPresShell->ConstFrameSelection();
// Remove 'this' registered as selection listener for the normal selection. // Remove 'this' registered as selection listener for the normal selection.
Selection* normalSel = frameSel->GetSelection(SelectionType::eNormal); Selection* normalSel = frameSel->GetSelection(SelectionType::eNormal);
normalSel->RemoveSelectionListener(this); normalSel->RemoveSelectionListener(this);
// Remove 'this' registered as selection listener for the spellcheck // Remove 'this' registered as selection listener for the spellcheck
// selection. // selection.
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck); Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->RemoveSelectionListener(this); spellSel->RemoveSelectionListener(this);
// Remove 'this' registered as selection listener for the normal selection.
if (normalSel) {
if (normalSel->GetPresShell() == aPresShell) {
normalSel->AsSelection()->RemoveSelectionListener(this);
mCurrCtrlNormalSel = nullptr;
}
}
// Remove 'this' registered as selection listener for the spellcheck
// selection.
if (spellSel) {
if (spellSel->GetPresShell() == aPresShell) {
spellSel->AsSelection()->RemoveSelectionListener(this);
mCurrCtrlSpellSel = nullptr;
}
}
} }
void void
SelectionManager::ProcessTextSelChangeEvent(AccEvent* aEvent) SelectionManager::ProcessTextSelChangeEvent(AccEvent* aEvent)
{ {
// Fire selection change event if it's not pure caret-move selection change, // Fire selection change event if it's not pure caret-move selection change,
// i.e. the accessible has or had not collapsed selection. // i.e. the accessible has or had not collapsed selection.
AccTextSelChangeEvent* event = downcast_accEvent(aEvent); AccTextSelChangeEvent* event = downcast_accEvent(aEvent);
if (!event->IsCaretMoveOnly()) if (!event->IsCaretMoveOnly())
nsEventShell::FireEvent(aEvent); nsEventShell::FireEvent(aEvent);
 End of changes. 1 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)