Skip to content

Commit

Permalink
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
  • Loading branch information
sylvestre committed Jul 6, 2017
1 parent 19448fe commit 4e9cf83
Show file tree
Hide file tree
Showing 1,222 changed files with 16,799 additions and 16,799 deletions.
10 changes: 5 additions & 5 deletions accessible/atk/AccessibleWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ enum MaiInterfaceType {
MAI_INTERFACE_SELECTION,
MAI_INTERFACE_TABLE,
MAI_INTERFACE_TEXT,
MAI_INTERFACE_DOCUMENT,
MAI_INTERFACE_DOCUMENT,
MAI_INTERFACE_IMAGE, /* 10 */
MAI_INTERFACE_TABLE_CELL
};
Expand Down Expand Up @@ -102,13 +102,13 @@ static GType GetAtkTypeForMai(MaiInterfaceType type)
}

#define NON_USER_EVENT ":system"

// The atk interfaces we can expose without checking what version of ATK we are
// dealing with. At the moment AtkTableCell is the only interface we can't
// always expose.
static const GInterfaceInfo atk_if_infos[] = {
{(GInterfaceInitFunc)componentInterfaceInitCB,
(GInterfaceFinalizeFunc) nullptr, nullptr},
(GInterfaceFinalizeFunc) nullptr, nullptr},
{(GInterfaceInitFunc)actionInterfaceInitCB,
(GInterfaceFinalizeFunc) nullptr, nullptr},
{(GInterfaceInitFunc)valueInterfaceInitCB,
Expand Down Expand Up @@ -328,7 +328,7 @@ AccessibleWrap::GetAtkObject(Accessible* acc)
{
void *atkObjPtr = nullptr;
acc->GetNativeInterface(&atkObjPtr);
return atkObjPtr ? ATK_OBJECT(atkObjPtr) : nullptr;
return atkObjPtr ? ATK_OBJECT(atkObjPtr) : nullptr;
}

/* private */
Expand Down Expand Up @@ -372,7 +372,7 @@ AccessibleWrap::CreateMaiInterfaces(void)
// Table interface.
if (AsTable())
interfacesBits |= 1 << MAI_INTERFACE_TABLE;

if (AsTableCell())
interfacesBits |= 1 << MAI_INTERFACE_TABLE_CELL;

Expand Down
2 changes: 1 addition & 1 deletion accessible/atk/DocAccessibleWrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* For documentation of the accessibility architecture,
/* For documentation of the accessibility architecture,
* see http://lxr.mozilla.org/seamonkey/source/accessible/accessible-docs.html
*/

Expand Down
2 changes: 1 addition & 1 deletion accessible/atk/TextLeafAccessibleWrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace mozilla {
namespace a11y {

typedef class TextLeafAccessible TextLeafAccessibleWrap;

} // namespace a11y
Expand Down
2 changes: 1 addition & 1 deletion accessible/atk/nsMaiInterfaceText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ConvertToAtkTextAttributeSet(nsIPersistentProperties* aAttributes)
static void
ConvertTexttoAsterisks(AccessibleWrap* accWrap, nsAString& aString)
{
// convert each char to "*" when it's "password text"
// convert each char to "*" when it's "password text"
if (accWrap->NativeRole() == roles::PASSWORD_TEXT) {
for (uint32_t i = 0; i < aString.Length(); i++)
aString.Replace(i, 1, NS_LITERAL_STRING("*"));
Expand Down
2 changes: 1 addition & 1 deletion accessible/atk/nsStateMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The following ATK states are not supported:
ATK_STATE_ARMED: No clear use case, used briefly when button is activated
ATK_STATE_HAS_TOOLTIP: No clear use case, no IA2 equivalent
ATK_STATE_ICONIFIED: Mozilla does not have elements which are collapsable into icons
ATK_STATE_TRUNCATED: No clear use case. Indicates that an object's onscreen content is truncated,
ATK_STATE_TRUNCATED: No clear use case. Indicates that an object's onscreen content is truncated,
e.g. a text value in a spreadsheet cell. No IA2 state.
******************************************************************************/

Expand Down
4 changes: 2 additions & 2 deletions accessible/base/FocusManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ FocusManager::FocusedAccessible() const

nsINode* focusedNode = FocusedDOMNode();
if (focusedNode) {
DocAccessible* doc =
DocAccessible* doc =
GetAccService()->GetDocAccessible(focusedNode->OwnerDoc());
return doc ? doc->GetAccessibleEvenIfNotInMapOrContainer(focusedNode) : nullptr;
}
Expand All @@ -59,7 +59,7 @@ FocusManager::IsFocused(const Accessible* aAccessible) const
// FocusedAccessible() method call. Make sure this issue is fixed in
// bug 638465.
if (focusedNode->OwnerDoc() == aAccessible->GetNode()->OwnerDoc()) {
DocAccessible* doc =
DocAccessible* doc =
GetAccService()->GetDocAccessible(focusedNode->OwnerDoc());
return aAccessible ==
(doc ? doc->GetAccessibleEvenIfNotInMapOrContainer(focusedNode) : nullptr);
Expand Down
8 changes: 4 additions & 4 deletions accessible/base/Role.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ enum Role {
CHART = 17,

/**
* Represents a dialog box or message box. It is used for xul:dialog,
* Represents a dialog box or message box. It is used for xul:dialog,
* role="dialog".
*/
DIALOG = 18,
Expand Down Expand Up @@ -295,7 +295,7 @@ enum Role {
* html:input@type="checkbox", role="checkbox".
*/
CHECKBUTTON = 44,

/**
* Represents an option button, also called a radio button. It is one of a
* group of mutually exclusive options. All objects sharing a single parent
Expand All @@ -304,7 +304,7 @@ enum Role {
* role="radio".
*/
RADIOBUTTON = 45,

/**
* Represents a combo box; an edit control with an associated list box that
* provides a set of predefined choices. It is used for html:select,
Expand Down Expand Up @@ -353,7 +353,7 @@ enum Role {
* Represents a graphical image used to diagram data. It is used for svg:svg.
*/
DIAGRAM = 53,

/**
* Represents an animation control, which contains content that changes over
* time, such as a control that displays a series of bitmap frames.
Expand Down
4 changes: 2 additions & 2 deletions accessible/base/States.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace states {

/**
* The expandable object's children are not displayed, the opposite of
* expanded, applied to tree lists and other controls,
* expanded, applied to tree lists and other controls,
* @see EXPANDED state.
*/
const uint64_t COLLAPSED = ((uint64_t) 0x1) << 10;
Expand Down Expand Up @@ -288,4 +288,4 @@ namespace states {
} // namespace mozilla

#endif

4 changes: 2 additions & 2 deletions accessible/base/nsAccUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ nsAccUtils::GetDefaultLevel(Accessible* aAccessible)
Accessible* parent = aAccessible->Parent();
// It is a row inside flatten treegrid. Group level is always 1 until it
// is overriden by aria-level attribute.
if (parent && parent->Role() == roles::TREE_TABLE)
if (parent && parent->Role() == roles::TREE_TABLE)
return 1;
}

Expand Down Expand Up @@ -415,7 +415,7 @@ nsAccUtils::TextLength(Accessible* aAccessible)

// For list bullets (or anything other accessible which would compute its own
// text. They don't have their own frame.
// XXX In the future, list bullets may have frame and anon content, so
// XXX In the future, list bullets may have frame and anon content, so
// we should be able to remove this at that point
nsAutoString text;
aAccessible->AppendTextTo(text); // Get all the text
Expand Down
4 changes: 2 additions & 2 deletions accessible/base/nsAccUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ class nsAccUtils

/**
* Any ARIA property of type boolean or NMTOKEN is undefined if the ARIA
* property is not present, or is "" or "undefined". Do not call
* property is not present, or is "" or "undefined". Do not call
* this method for properties of type string, decimal, IDREF or IDREFS.
*
*
* Return true if the ARIA property is defined, otherwise false
*/
static bool HasDefinedARIAToken(nsIContent *aContent, nsIAtom *aAtom);
Expand Down
2 changes: 1 addition & 1 deletion accessible/base/nsAccessibilityService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ void
nsAccessibilityService::GetStringStates(uint32_t aState, uint32_t aExtraState,
nsISupports** aStringStates)
{
RefPtr<DOMStringList> stringStates =
RefPtr<DOMStringList> stringStates =
GetStringStates(nsAccUtils::To64State(aState, aExtraState));

// unknown state
Expand Down
2 changes: 1 addition & 1 deletion accessible/base/nsEventShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ nsEventShell::FireEvent(uint32_t aEventType, Accessible* aAccessible,
FireEvent(event);
}

void
void
nsEventShell::GetEventAttributes(nsINode *aNode,
nsIPersistentProperties *aAttributes)
{
Expand Down
8 changes: 4 additions & 4 deletions accessible/base/nsTextEquivUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ nsTextEquivUtils::AppendTextEquivFromTextContent(nsIContent *aContent,
}
}
}

if (aContent->TextLength() > 0) {
nsIFrame *frame = aContent->GetPrimaryFrame();
if (frame) {
Expand All @@ -151,16 +151,16 @@ nsTextEquivUtils::AppendTextEquivFromTextContent(nsIContent *aContent,
aString->Append(char16_t(' '));
}
}

return NS_OK;
}

if (aContent->IsHTMLElement() &&
aContent->NodeInfo()->Equals(nsGkAtoms::br)) {
aString->AppendLiteral("\r\n");
return NS_OK;
}

return NS_OK_NO_NAME_CLAUSE_HANDLED;
}

Expand Down
2 changes: 1 addition & 1 deletion accessible/base/nsTextEquivUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class nsTextEquivUtils
*/
static nsresult AppendFromAccessibleChildren(Accessible* aAccessible,
nsAString *aString);

/**
* Calculates text equivalent from the given accessible and its subtree if
* allowed.
Expand Down
4 changes: 2 additions & 2 deletions accessible/generic/DocAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ NS_IMETHODIMP
DocAccessible::Observe(nsISupports* aSubject, const char* aTopic,
const char16_t* aData)
{
if (!nsCRT::strcmp(aTopic,"obs_documentCreated")) {
if (!nsCRT::strcmp(aTopic,"obs_documentCreated")) {
// State editable will now be set, readonly is now clear
// Normally we only fire delayed events created from the node, not an
// accessible object. See the AccStateChangeEvent constructor for details
Expand Down Expand Up @@ -820,7 +820,7 @@ DocAccessible::AttributeChangedImpl(Accessible* aAccessible,
// For example, if an <img>'s usemap attribute is modified
// Otherwise it may just be a state change, for example an object changing
// its visibility
//
//
// XXX todo: report aria state changes for "undefined" literal value changes
// filed as bug 472142
//
Expand Down
2 changes: 1 addition & 1 deletion accessible/generic/DocAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class DocAccessible : public HyperTextAccessibleWrap,
* Return true if the document has given document state.
*/
bool HasLoadState(LoadState aState) const
{ return (mLoadState & static_cast<uint32_t>(aState)) ==
{ return (mLoadState & static_cast<uint32_t>(aState)) ==
static_cast<uint32_t>(aState); }

/**
Expand Down
2 changes: 1 addition & 1 deletion accessible/generic/ImageAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ImageAccessible::ActionNameAt(uint8_t aIndex, nsAString& aName)
{
aName.Truncate();
if (IsLongDescIndex(aIndex) && HasLongDesc())
aName.AssignLiteral("showlongdesc");
aName.AssignLiteral("showlongdesc");
else
LinkableAccessible::ActionNameAt(aIndex, aName);
}
Expand Down
2 changes: 1 addition & 1 deletion accessible/generic/OuterDocAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DocAccessibleParent;

/**
* Used for <browser>, <frame>, <iframe>, <page> or editor> elements.
*
*
* In these variable names, "outer" relates to the OuterDocAccessible as
* opposed to the DocAccessibleWrap which is "inner". The outer node is
* a something like tags listed above, whereas the inner node corresponds to
Expand Down
12 changes: 6 additions & 6 deletions accessible/generic/RootAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RootAccessible::NativeRole()
uint32_t
RootAccessible::GetChromeFlags()
{
// Return the flag set for the top level window as defined
// Return the flag set for the top level window as defined
// by nsIWebBrowserChrome::CHROME_WINDOW_[FLAGNAME]
// Not simple: nsIXULWindow is not just a QI from nsIDOMWindow
nsCOMPtr<nsIDocShell> docShell = nsCoreUtils::GetDocShellFor(mDocumentNode);
Expand Down Expand Up @@ -203,7 +203,7 @@ nsresult
RootAccessible::RemoveEventListeners()
{
nsCOMPtr<EventTarget> target = mDocumentNode;
if (target) {
if (target) {
for (const char* const* e = kEventTypes,
* const* e_end = ArrayEnd(kEventTypes);
e < e_end; ++e) {
Expand Down Expand Up @@ -285,7 +285,7 @@ RootAccessible::ProcessDOMEvent(nsIDOMEvent* aDOMEvent)
GetDocAccessible(origTargetNode->OwnerDoc());
NS_ASSERTION(targetDocument, "No document while accessible is in document?!");

Accessible* accessible =
Accessible* accessible =
targetDocument->GetAccessibleOrContainer(origTargetNode);
if (!accessible)
return;
Expand Down Expand Up @@ -517,8 +517,8 @@ RootAccessible::HandlePopupShownEvent(Accessible* aAccessible)

if (role == roles::TOOLTIP) {
// There is a single <xul:tooltip> node which Mozilla moves around.
// The accessible for it stays the same no matter where it moves.
// AT's expect to get an EVENT_SHOW for the tooltip.
// The accessible for it stays the same no matter where it moves.
// AT's expect to get an EVENT_SHOW for the tooltip.
// In event callback the tooltip's accessible will be ready.
nsEventShell::FireEvent(nsIAccessibleEvent::EVENT_SHOW, aAccessible);
return;
Expand All @@ -531,7 +531,7 @@ RootAccessible::HandlePopupShownEvent(Accessible* aAccessible)
return;

roles::Role comboboxRole = combobox->Role();
if (comboboxRole == roles::COMBOBOX ||
if (comboboxRole == roles::COMBOBOX ||
comboboxRole == roles::AUTOCOMPLETE) {
RefPtr<AccEvent> event =
new AccStateChangeEvent(combobox, states::EXPANDED, true);
Expand Down
8 changes: 4 additions & 4 deletions accessible/generic/TableAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@ class TableAccessible
/**
* Return the column index of the cell with the given index.
*/
virtual int32_t ColIndexAt(uint32_t aCellIdx)
virtual int32_t ColIndexAt(uint32_t aCellIdx)
{ return aCellIdx % ColCount(); }

/**
* Return the row index of the cell with the given index.
*/
virtual int32_t RowIndexAt(uint32_t aCellIdx)
virtual int32_t RowIndexAt(uint32_t aCellIdx)
{ return aCellIdx / ColCount(); }

/**
* Get the row and column indices for the cell at the given index.
*/
virtual void RowAndColIndicesAt(uint32_t aCellIdx, int32_t* aRowIdx,
int32_t* aColIdx)
{
int32_t* aColIdx)
{
uint32_t colCount = ColCount();
*aRowIdx = aCellIdx / colCount;
*aColIdx = aCellIdx % colCount;
Expand Down
2 changes: 1 addition & 1 deletion accessible/generic/TextLeafAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace mozilla {
namespace a11y {

/**
* Generic class used for text nodes.
*/
Expand Down
2 changes: 1 addition & 1 deletion accessible/html/HTMLFormControlAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ HTMLCheckboxAccessible::NativeState()

if (input->Checked())
return state | states::CHECKED;

return state;
}

Expand Down
2 changes: 1 addition & 1 deletion accessible/html/HTMLSelectAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ HTMLSelectOptionAccessible::NativeName(nsString& aName)
if (!aName.IsEmpty())
return eNameOK;

// CASE #2 -- no label parameter, get the first child,
// CASE #2 -- no label parameter, get the first child,
// use it if it is a text node
nsIContent* text = mContent->GetFirstChild();
if (text && text->IsNodeOfType(nsINode::eTEXT)) {
Expand Down
2 changes: 1 addition & 1 deletion accessible/html/HTMLTableAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ HTMLTableAccessible::IsProbablyLayoutTable()

// Check for legitimate data table elements.
Accessible* caption = FirstChild();
if (caption && caption->Role() == roles::CAPTION && caption->HasChildren())
if (caption && caption->Role() == roles::CAPTION && caption->HasChildren())
RETURN_LAYOUT_ANSWER(false, "Not empty caption -- legitimate table structures");

for (nsIContent* childElm = mContent->GetFirstChild(); childElm;
Expand Down
2 changes: 1 addition & 1 deletion accessible/ipc/other/ProxyAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ ProxyAccessible::IsItemSelected(uint32_t aIndex)
Unused << mDoc->SendIsItemSelected(mID, aIndex, &selected);
return selected;
}

bool
ProxyAccessible::AddItemToSelection(uint32_t aIndex)
{
Expand Down
Loading

0 comments on commit 4e9cf83

Please sign in to comment.