diff --git a/content/html/content/src/nsHTMLSelectElement.cpp b/content/html/content/src/nsHTMLSelectElement.cpp
index dc728361f103..d1d123d1b9e0 100644
--- a/content/html/content/src/nsHTMLSelectElement.cpp
+++ b/content/html/content/src/nsHTMLSelectElement.cpp
@@ -273,13 +273,15 @@ protected:
void FindSelectedIndex(PRInt32 aStartIndex);
/**
* Select some option if possible (generally the first non-disabled option).
+ * @return true if something was selected, false otherwise
*/
- void SelectSomething();
+ PRBool SelectSomething();
/**
* Call SelectSomething(), but only if nothing is selected
* @see SelectSomething()
+ * @return true if something was selected, false otherwise
*/
- void CheckSelectSomething();
+ PRBool CheckSelectSomething();
/**
* Called to trigger notifications of frames and fixing selected index
*
@@ -781,7 +783,8 @@ nsresult
nsHTMLSelectElement::RemoveOptionsFromListRecurse(nsIContent* aOptions,
PRInt32 aRemoveIndex,
PRInt32* aNumRemoved,
- PRInt32 aDepth) {
+ PRInt32 aDepth)
+{
// We *assume* here that someone's brain has not gone horribly
// wrong by putting