Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1513900 - Reformat everything on the ESR branch to the Google cod…
…ing style r=ehsan a=liz

# ignore-this-changeset

--HG--
extra : amend_source : 63ce052406c432f18867fc93eed216b0226d8380
extra : histedit_source : 6b355747bd61db0c7cd972a9b21e8129b04e5980
  • Loading branch information
sylvestre committed Dec 14, 2018
1 parent 28d44ce commit 61f7867
Show file tree
Hide file tree
Showing 10,941 changed files with 1,494,715 additions and 1,805,660 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
47 changes: 47 additions & 0 deletions .hg-format-source
@@ -0,0 +1,47 @@
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:uriloader/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:media/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:docshell/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:netwerk/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:ipc/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:intl/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:taskcluster/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:servo/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:devtools/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:python/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:gfx/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:image/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:js/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:editor/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:parser/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:widget/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:rdf/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:mfbt/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:services/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:caps/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:chrome/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:extensions/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:view/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:xpfe/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:accessible/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:browser/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:toolkit/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:config/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:embedding/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:security/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:dom/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:tools/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:gradle/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:storage/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:nsprpub/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:db/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:layout/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:xpcom/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:testing/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:other-licenses/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:modules/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:build/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:memory/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:mobile/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:startupcache/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:hal/**", "tool": "clang-format"}
{"configpaths": [".clang-format", ".clang-format-ignore"], "pattern": "glob:mozglue/**", "tool": "clang-format"}
53 changes: 16 additions & 37 deletions accessible/aom/AccessibleNode.cpp
Expand Up @@ -28,8 +28,7 @@ NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTING_ADDREF(AccessibleNode)
NS_IMPL_CYCLE_COLLECTING_RELEASE(AccessibleNode)

AccessibleNode::AccessibleNode(nsINode* aNode) : mDOMNode(aNode)
{
AccessibleNode::AccessibleNode(nsINode* aNode) : mDOMNode(aNode) {
nsAccessibilityService* accService = GetOrCreateAccService();
if (!accService) {
return;
Expand All @@ -41,25 +40,18 @@ AccessibleNode::AccessibleNode(nsINode* aNode) : mDOMNode(aNode)
}
}

AccessibleNode::~AccessibleNode()
{
}
AccessibleNode::~AccessibleNode() {}

/* virtual */ JSObject*
AccessibleNode::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
/* virtual */ JSObject* AccessibleNode::WrapObject(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
return AccessibleNodeBinding::Wrap(aCx, this, aGivenProto);
}

/* virtual */ ParentObject
AccessibleNode::GetParentObject() const
{
/* virtual */ ParentObject AccessibleNode::GetParentObject() const {
return mDOMNode->GetParentObject();
}

void
AccessibleNode::GetRole(nsAString& aRole)
{
void AccessibleNode::GetRole(nsAString& aRole) {
if (mIntl) {
nsAccessibilityService* accService = GetOrCreateAccService();
if (accService) {
Expand All @@ -71,9 +63,7 @@ AccessibleNode::GetRole(nsAString& aRole)
aRole.AssignLiteral("unknown");
}

void
AccessibleNode::GetStates(nsTArray<nsString>& aStates)
{
void AccessibleNode::GetStates(nsTArray<nsString>& aStates) {
nsAccessibilityService* accService = GetOrCreateAccService();
if (!mIntl || !accService) {
aStates.AppendElement(NS_LITERAL_STRING("defunct"));
Expand All @@ -89,9 +79,7 @@ AccessibleNode::GetStates(nsTArray<nsString>& aStates)
aStates = mStates->StringArray();
}

void
AccessibleNode::GetAttributes(nsTArray<nsString>& aAttributes)
{
void AccessibleNode::GetAttributes(nsTArray<nsString>& aAttributes) {
if (!mIntl) {
return;
}
Expand All @@ -114,13 +102,12 @@ AccessibleNode::GetAttributes(nsTArray<nsString>& aAttributes)
}
}

bool
AccessibleNode::Is(const Sequence<nsString>& aFlavors)
{
bool AccessibleNode::Is(const Sequence<nsString>& aFlavors) {
nsAccessibilityService* accService = GetOrCreateAccService();
if (!mIntl || !accService) {
for (const auto& flavor : aFlavors) {
if (!flavor.EqualsLiteral("unknown") && !flavor.EqualsLiteral("defunct")) {
if (!flavor.EqualsLiteral("unknown") &&
!flavor.EqualsLiteral("defunct")) {
return false;
}
}
Expand All @@ -142,9 +129,7 @@ AccessibleNode::Is(const Sequence<nsString>& aFlavors)
return true;
}

bool
AccessibleNode::Has(const Sequence<nsString>& aAttributes)
{
bool AccessibleNode::Has(const Sequence<nsString>& aAttributes) {
if (!mIntl) {
return false;
}
Expand All @@ -159,11 +144,9 @@ AccessibleNode::Has(const Sequence<nsString>& aAttributes)
return true;
}

void
AccessibleNode::Get(JSContext* aCX, const nsAString& aAttribute,
JS::MutableHandle<JS::Value> aValue,
ErrorResult& aRv)
{
void AccessibleNode::Get(JSContext* aCX, const nsAString& aAttribute,
JS::MutableHandle<JS::Value> aValue,
ErrorResult& aRv) {
if (!mIntl) {
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
return;
Expand All @@ -182,8 +165,4 @@ AccessibleNode::Get(JSContext* aCX, const nsAString& aAttribute,
aValue.set(jsval);
}

nsINode*
AccessibleNode::GetDOMNode()
{
return mDOMNode;
}
nsINode* AccessibleNode::GetDOMNode() { return mDOMNode; }
20 changes: 8 additions & 12 deletions accessible/aom/AccessibleNode.h
Expand Up @@ -16,18 +16,16 @@ class nsINode;
namespace mozilla {

namespace a11y {
class Accessible;
class Accessible;
}

namespace dom {

class DOMStringList;
struct ParentObject;

class AccessibleNode : public nsISupports,
public nsWrapperCache
{
public:
class AccessibleNode : public nsISupports, public nsWrapperCache {
public:
explicit AccessibleNode(nsINode* aNode);

NS_DECL_CYCLE_COLLECTING_ISUPPORTS;
Expand All @@ -44,12 +42,11 @@ class AccessibleNode : public nsISupports,
bool Is(const Sequence<nsString>& aFlavors);
bool Has(const Sequence<nsString>& aAttributes);
void Get(JSContext* cx, const nsAString& aAttribute,
JS::MutableHandle<JS::Value> aValue,
ErrorResult& aRv);
JS::MutableHandle<JS::Value> aValue, ErrorResult& aRv);

a11y::Accessible* Internal() const { return mIntl; }

protected:
protected:
AccessibleNode(const AccessibleNode& aCopy) = delete;
AccessibleNode& operator=(const AccessibleNode& aCopy) = delete;
virtual ~AccessibleNode();
Expand All @@ -59,8 +56,7 @@ class AccessibleNode : public nsISupports,
RefPtr<dom::DOMStringList> mStates;
};

} // dom
} // mozilla
} // namespace dom
} // namespace mozilla


#endif // A11Y_JSAPI_ACCESSIBLENODE
#endif // A11Y_JSAPI_ACCESSIBLENODE
4 changes: 2 additions & 2 deletions accessible/atk/ARIAGridAccessibleWrap.h
Expand Up @@ -15,7 +15,7 @@ namespace a11y {
typedef class ARIAGridAccessible ARIAGridAccessibleWrap;
typedef class ARIAGridCellAccessible ARIAGridCellAccessibleWrap;

} // namespace a11y
} // namespace mozilla
} // namespace a11y
} // namespace mozilla

#endif

0 comments on commit 61f7867

Please sign in to comment.