(From update of attachment 441434) A few comments: >+ /* Now that selection is done, move the focus to the selection. */ For single-line comments, please use // comment style.
>+ nsIDOMElement* aElement; >+ fm->MoveFocus(window, nsnull, nsIFocusManager::MOVEFOCUS_CARET, 0, &aElement);
This is a local variable, not a parameter passed into this function. Therefore, it should not be aElement.
Requesting review from Surkov, but leaving review request for Neil Deakin intact for now for correct focusManager usage.
(From update of attachment 441434)
A few comments:
>+ /* Now that selection is done, move the focus to the selection. */
For single-line comments, please use // comment style.
>+ nsIDOMElement* aElement; window, nsnull, nsIFocusManager ::MOVEFOCUS_ CARET, 0, &aElement);
>+ fm->MoveFocus(
This is a local variable, not a parameter passed into this function. Therefore, it should not be aElement.
Requesting review from Surkov, but leaving review request for Neil Deakin intact for now for correct focusManager usage.