Bug 1378712 - Remove all trailing whitespaces r=Ehsan

MozReview-Commit-ID: Kdz2xtTF9EG
This commit is contained in:
Sylvestre Ledru
2017-07-06 14:00:35 +02:00
parent 529c5d5237
commit 9d4a84d778
1222 changed files with 16800 additions and 16800 deletions

View File

@@ -12,7 +12,7 @@
#include "nsCaret.h"
#include "nsEditorCID.h"
#include "nsLayoutCID.h"
#include "nsITextControlFrame.h"
#include "nsITextControlFrame.h"
#include "nsIDOMCharacterData.h"
#include "nsIDOMDocument.h"
#include "nsContentCreatorFunctions.h"
@@ -385,7 +385,7 @@ nsTextInputSelectionImpl::SetDisplaySelection(int16_t aToggle)
{
if (!mFrameSelection)
return NS_ERROR_NULL_POINTER;
mFrameSelection->SetDisplaySelection(aToggle);
return NS_OK;
}
@@ -410,7 +410,7 @@ NS_IMETHODIMP
nsTextInputSelectionImpl::GetSelectionFlags(int16_t *aOutEnable)
{
*aOutEnable = nsISelectionDisplay::DISPLAY_TEXT;
return NS_OK;
return NS_OK;
}
NS_IMETHODIMP
@@ -438,8 +438,8 @@ nsTextInputSelectionImpl::ScrollSelectionIntoView(
int16_t aRegion,
int16_t aFlags)
{
if (!mFrameSelection)
return NS_ERROR_FAILURE;
if (!mFrameSelection)
return NS_ERROR_FAILURE;
RefPtr<nsFrameSelection> frameSelection = mFrameSelection;
return frameSelection->ScrollSelectionIntoView(
@@ -800,7 +800,7 @@ class nsTextInputListener : public nsISelectionListener,
{
public:
/** the default constructor
*/
*/
explicit nsTextInputListener(nsITextControlElement* aTxtCtrlElement);
/** SetEditor gives an address to the editor that will be accessed
@@ -873,7 +873,7 @@ nsTextInputListener::nsTextInputListener(nsITextControlElement* aTxtCtrlElement)
{
}
nsTextInputListener::~nsTextInputListener()
nsTextInputListener::~nsTextInputListener()
{
}
@@ -897,29 +897,29 @@ nsTextInputListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsISelection*
// Fire the select event
// The specs don't exactly say when we should fire the select event.
// IE: Whenever you add/remove a character to/from the selection. Also
// each time for select all. Also if you get to the end of the text
// field you will get new event for each keypress or a continuous
// stream of events if you use the mouse. IE will fire select event
// each time for select all. Also if you get to the end of the text
// field you will get new event for each keypress or a continuous
// stream of events if you use the mouse. IE will fire select event
// when the selection collapses to nothing if you are holding down
// the shift or mouse button.
// Mozilla: If we have non-empty selection we will fire a new event for each
// keypress (or mouseup) if the selection changed. Mozilla will also
// create the event each time select all is called, even if everything
// was previously selected, becase technically select all will first collapse
// and then extend. Mozilla will never create an event if the selection
// and then extend. Mozilla will never create an event if the selection
// collapses to nothing.
if (!collapsed && (aReason & (nsISelectionListener::MOUSEUP_REASON |
if (!collapsed && (aReason & (nsISelectionListener::MOUSEUP_REASON |
nsISelectionListener::KEYPRESS_REASON |
nsISelectionListener::SELECTALL_REASON)))
{
nsIContent* content = mFrame->GetContent();
if (content)
if (content)
{
nsCOMPtr<nsIDocument> doc = content->GetComposedDoc();
if (doc)
if (doc)
{
nsCOMPtr<nsIPresShell> presShell = doc->GetShell();
if (presShell)
if (presShell)
{
nsEventStatus status = nsEventStatus_eIgnore;
WidgetEvent event(true, eFormSelect);
@@ -1109,7 +1109,7 @@ nsTextInputListener::UpdateTextInputCommands(const nsAString& commandsToUpdate,
{
nsIContent* content = mFrame->GetContent();
NS_ENSURE_TRUE(content, NS_ERROR_FAILURE);
nsCOMPtr<nsIDocument> doc = content->GetComposedDoc();
NS_ENSURE_TRUE(doc, NS_ERROR_FAILURE);
@@ -1540,7 +1540,7 @@ nsTextEditorState::PrepareEditor(const nsAString *aValue)
// Check if the disabled attribute is set.
// TODO: call IsDisabled() here!
if (content->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled))
if (content->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled))
editorFlags |= nsIPlaintextEditor::eEditorDisabledMask;
// Disable the selection if necessary.