From 84ee6e9599c8e4d9249025287af3202be1ba44b7 Mon Sep 17 00:00:00 2001 From: Zibi Braniecki Date: Tue, 11 Sep 2018 23:19:26 +0000 Subject: [PATCH 01/40] Bug 1490457 - Support dynamically inserted localization links when a document didn`t have any links during parse. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D5612 --HG-- extra : moz-landing-system : lando --- dom/base/nsDocument.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 1060e1d5b4f2..7c766e065599 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -3361,6 +3361,13 @@ nsIDocument::LocalizationLinkAdded(Element* aLinkElement) AutoTArray resourceIds; resourceIds.AppendElement(href); mDocumentL10n->AddResourceIds(resourceIds); + } else if (mReadyState == READYSTATE_COMPLETE) { + // Otherwise, if the document has already been parsed + // we need to lazily initialize the localization. + AutoTArray resourceIds; + resourceIds.AppendElement(href); + InitializeLocalization(resourceIds); + mDocumentL10n->TriggerInitialDocumentTranslation(); } else { // Otherwise, we're still parsing the document. // In that case, add it to the pending list. This list From 4a93f15458a4f7b5742035c7d6762ddbb095f1c1 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 18:37:44 +0000 Subject: [PATCH 02/40] Bug 1489690, part 1 - Remove the registration for the sort service r=bzbarsky This is only used in a single place, so having a service for it is overkill. Differential Revision: https://phabricator.services.mozilla.com/D5591 --HG-- extra : moz-landing-system : lando --- dom/base/nsContentCID.h | 5 ---- dom/xul/moz.build | 1 + dom/xul/nsXULSortService.cpp | 8 ------ dom/xul/nsXULSortService.h | 8 +++--- layout/build/nsLayoutModule.cpp | 7 ----- layout/xul/tree/nsTreeContentView.cpp | 38 +++++++++++++-------------- 6 files changed, 22 insertions(+), 45 deletions(-) diff --git a/dom/base/nsContentCID.h b/dom/base/nsContentCID.h index 0878058ed1a4..7336f8bdfd60 100644 --- a/dom/base/nsContentCID.h +++ b/dom/base/nsContentCID.h @@ -113,11 +113,6 @@ #define NS_XULCONTROLLERS_CID \ { 0x1f5c1721, 0x7dc3, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } } - -// {BFD05264-834C-11d2-8EAC-00805F29F371} -#define NS_XULSORTSERVICE_CID \ -{ 0xbfd05264, 0x834c, 0x11d2, { 0x8e, 0xac, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x71 } } - // {3D262D00-8B5A-11d2-8EB0-00805F29F370} #define NS_XULTEMPLATEBUILDER_CID \ { 0x3d262d00, 0x8b5a, 0x11d2, { 0x8e, 0xb0, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } } diff --git a/dom/xul/moz.build b/dom/xul/moz.build index c01839113caf..47e5b310c035 100644 --- a/dom/xul/moz.build +++ b/dom/xul/moz.build @@ -18,6 +18,7 @@ if CONFIG['MOZ_XUL']: EXPORTS += [ 'nsXULCommandDispatcher.h', 'nsXULElement.h', + 'nsXULSortService.h', ] EXPORTS.mozilla.dom += [ diff --git a/dom/xul/nsXULSortService.cpp b/dom/xul/nsXULSortService.cpp index 41e5f9793e5d..09c7d6e94e04 100644 --- a/dom/xul/nsXULSortService.cpp +++ b/dom/xul/nsXULSortService.cpp @@ -353,11 +353,3 @@ XULSortServiceImpl::Sort(Element* aNode, return rv; } - -nsresult -NS_NewXULSortService(nsIXULSortService** sortService) -{ - *sortService = new XULSortServiceImpl(); - NS_ADDREF(*sortService); - return NS_OK; -} diff --git a/dom/xul/nsXULSortService.h b/dom/xul/nsXULSortService.h index 543f51a7ed9b..1e905e97e433 100644 --- a/dom/xul/nsXULSortService.h +++ b/dom/xul/nsXULSortService.h @@ -67,14 +67,12 @@ struct contentSortInfo { // class XULSortServiceImpl : public nsIXULSortService { -protected: +public: XULSortServiceImpl(void) {} + +protected: virtual ~XULSortServiceImpl(void) {} - friend nsresult NS_NewXULSortService(nsIXULSortService** mgr); - -private: - public: // nsISupports NS_DECL_ISUPPORTS diff --git a/layout/build/nsLayoutModule.cpp b/layout/build/nsLayoutModule.cpp index 31e501831978..b53df3bf5701 100644 --- a/layout/build/nsLayoutModule.cpp +++ b/layout/build/nsLayoutModule.cpp @@ -116,7 +116,6 @@ class nsIDocumentLoaderFactory; #ifdef MOZ_XUL #include "XULDocument.h" -#include "nsIXULSortService.h" #endif static void Shutdown(); @@ -341,7 +340,6 @@ MAKE_CTOR(CreateXHTMLContentSerializer, nsIContentSerializer, NS_NewXHT MAKE_CTOR(CreatePlainTextSerializer, nsIContentSerializer, NS_NewPlainTextSerializer) MAKE_CTOR(CreateContentPolicy, nsIContentPolicy, NS_NewContentPolicy) #ifdef MOZ_XUL -MAKE_CTOR(CreateXULSortService, nsIXULSortService, NS_NewXULSortService) MAKE_CTOR(CreateXULDocument, nsIDocument, NS_NewXULDocument) // NS_NewXULControllers #endif @@ -467,7 +465,6 @@ NS_DEFINE_NAMED_CID(NS_DATADOCUMENTCONTENTPOLICY_CID); NS_DEFINE_NAMED_CID(NS_NODATAPROTOCOLCONTENTPOLICY_CID); NS_DEFINE_NAMED_CID(NS_XULCONTROLLERS_CID); #ifdef MOZ_XUL -NS_DEFINE_NAMED_CID(NS_XULSORTSERVICE_CID); NS_DEFINE_NAMED_CID(NS_XULDOCUMENT_CID); #endif NS_DEFINE_NAMED_CID(NS_CONTENT_DOCUMENT_LOADER_FACTORY_CID); @@ -562,7 +559,6 @@ static const mozilla::Module::CIDEntry kLayoutCIDs[] = { { &kNS_NODATAPROTOCOLCONTENTPOLICY_CID, false, nullptr, nsNoDataProtocolContentPolicyConstructor }, { &kNS_XULCONTROLLERS_CID, false, nullptr, NS_NewXULControllers }, #ifdef MOZ_XUL - { &kNS_XULSORTSERVICE_CID, false, nullptr, CreateXULSortService }, { &kNS_XULDOCUMENT_CID, false, nullptr, CreateXULDocument }, #endif { &kNS_CONTENT_DOCUMENT_LOADER_FACTORY_CID, false, nullptr, CreateContentDLF }, @@ -654,9 +650,6 @@ static const mozilla::Module::ContractIDEntry kLayoutContracts[] = { { NS_DATADOCUMENTCONTENTPOLICY_CONTRACTID, &kNS_DATADOCUMENTCONTENTPOLICY_CID }, { NS_NODATAPROTOCOLCONTENTPOLICY_CONTRACTID, &kNS_NODATAPROTOCOLCONTENTPOLICY_CID }, { "@mozilla.org/xul/xul-controllers;1", &kNS_XULCONTROLLERS_CID }, -#ifdef MOZ_XUL - { "@mozilla.org/xul/xul-sort-service;1", &kNS_XULSORTSERVICE_CID }, -#endif { CONTENT_DLF_CONTRACTID, &kNS_CONTENT_DOCUMENT_LOADER_FACTORY_CID }, { NS_JSPROTOCOLHANDLER_CONTRACTID, &kNS_JSPROTOCOLHANDLER_CID }, { PLUGIN_DLF_CONTRACTID, &kNS_PLUGINDOCLOADERFACTORY_CID }, diff --git a/layout/xul/tree/nsTreeContentView.cpp b/layout/xul/tree/nsTreeContentView.cpp index fec3f886e304..fc3a763c2ea8 100644 --- a/layout/xul/tree/nsTreeContentView.cpp +++ b/layout/xul/tree/nsTreeContentView.cpp @@ -11,7 +11,7 @@ #include "nsTreeContentView.h" #include "ChildIterator.h" #include "nsError.h" -#include "nsIXULSortService.h" +#include "nsXULSortService.h" #include "nsTreeBodyFrame.h" #include "nsTreeColumns.h" #include "mozilla/ErrorResult.h" @@ -660,26 +660,24 @@ nsTreeContentView::CycleHeader(nsTreeColumn& aColumn, ErrorResult& aError) nsAutoString sort; column->GetAttr(kNameSpaceID_None, nsGkAtoms::sort, sort); if (!sort.IsEmpty()) { - nsCOMPtr xs = do_GetService("@mozilla.org/xul/xul-sort-service;1"); - if (xs) { - nsAutoString sortdirection; - static Element::AttrValuesArray strings[] = - {&nsGkAtoms::ascending, &nsGkAtoms::descending, nullptr}; - switch (column->FindAttrValueIn(kNameSpaceID_None, - nsGkAtoms::sortDirection, - strings, eCaseMatters)) { - case 0: sortdirection.AssignLiteral("descending"); break; - case 1: sortdirection.AssignLiteral("natural"); break; - default: sortdirection.AssignLiteral("ascending"); break; - } - - nsAutoString hints; - column->GetAttr(kNameSpaceID_None, nsGkAtoms::sorthints, hints); - sortdirection.Append(' '); - sortdirection += hints; - - xs->Sort(mRoot, sort, sortdirection); + nsCOMPtr xs = new XULSortServiceImpl(); + nsAutoString sortdirection; + static Element::AttrValuesArray strings[] = + {&nsGkAtoms::ascending, &nsGkAtoms::descending, nullptr}; + switch (column->FindAttrValueIn(kNameSpaceID_None, + nsGkAtoms::sortDirection, + strings, eCaseMatters)) { + case 0: sortdirection.AssignLiteral("descending"); break; + case 1: sortdirection.AssignLiteral("natural"); break; + default: sortdirection.AssignLiteral("ascending"); break; } + + nsAutoString hints; + column->GetAttr(kNameSpaceID_None, nsGkAtoms::sorthints, hints); + sortdirection.Append(' '); + sortdirection += hints; + + xs->Sort(mRoot, sort, sortdirection); } } From 4db3f10eaa32131eccc3a6dd1b060f6c1ba46f0a Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 18:37:46 +0000 Subject: [PATCH 03/40] Bug 1489690, part 2 - Move everything not in the nsI interface into the cpp file r=bzbarsky There's no state on the object, so all of the methods can be turned into static methods in the CPP files. I leave the one public method, Sort, alone for simplicity. The internal data structure definitions also don't need to be publicly exposed. This patch is a bit messy because I had to rearrange methods so they were defined before they were used. This makes the resulting code a little nicer (as compared to forward declaring methods), but makes the VCS history worse. Depends on D5591 Differential Revision: https://phabricator.services.mozilla.com/D5592 --HG-- extra : moz-landing-system : lando --- dom/xul/nsXULSortService.cpp | 261 +++++++++++++++++++++++------------ dom/xul/nsXULSortService.h | 117 +--------------- 2 files changed, 171 insertions(+), 207 deletions(-) diff --git a/dom/xul/nsXULSortService.cpp b/dom/xul/nsXULSortService.cpp index 09c7d6e94e04..709b846e441d 100644 --- a/dom/xul/nsXULSortService.cpp +++ b/dom/xul/nsXULSortService.cpp @@ -7,6 +7,7 @@ This file provides the implementation for the sort service manager. */ +#include "nsCOMArray.h" #include "nsCOMPtr.h" #include "nsIContent.h" #include "nsIServiceManager.h" @@ -19,39 +20,61 @@ #include "nsXULSortService.h" #include "nsXULElement.h" #include "nsICollation.h" +#include "nsTArray.h" #include "nsUnicharUtils.h" +enum nsSortState_direction { + nsSortState_descending, + nsSortState_ascending, + nsSortState_natural +}; + +// the sort state holds info about the current sort +struct nsSortState +{ + bool initialized; + MOZ_INIT_OUTSIDE_CTOR bool invertSort; + + uint32_t sortHints; + + MOZ_INIT_OUTSIDE_CTOR nsSortState_direction direction; + nsAutoString sort; + nsTArray> sortKeys; + + nsCOMPtr lastContainer; + MOZ_INIT_OUTSIDE_CTOR bool lastWasFirst, lastWasLast; + + nsSortState() + : initialized(false), + sortHints(0) + { + } +}; + +// information about a particular item to be sorted +struct contentSortInfo { + nsCOMPtr content; + nsCOMPtr parent; + void swap(contentSortInfo& other) + { + content.swap(other.content); + parent.swap(other.parent); + } +}; + + NS_IMPL_ISUPPORTS(XULSortServiceImpl, nsIXULSortService) -void -XULSortServiceImpl::SetSortHints(Element* aElement, nsSortState* aSortState) -{ - // set sort and sortDirection attributes when is sort is done - aElement->SetAttr(kNameSpaceID_None, nsGkAtoms::sort, - aSortState->sort, true); - - nsAutoString direction; - if (aSortState->direction == nsSortState_descending) - direction.AssignLiteral("descending"); - else if (aSortState->direction == nsSortState_ascending) - direction.AssignLiteral("ascending"); - aElement->SetAttr(kNameSpaceID_None, nsGkAtoms::sortDirection, - direction, true); - - // for trees, also set the sort info on the currently sorted column - if (aElement->NodeInfo()->Equals(nsGkAtoms::tree, kNameSpaceID_XUL)) { - if (aSortState->sortKeys.Length() >= 1) { - nsAutoString sortkey; - aSortState->sortKeys[0]->ToString(sortkey); - SetSortColumnHints(aElement, sortkey, direction); - } - } -} - -void -XULSortServiceImpl::SetSortColumnHints(nsIContent *content, - const nsAString &sortResource, - const nsAString &sortDirection) +/** + * Set sortActive and sortDirection attributes on a tree column when a sort + * is done. The column to change is the one with a sort attribute that + * matches the sort key. The sort attributes are removed from the other + * columns. + */ +static void +SetSortColumnHints(nsIContent *content, + const nsAString &sortResource, + const nsAString &sortDirection) { // set sort info on current column. This ensures that the // column header sort indicator is updated properly. @@ -81,10 +104,46 @@ XULSortServiceImpl::SetSortColumnHints(nsIContent *content, } } -nsresult -XULSortServiceImpl::GetItemsToSort(nsIContent *aContainer, - nsSortState* aSortState, - nsTArray& aSortItems) +/** + * Set sort and sortDirection attributes when a sort is done. + */ +static void +SetSortHints(Element* aElement, nsSortState* aSortState) +{ + // set sort and sortDirection attributes when is sort is done + aElement->SetAttr(kNameSpaceID_None, nsGkAtoms::sort, + aSortState->sort, true); + + nsAutoString direction; + if (aSortState->direction == nsSortState_descending) + direction.AssignLiteral("descending"); + else if (aSortState->direction == nsSortState_ascending) + direction.AssignLiteral("ascending"); + aElement->SetAttr(kNameSpaceID_None, nsGkAtoms::sortDirection, + direction, true); + + // for trees, also set the sort info on the currently sorted column + if (aElement->NodeInfo()->Equals(nsGkAtoms::tree, kNameSpaceID_XUL)) { + if (aSortState->sortKeys.Length() >= 1) { + nsAutoString sortkey; + aSortState->sortKeys[0]->ToString(sortkey); + SetSortColumnHints(aElement, sortkey, direction); + } + } +} + +/** + * Determine the list of items which need to be sorted. This is determined + * in the following way: + * - for elements that have a content builder, get its list of generated + * results + * - otherwise, for trees, get the child treeitems + * - otherwise, get the direct children + */ +static nsresult +GetItemsToSort(nsIContent *aContainer, + nsSortState* aSortState, + nsTArray& aSortItems) { // Get the children. For trees, get the treechildren element and // use that as the parent @@ -113,8 +172,43 @@ XULSortServiceImpl::GetItemsToSort(nsIContent *aContainer, return NS_OK; } +/** + * Compares aLeft and aRight and returns < 0, 0, or > 0. The sort + * hints are checked for case matching and integer sorting. + */ +static int32_t +CompareValues(const nsAString& aLeft, + const nsAString& aRight, + uint32_t aSortHints) +{ + if (aSortHints & nsIXULSortService::SORT_INTEGER) { + nsresult err; + int32_t leftint = PromiseFlatString(aLeft).ToInteger(&err); + if (NS_SUCCEEDED(err)) { + int32_t rightint = PromiseFlatString(aRight).ToInteger(&err); + if (NS_SUCCEEDED(err)) { + return leftint - rightint; + } + } + // if they aren't integers, just fall through and compare strings + } -int + if (aSortHints & nsIXULSortService::SORT_COMPARECASE) { + return ::Compare(aLeft, aRight); + } + + nsICollation* collation = nsXULContentUtils::GetCollation(); + if (collation) { + int32_t result; + collation->CompareString(nsICollation::kCollationCaseInSensitive, + aLeft, aRight, &result); + return result; + } + + return ::Compare(aLeft, aRight, nsCaseInsensitiveStringComparator()); +} + +static int testSortCallback(const void *data1, const void *data2, void *privateData) { /// Note: testSortCallback is a small C callback stub for NS_QuickSort @@ -138,7 +232,7 @@ testSortCallback(const void *data1, const void *data2, void *privateData) sortState->sortKeys[t], rightstr); } - sortOrder = XULSortServiceImpl::CompareValues(leftstr, rightstr, sortState->sortHints); + sortOrder = CompareValues(leftstr, rightstr, sortState->sortHints); } if (sortState->direction == nsSortState_descending) @@ -147,8 +241,31 @@ testSortCallback(const void *data1, const void *data2, void *privateData) return sortOrder; } -nsresult -XULSortServiceImpl::SortContainer(nsIContent *aContainer, nsSortState* aSortState) +/** + * Given a list of sortable items, reverse the list. This is done + * when simply changing the sort direction for the same key. + */ +static nsresult +InvertSortInfo(nsTArray& aData, + int32_t aStart, int32_t aNumItems) +{ + if (aNumItems > 1) { + // reverse the items in the array starting from aStart + int32_t upPoint = (aNumItems + 1) / 2 + aStart; + int32_t downPoint = (aNumItems - 2) / 2 + aStart; + int32_t half = aNumItems / 2; + while (half-- > 0) { + aData[downPoint--].swap(aData[upPoint++]); + } + } + return NS_OK; +} + +/** + * Sort a container using the supplied sort state details. + */ +static nsresult +SortContainer(nsIContent *aContainer, nsSortState* aSortState) { nsTArray items; nsresult rv = GetItemsToSort(aContainer, aSortState, items); @@ -215,28 +332,22 @@ XULSortServiceImpl::SortContainer(nsIContent *aContainer, nsSortState* aSortStat return NS_OK; } -nsresult -XULSortServiceImpl::InvertSortInfo(nsTArray& aData, - int32_t aStart, int32_t aNumItems) -{ - if (aNumItems > 1) { - // reverse the items in the array starting from aStart - int32_t upPoint = (aNumItems + 1) / 2 + aStart; - int32_t downPoint = (aNumItems - 2) / 2 + aStart; - int32_t half = aNumItems / 2; - while (half-- > 0) { - aData[downPoint--].swap(aData[upPoint++]); - } - } - return NS_OK; -} - -nsresult -XULSortServiceImpl::InitializeSortState(Element* aRootElement, - Element* aContainer, - const nsAString& aSortKey, - const nsAString& aSortHints, - nsSortState* aSortState) +/** + * Initialize sort information from attributes specified on the container, + * the sort key and sort direction. + * + * @param aRootElement the element that contains sort attributes + * @param aContainer the container to sort, usually equal to aRootElement + * @param aSortKey space separated list of sort keys + * @param aSortDirection direction to sort in + * @param aSortState structure filled in with sort data + */ +static nsresult +InitializeSortState(Element* aRootElement, + Element* aContainer, + const nsAString& aSortKey, + const nsAString& aSortHints, + nsSortState* aSortState) { // used as an optimization for the content builder if (aContainer != aSortState->lastContainer.get()) { @@ -305,38 +416,6 @@ XULSortServiceImpl::InitializeSortState(Element* aRootElement, return NS_OK; } -int32_t -XULSortServiceImpl::CompareValues(const nsAString& aLeft, - const nsAString& aRight, - uint32_t aSortHints) -{ - if (aSortHints & SORT_INTEGER) { - nsresult err; - int32_t leftint = PromiseFlatString(aLeft).ToInteger(&err); - if (NS_SUCCEEDED(err)) { - int32_t rightint = PromiseFlatString(aRight).ToInteger(&err); - if (NS_SUCCEEDED(err)) { - return leftint - rightint; - } - } - // if they aren't integers, just fall through and compare strings - } - - if (aSortHints & SORT_COMPARECASE) { - return ::Compare(aLeft, aRight); - } - - nsICollation* collation = nsXULContentUtils::GetCollation(); - if (collation) { - int32_t result; - collation->CompareString(nsICollation::kCollationCaseInSensitive, - aLeft, aRight, &result); - return result; - } - - return ::Compare(aLeft, aRight, nsCaseInsensitiveStringComparator()); -} - NS_IMETHODIMP XULSortServiceImpl::Sort(Element* aNode, const nsAString& aSortKey, diff --git a/dom/xul/nsXULSortService.h b/dom/xul/nsXULSortService.h index 1e905e97e433..ff361f6166a0 100644 --- a/dom/xul/nsXULSortService.h +++ b/dom/xul/nsXULSortService.h @@ -10,55 +10,8 @@ #ifndef nsXULSortService_h #define nsXULSortService_h -#include "nsCOMPtr.h" -#include "nsCOMArray.h" -#include "nsTArray.h" -#include "nsIContent.h" +#include "nsISupportsImpl.h" #include "nsIXULSortService.h" -#include "nsCycleCollectionParticipant.h" - -enum nsSortState_direction { - nsSortState_descending, - nsSortState_ascending, - nsSortState_natural -}; - -// the sort state holds info about the current sort -struct nsSortState -{ - bool initialized; - MOZ_INIT_OUTSIDE_CTOR bool invertSort; - - uint32_t sortHints; - - MOZ_INIT_OUTSIDE_CTOR nsSortState_direction direction; - nsAutoString sort; - nsTArray> sortKeys; - - nsCOMPtr lastContainer; - MOZ_INIT_OUTSIDE_CTOR bool lastWasFirst, lastWasLast; - - nsSortState() - : initialized(false), - sortHints(0) - { - } - void Traverse(nsCycleCollectionTraversalCallback &cb) const - { - cb.NoteXPCOMChild(lastContainer); - } -}; - -// information about a particular item to be sorted -struct contentSortInfo { - nsCOMPtr content; - nsCOMPtr parent; - void swap(contentSortInfo& other) - { - content.swap(other.content); - parent.swap(other.parent); - } -}; //////////////////////////////////////////////////////////////////////// // ServiceImpl @@ -80,74 +33,6 @@ public: // nsISortService NS_DECL_NSIXULSORTSERVICE - /** - * Set sort and sortDirection attributes when a sort is done. - */ - void - SetSortHints(mozilla::dom::Element* aElement, nsSortState* aSortState); - - /** - * Set sortActive and sortDirection attributes on a tree column when a sort - * is done. The column to change is the one with a sort attribute that - * matches the sort key. The sort attributes are removed from the other - * columns. - */ - void - SetSortColumnHints(nsIContent *content, - const nsAString &sortResource, - const nsAString &sortDirection); - - /** - * Determine the list of items which need to be sorted. This is determined - * in the following way: - * - for elements that have a content builder, get its list of generated - * results - * - otherwise, for trees, get the child treeitems - * - otherwise, get the direct children - */ - nsresult - GetItemsToSort(nsIContent *aContainer, - nsSortState* aSortState, - nsTArray& aSortItems); - - /** - * Sort a container using the supplied sort state details. - */ - nsresult - SortContainer(nsIContent *aContainer, nsSortState* aSortState); - - /** - * Given a list of sortable items, reverse the list. This is done - * when simply changing the sort direction for the same key. - */ - nsresult - InvertSortInfo(nsTArray& aData, - int32_t aStart, int32_t aNumItems); - - /** - * Initialize sort information from attributes specified on the container, - * the sort key and sort direction. - * - * @param aRootElement the element that contains sort attributes - * @param aContainer the container to sort, usually equal to aRootElement - * @param aSortKey space separated list of sort keys - * @param aSortDirection direction to sort in - * @param aSortState structure filled in with sort data - */ - static nsresult - InitializeSortState(mozilla::dom::Element* aRootElement, - mozilla::dom::Element* aContainer, - const nsAString& aSortKey, - const nsAString& aSortDirection, - nsSortState* aSortState); - - /** - * Compares aLeft and aRight and returns < 0, 0, or > 0. The sort - * hints are checked for case matching and integer sorting. - */ - static int32_t CompareValues(const nsAString& aLeft, - const nsAString& aRight, - uint32_t aSortHints); }; #endif // nsXULSortService_h From c7b30c67ec2067bdf942bd9079691c002a6ae51d Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 18:37:48 +0000 Subject: [PATCH 04/40] Bug 1489690, part 3 - De-COM the XUL sort service r=bzbarsky There's only one method that is used, and we never need to create any instances of the object, so turn it into a single method. Depends on D5592 Differential Revision: https://phabricator.services.mozilla.com/D5593 --HG-- extra : moz-landing-system : lando --- dom/xul/moz.build | 1 - dom/xul/nsIXULSortService.idl | 42 ------------------------- dom/xul/nsXULSortService.cpp | 24 +++++++------- dom/xul/nsXULSortService.h | 45 +++++++++++++++------------ layout/xul/tree/nsTreeContentView.cpp | 3 +- 5 files changed, 39 insertions(+), 76 deletions(-) delete mode 100644 dom/xul/nsIXULSortService.idl diff --git a/dom/xul/moz.build b/dom/xul/moz.build index 47e5b310c035..2ffb9ba3e566 100644 --- a/dom/xul/moz.build +++ b/dom/xul/moz.build @@ -45,7 +45,6 @@ if CONFIG['MOZ_XUL']: XPIDL_SOURCES += [ 'nsIController.idl', 'nsIControllers.idl', - 'nsIXULSortService.idl', ] XPIDL_MODULE = 'xul' diff --git a/dom/xul/nsIXULSortService.idl b/dom/xul/nsIXULSortService.idl deleted file mode 100644 index e06ff7ddaf09..000000000000 --- a/dom/xul/nsIXULSortService.idl +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -#include "nsISupports.idl" - -webidl Element; - -/** - * A service used to sort the contents of a XUL widget. - */ -[scriptable, uuid(F29270C8-3BE5-4046-9B57-945A84DFF132)] -interface nsIXULSortService : nsISupports -{ - const unsigned long SORT_COMPARECASE = 0x0001; - const unsigned long SORT_INTEGER = 0x0100; - - /** - * Sort the contents of the widget containing aNode - * using aSortKey as the comparison key, and - * aSortDirection as the direction. - * - * @param aNode A node in the XUL widget whose children are to be sorted. - * @param aSortKey The value to be used as the comparison key. - * @param aSortHints One or more hints as to how to sort: - * - * ascending: to sort the contents in ascending order - * descending: to sort the contents in descending order - * comparecase: perform case sensitive comparisons - * integer: treat values as integers, non-integers are compared as strings - * twostate: don't allow the natural (unordered state) - */ - void sort(in Element aNode, - in AString aSortKey, - in AString aSortHints); -}; - -%{C++ -nsresult -NS_NewXULSortService(nsIXULSortService **result); -%} diff --git a/dom/xul/nsXULSortService.cpp b/dom/xul/nsXULSortService.cpp index 709b846e441d..7e7fe368121c 100644 --- a/dom/xul/nsXULSortService.cpp +++ b/dom/xul/nsXULSortService.cpp @@ -23,6 +23,11 @@ #include "nsTArray.h" #include "nsUnicharUtils.h" +#include "mozilla/dom/Element.h" + +const unsigned long SORT_COMPARECASE = 0x0001; +const unsigned long SORT_INTEGER = 0x0100; + enum nsSortState_direction { nsSortState_descending, nsSortState_ascending, @@ -62,9 +67,6 @@ struct contentSortInfo { } }; - -NS_IMPL_ISUPPORTS(XULSortServiceImpl, nsIXULSortService) - /** * Set sortActive and sortDirection attributes on a tree column when a sort * is done. The column to change is the one with a sort attribute that @@ -181,7 +183,7 @@ CompareValues(const nsAString& aLeft, const nsAString& aRight, uint32_t aSortHints) { - if (aSortHints & nsIXULSortService::SORT_INTEGER) { + if (aSortHints & SORT_INTEGER) { nsresult err; int32_t leftint = PromiseFlatString(aLeft).ToInteger(&err); if (NS_SUCCEEDED(err)) { @@ -193,7 +195,7 @@ CompareValues(const nsAString& aLeft, // if they aren't integers, just fall through and compare strings } - if (aSortHints & nsIXULSortService::SORT_COMPARECASE) { + if (aSortHints & SORT_COMPARECASE) { return ::Compare(aLeft, aRight); } @@ -374,9 +376,9 @@ InitializeSortState(Element* aRootElement, while (hintsTokenizer.hasMoreTokens()) { const nsDependentSubstring& token(hintsTokenizer.nextToken()); if (token.EqualsLiteral("comparecase")) - aSortState->sortHints |= nsIXULSortService::SORT_COMPARECASE; + aSortState->sortHints |= SORT_COMPARECASE; else if (token.EqualsLiteral("integer")) - aSortState->sortHints |= nsIXULSortService::SORT_INTEGER; + aSortState->sortHints |= SORT_INTEGER; else if (token.EqualsLiteral("descending")) aSortState->direction = nsSortState_descending; else if (token.EqualsLiteral("ascending")) @@ -416,10 +418,10 @@ InitializeSortState(Element* aRootElement, return NS_OK; } -NS_IMETHODIMP -XULSortServiceImpl::Sort(Element* aNode, - const nsAString& aSortKey, - const nsAString& aSortHints) +nsresult +mozilla::XULWidgetSort(Element* aNode, + const nsAString& aSortKey, + const nsAString& aSortHints) { nsSortState sortState; nsresult rv = InitializeSortState(aNode, aNode, diff --git a/dom/xul/nsXULSortService.h b/dom/xul/nsXULSortService.h index ff361f6166a0..cf14f3c3f7e6 100644 --- a/dom/xul/nsXULSortService.h +++ b/dom/xul/nsXULSortService.h @@ -10,29 +10,34 @@ #ifndef nsXULSortService_h #define nsXULSortService_h -#include "nsISupportsImpl.h" -#include "nsIXULSortService.h" +#include "nsAString.h" +#include "nsError.h" -//////////////////////////////////////////////////////////////////////// -// ServiceImpl -// -// This is the sort service. -// -class XULSortServiceImpl : public nsIXULSortService -{ -public: - XULSortServiceImpl(void) {} +namespace mozilla { -protected: - virtual ~XULSortServiceImpl(void) {} +namespace dom { +class Element; +} // namespace dom -public: - // nsISupports - NS_DECL_ISUPPORTS +/** + * Sort the contents of the widget containing aNode + * using aSortKey as the comparison key, and + * aSortDirection as the direction. + * + * @param aNode A node in the XUL widget whose children are to be sorted. + * @param aSortKey The value to be used as the comparison key. + * @param aSortHints One or more hints as to how to sort: + * + * ascending: to sort the contents in ascending order + * descending: to sort the contents in descending order + * comparecase: perform case sensitive comparisons + * integer: treat values as integers, non-integers are compared as strings + * twostate: don't allow the natural (unordered state) + */ +nsresult XULWidgetSort(dom::Element* aNode, + const nsAString& aSortKey, + const nsAString& aSortHints); - // nsISortService - NS_DECL_NSIXULSORTSERVICE - -}; +} // namespace mozilla #endif // nsXULSortService_h diff --git a/layout/xul/tree/nsTreeContentView.cpp b/layout/xul/tree/nsTreeContentView.cpp index fc3a763c2ea8..b2ca014d5fa8 100644 --- a/layout/xul/tree/nsTreeContentView.cpp +++ b/layout/xul/tree/nsTreeContentView.cpp @@ -660,7 +660,6 @@ nsTreeContentView::CycleHeader(nsTreeColumn& aColumn, ErrorResult& aError) nsAutoString sort; column->GetAttr(kNameSpaceID_None, nsGkAtoms::sort, sort); if (!sort.IsEmpty()) { - nsCOMPtr xs = new XULSortServiceImpl(); nsAutoString sortdirection; static Element::AttrValuesArray strings[] = {&nsGkAtoms::ascending, &nsGkAtoms::descending, nullptr}; @@ -677,7 +676,7 @@ nsTreeContentView::CycleHeader(nsTreeColumn& aColumn, ErrorResult& aError) sortdirection.Append(' '); sortdirection += hints; - xs->Sort(mRoot, sort, sortdirection); + XULWidgetSort(mRoot, sort, sortdirection); } } From 70fe7daafb0958d287c94f9aabcf5f21b9f24f92 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 18:37:50 +0000 Subject: [PATCH 05/40] Bug 1489690, part 4 - Fix some misc. issues with the XUL sort service r=bzbarsky Depends on D5593 Differential Revision: https://phabricator.services.mozilla.com/D5616 --HG-- extra : moz-landing-system : lando --- dom/xul/nsXULSortService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/xul/nsXULSortService.cpp b/dom/xul/nsXULSortService.cpp index 7e7fe368121c..e7b021760f11 100644 --- a/dom/xul/nsXULSortService.cpp +++ b/dom/xul/nsXULSortService.cpp @@ -35,7 +35,7 @@ enum nsSortState_direction { }; // the sort state holds info about the current sort -struct nsSortState +struct MOZ_STACK_CLASS nsSortState final { bool initialized; MOZ_INIT_OUTSIDE_CTOR bool invertSort; @@ -125,7 +125,7 @@ SetSortHints(Element* aElement, nsSortState* aSortState) direction, true); // for trees, also set the sort info on the currently sorted column - if (aElement->NodeInfo()->Equals(nsGkAtoms::tree, kNameSpaceID_XUL)) { + if (aElement->IsXULElement(nsGkAtoms::tree)) { if (aSortState->sortKeys.Length() >= 1) { nsAutoString sortkey; aSortState->sortKeys[0]->ToString(sortkey); @@ -150,7 +150,7 @@ GetItemsToSort(nsIContent *aContainer, // Get the children. For trees, get the treechildren element and // use that as the parent RefPtr treechildren; - if (aContainer->NodeInfo()->Equals(nsGkAtoms::tree, kNameSpaceID_XUL)) { + if (aContainer->IsXULElement(nsGkAtoms::tree)) { nsXULContentUtils::FindChildByTag(aContainer, kNameSpaceID_XUL, nsGkAtoms::treechildren, From a1594361bdfe9c6768c44087e33442c406db4b87 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:42 +0000 Subject: [PATCH 06/40] Bug 1485040, part 1 - Switch line endings from DOS to Unix in WebIDL files r=qdot MozReview-Commit-ID: 92KAIEErO51 Differential Revision: https://phabricator.services.mozilla.com/D4156 --HG-- extra : moz-landing-system : lando --- dom/webidl/HiddenPluginEvent.webidl | 24 ++++++------- dom/webidl/MediaRecorderErrorEvent.webidl | 42 +++++++++++------------ dom/webidl/WidevineCDMManifest.webidl | 29 ++++++++-------- 3 files changed, 47 insertions(+), 48 deletions(-) diff --git a/dom/webidl/HiddenPluginEvent.webidl b/dom/webidl/HiddenPluginEvent.webidl index 1ba09acb69ef..53096f9c8179 100644 --- a/dom/webidl/HiddenPluginEvent.webidl +++ b/dom/webidl/HiddenPluginEvent.webidl @@ -1,12 +1,12 @@ -interface PluginTag; - -[Constructor(DOMString type, optional HiddenPluginEventInit eventInit), ChromeOnly] -interface HiddenPluginEvent : Event -{ - readonly attribute PluginTag? tag; -}; - -dictionary HiddenPluginEventInit : EventInit -{ - PluginTag? tag = null; -}; +interface PluginTag; + +[Constructor(DOMString type, optional HiddenPluginEventInit eventInit), ChromeOnly] +interface HiddenPluginEvent : Event +{ + readonly attribute PluginTag? tag; +}; + +dictionary HiddenPluginEventInit : EventInit +{ + PluginTag? tag = null; +}; diff --git a/dom/webidl/MediaRecorderErrorEvent.webidl b/dom/webidl/MediaRecorderErrorEvent.webidl index 619329728f4e..2043d9a9b57c 100644 --- a/dom/webidl/MediaRecorderErrorEvent.webidl +++ b/dom/webidl/MediaRecorderErrorEvent.webidl @@ -1,21 +1,21 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. - * - * The origin of this IDL file is - * https://w3c.github.io/mediacapture-record/ - * - * Copyright © 2017 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark - * and document use rules apply. - */ - -dictionary MediaRecorderErrorEventInit : EventInit { - required DOMException error; -}; - -[Exposed=Window, - Constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict)] -interface MediaRecorderErrorEvent : Event { - [SameObject] readonly attribute DOMException error; -}; \ No newline at end of file +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * 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/. + * + * The origin of this IDL file is + * https://w3c.github.io/mediacapture-record/ + * + * Copyright © 2017 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark + * and document use rules apply. + */ + +dictionary MediaRecorderErrorEventInit : EventInit { + required DOMException error; +}; + +[Exposed=Window, + Constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict)] +interface MediaRecorderErrorEvent : Event { + [SameObject] readonly attribute DOMException error; +}; diff --git a/dom/webidl/WidevineCDMManifest.webidl b/dom/webidl/WidevineCDMManifest.webidl index 83e14e0b0b69..6d6f36f32473 100644 --- a/dom/webidl/WidevineCDMManifest.webidl +++ b/dom/webidl/WidevineCDMManifest.webidl @@ -1,15 +1,14 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. - */ - -dictionary WidevineCDMManifest { - required DOMString name; - required DOMString description; - required DOMString version; - required DOMString x-cdm-module-versions; - required DOMString x-cdm-interface-versions; - required DOMString x-cdm-host-versions; - required DOMString x-cdm-codecs; -}; +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * 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/. */ + +dictionary WidevineCDMManifest { + required DOMString name; + required DOMString description; + required DOMString version; + required DOMString x-cdm-module-versions; + required DOMString x-cdm-interface-versions; + required DOMString x-cdm-host-versions; + required DOMString x-cdm-codecs; +}; From 0a60d2df388ac36df1ad42ed295391919ea7aa61 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:45 +0000 Subject: [PATCH 07/40] Bug 1485040, part 2 - Fix indentation in some WebIDL files r=qdot MozReview-Commit-ID: DYMdVo1tO6a Depends on D4156 Differential Revision: https://phabricator.services.mozilla.com/D4157 --HG-- extra : moz-landing-system : lando --- dom/webidl/AnalyserNode.webidl | 32 +-- dom/webidl/AudioNode.webidl | 72 +++--- dom/webidl/AudioParam.webidl | 42 ++-- dom/webidl/BaseAudioContext.webidl | 122 ++++----- dom/webidl/DOMMatrix.webidl | 232 +++++++++--------- dom/webidl/DOMPoint.webidl | 30 +-- dom/webidl/DOMQuad.webidl | 30 +-- dom/webidl/DOMRect.webidl | 34 +-- dom/webidl/IDBCursor.webidl | 44 ++-- dom/webidl/IDBDatabase.webidl | 44 ++-- dom/webidl/IDBIndex.webidl | 80 +++--- dom/webidl/IDBObjectStore.webidl | 58 ++--- dom/webidl/IDBTransaction.webidl | 40 +-- dom/webidl/MediaStream.webidl | 50 ++-- dom/webidl/MediaStreamTrack.webidl | 112 ++++----- dom/webidl/MediaTrackSettings.webidl | 42 ++-- .../MediaTrackSupportedConstraints.webidl | 54 ++-- dom/webidl/PannerNode.webidl | 80 +++--- dom/webidl/RTCConfiguration.webidl | 34 +-- dom/webidl/RTCRtpTransceiver.webidl | 104 ++++---- .../SecurityPolicyViolationEvent.webidl | 48 ++-- dom/webidl/SpeechRecognition.webidl | 52 ++-- dom/webidl/U2F.webidl | 52 ++-- dom/webidl/UDPSocket.webidl | 42 ++-- dom/webidl/WebAuthentication.webidl | 126 +++++----- dom/webidl/WebKitCSSMatrix.webidl | 44 ++-- dom/webidl/XSLTProcessor.webidl | 170 ++++++------- 27 files changed, 935 insertions(+), 935 deletions(-) diff --git a/dom/webidl/AnalyserNode.webidl b/dom/webidl/AnalyserNode.webidl index 73c697f00375..bb8ba514de86 100644 --- a/dom/webidl/AnalyserNode.webidl +++ b/dom/webidl/AnalyserNode.webidl @@ -21,26 +21,26 @@ dictionary AnalyserOptions : AudioNodeOptions { Constructor(BaseAudioContext context, optional AnalyserOptions options)] interface AnalyserNode : AudioNode { - // Real-time frequency-domain data - void getFloatFrequencyData(Float32Array array); - void getByteFrequencyData(Uint8Array array); + // Real-time frequency-domain data + void getFloatFrequencyData(Float32Array array); + void getByteFrequencyData(Uint8Array array); - // Real-time waveform data - void getFloatTimeDomainData(Float32Array array); - void getByteTimeDomainData(Uint8Array array); + // Real-time waveform data + void getFloatTimeDomainData(Float32Array array); + void getByteTimeDomainData(Uint8Array array); - [SetterThrows, Pure] - attribute unsigned long fftSize; - [Pure] - readonly attribute unsigned long frequencyBinCount; + [SetterThrows, Pure] + attribute unsigned long fftSize; + [Pure] + readonly attribute unsigned long frequencyBinCount; - [SetterThrows, Pure] - attribute double minDecibels; - [SetterThrows, Pure] - attribute double maxDecibels; + [SetterThrows, Pure] + attribute double minDecibels; + [SetterThrows, Pure] + attribute double maxDecibels; - [SetterThrows, Pure] - attribute double smoothingTimeConstant; + [SetterThrows, Pure] + attribute double smoothingTimeConstant; }; diff --git a/dom/webidl/AudioNode.webidl b/dom/webidl/AudioNode.webidl index 80b33e50eeb2..8792b64bc2c8 100644 --- a/dom/webidl/AudioNode.webidl +++ b/dom/webidl/AudioNode.webidl @@ -11,55 +11,55 @@ */ enum ChannelCountMode { - "max", - "clamped-max", - "explicit" + "max", + "clamped-max", + "explicit" }; enum ChannelInterpretation { - "speakers", - "discrete" + "speakers", + "discrete" }; dictionary AudioNodeOptions { - unsigned long channelCount; - ChannelCountMode channelCountMode; - ChannelInterpretation channelInterpretation; + unsigned long channelCount; + ChannelCountMode channelCountMode; + ChannelInterpretation channelInterpretation; }; [Pref="dom.webaudio.enabled"] interface AudioNode : EventTarget { - [Throws] - AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); - [Throws] - void connect(AudioParam destination, optional unsigned long output = 0); - [Throws] - void disconnect(); - [Throws] - void disconnect(unsigned long output); - [Throws] - void disconnect(AudioNode destination); - [Throws] - void disconnect(AudioNode destination, unsigned long output); - [Throws] - void disconnect(AudioNode destination, unsigned long output, unsigned long input); - [Throws] - void disconnect(AudioParam destination); - [Throws] - void disconnect(AudioParam destination, unsigned long output); + [Throws] + AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); + [Throws] + void connect(AudioParam destination, optional unsigned long output = 0); + [Throws] + void disconnect(); + [Throws] + void disconnect(unsigned long output); + [Throws] + void disconnect(AudioNode destination); + [Throws] + void disconnect(AudioNode destination, unsigned long output); + [Throws] + void disconnect(AudioNode destination, unsigned long output, unsigned long input); + [Throws] + void disconnect(AudioParam destination); + [Throws] + void disconnect(AudioParam destination, unsigned long output); - readonly attribute BaseAudioContext context; - readonly attribute unsigned long numberOfInputs; - readonly attribute unsigned long numberOfOutputs; + readonly attribute BaseAudioContext context; + readonly attribute unsigned long numberOfInputs; + readonly attribute unsigned long numberOfOutputs; - // Channel up-mixing and down-mixing rules for all inputs. - [SetterThrows] - attribute unsigned long channelCount; - [SetterThrows] - attribute ChannelCountMode channelCountMode; - [SetterThrows] - attribute ChannelInterpretation channelInterpretation; + // Channel up-mixing and down-mixing rules for all inputs. + [SetterThrows] + attribute unsigned long channelCount; + [SetterThrows] + attribute ChannelCountMode channelCountMode; + [SetterThrows] + attribute ChannelInterpretation channelInterpretation; }; diff --git a/dom/webidl/AudioParam.webidl b/dom/webidl/AudioParam.webidl index dd4057de8044..491e3a1af247 100644 --- a/dom/webidl/AudioParam.webidl +++ b/dom/webidl/AudioParam.webidl @@ -13,31 +13,31 @@ [Pref="dom.webaudio.enabled"] interface AudioParam { - attribute float value; - readonly attribute float defaultValue; - readonly attribute float minValue; - readonly attribute float maxValue; + attribute float value; + readonly attribute float defaultValue; + readonly attribute float minValue; + readonly attribute float maxValue; - // Parameter automation. - [Throws] - AudioParam setValueAtTime(float value, double startTime); - [Throws] - AudioParam linearRampToValueAtTime(float value, double endTime); - [Throws] - AudioParam exponentialRampToValueAtTime(float value, double endTime); + // Parameter automation. + [Throws] + AudioParam setValueAtTime(float value, double startTime); + [Throws] + AudioParam linearRampToValueAtTime(float value, double endTime); + [Throws] + AudioParam exponentialRampToValueAtTime(float value, double endTime); - // Exponentially approach the target value with a rate having the given time constant. - [Throws] - AudioParam setTargetAtTime(float target, double startTime, double timeConstant); + // Exponentially approach the target value with a rate having the given time constant. + [Throws] + AudioParam setTargetAtTime(float target, double startTime, double timeConstant); - // Sets an array of arbitrary parameter values starting at time for the given duration. - // The number of values will be scaled to fit into the desired duration. - [Throws] - AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); + // Sets an array of arbitrary parameter values starting at time for the given duration. + // The number of values will be scaled to fit into the desired duration. + [Throws] + AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); - // Cancels all scheduled parameter changes with times greater than or equal to startTime. - [Throws] - AudioParam cancelScheduledValues(double startTime); + // Cancels all scheduled parameter changes with times greater than or equal to startTime. + [Throws] + AudioParam cancelScheduledValues(double startTime); }; diff --git a/dom/webidl/BaseAudioContext.webidl b/dom/webidl/BaseAudioContext.webidl index e8796bb9f3ab..2b730e62518d 100644 --- a/dom/webidl/BaseAudioContext.webidl +++ b/dom/webidl/BaseAudioContext.webidl @@ -14,89 +14,89 @@ callback DecodeSuccessCallback = void (AudioBuffer decodedData); callback DecodeErrorCallback = void (DOMException error); enum AudioContextState { - "suspended", - "running", - "closed" + "suspended", + "running", + "closed" }; interface BaseAudioContext : EventTarget { - readonly attribute AudioDestinationNode destination; - readonly attribute float sampleRate; - readonly attribute double currentTime; - readonly attribute AudioListener listener; - readonly attribute AudioContextState state; - [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] - readonly attribute AudioWorklet audioWorklet; - // Bug 1324552: readonly attribute double baseLatency; + readonly attribute AudioDestinationNode destination; + readonly attribute float sampleRate; + readonly attribute double currentTime; + readonly attribute AudioListener listener; + readonly attribute AudioContextState state; + [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] + readonly attribute AudioWorklet audioWorklet; + // Bug 1324552: readonly attribute double baseLatency; - [Throws] - Promise resume(); + [Throws] + Promise resume(); - attribute EventHandler onstatechange; + attribute EventHandler onstatechange; - [NewObject, Throws] - AudioBuffer createBuffer (unsigned long numberOfChannels, - unsigned long length, - float sampleRate); + [NewObject, Throws] + AudioBuffer createBuffer (unsigned long numberOfChannels, + unsigned long length, + float sampleRate); - [Throws] - Promise decodeAudioData(ArrayBuffer audioData, - optional DecodeSuccessCallback successCallback, - optional DecodeErrorCallback errorCallback); + [Throws] + Promise decodeAudioData(ArrayBuffer audioData, + optional DecodeSuccessCallback successCallback, + optional DecodeErrorCallback errorCallback); - // AudioNode creation - [NewObject, Throws] - AudioBufferSourceNode createBufferSource(); + // AudioNode creation + [NewObject, Throws] + AudioBufferSourceNode createBufferSource(); - [NewObject, Throws] - ConstantSourceNode createConstantSource(); + [NewObject, Throws] + ConstantSourceNode createConstantSource(); - [NewObject, Throws] - ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, - optional unsigned long numberOfInputChannels = 2, - optional unsigned long numberOfOutputChannels = 2); + [NewObject, Throws] + ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, + optional unsigned long numberOfInputChannels = 2, + optional unsigned long numberOfOutputChannels = 2); - [NewObject, Throws] - AnalyserNode createAnalyser(); + [NewObject, Throws] + AnalyserNode createAnalyser(); - [NewObject, Throws] - GainNode createGain(); + [NewObject, Throws] + GainNode createGain(); - [NewObject, Throws] - DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 + [NewObject, Throws] + DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 - [NewObject, Throws] - BiquadFilterNode createBiquadFilter(); + [NewObject, Throws] + BiquadFilterNode createBiquadFilter(); - [NewObject, Throws] - IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); + [NewObject, Throws] + IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); - [NewObject, Throws] - WaveShaperNode createWaveShaper(); + [NewObject, Throws] + WaveShaperNode createWaveShaper(); - [NewObject, Throws] - PannerNode createPanner(); + [NewObject, Throws] + PannerNode createPanner(); - [NewObject, Throws] - StereoPannerNode createStereoPanner(); + [NewObject, Throws] + StereoPannerNode createStereoPanner(); - [NewObject, Throws] - ConvolverNode createConvolver(); + [NewObject, Throws] + ConvolverNode createConvolver(); - [NewObject, Throws] - ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); + [NewObject, Throws] + ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); - [NewObject, Throws] - ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); + [NewObject, Throws] + ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); - [NewObject, Throws] - DynamicsCompressorNode createDynamicsCompressor(); + [NewObject, Throws] + DynamicsCompressorNode createDynamicsCompressor(); - [NewObject, Throws] - OscillatorNode createOscillator(); + [NewObject, Throws] + OscillatorNode createOscillator(); - [NewObject, Throws] - PeriodicWave createPeriodicWave(Float32Array real, - Float32Array imag, - optional PeriodicWaveConstraints constraints); + [NewObject, Throws] + PeriodicWave createPeriodicWave(Float32Array real, + Float32Array imag, + optional PeriodicWaveConstraints constraints); }; diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl index 06a0da44b3eb..ad6b04ec8bea 100644 --- a/dom/webidl/DOMMatrix.webidl +++ b/dom/webidl/DOMMatrix.webidl @@ -13,72 +13,72 @@ [Pref="layout.css.DOMMatrix.enabled", Constructor(optional (DOMString or sequence) init)] interface DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - readonly attribute unrestricted double a; - readonly attribute unrestricted double b; - readonly attribute unrestricted double c; - readonly attribute unrestricted double d; - readonly attribute unrestricted double e; - readonly attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + readonly attribute unrestricted double a; + readonly attribute unrestricted double b; + readonly attribute unrestricted double c; + readonly attribute unrestricted double d; + readonly attribute unrestricted double e; + readonly attribute unrestricted double f; - readonly attribute unrestricted double m11; - readonly attribute unrestricted double m12; - readonly attribute unrestricted double m13; - readonly attribute unrestricted double m14; - readonly attribute unrestricted double m21; - readonly attribute unrestricted double m22; - readonly attribute unrestricted double m23; - readonly attribute unrestricted double m24; - readonly attribute unrestricted double m31; - readonly attribute unrestricted double m32; - readonly attribute unrestricted double m33; - readonly attribute unrestricted double m34; - readonly attribute unrestricted double m41; - readonly attribute unrestricted double m42; - readonly attribute unrestricted double m43; - readonly attribute unrestricted double m44; + readonly attribute unrestricted double m11; + readonly attribute unrestricted double m12; + readonly attribute unrestricted double m13; + readonly attribute unrestricted double m14; + readonly attribute unrestricted double m21; + readonly attribute unrestricted double m22; + readonly attribute unrestricted double m23; + readonly attribute unrestricted double m24; + readonly attribute unrestricted double m31; + readonly attribute unrestricted double m32; + readonly attribute unrestricted double m33; + readonly attribute unrestricted double m34; + readonly attribute unrestricted double m41; + readonly attribute unrestricted double m42; + readonly attribute unrestricted double m43; + readonly attribute unrestricted double m44; - // Immutable transform methods - DOMMatrix translate(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scale(unrestricted double scale, + // Immutable transform methods + DOMMatrix translate(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scale(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix scale3d(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3d(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniform(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotate(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVector(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngle(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewX(unrestricted double sx); - DOMMatrix skewY(unrestricted double sy); - DOMMatrix multiply(DOMMatrix other); - DOMMatrix flipX(); - DOMMatrix flipY(); - DOMMatrix inverse(); + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniform(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotate(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVector(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngle(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewX(unrestricted double sx); + DOMMatrix skewY(unrestricted double sy); + DOMMatrix multiply(DOMMatrix other); + DOMMatrix flipX(); + DOMMatrix flipY(); + DOMMatrix inverse(); - // Helper methods - readonly attribute boolean is2D; - readonly attribute boolean isIdentity; - DOMPoint transformPoint(optional DOMPointInit point); - [Throws] Float32Array toFloat32Array(); - [Throws] Float64Array toFloat64Array(); - stringifier; - [Default] object toJSON(); + // Helper methods + readonly attribute boolean is2D; + readonly attribute boolean isIdentity; + DOMPoint transformPoint(optional DOMPointInit point); + [Throws] Float32Array toFloat32Array(); + [Throws] Float64Array toFloat64Array(); + stringifier; + [Default] object toJSON(); }; [Pref="layout.css.DOMMatrix.enabled", @@ -89,62 +89,62 @@ interface DOMMatrixReadOnly { Constructor(Float64Array array64), Constructor(sequence numberSequence)] interface DOMMatrix : DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - inherit attribute unrestricted double a; - inherit attribute unrestricted double b; - inherit attribute unrestricted double c; - inherit attribute unrestricted double d; - inherit attribute unrestricted double e; - inherit attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + inherit attribute unrestricted double a; + inherit attribute unrestricted double b; + inherit attribute unrestricted double c; + inherit attribute unrestricted double d; + inherit attribute unrestricted double e; + inherit attribute unrestricted double f; - inherit attribute unrestricted double m11; - inherit attribute unrestricted double m12; - inherit attribute unrestricted double m13; - inherit attribute unrestricted double m14; - inherit attribute unrestricted double m21; - inherit attribute unrestricted double m22; - inherit attribute unrestricted double m23; - inherit attribute unrestricted double m24; - inherit attribute unrestricted double m31; - inherit attribute unrestricted double m32; - inherit attribute unrestricted double m33; - inherit attribute unrestricted double m34; - inherit attribute unrestricted double m41; - inherit attribute unrestricted double m42; - inherit attribute unrestricted double m43; - inherit attribute unrestricted double m44; + inherit attribute unrestricted double m11; + inherit attribute unrestricted double m12; + inherit attribute unrestricted double m13; + inherit attribute unrestricted double m14; + inherit attribute unrestricted double m21; + inherit attribute unrestricted double m22; + inherit attribute unrestricted double m23; + inherit attribute unrestricted double m24; + inherit attribute unrestricted double m31; + inherit attribute unrestricted double m32; + inherit attribute unrestricted double m33; + inherit attribute unrestricted double m34; + inherit attribute unrestricted double m41; + inherit attribute unrestricted double m42; + inherit attribute unrestricted double m43; + inherit attribute unrestricted double m44; - // Mutable transform methods - DOMMatrix multiplySelf(DOMMatrix other); - DOMMatrix preMultiplySelf(DOMMatrix other); - DOMMatrix translateSelf(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scaleSelf(unrestricted double scale, + // Mutable transform methods + DOMMatrix multiplySelf(DOMMatrix other); + DOMMatrix preMultiplySelf(DOMMatrix other); + DOMMatrix translateSelf(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scaleSelf(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix scale3dSelf(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3dSelf(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotateSelf(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVectorSelf(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngleSelf(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewXSelf(unrestricted double sx); - DOMMatrix skewYSelf(unrestricted double sy); - DOMMatrix invertSelf(); - [Throws] DOMMatrix setMatrixValue(DOMString transformList); + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotateSelf(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVectorSelf(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngleSelf(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewXSelf(unrestricted double sx); + DOMMatrix skewYSelf(unrestricted double sy); + DOMMatrix invertSelf(); + [Throws] DOMMatrix setMatrixValue(DOMString transformList); }; diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl index 2ebba958e45a..caf388c701db 100644 --- a/dom/webidl/DOMPoint.webidl +++ b/dom/webidl/DOMPoint.webidl @@ -14,31 +14,31 @@ Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPointReadOnly { - [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); + [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double z; - readonly attribute unrestricted double w; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double z; + readonly attribute unrestricted double w; - [Default] object toJSON(); + [Default] object toJSON(); }; [Pref="layout.css.DOMPoint.enabled", Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPoint : DOMPointReadOnly { - [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); + [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double z; - inherit attribute unrestricted double w; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double z; + inherit attribute unrestricted double w; }; dictionary DOMPointInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double z = 0; - unrestricted double w = 1; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double z = 0; + unrestricted double w = 1; }; diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl index 7370330b2954..ee8b5e545522 100644 --- a/dom/webidl/DOMQuad.webidl +++ b/dom/webidl/DOMQuad.webidl @@ -15,27 +15,27 @@ optional DOMPointInit p3, optional DOMPointInit p4), Constructor(DOMRectReadOnly rect)] interface DOMQuad { - [SameObject] readonly attribute DOMPoint p1; - [SameObject] readonly attribute DOMPoint p2; - [SameObject] readonly attribute DOMPoint p3; - [SameObject] readonly attribute DOMPoint p4; - [NewObject] DOMRectReadOnly getBounds(); + [SameObject] readonly attribute DOMPoint p1; + [SameObject] readonly attribute DOMPoint p2; + [SameObject] readonly attribute DOMPoint p3; + [SameObject] readonly attribute DOMPoint p4; + [NewObject] DOMRectReadOnly getBounds(); - [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; + [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; - DOMQuadJSON toJSON(); + DOMQuadJSON toJSON(); }; dictionary DOMQuadJSON { - DOMPoint p1; - DOMPoint p2; - DOMPoint p3; - DOMPoint p4; + DOMPoint p1; + DOMPoint p2; + DOMPoint p3; + DOMPoint p4; }; dictionary DOMQuadInit { - DOMPointInit p1; - DOMPointInit p2; - DOMPointInit p3; - DOMPointInit p4; + DOMPointInit p1; + DOMPointInit p2; + DOMPointInit p3; + DOMPointInit p4; }; diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl index b9261eccb35f..6846ee0cef16 100644 --- a/dom/webidl/DOMRect.webidl +++ b/dom/webidl/DOMRect.webidl @@ -13,31 +13,31 @@ [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRect : DOMRectReadOnly { - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double width; - inherit attribute unrestricted double height; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double width; + inherit attribute unrestricted double height; }; [ProbablyShortLivingWrapper, Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRectReadOnly { - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double width; - readonly attribute unrestricted double height; - readonly attribute unrestricted double top; - readonly attribute unrestricted double right; - readonly attribute unrestricted double bottom; - readonly attribute unrestricted double left; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double width; + readonly attribute unrestricted double height; + readonly attribute unrestricted double top; + readonly attribute unrestricted double right; + readonly attribute unrestricted double bottom; + readonly attribute unrestricted double left; - [Default] object toJSON(); + [Default] object toJSON(); }; dictionary DOMRectInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double width = 0; - unrestricted double height = 0; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double width = 0; + unrestricted double height = 0; }; diff --git a/dom/webidl/IDBCursor.webidl b/dom/webidl/IDBCursor.webidl index 159f9ba87ec5..e49103402687 100644 --- a/dom/webidl/IDBCursor.webidl +++ b/dom/webidl/IDBCursor.webidl @@ -8,42 +8,42 @@ */ enum IDBCursorDirection { - "next", - "nextunique", - "prev", - "prevunique" + "next", + "nextunique", + "prev", + "prevunique" }; [Exposed=(Window,Worker,System)] interface IDBCursor { - readonly attribute (IDBObjectStore or IDBIndex) source; + readonly attribute (IDBObjectStore or IDBIndex) source; - readonly attribute IDBCursorDirection direction; + readonly attribute IDBCursorDirection direction; - [Throws] - readonly attribute any key; + [Throws] + readonly attribute any key; - [Throws] - readonly attribute any primaryKey; + [Throws] + readonly attribute any primaryKey; - [Throws] - IDBRequest update (any value); + [Throws] + IDBRequest update (any value); - [Throws] - void advance ([EnforceRange] unsigned long count); + [Throws] + void advance ([EnforceRange] unsigned long count); - [Throws] - void continue (optional any key); + [Throws] + void continue (optional any key); - [Throws] - void continuePrimaryKey(any key, any primaryKey); + [Throws] + void continuePrimaryKey(any key, any primaryKey); - [Throws] - IDBRequest delete (); + [Throws] + IDBRequest delete (); }; [Exposed=(Window,Worker,System)] interface IDBCursorWithValue : IDBCursor { - [Throws] - readonly attribute any value; + [Throws] + readonly attribute any value; }; diff --git a/dom/webidl/IDBDatabase.webidl b/dom/webidl/IDBDatabase.webidl index 19ecaa41b3cf..bdc03ca30587 100644 --- a/dom/webidl/IDBDatabase.webidl +++ b/dom/webidl/IDBDatabase.webidl @@ -12,37 +12,37 @@ [Exposed=(Window,Worker,System)] interface IDBDatabase : EventTarget { - readonly attribute DOMString name; - readonly attribute unsigned long long version; + readonly attribute DOMString name; + readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; - [Throws] - IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); + [Throws] + IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); - [Throws] - void deleteObjectStore (DOMString name); + [Throws] + void deleteObjectStore (DOMString name); - [Throws] - IDBTransaction transaction ((DOMString or sequence) storeNames, - optional IDBTransactionMode mode = "readonly"); + [Throws] + IDBTransaction transaction ((DOMString or sequence) storeNames, + optional IDBTransactionMode mode = "readonly"); - void close (); + void close (); - attribute EventHandler onabort; - attribute EventHandler onclose; - attribute EventHandler onerror; - attribute EventHandler onversionchange; + attribute EventHandler onabort; + attribute EventHandler onclose; + attribute EventHandler onerror; + attribute EventHandler onversionchange; }; partial interface IDBDatabase { - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute StorageType storage; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute StorageType storage; - [Exposed=Window, Throws, UseCounter] - IDBRequest createMutableFile (DOMString name, optional DOMString type); + [Exposed=Window, Throws, UseCounter] + IDBRequest createMutableFile (DOMString name, optional DOMString type); - // this is deprecated due to renaming in the spec - [Exposed=Window, Throws, UseCounter] - IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile + // this is deprecated due to renaming in the spec + [Exposed=Window, Throws, UseCounter] + IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile }; diff --git a/dom/webidl/IDBIndex.webidl b/dom/webidl/IDBIndex.webidl index 0e436650a47e..5632ad8c18cc 100644 --- a/dom/webidl/IDBIndex.webidl +++ b/dom/webidl/IDBIndex.webidl @@ -8,64 +8,64 @@ */ dictionary IDBIndexParameters { - boolean unique = false; - boolean multiEntry = false; - // : Not locale-aware, uses normal JS sorting. - // : Always sorted based on the rules of the specified - // locale (e.g. "en-US", etc.). - // "auto": Sorted by the platform default, may change based on - // user agent options. - DOMString? locale = null; + boolean unique = false; + boolean multiEntry = false; + // : Not locale-aware, uses normal JS sorting. + // : Always sorted based on the rules of the specified + // locale (e.g. "en-US", etc.). + // "auto": Sorted by the platform default, may change based on + // user agent options. + DOMString? locale = null; }; [Exposed=(Window,Worker,System)] interface IDBIndex { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - readonly attribute IDBObjectStore objectStore; + readonly attribute IDBObjectStore objectStore; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute boolean multiEntry; - readonly attribute boolean unique; + readonly attribute boolean multiEntry; + readonly attribute boolean unique; - // : Not locale-aware, uses normal JS sorting. - // : Sorted based on the rules of the specified locale. - // Note: never returns "auto", only the current locale. - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute DOMString? locale; + // : Not locale-aware, uses normal JS sorting. + // : Sorted based on the rules of the specified locale. + // Note: never returns "auto", only the current locale. + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute DOMString? locale; - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute boolean isAutoLocale; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute boolean isAutoLocale; - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBIndex { - [Throws] - IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); }; diff --git a/dom/webidl/IDBObjectStore.webidl b/dom/webidl/IDBObjectStore.webidl index a06ac8897beb..635b582f61df 100644 --- a/dom/webidl/IDBObjectStore.webidl +++ b/dom/webidl/IDBObjectStore.webidl @@ -14,48 +14,48 @@ dictionary IDBObjectStoreParameters { [Exposed=(Window,Worker,System)] interface IDBObjectStore { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; - readonly attribute IDBTransaction transaction; - readonly attribute boolean autoIncrement; + readonly attribute DOMStringList indexNames; + readonly attribute IDBTransaction transaction; + readonly attribute boolean autoIncrement; - [Throws] - IDBRequest put (any value, optional any key); + [Throws] + IDBRequest put (any value, optional any key); - [Throws] - IDBRequest add (any value, optional any key); + [Throws] + IDBRequest add (any value, optional any key); - [Throws] - IDBRequest delete (any key); + [Throws] + IDBRequest delete (any key); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest clear (); + [Throws] + IDBRequest clear (); - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); + [Throws] + IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); - [Throws] - IDBIndex index (DOMString name); + [Throws] + IDBIndex index (DOMString name); - [Throws] - void deleteIndex (DOMString indexName); + [Throws] + void deleteIndex (DOMString indexName); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBObjectStore { diff --git a/dom/webidl/IDBTransaction.webidl b/dom/webidl/IDBTransaction.webidl index 336eaf2b8db7..1819692e95ff 100644 --- a/dom/webidl/IDBTransaction.webidl +++ b/dom/webidl/IDBTransaction.webidl @@ -9,36 +9,36 @@ */ enum IDBTransactionMode { - "readonly", - "readwrite", - // The "readwriteflush" mode is only available when the - // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns - // true. This mode is not yet part of the standard. - "readwriteflush", - "cleanup", - "versionchange" + "readonly", + "readwrite", + // The "readwriteflush" mode is only available when the + // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns + // true. This mode is not yet part of the standard. + "readwriteflush", + "cleanup", + "versionchange" }; [Exposed=(Window,Worker,System)] interface IDBTransaction : EventTarget { - [Throws] - readonly attribute IDBTransactionMode mode; - readonly attribute IDBDatabase db; + [Throws] + readonly attribute IDBTransactionMode mode; + readonly attribute IDBDatabase db; - readonly attribute DOMException? error; + readonly attribute DOMException? error; - [Throws] - IDBObjectStore objectStore (DOMString name); + [Throws] + IDBObjectStore objectStore (DOMString name); - [Throws] - void abort(); + [Throws] + void abort(); - attribute EventHandler onabort; - attribute EventHandler oncomplete; - attribute EventHandler onerror; + attribute EventHandler onabort; + attribute EventHandler oncomplete; + attribute EventHandler onerror; }; // This seems to be custom partial interface IDBTransaction { - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; }; diff --git a/dom/webidl/MediaStream.webidl b/dom/webidl/MediaStream.webidl index 71d24527e3aa..e57a3c058d97 100644 --- a/dom/webidl/MediaStream.webidl +++ b/dom/webidl/MediaStream.webidl @@ -14,13 +14,13 @@ // MediaTrackConstraints* counterparts due to a webidl compiler limitation. dictionary MediaStreamConstraints { - (boolean or MediaTrackConstraints) audio = false; - (boolean or MediaTrackConstraints) video = false; - boolean picture = false; // Mozilla legacy - boolean fake; // For testing purpose. Generates frames of solid - // colors if video is enabled, and sound of 1Khz sine - // wave if audio is enabled. - DOMString? peerIdentity = null; + (boolean or MediaTrackConstraints) audio = false; + (boolean or MediaTrackConstraints) video = false; + boolean picture = false; // Mozilla legacy + boolean fake; // For testing purpose. Generates frames of solid + // colors if video is enabled, and sound of 1Khz sine + // wave if audio is enabled. + DOMString? peerIdentity = null; }; [Exposed=Window, @@ -28,24 +28,24 @@ dictionary MediaStreamConstraints { Constructor (MediaStream stream), Constructor (sequence tracks)] interface MediaStream : EventTarget { - readonly attribute DOMString id; - sequence getAudioTracks (); - sequence getVideoTracks (); - sequence getTracks (); - MediaStreamTrack? getTrackById (DOMString trackId); - void addTrack (MediaStreamTrack track); - void removeTrack (MediaStreamTrack track); - MediaStream clone (); - readonly attribute boolean active; - attribute EventHandler onaddtrack; - attribute EventHandler onremovetrack; - readonly attribute double currentTime; + readonly attribute DOMString id; + sequence getAudioTracks (); + sequence getVideoTracks (); + sequence getTracks (); + MediaStreamTrack? getTrackById (DOMString trackId); + void addTrack (MediaStreamTrack track); + void removeTrack (MediaStreamTrack track); + MediaStream clone (); + readonly attribute boolean active; + attribute EventHandler onaddtrack; + attribute EventHandler onremovetrack; + readonly attribute double currentTime; - [ChromeOnly, Throws] - static Promise countUnderlyingStreams(); + [ChromeOnly, Throws] + static Promise countUnderlyingStreams(); - // Webrtc allows the remote side to name a stream whatever it wants, and we - // need to surface this to content. - [ChromeOnly] - void assignId(DOMString id); + // Webrtc allows the remote side to name a stream whatever it wants, and we + // need to surface this to content. + [ChromeOnly] + void assignId(DOMString id); }; diff --git a/dom/webidl/MediaStreamTrack.webidl b/dom/webidl/MediaStreamTrack.webidl index 09f28d848b86..4bb18c9f7a2e 100644 --- a/dom/webidl/MediaStreamTrack.webidl +++ b/dom/webidl/MediaStreamTrack.webidl @@ -15,22 +15,22 @@ // Their binding code is used in the implementation. enum VideoFacingModeEnum { - "user", - "environment", - "left", - "right" + "user", + "environment", + "left", + "right" }; enum MediaSourceEnum { - "camera", - "screen", - "application", - "window", - "browser", - "microphone", - "audioCapture", - "other" - // If values are added, adjust n_values in Histograms.json (2 places) + "camera", + "screen", + "application", + "window", + "browser", + "microphone", + "audioCapture", + "other" + // If values are added, adjust n_values in Histograms.json (2 places) }; typedef (long or ConstrainLongRange) ConstrainLong; @@ -42,60 +42,60 @@ typedef (DOMString or sequence or ConstrainDOMStringParameters) Const // function in MediaManager.cpp to make OverconstrainedError's constraint work! dictionary MediaTrackConstraintSet { - ConstrainLong width; - ConstrainLong height; - ConstrainDouble frameRate; - ConstrainDOMString facingMode; - DOMString mediaSource = "camera"; - long long browserWindow; - boolean scrollWithPage; - ConstrainDOMString deviceId; - ConstrainLong viewportOffsetX; - ConstrainLong viewportOffsetY; - ConstrainLong viewportWidth; - ConstrainLong viewportHeight; - ConstrainBoolean echoCancellation; - ConstrainBoolean noiseSuppression; - ConstrainBoolean autoGainControl; - ConstrainLong channelCount; + ConstrainLong width; + ConstrainLong height; + ConstrainDouble frameRate; + ConstrainDOMString facingMode; + DOMString mediaSource = "camera"; + long long browserWindow; + boolean scrollWithPage; + ConstrainDOMString deviceId; + ConstrainLong viewportOffsetX; + ConstrainLong viewportOffsetY; + ConstrainLong viewportWidth; + ConstrainLong viewportHeight; + ConstrainBoolean echoCancellation; + ConstrainBoolean noiseSuppression; + ConstrainBoolean autoGainControl; + ConstrainLong channelCount; - // Deprecated with warnings: - ConstrainBoolean mozNoiseSuppression; - ConstrainBoolean mozAutoGainControl; + // Deprecated with warnings: + ConstrainBoolean mozNoiseSuppression; + ConstrainBoolean mozAutoGainControl; }; dictionary MediaTrackConstraints : MediaTrackConstraintSet { - sequence advanced; + sequence advanced; }; enum MediaStreamTrackState { - "live", - "ended" + "live", + "ended" }; [Exposed=Window] interface MediaStreamTrack : EventTarget { - readonly attribute DOMString kind; - readonly attribute DOMString id; - [NeedsCallerType] - readonly attribute DOMString label; - attribute boolean enabled; - readonly attribute boolean muted; - attribute EventHandler onmute; - attribute EventHandler onunmute; - readonly attribute MediaStreamTrackState readyState; - attribute EventHandler onended; - MediaStreamTrack clone (); - void stop (); -// MediaTrackCapabilities getCapabilities (); - MediaTrackConstraints getConstraints (); - [NeedsCallerType] - MediaTrackSettings getSettings (); + readonly attribute DOMString kind; + readonly attribute DOMString id; + [NeedsCallerType] + readonly attribute DOMString label; + attribute boolean enabled; + readonly attribute boolean muted; + attribute EventHandler onmute; + attribute EventHandler onunmute; + readonly attribute MediaStreamTrackState readyState; + attribute EventHandler onended; + MediaStreamTrack clone (); + void stop (); +//MediaTrackCapabilities getCapabilities (); + MediaTrackConstraints getConstraints (); + [NeedsCallerType] + MediaTrackSettings getSettings (); - [Throws, NeedsCallerType] - Promise applyConstraints (optional MediaTrackConstraints constraints); -// attribute EventHandler onoverconstrained; + [Throws, NeedsCallerType] + Promise applyConstraints (optional MediaTrackConstraints constraints); +// attribute EventHandler onoverconstrained; - [ChromeOnly] - void mutedChanged(boolean muted); + [ChromeOnly] + void mutedChanged(boolean muted); }; diff --git a/dom/webidl/MediaTrackSettings.webidl b/dom/webidl/MediaTrackSettings.webidl index 977e0f01dc3b..551ba0cd67d1 100644 --- a/dom/webidl/MediaTrackSettings.webidl +++ b/dom/webidl/MediaTrackSettings.webidl @@ -8,30 +8,30 @@ */ dictionary MediaTrackSettings { - long width; - long height; - double frameRate; - DOMString facingMode; - DOMString deviceId; - boolean echoCancellation; - boolean noiseSuppression; - boolean autoGainControl; - long channelCount; + long width; + long height; + double frameRate; + DOMString facingMode; + DOMString deviceId; + boolean echoCancellation; + boolean noiseSuppression; + boolean autoGainControl; + long channelCount; - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - DOMString mediaSource; + DOMString mediaSource; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - long long browserWindow; - boolean scrollWithPage; - long viewportOffsetX; - long viewportOffsetY; - long viewportWidth; - long viewportHeight; + long long browserWindow; + boolean scrollWithPage; + long viewportOffsetX; + long viewportOffsetY; + long viewportWidth; + long viewportHeight; }; diff --git a/dom/webidl/MediaTrackSupportedConstraints.webidl b/dom/webidl/MediaTrackSupportedConstraints.webidl index ac2d4b837e55..a5915489229f 100644 --- a/dom/webidl/MediaTrackSupportedConstraints.webidl +++ b/dom/webidl/MediaTrackSupportedConstraints.webidl @@ -8,36 +8,36 @@ */ dictionary MediaTrackSupportedConstraints { - boolean width = true; - boolean height = true; - boolean aspectRatio; // to be supported - boolean frameRate = true; - boolean facingMode = true; - boolean volume; // to be supported - boolean sampleRate; // to be supported - boolean sampleSize; // to be supported - boolean echoCancellation = true; - boolean noiseSuppression = true; - boolean autoGainControl = true; - boolean latency; // to be supported - boolean channelCount = true; - boolean deviceId = true; - boolean groupId; // to be supported + boolean width = true; + boolean height = true; + boolean aspectRatio; // to be supported + boolean frameRate = true; + boolean facingMode = true; + boolean volume; // to be supported + boolean sampleRate; // to be supported + boolean sampleSize; // to be supported + boolean echoCancellation = true; + boolean noiseSuppression = true; + boolean autoGainControl = true; + boolean latency; // to be supported + boolean channelCount = true; + boolean deviceId = true; + boolean groupId; // to be supported - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - boolean mediaSource = true; + boolean mediaSource = true; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - boolean browserWindow = true; - boolean scrollWithPage = true; - boolean viewportOffsetX = true; - boolean viewportOffsetY = true; - boolean viewportWidth = true; - boolean viewportHeight = true; + boolean browserWindow = true; + boolean scrollWithPage = true; + boolean viewportOffsetX = true; + boolean viewportOffsetY = true; + boolean viewportWidth = true; + boolean viewportHeight = true; }; diff --git a/dom/webidl/PannerNode.webidl b/dom/webidl/PannerNode.webidl index 684ab5835e9a..2debe3ed2936 100644 --- a/dom/webidl/PannerNode.webidl +++ b/dom/webidl/PannerNode.webidl @@ -22,57 +22,57 @@ enum DistanceModelType { }; dictionary PannerOptions : AudioNodeOptions { - PanningModelType panningModel = "equalpower"; - DistanceModelType distanceModel = "inverse"; - float positionX = 0; - float positionY = 0; - float positionZ = 0; - float orientationX = 1; - float orientationY = 0; - float orientationZ = 0; - double refDistance = 1; - double maxDistance = 10000; - double rolloffFactor = 1; - double coneInnerAngle = 360; - double coneOuterAngle = 360; - double coneOuterGain = 0; + PanningModelType panningModel = "equalpower"; + DistanceModelType distanceModel = "inverse"; + float positionX = 0; + float positionY = 0; + float positionZ = 0; + float orientationX = 1; + float orientationY = 0; + float orientationZ = 0; + double refDistance = 1; + double maxDistance = 10000; + double rolloffFactor = 1; + double coneInnerAngle = 360; + double coneOuterAngle = 360; + double coneOuterGain = 0; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional PannerOptions options)] interface PannerNode : AudioNode { - // Default for stereo is equalpower - attribute PanningModelType panningModel; + // Default for stereo is equalpower + attribute PanningModelType panningModel; - // Uses a 3D cartesian coordinate system - void setPosition(double x, double y, double z); - void setOrientation(double x, double y, double z); + // Uses a 3D cartesian coordinate system + void setPosition(double x, double y, double z); + void setOrientation(double x, double y, double z); - // Cartesian coordinate for position - readonly attribute AudioParam positionX; - readonly attribute AudioParam positionY; - readonly attribute AudioParam positionZ; + // Cartesian coordinate for position + readonly attribute AudioParam positionX; + readonly attribute AudioParam positionY; + readonly attribute AudioParam positionZ; - // Cartesian coordinate for orientation - readonly attribute AudioParam orientationX; - readonly attribute AudioParam orientationY; - readonly attribute AudioParam orientationZ; + // Cartesian coordinate for orientation + readonly attribute AudioParam orientationX; + readonly attribute AudioParam orientationY; + readonly attribute AudioParam orientationZ; - // Distance model and attributes - attribute DistanceModelType distanceModel; - [SetterThrows] - attribute double refDistance; - [SetterThrows] - attribute double maxDistance; - [SetterThrows] - attribute double rolloffFactor; + // Distance model and attributes + attribute DistanceModelType distanceModel; + [SetterThrows] + attribute double refDistance; + [SetterThrows] + attribute double maxDistance; + [SetterThrows] + attribute double rolloffFactor; - // Directional sound cone - attribute double coneInnerAngle; - attribute double coneOuterAngle; - [SetterThrows] - attribute double coneOuterGain; + // Directional sound cone + attribute double coneInnerAngle; + attribute double coneOuterAngle; + [SetterThrows] + attribute double coneOuterGain; }; diff --git a/dom/webidl/RTCConfiguration.webidl b/dom/webidl/RTCConfiguration.webidl index 2c4052b8a5a2..4b1a97031ccc 100644 --- a/dom/webidl/RTCConfiguration.webidl +++ b/dom/webidl/RTCConfiguration.webidl @@ -8,33 +8,33 @@ */ enum RTCIceCredentialType { - "password", - "token" + "password", + "token" }; dictionary RTCIceServer { - (DOMString or sequence) urls; - DOMString url; //deprecated - DOMString username; - DOMString credential; - RTCIceCredentialType credentialType = "password"; + (DOMString or sequence) urls; + DOMString url; //deprecated + DOMString username; + DOMString credential; + RTCIceCredentialType credentialType = "password"; }; enum RTCIceTransportPolicy { - "relay", - "all" + "relay", + "all" }; enum RTCBundlePolicy { - "balanced", - "max-compat", - "max-bundle" + "balanced", + "max-compat", + "max-bundle" }; dictionary RTCConfiguration { - sequence iceServers; - RTCIceTransportPolicy iceTransportPolicy = "all"; - RTCBundlePolicy bundlePolicy = "balanced"; - DOMString? peerIdentity = null; - sequence certificates; + sequence iceServers; + RTCIceTransportPolicy iceTransportPolicy = "all"; + RTCBundlePolicy bundlePolicy = "balanced"; + DOMString? peerIdentity = null; + sequence certificates; }; diff --git a/dom/webidl/RTCRtpTransceiver.webidl b/dom/webidl/RTCRtpTransceiver.webidl index 5e4e81fcdbf6..422c721110d7 100644 --- a/dom/webidl/RTCRtpTransceiver.webidl +++ b/dom/webidl/RTCRtpTransceiver.webidl @@ -8,71 +8,71 @@ */ enum RTCRtpTransceiverDirection { - "sendrecv", - "sendonly", - "recvonly", - "inactive" + "sendrecv", + "sendonly", + "recvonly", + "inactive" }; dictionary RTCRtpTransceiverInit { - RTCRtpTransceiverDirection direction = "sendrecv"; - sequence streams = []; - // TODO: bug 1396918 - // sequence sendEncodings; + RTCRtpTransceiverDirection direction = "sendrecv"; + sequence streams = []; + // TODO: bug 1396918 + // sequence sendEncodings; }; [Pref="media.peerconnection.enabled", JSImplementation="@mozilla.org/dom/rtptransceiver;1"] interface RTCRtpTransceiver { - readonly attribute DOMString? mid; - [SameObject] - readonly attribute RTCRtpSender sender; - [SameObject] - readonly attribute RTCRtpReceiver receiver; - readonly attribute boolean stopped; - attribute RTCRtpTransceiverDirection direction; - readonly attribute RTCRtpTransceiverDirection? currentDirection; + readonly attribute DOMString? mid; + [SameObject] + readonly attribute RTCRtpSender sender; + [SameObject] + readonly attribute RTCRtpReceiver receiver; + readonly attribute boolean stopped; + attribute RTCRtpTransceiverDirection direction; + readonly attribute RTCRtpTransceiverDirection? currentDirection; - void stop(); - // TODO: bug 1396922 - // void setCodecPreferences(sequence codecs); + void stop(); + // TODO: bug 1396922 + // void setCodecPreferences(sequence codecs); - [ChromeOnly] - void setRemoteTrackId(DOMString trackId); - [ChromeOnly] - boolean remoteTrackIdIs(DOMString trackId); + [ChromeOnly] + void setRemoteTrackId(DOMString trackId); + [ChromeOnly] + boolean remoteTrackIdIs(DOMString trackId); - // Mostly for testing - [Pref="media.peerconnection.remoteTrackId.enabled"] - DOMString getRemoteTrackId(); + // Mostly for testing + [Pref="media.peerconnection.remoteTrackId.enabled"] + DOMString getRemoteTrackId(); - [ChromeOnly] - void setAddTrackMagic(); - [ChromeOnly] - readonly attribute boolean addTrackMagic; - [ChromeOnly] - attribute boolean shouldRemove; - [ChromeOnly] - void setCurrentDirection(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setDirectionInternal(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setMid(DOMString mid); - [ChromeOnly] - void unsetMid(); - [ChromeOnly] - void setStopped(); + [ChromeOnly] + void setAddTrackMagic(); + [ChromeOnly] + readonly attribute boolean addTrackMagic; + [ChromeOnly] + attribute boolean shouldRemove; + [ChromeOnly] + void setCurrentDirection(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setDirectionInternal(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setMid(DOMString mid); + [ChromeOnly] + void unsetMid(); + [ChromeOnly] + void setStopped(); - [ChromeOnly] - DOMString getKind(); - [ChromeOnly] - boolean hasBeenUsedToSend(); - [ChromeOnly] - void sync(); + [ChromeOnly] + DOMString getKind(); + [ChromeOnly] + boolean hasBeenUsedToSend(); + [ChromeOnly] + void sync(); - [ChromeOnly] - void insertDTMF(DOMString tones, - optional unsigned long duration = 100, - optional unsigned long interToneGap = 70); + [ChromeOnly] + void insertDTMF(DOMString tones, + optional unsigned long duration = 100, + optional unsigned long interToneGap = 70); }; diff --git a/dom/webidl/SecurityPolicyViolationEvent.webidl b/dom/webidl/SecurityPolicyViolationEvent.webidl index d7b691d30459..051277488006 100644 --- a/dom/webidl/SecurityPolicyViolationEvent.webidl +++ b/dom/webidl/SecurityPolicyViolationEvent.webidl @@ -10,32 +10,32 @@ enum SecurityPolicyViolationEventDisposition [Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict)] interface SecurityPolicyViolationEvent : Event { - readonly attribute DOMString documentURI; - readonly attribute DOMString referrer; - readonly attribute DOMString blockedURI; - readonly attribute DOMString violatedDirective; - readonly attribute DOMString effectiveDirective; - readonly attribute DOMString originalPolicy; - readonly attribute DOMString sourceFile; - readonly attribute DOMString sample; - readonly attribute SecurityPolicyViolationEventDisposition disposition; - readonly attribute unsigned short statusCode; - readonly attribute long lineNumber; - readonly attribute long columnNumber; + readonly attribute DOMString documentURI; + readonly attribute DOMString referrer; + readonly attribute DOMString blockedURI; + readonly attribute DOMString violatedDirective; + readonly attribute DOMString effectiveDirective; + readonly attribute DOMString originalPolicy; + readonly attribute DOMString sourceFile; + readonly attribute DOMString sample; + readonly attribute SecurityPolicyViolationEventDisposition disposition; + readonly attribute unsigned short statusCode; + readonly attribute long lineNumber; + readonly attribute long columnNumber; }; dictionary SecurityPolicyViolationEventInit : EventInit { - DOMString documentURI = ""; - DOMString referrer = ""; - DOMString blockedURI = ""; - DOMString violatedDirective = ""; - DOMString effectiveDirective = ""; - DOMString originalPolicy = ""; - DOMString sourceFile = ""; - DOMString sample = ""; - SecurityPolicyViolationEventDisposition disposition = "report"; - unsigned short statusCode = 0; - long lineNumber = 0; - long columnNumber = 0; + DOMString documentURI = ""; + DOMString referrer = ""; + DOMString blockedURI = ""; + DOMString violatedDirective = ""; + DOMString effectiveDirective = ""; + DOMString originalPolicy = ""; + DOMString sourceFile = ""; + DOMString sample = ""; + SecurityPolicyViolationEventDisposition disposition = "report"; + unsigned short statusCode = 0; + long lineNumber = 0; + long columnNumber = 0; }; diff --git a/dom/webidl/SpeechRecognition.webidl b/dom/webidl/SpeechRecognition.webidl index 3c32f3769d6f..f24eee83cf3a 100644 --- a/dom/webidl/SpeechRecognition.webidl +++ b/dom/webidl/SpeechRecognition.webidl @@ -14,32 +14,32 @@ Pref="media.webspeech.recognition.enable", Func="SpeechRecognition::IsAuthorized"] interface SpeechRecognition : EventTarget { - // recognition parameters - attribute SpeechGrammarList grammars; - attribute DOMString lang; - [Throws] - attribute boolean continuous; - attribute boolean interimResults; - attribute unsigned long maxAlternatives; - [Throws] - attribute DOMString serviceURI; + // recognition parameters + attribute SpeechGrammarList grammars; + attribute DOMString lang; + [Throws] + attribute boolean continuous; + attribute boolean interimResults; + attribute unsigned long maxAlternatives; + [Throws] + attribute DOMString serviceURI; - // methods to drive the speech interaction - [Throws, NeedsCallerType] - void start(optional MediaStream stream); - void stop(); - void abort(); + // methods to drive the speech interaction + [Throws, NeedsCallerType] + void start(optional MediaStream stream); + void stop(); + void abort(); - // event methods - attribute EventHandler onaudiostart; - attribute EventHandler onsoundstart; - attribute EventHandler onspeechstart; - attribute EventHandler onspeechend; - attribute EventHandler onsoundend; - attribute EventHandler onaudioend; - attribute EventHandler onresult; - attribute EventHandler onnomatch; - attribute EventHandler onerror; - attribute EventHandler onstart; - attribute EventHandler onend; + // event methods + attribute EventHandler onaudiostart; + attribute EventHandler onsoundstart; + attribute EventHandler onspeechstart; + attribute EventHandler onspeechend; + attribute EventHandler onsoundend; + attribute EventHandler onaudioend; + attribute EventHandler onresult; + attribute EventHandler onnomatch; + attribute EventHandler onerror; + attribute EventHandler onstart; + attribute EventHandler onend; }; diff --git a/dom/webidl/U2F.webidl b/dom/webidl/U2F.webidl index 29bed6f3ac54..3ab3e3feffee 100644 --- a/dom/webidl/U2F.webidl +++ b/dom/webidl/U2F.webidl @@ -19,49 +19,49 @@ typedef unsigned short ErrorCode; typedef sequence Transports; enum Transport { - "bt", - "ble", - "nfc", - "usb" + "bt", + "ble", + "nfc", + "usb" }; dictionary U2FClientData { - DOMString typ; // Spelling is from the specification - DOMString challenge; - DOMString origin; - // cid_pubkey for Token Binding is not implemented + DOMString typ; // Spelling is from the specification + DOMString challenge; + DOMString origin; + // cid_pubkey for Token Binding is not implemented }; dictionary RegisterRequest { - DOMString version; - DOMString challenge; + DOMString version; + DOMString challenge; }; dictionary RegisterResponse { - DOMString version; - DOMString registrationData; - DOMString clientData; + DOMString version; + DOMString registrationData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; dictionary RegisteredKey { - DOMString version; - DOMString keyHandle; - Transports? transports; - DOMString? appId; + DOMString version; + DOMString keyHandle; + Transports? transports; + DOMString? appId; }; dictionary SignResponse { - DOMString keyHandle; - DOMString signatureData; - DOMString clientData; + DOMString keyHandle; + DOMString signatureData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; callback U2FRegisterCallback = void(RegisterResponse response); diff --git a/dom/webidl/UDPSocket.webidl b/dom/webidl/UDPSocket.webidl index 74cede28c8ff..da9b86ff4bd4 100644 --- a/dom/webidl/UDPSocket.webidl +++ b/dom/webidl/UDPSocket.webidl @@ -9,32 +9,32 @@ */ dictionary UDPOptions { - DOMString localAddress; - unsigned short localPort; - DOMString remoteAddress; - unsigned short remotePort; - boolean addressReuse = true; - boolean loopback = false; + DOMString localAddress; + unsigned short localPort; + DOMString remoteAddress; + unsigned short remotePort; + boolean addressReuse = true; + boolean loopback = false; }; [Constructor (optional UDPOptions options), Pref="dom.udpsocket.enabled", ChromeOnly] interface UDPSocket : EventTarget { - readonly attribute DOMString? localAddress; - readonly attribute unsigned short? localPort; - readonly attribute DOMString? remoteAddress; - readonly attribute unsigned short? remotePort; - readonly attribute boolean addressReuse; - readonly attribute boolean loopback; - readonly attribute SocketReadyState readyState; - readonly attribute Promise opened; - readonly attribute Promise closed; -// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready -// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready + readonly attribute DOMString? localAddress; + readonly attribute unsigned short? localPort; + readonly attribute DOMString? remoteAddress; + readonly attribute unsigned short? remotePort; + readonly attribute boolean addressReuse; + readonly attribute boolean loopback; + readonly attribute SocketReadyState readyState; + readonly attribute Promise opened; + readonly attribute Promise closed; +// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready +// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready attribute EventHandler onmessage; //Bug 1056444: use event interface before Stream API is ready - Promise close (); - [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); - [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); - [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready + Promise close (); + [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); + [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); + [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready }; diff --git a/dom/webidl/WebAuthentication.webidl b/dom/webidl/WebAuthentication.webidl index f9a6df415754..503c973f0b0d 100644 --- a/dom/webidl/WebAuthentication.webidl +++ b/dom/webidl/WebAuthentication.webidl @@ -11,138 +11,138 @@ [SecureContext, Pref="security.webauth.webauthn"] interface PublicKeyCredential : Credential { - [SameObject] readonly attribute ArrayBuffer rawId; - [SameObject] readonly attribute AuthenticatorResponse response; - AuthenticationExtensionsClientOutputs getClientExtensionResults(); + [SameObject] readonly attribute ArrayBuffer rawId; + [SameObject] readonly attribute AuthenticatorResponse response; + AuthenticationExtensionsClientOutputs getClientExtensionResults(); }; [SecureContext] partial interface PublicKeyCredential { - static Promise isUserVerifyingPlatformAuthenticatorAvailable(); + static Promise isUserVerifyingPlatformAuthenticatorAvailable(); }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer clientDataJSON; + [SameObject] readonly attribute ArrayBuffer clientDataJSON; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAttestationResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer attestationObject; + [SameObject] readonly attribute ArrayBuffer attestationObject; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAssertionResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer authenticatorData; - [SameObject] readonly attribute ArrayBuffer signature; - [SameObject] readonly attribute ArrayBuffer? userHandle; + [SameObject] readonly attribute ArrayBuffer authenticatorData; + [SameObject] readonly attribute ArrayBuffer signature; + [SameObject] readonly attribute ArrayBuffer? userHandle; }; dictionary PublicKeyCredentialParameters { - required PublicKeyCredentialType type; - required COSEAlgorithmIdentifier alg; + required PublicKeyCredentialType type; + required COSEAlgorithmIdentifier alg; }; dictionary PublicKeyCredentialCreationOptions { - required PublicKeyCredentialRpEntity rp; - required PublicKeyCredentialUserEntity user; + required PublicKeyCredentialRpEntity rp; + required PublicKeyCredentialUserEntity user; - required BufferSource challenge; - required sequence pubKeyCredParams; + required BufferSource challenge; + required sequence pubKeyCredParams; - unsigned long timeout; - sequence excludeCredentials = []; - AuthenticatorSelectionCriteria authenticatorSelection; - AttestationConveyancePreference attestation = "none"; - AuthenticationExtensionsClientInputs extensions; + unsigned long timeout; + sequence excludeCredentials = []; + AuthenticatorSelectionCriteria authenticatorSelection; + AttestationConveyancePreference attestation = "none"; + AuthenticationExtensionsClientInputs extensions; }; dictionary PublicKeyCredentialEntity { - required DOMString name; - USVString icon; + required DOMString name; + USVString icon; }; dictionary PublicKeyCredentialRpEntity : PublicKeyCredentialEntity { - DOMString id; + DOMString id; }; dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity { - required BufferSource id; - required DOMString displayName; + required BufferSource id; + required DOMString displayName; }; dictionary AuthenticatorSelectionCriteria { - AuthenticatorAttachment authenticatorAttachment; - boolean requireResidentKey = false; - UserVerificationRequirement userVerification = "preferred"; + AuthenticatorAttachment authenticatorAttachment; + boolean requireResidentKey = false; + UserVerificationRequirement userVerification = "preferred"; }; enum AuthenticatorAttachment { - "platform", // Platform attachment - "cross-platform" // Cross-platform attachment + "platform", // Platform attachment + "cross-platform" // Cross-platform attachment }; enum AttestationConveyancePreference { - "none", - "indirect", - "direct" + "none", + "indirect", + "direct" }; enum UserVerificationRequirement { - "required", - "preferred", - "discouraged" + "required", + "preferred", + "discouraged" }; dictionary PublicKeyCredentialRequestOptions { - required BufferSource challenge; - unsigned long timeout; - USVString rpId; - sequence allowCredentials = []; - UserVerificationRequirement userVerification = "preferred"; - AuthenticationExtensionsClientInputs extensions; + required BufferSource challenge; + unsigned long timeout; + USVString rpId; + sequence allowCredentials = []; + UserVerificationRequirement userVerification = "preferred"; + AuthenticationExtensionsClientInputs extensions; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientInputs { - // FIDO AppID Extension (appid) - // - USVString appid; + // FIDO AppID Extension (appid) + // + USVString appid; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientOutputs { - // FIDO AppID Extension (appid) - // - boolean appid; + // FIDO AppID Extension (appid) + // + boolean appid; }; typedef record AuthenticationExtensionsAuthenticatorInputs; dictionary CollectedClientData { - required DOMString type; - required DOMString challenge; - required DOMString origin; - required DOMString hashAlgorithm; - DOMString tokenBindingId; - AuthenticationExtensionsClientInputs clientExtensions; - AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; + required DOMString type; + required DOMString challenge; + required DOMString origin; + required DOMString hashAlgorithm; + DOMString tokenBindingId; + AuthenticationExtensionsClientInputs clientExtensions; + AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; }; enum PublicKeyCredentialType { - "public-key" + "public-key" }; dictionary PublicKeyCredentialDescriptor { - required PublicKeyCredentialType type; - required BufferSource id; - sequence transports; + required PublicKeyCredentialType type; + required BufferSource id; + sequence transports; }; enum AuthenticatorTransport { - "usb", - "nfc", - "ble" + "usb", + "nfc", + "ble" }; typedef long COSEAlgorithmIdentifier; @@ -155,7 +155,7 @@ typedef BufferSource AAGUID; // FIDO AppID Extension (appid) // partial dictionary AuthenticationExtensionsClientInputs { - USVString appid; + USVString appid; }; // FIDO AppID Extension (appid) diff --git a/dom/webidl/WebKitCSSMatrix.webidl b/dom/webidl/WebKitCSSMatrix.webidl index 8115711a3398..a81381b06c24 100644 --- a/dom/webidl/WebKitCSSMatrix.webidl +++ b/dom/webidl/WebKitCSSMatrix.webidl @@ -13,27 +13,27 @@ Exposed=Window, Func="mozilla::dom::WebKitCSSMatrix::FeatureEnabled"] interface WebKitCSSMatrix : DOMMatrix { - // Mutable transform methods - [Throws] - WebKitCSSMatrix setMatrixValue(DOMString transformList); + // Mutable transform methods + [Throws] + WebKitCSSMatrix setMatrixValue(DOMString transformList); - // Immutable transform methods - WebKitCSSMatrix multiply(WebKitCSSMatrix other); - [Throws] - WebKitCSSMatrix inverse(); - WebKitCSSMatrix translate(optional unrestricted double tx = 0, - optional unrestricted double ty = 0, - optional unrestricted double tz = 0); - WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, - optional unrestricted double scaleY, - optional unrestricted double scaleZ = 1); - WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, - optional unrestricted double rotY, - optional unrestricted double rotZ); - WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, - optional unrestricted double y = 0, - optional unrestricted double z = 0, - optional unrestricted double angle = 0); - WebKitCSSMatrix skewX(optional unrestricted double sx = 0); - WebKitCSSMatrix skewY(optional unrestricted double sy = 0); + // Immutable transform methods + WebKitCSSMatrix multiply(WebKitCSSMatrix other); + [Throws] + WebKitCSSMatrix inverse(); + WebKitCSSMatrix translate(optional unrestricted double tx = 0, + optional unrestricted double ty = 0, + optional unrestricted double tz = 0); + WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, + optional unrestricted double scaleY, + optional unrestricted double scaleZ = 1); + WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, + optional unrestricted double rotY, + optional unrestricted double rotZ); + WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, + optional unrestricted double y = 0, + optional unrestricted double z = 0, + optional unrestricted double angle = 0); + WebKitCSSMatrix skewX(optional unrestricted double sx = 0); + WebKitCSSMatrix skewY(optional unrestricted double sy = 0); }; diff --git a/dom/webidl/XSLTProcessor.webidl b/dom/webidl/XSLTProcessor.webidl index 278ca94b5aba..e183bc877d8c 100644 --- a/dom/webidl/XSLTProcessor.webidl +++ b/dom/webidl/XSLTProcessor.webidl @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ @@ -7,103 +7,103 @@ interface nsIVariant; [Constructor] interface XSLTProcessor { - /** - * Import the stylesheet into this XSLTProcessor for transformations. - * - * @param style The root-node of a XSLT stylesheet. This can be either - * a document node or an element node. If a document node - * then the document can contain either a XSLT stylesheet - * or a LRE stylesheet. - * If the argument is an element node it must be the - * xsl:stylesheet (or xsl:transform) element of an XSLT - * stylesheet. - */ - [Throws] - void importStylesheet(Node style); + /** + * Import the stylesheet into this XSLTProcessor for transformations. + * + * @param style The root-node of a XSLT stylesheet. This can be either + * a document node or an element node. If a document node + * then the document can contain either a XSLT stylesheet + * or a LRE stylesheet. + * If the argument is an element node it must be the + * xsl:stylesheet (or xsl:transform) element of an XSLT + * stylesheet. + */ + [Throws] + void importStylesheet(Node style); - /** - * Transforms the node source applying the stylesheet given by - * the importStylesheet() function. The owner document of the output node - * owns the returned document fragment. - * - * @param source The node to be transformed - * @param output This document is used to generate the output - * @return DocumentFragment The result of the transformation - */ - [CEReactions, Throws] - DocumentFragment transformToFragment(Node source, - Document output); + /** + * Transforms the node source applying the stylesheet given by + * the importStylesheet() function. The owner document of the output node + * owns the returned document fragment. + * + * @param source The node to be transformed + * @param output This document is used to generate the output + * @return DocumentFragment The result of the transformation + */ + [CEReactions, Throws] + DocumentFragment transformToFragment(Node source, + Document output); - /** - * Transforms the node source applying the stylesheet given by the - * importStylesheet() function. - * - * @param source The node to be transformed - * @return Document The result of the transformation - */ - [CEReactions, Throws] - Document transformToDocument(Node source); + /** + * Transforms the node source applying the stylesheet given by the + * importStylesheet() function. + * + * @param source The node to be transformed + * @return Document The result of the transformation + */ + [CEReactions, Throws] + Document transformToDocument(Node source); - /** - * Sets a parameter to be used in subsequent transformations with this - * XSLTProcessor. If the parameter doesn't exist in the stylesheet the - * parameter will be ignored. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @param value The new value of the XSLT parameter - */ - [Throws] - void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName, - any value); + /** + * Sets a parameter to be used in subsequent transformations with this + * XSLTProcessor. If the parameter doesn't exist in the stylesheet the + * parameter will be ignored. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @param value The new value of the XSLT parameter + */ + [Throws] + void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName, + any value); - /** - * Gets a parameter if previously set by setParameter. Returns null - * otherwise. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @return nsIVariant The value of the XSLT parameter - */ - [Throws] - nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); - /** - * Removes a parameter, if set. This will make the processor use the - * default-value for the parameter as specified in the stylesheet. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - */ - [Throws] - void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); + /** + * Gets a parameter if previously set by setParameter. Returns null + * otherwise. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @return nsIVariant The value of the XSLT parameter + */ + [Throws] + nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); + /** + * Removes a parameter, if set. This will make the processor use the + * default-value for the parameter as specified in the stylesheet. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + */ + [Throws] + void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); - /** - * Removes all set parameters from this XSLTProcessor. This will make - * the processor use the default-value for all parameters as specified in - * the stylesheet. - */ - void clearParameters(); + /** + * Removes all set parameters from this XSLTProcessor. This will make + * the processor use the default-value for all parameters as specified in + * the stylesheet. + */ + void clearParameters(); - /** - * Remove all parameters and stylesheets from this XSLTProcessor. - */ - void reset(); + /** + * Remove all parameters and stylesheets from this XSLTProcessor. + */ + void reset(); - /** + /** * Disables all loading of external documents, such as from * and document() * Defaults to off and is *not* reset by calls to reset() */ - [ChromeOnly] - const unsigned long DISABLE_ALL_LOADS = 1; + [ChromeOnly] + const unsigned long DISABLE_ALL_LOADS = 1; - /** + /** * Flags for this processor. Defaults to 0. See individual flags above * for documentation for effect of reset() */ - [ChromeOnly, NeedsCallerType] - attribute unsigned long flags; + [ChromeOnly, NeedsCallerType] + attribute unsigned long flags; }; From 32a20c7f30731fffd3f1c92df71077eec765f344 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:47 +0000 Subject: [PATCH 08/40] Bug 1485040, part 3 - Add missing modeline/licenses to WebIDL files r=qdot MozReview-Commit-ID: JVgOCbO2nn6 Depends on D4157 Differential Revision: https://phabricator.services.mozilla.com/D4158 --HG-- extra : moz-landing-system : lando --- dom/chrome-webidl/PlacesEvent.webidl | 6 ++++++ dom/webidl/AddonEvent.webidl | 6 ++++++ dom/webidl/HiddenPluginEvent.webidl | 6 ++++++ dom/webidl/MozFrameLoaderOwner.webidl | 6 ++++++ dom/webidl/PaymentMethodChangeEvent.webidl | 6 ++++++ dom/webidl/RTCDTMFToneChangeEvent.webidl | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/dom/chrome-webidl/PlacesEvent.webidl b/dom/chrome-webidl/PlacesEvent.webidl index 6d3fe684d909..d57320059dba 100644 --- a/dom/chrome-webidl/PlacesEvent.webidl +++ b/dom/chrome-webidl/PlacesEvent.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + enum PlacesEventType { "none", diff --git a/dom/webidl/AddonEvent.webidl b/dom/webidl/AddonEvent.webidl index 235f81ec22eb..4c7797be33e3 100644 --- a/dom/webidl/AddonEvent.webidl +++ b/dom/webidl/AddonEvent.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + [ Func="mozilla::AddonManagerWebAPI::IsAPIEnabled", Constructor(DOMString type, AddonEventInit eventInitDict)] interface AddonEvent : Event { diff --git a/dom/webidl/HiddenPluginEvent.webidl b/dom/webidl/HiddenPluginEvent.webidl index 53096f9c8179..1311fb9023e9 100644 --- a/dom/webidl/HiddenPluginEvent.webidl +++ b/dom/webidl/HiddenPluginEvent.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + interface PluginTag; [Constructor(DOMString type, optional HiddenPluginEventInit eventInit), ChromeOnly] diff --git a/dom/webidl/MozFrameLoaderOwner.webidl b/dom/webidl/MozFrameLoaderOwner.webidl index 871cf0ccdba9..b74ab4e44202 100644 --- a/dom/webidl/MozFrameLoaderOwner.webidl +++ b/dom/webidl/MozFrameLoaderOwner.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + // And the things from nsIFrameLoaderOwner [NoInterfaceObject] interface MozFrameLoaderOwner { diff --git a/dom/webidl/PaymentMethodChangeEvent.webidl b/dom/webidl/PaymentMethodChangeEvent.webidl index 0d80dbf49900..59cd6c33820d 100644 --- a/dom/webidl/PaymentMethodChangeEvent.webidl +++ b/dom/webidl/PaymentMethodChangeEvent.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + [Constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict), SecureContext, Exposed=Window, diff --git a/dom/webidl/RTCDTMFToneChangeEvent.webidl b/dom/webidl/RTCDTMFToneChangeEvent.webidl index 8cdae1592d43..42e6f87faebf 100644 --- a/dom/webidl/RTCDTMFToneChangeEvent.webidl +++ b/dom/webidl/RTCDTMFToneChangeEvent.webidl @@ -1,3 +1,9 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + [Constructor(DOMString type, optional RTCDTMFToneChangeEventInit eventInitDict)] interface RTCDTMFToneChangeEvent : Event { readonly attribute DOMString tone; From a67f84df8d98328861517427a071ac12ac4f28e7 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:49 +0000 Subject: [PATCH 09/40] Bug 1485040, part 4 - Add mode lines, but not the MPL, to some test files r=qdot MozReview-Commit-ID: 8X4XDj3JOpe Depends on D4158 Differential Revision: https://phabricator.services.mozilla.com/D4159 --HG-- extra : moz-landing-system : lando --- dom/bindings/mozwebidlcodegen/test/Child.webidl | 3 +++ dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl | 3 +++ dom/bindings/mozwebidlcodegen/test/Parent.webidl | 3 +++ dom/bindings/mozwebidlcodegen/test/TestEvent.webidl | 3 +++ 4 files changed, 12 insertions(+) diff --git a/dom/bindings/mozwebidlcodegen/test/Child.webidl b/dom/bindings/mozwebidlcodegen/test/Child.webidl index f7d0a76c9d3f..de1e0b8f8ae2 100644 --- a/dom/bindings/mozwebidlcodegen/test/Child.webidl +++ b/dom/bindings/mozwebidlcodegen/test/Child.webidl @@ -1,3 +1,6 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + interface Child : Parent { void ChildBaz(); }; diff --git a/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl b/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl index 34794993fe4a..31fe6e77a511 100644 --- a/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl +++ b/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl @@ -1,3 +1,6 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + /* These interfaces are hard-coded and need to be defined. */ interface TestExampleInterface {}; interface TestExampleProxyInterface {}; diff --git a/dom/bindings/mozwebidlcodegen/test/Parent.webidl b/dom/bindings/mozwebidlcodegen/test/Parent.webidl index 423f364aea23..56c9bdb3b9f0 100644 --- a/dom/bindings/mozwebidlcodegen/test/Parent.webidl +++ b/dom/bindings/mozwebidlcodegen/test/Parent.webidl @@ -1,3 +1,6 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + interface Parent { void MethodFoo(); }; diff --git a/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl b/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl index db085629186c..85dabef7efcb 100644 --- a/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl +++ b/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl @@ -1,3 +1,6 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + interface EventTarget { void addEventListener(); }; From 93b3b0138cc0c01cb3d69343c00122ca999c5d52 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:51 +0000 Subject: [PATCH 10/40] Bug 1485040, part 5 - Automatically fix mode lines in WebIDL files r=qdot This patch was generated by my modeline.py script. MozReview-Commit-ID: EbVjPLwiUAT Depends on D4159 Differential Revision: https://phabricator.services.mozilla.com/D4161 --HG-- extra : moz-landing-system : lando --- dom/bindings/test/TestCodeGen.webidl | 3 ++- dom/bindings/test/TestDictionary.webidl | 3 ++- dom/bindings/test/TestExampleGen.webidl | 3 ++- dom/bindings/test/TestJSImplGen.webidl | 3 ++- dom/bindings/test/TestJSImplInheritanceGen.webidl | 3 ++- dom/bindings/test/TestTypedef.webidl | 3 ++- dom/chrome-webidl/BrowsingContext.webidl | 3 ++- dom/chrome-webidl/ChannelWrapper.webidl | 2 ++ dom/chrome-webidl/ChromeUtils.webidl | 3 ++- dom/chrome-webidl/DominatorTree.webidl | 3 ++- dom/chrome-webidl/HeapSnapshot.webidl | 3 ++- dom/chrome-webidl/InspectorUtils.webidl | 3 ++- dom/chrome-webidl/IteratorResult.webidl | 2 +- dom/chrome-webidl/MatchGlob.webidl | 2 ++ dom/chrome-webidl/MatchPattern.webidl | 2 ++ dom/chrome-webidl/MessageManager.webidl | 3 ++- dom/chrome-webidl/MozDocumentObserver.webidl | 3 ++- dom/chrome-webidl/MozSharedMap.webidl | 3 ++- dom/chrome-webidl/MozStorageAsyncStatementParams.webidl | 3 ++- dom/chrome-webidl/MozStorageStatementParams.webidl | 3 ++- dom/chrome-webidl/MozStorageStatementRow.webidl | 3 ++- dom/chrome-webidl/PlacesObservers.webidl | 3 ++- dom/chrome-webidl/PrecompiledScript.webidl | 3 ++- dom/chrome-webidl/PrioEncoder.webidl | 3 ++- dom/chrome-webidl/PromiseDebugging.webidl | 3 ++- dom/chrome-webidl/StructuredCloneHolder.webidl | 3 ++- dom/chrome-webidl/WebExtensionContentScript.webidl | 2 ++ dom/chrome-webidl/WebExtensionPolicy.webidl | 2 ++ dom/chrome-webidl/XULFrameElement.webidl | 3 ++- dom/chrome-webidl/XULScrollElement.webidl | 3 ++- dom/webidl/APZTestData.webidl | 3 ++- dom/webidl/AbortController.webidl | 3 ++- dom/webidl/AbortSignal.webidl | 3 ++- dom/webidl/AbstractWorker.webidl | 3 ++- dom/webidl/AccessibleNode.webidl | 3 ++- dom/webidl/AddonManager.webidl | 2 ++ dom/webidl/AnalyserNode.webidl | 3 ++- dom/webidl/Animatable.webidl | 3 ++- dom/webidl/Animation.webidl | 3 ++- dom/webidl/AnimationEffect.webidl | 3 ++- dom/webidl/AnimationEvent.webidl | 3 ++- dom/webidl/AnimationPlaybackEvent.webidl | 3 ++- dom/webidl/AnimationTimeline.webidl | 3 ++- dom/webidl/AnonymousContent.webidl | 3 ++- dom/webidl/AppInfo.webidl | 2 ++ dom/webidl/AppNotificationServiceOptions.webidl | 3 ++- dom/webidl/Attr.webidl | 3 ++- dom/webidl/AudioBuffer.webidl | 3 ++- dom/webidl/AudioBufferSourceNode.webidl | 3 ++- dom/webidl/AudioContext.webidl | 3 ++- dom/webidl/AudioDestinationNode.webidl | 3 ++- dom/webidl/AudioListener.webidl | 3 ++- dom/webidl/AudioNode.webidl | 3 ++- dom/webidl/AudioParam.webidl | 3 ++- dom/webidl/AudioParamMap.webidl | 3 ++- dom/webidl/AudioProcessingEvent.webidl | 3 ++- dom/webidl/AudioScheduledSourceNode.webidl | 3 ++- dom/webidl/AudioStreamTrack.webidl | 3 ++- dom/webidl/AudioTrack.webidl | 3 ++- dom/webidl/AudioTrackList.webidl | 3 ++- dom/webidl/AudioWorklet.webidl | 3 ++- dom/webidl/AudioWorkletGlobalScope.webidl | 3 ++- dom/webidl/AudioWorkletNode.webidl | 3 ++- dom/webidl/AudioWorkletProcessor.webidl | 3 ++- dom/webidl/AutocompleteInfo.webidl | 3 ++- dom/webidl/BarProp.webidl | 3 ++- dom/webidl/BaseAudioContext.webidl | 3 ++- dom/webidl/BaseKeyframeTypes.webidl | 3 ++- dom/webidl/BasicCardPayment.webidl | 3 ++- dom/webidl/BatteryManager.webidl | 3 ++- dom/webidl/BeforeUnloadEvent.webidl | 3 ++- dom/webidl/BiquadFilterNode.webidl | 3 ++- dom/webidl/Blob.webidl | 3 ++- dom/webidl/BlobEvent.webidl | 3 ++- dom/webidl/BoxObject.webidl | 3 ++- dom/webidl/BroadcastChannel.webidl | 3 ++- dom/webidl/BrowserElement.webidl | 3 ++- dom/webidl/BrowserElementDictionaries.webidl | 3 ++- dom/webidl/BrowserFeedWriter.webidl | 3 ++- dom/webidl/CDATASection.webidl | 3 ++- dom/webidl/CSPDictionaries.webidl | 2 ++ dom/webidl/CSPReport.webidl | 2 ++ dom/webidl/CSS.webidl | 3 ++- dom/webidl/CSSAnimation.webidl | 3 ++- dom/webidl/CSSConditionRule.webidl | 3 ++- dom/webidl/CSSCounterStyleRule.webidl | 3 ++- dom/webidl/CSSFontFaceRule.webidl | 3 ++- dom/webidl/CSSFontFeatureValuesRule.webidl | 3 ++- dom/webidl/CSSGroupingRule.webidl | 3 ++- dom/webidl/CSSImportRule.webidl | 3 ++- dom/webidl/CSSKeyframeRule.webidl | 3 ++- dom/webidl/CSSKeyframesRule.webidl | 3 ++- dom/webidl/CSSMediaRule.webidl | 3 ++- dom/webidl/CSSMozDocumentRule.webidl | 3 ++- dom/webidl/CSSNamespaceRule.webidl | 3 ++- dom/webidl/CSSPageRule.webidl | 3 ++- dom/webidl/CSSPseudoElement.webidl | 3 ++- dom/webidl/CSSRule.webidl | 3 ++- dom/webidl/CSSRuleList.webidl | 3 ++- dom/webidl/CSSStyleDeclaration.webidl | 3 ++- dom/webidl/CSSStyleRule.webidl | 3 ++- dom/webidl/CSSStyleSheet.webidl | 3 ++- dom/webidl/CSSSupportsRule.webidl | 3 ++- dom/webidl/CSSTransition.webidl | 3 ++- dom/webidl/Cache.webidl | 3 ++- dom/webidl/CacheStorage.webidl | 3 ++- dom/webidl/CanvasCaptureMediaStream.webidl | 3 ++- dom/webidl/CanvasRenderingContext2D.webidl | 3 ++- dom/webidl/CaretPosition.webidl | 2 ++ dom/webidl/CaretStateChangedEvent.webidl | 3 ++- dom/webidl/ChannelMergerNode.webidl | 3 ++- dom/webidl/ChannelSplitterNode.webidl | 3 ++- dom/webidl/CharacterData.webidl | 3 ++- dom/webidl/CheckerboardReportService.webidl | 3 ++- dom/webidl/ChildNode.webidl | 3 ++- dom/webidl/ChildSHistory.webidl | 3 ++- dom/webidl/ChromeNodeList.webidl | 3 ++- dom/webidl/Client.webidl | 3 ++- dom/webidl/Clients.webidl | 3 ++- dom/webidl/Clipboard.webidl | 3 ++- dom/webidl/ClipboardEvent.webidl | 3 ++- dom/webidl/CloseEvent.webidl | 3 ++- dom/webidl/CommandEvent.webidl | 3 ++- dom/webidl/Comment.webidl | 3 ++- dom/webidl/CompositionEvent.webidl | 3 ++- dom/webidl/Console.webidl | 2 +- dom/webidl/ConstantSourceNode.webidl | 3 ++- dom/webidl/ConvolverNode.webidl | 3 ++- dom/webidl/Coordinates.webidl | 3 ++- dom/webidl/CreateOfferRequest.webidl | 3 ++- dom/webidl/CredentialManagement.webidl | 3 ++- dom/webidl/Crypto.webidl | 3 ++- dom/webidl/CustomElementRegistry.webidl | 2 ++ dom/webidl/CustomEvent.webidl | 3 ++- dom/webidl/DOMError.webidl | 3 ++- dom/webidl/DOMException.webidl | 3 ++- dom/webidl/DOMImplementation.webidl | 3 ++- dom/webidl/DOMMatrix.webidl | 3 ++- dom/webidl/DOMParser.webidl | 2 ++ dom/webidl/DOMPoint.webidl | 3 ++- dom/webidl/DOMQuad.webidl | 3 ++- dom/webidl/DOMRect.webidl | 3 ++- dom/webidl/DOMRectList.webidl | 3 ++- dom/webidl/DOMRequest.webidl | 3 ++- dom/webidl/DOMStringList.webidl | 3 ++- dom/webidl/DOMStringMap.webidl | 3 ++- dom/webidl/DOMTokenList.webidl | 3 ++- dom/webidl/DataTransfer.webidl | 3 ++- dom/webidl/DataTransferItem.webidl | 3 ++- dom/webidl/DataTransferItemList.webidl | 3 ++- dom/webidl/DecoderDoctorNotification.webidl | 3 ++- dom/webidl/DedicatedWorkerGlobalScope.webidl | 3 ++- dom/webidl/DelayNode.webidl | 3 ++- dom/webidl/DeviceLightEvent.webidl | 3 ++- dom/webidl/DeviceMotionEvent.webidl | 3 ++- dom/webidl/DeviceOrientationEvent.webidl | 3 ++- dom/webidl/DeviceProximityEvent.webidl | 3 ++- dom/webidl/Directory.webidl | 3 ++- dom/webidl/Document.webidl | 3 ++- dom/webidl/DocumentFragment.webidl | 3 ++- dom/webidl/DocumentOrShadowRoot.webidl | 3 ++- dom/webidl/DocumentTimeline.webidl | 3 ++- dom/webidl/DocumentType.webidl | 3 ++- dom/webidl/DragEvent.webidl | 3 ++- dom/webidl/DynamicsCompressorNode.webidl | 3 ++- dom/webidl/Element.webidl | 3 ++- dom/webidl/ErrorEvent.webidl | 3 ++- dom/webidl/Event.webidl | 3 ++- dom/webidl/EventHandler.webidl | 3 ++- dom/webidl/EventListener.webidl | 3 ++- dom/webidl/EventSource.webidl | 3 ++- dom/webidl/EventTarget.webidl | 3 ++- dom/webidl/ExtendableEvent.webidl | 3 ++- dom/webidl/ExtendableMessageEvent.webidl | 3 ++- dom/webidl/External.webidl | 3 ++- dom/webidl/FakePluginTagInit.webidl | 3 ++- dom/webidl/Fetch.webidl | 3 ++- dom/webidl/FetchEvent.webidl | 3 ++- dom/webidl/FetchObserver.webidl | 3 ++- dom/webidl/File.webidl | 3 ++- dom/webidl/FileList.webidl | 3 ++- dom/webidl/FileMode.webidl | 2 ++ dom/webidl/FileReader.webidl | 3 ++- dom/webidl/FileReaderSync.webidl | 3 ++- dom/webidl/FileSystem.webidl | 3 ++- dom/webidl/FileSystemDirectoryEntry.webidl | 3 ++- dom/webidl/FileSystemDirectoryReader.webidl | 3 ++- dom/webidl/FileSystemEntry.webidl | 3 ++- dom/webidl/FileSystemFileEntry.webidl | 3 ++- dom/webidl/Flex.webidl | 3 ++- dom/webidl/FocusEvent.webidl | 3 ++- dom/webidl/FontFace.webidl | 3 ++- dom/webidl/FontFaceSet.webidl | 3 ++- dom/webidl/FontFaceSetLoadEvent.webidl | 3 ++- dom/webidl/FontFaceSource.webidl | 3 ++- dom/webidl/FormData.webidl | 3 ++- dom/webidl/FrameLoader.webidl | 3 ++- dom/webidl/Function.webidl | 3 ++- dom/webidl/FuzzingFunctions.webidl | 3 ++- dom/webidl/GainNode.webidl | 3 ++- dom/webidl/Gamepad.webidl | 3 ++- dom/webidl/GamepadAxisMoveEvent.webidl | 3 ++- dom/webidl/GamepadButtonEvent.webidl | 3 ++- dom/webidl/GamepadEvent.webidl | 3 ++- dom/webidl/GamepadHapticActuator.webidl | 3 ++- dom/webidl/GamepadPose.webidl | 3 ++- dom/webidl/GamepadServiceTest.webidl | 2 ++ dom/webidl/Geolocation.webidl | 3 ++- dom/webidl/GeometryUtils.webidl | 3 ++- dom/webidl/GetUserMediaRequest.webidl | 3 ++- dom/webidl/Grid.webidl | 3 ++- dom/webidl/GroupedHistoryEvent.webidl | 3 ++- dom/webidl/HTMLAllCollection.webidl | 2 ++ dom/webidl/HTMLAnchorElement.webidl | 3 ++- dom/webidl/HTMLAreaElement.webidl | 3 ++- dom/webidl/HTMLAudioElement.webidl | 3 ++- dom/webidl/HTMLBRElement.webidl | 3 ++- dom/webidl/HTMLBaseElement.webidl | 3 ++- dom/webidl/HTMLBodyElement.webidl | 3 ++- dom/webidl/HTMLButtonElement.webidl | 3 ++- dom/webidl/HTMLCanvasElement.webidl | 3 ++- dom/webidl/HTMLCollection.webidl | 3 ++- dom/webidl/HTMLDListElement.webidl | 3 ++- dom/webidl/HTMLDataElement.webidl | 3 ++- dom/webidl/HTMLDataListElement.webidl | 3 ++- dom/webidl/HTMLDetailsElement.webidl | 3 ++- dom/webidl/HTMLDialogElement.webidl | 3 ++- dom/webidl/HTMLDirectoryElement.webidl | 3 ++- dom/webidl/HTMLDivElement.webidl | 3 ++- dom/webidl/HTMLDocument.webidl | 3 ++- dom/webidl/HTMLElement.webidl | 3 ++- dom/webidl/HTMLEmbedElement.webidl | 3 ++- dom/webidl/HTMLFieldSetElement.webidl | 3 ++- dom/webidl/HTMLFontElement.webidl | 3 ++- dom/webidl/HTMLFormControlsCollection.webidl | 3 ++- dom/webidl/HTMLFormElement.webidl | 3 ++- dom/webidl/HTMLFrameElement.webidl | 3 ++- dom/webidl/HTMLFrameSetElement.webidl | 3 ++- dom/webidl/HTMLHRElement.webidl | 3 ++- dom/webidl/HTMLHeadElement.webidl | 3 ++- dom/webidl/HTMLHeadingElement.webidl | 3 ++- dom/webidl/HTMLHtmlElement.webidl | 3 ++- dom/webidl/HTMLHyperlinkElementUtils.webidl | 3 ++- dom/webidl/HTMLIFrameElement.webidl | 3 ++- dom/webidl/HTMLImageElement.webidl | 3 ++- dom/webidl/HTMLInputElement.webidl | 3 ++- dom/webidl/HTMLLIElement.webidl | 3 ++- dom/webidl/HTMLLabelElement.webidl | 3 ++- dom/webidl/HTMLLegendElement.webidl | 3 ++- dom/webidl/HTMLLinkElement.webidl | 3 ++- dom/webidl/HTMLMapElement.webidl | 3 ++- dom/webidl/HTMLMediaElement.webidl | 3 ++- dom/webidl/HTMLMenuElement.webidl | 3 ++- dom/webidl/HTMLMenuItemElement.webidl | 3 ++- dom/webidl/HTMLMetaElement.webidl | 3 ++- dom/webidl/HTMLMeterElement.webidl | 3 ++- dom/webidl/HTMLModElement.webidl | 3 ++- dom/webidl/HTMLOListElement.webidl | 3 ++- dom/webidl/HTMLObjectElement.webidl | 3 ++- dom/webidl/HTMLOptGroupElement.webidl | 3 ++- dom/webidl/HTMLOptionElement.webidl | 3 ++- dom/webidl/HTMLOptionsCollection.webidl | 3 ++- dom/webidl/HTMLOutputElement.webidl | 3 ++- dom/webidl/HTMLParagraphElement.webidl | 3 ++- dom/webidl/HTMLParamElement.webidl | 3 ++- dom/webidl/HTMLPictureElement.webidl | 3 ++- dom/webidl/HTMLPreElement.webidl | 3 ++- dom/webidl/HTMLProgressElement.webidl | 3 ++- dom/webidl/HTMLQuoteElement.webidl | 3 ++- dom/webidl/HTMLScriptElement.webidl | 3 ++- dom/webidl/HTMLSelectElement.webidl | 3 ++- dom/webidl/HTMLSlotElement.webidl | 3 ++- dom/webidl/HTMLSourceElement.webidl | 3 ++- dom/webidl/HTMLSpanElement.webidl | 3 ++- dom/webidl/HTMLStyleElement.webidl | 3 ++- dom/webidl/HTMLTableCaptionElement.webidl | 3 ++- dom/webidl/HTMLTableCellElement.webidl | 3 ++- dom/webidl/HTMLTableColElement.webidl | 3 ++- dom/webidl/HTMLTableElement.webidl | 3 ++- dom/webidl/HTMLTableRowElement.webidl | 3 ++- dom/webidl/HTMLTableSectionElement.webidl | 3 ++- dom/webidl/HTMLTemplateElement.webidl | 2 ++ dom/webidl/HTMLTextAreaElement.webidl | 3 ++- dom/webidl/HTMLTimeElement.webidl | 3 ++- dom/webidl/HTMLTitleElement.webidl | 3 ++- dom/webidl/HTMLTrackElement.webidl | 3 ++- dom/webidl/HTMLUListElement.webidl | 3 ++- dom/webidl/HTMLVideoElement.webidl | 3 ++- dom/webidl/HashChangeEvent.webidl | 3 ++- dom/webidl/History.webidl | 3 ++- dom/webidl/IDBCursor.webidl | 3 ++- dom/webidl/IDBDatabase.webidl | 3 ++- dom/webidl/IDBFactory.webidl | 3 ++- dom/webidl/IDBFileHandle.webidl | 2 ++ dom/webidl/IDBFileRequest.webidl | 2 +- dom/webidl/IDBIndex.webidl | 3 ++- dom/webidl/IDBKeyRange.webidl | 2 ++ dom/webidl/IDBMutableFile.webidl | 3 ++- dom/webidl/IDBObjectStore.webidl | 3 ++- dom/webidl/IDBOpenDBRequest.webidl | 3 ++- dom/webidl/IDBRequest.webidl | 3 ++- dom/webidl/IDBTransaction.webidl | 3 ++- dom/webidl/IDBVersionChangeEvent.webidl | 3 ++- dom/webidl/IIRFilterNode.webidl | 3 ++- dom/webidl/IdleDeadline.webidl | 3 ++- dom/webidl/ImageBitmap.webidl | 3 ++- dom/webidl/ImageBitmapRenderingContext.webidl | 3 ++- dom/webidl/ImageCapture.webidl | 3 ++- dom/webidl/ImageCaptureErrorEvent.webidl | 3 ++- dom/webidl/ImageData.webidl | 3 ++- dom/webidl/ImageDocument.webidl | 3 ++- dom/webidl/InputEvent.webidl | 3 ++- dom/webidl/InstallTrigger.webidl | 2 ++ dom/webidl/IntersectionObserver.webidl | 3 ++- dom/webidl/IntlUtils.webidl | 2 ++ dom/webidl/IterableIterator.webidl | 3 ++- dom/webidl/KeyAlgorithm.webidl | 3 ++- dom/webidl/KeyEvent.webidl | 3 ++- dom/webidl/KeyIdsInitData.webidl | 3 ++- dom/webidl/KeyboardEvent.webidl | 3 ++- dom/webidl/KeyframeAnimationOptions.webidl | 3 ++- dom/webidl/KeyframeEffect.webidl | 3 ++- dom/webidl/L10nUtils.webidl | 3 ++- dom/webidl/LegacyQueryInterface.webidl | 3 ++- dom/webidl/LinkStyle.webidl | 3 ++- dom/webidl/LocalMediaStream.webidl | 3 ++- dom/webidl/Location.webidl | 3 ++- dom/webidl/MIDIAccess.webidl | 3 ++- dom/webidl/MIDIConnectionEvent.webidl | 3 ++- dom/webidl/MIDIInput.webidl | 3 ++- dom/webidl/MIDIInputMap.webidl | 3 ++- dom/webidl/MIDIMessageEvent.webidl | 3 ++- dom/webidl/MIDIOptions.webidl | 3 ++- dom/webidl/MIDIOutput.webidl | 3 ++- dom/webidl/MIDIOutputMap.webidl | 3 ++- dom/webidl/MIDIPort.webidl | 3 ++- dom/webidl/MediaCapabilities.webidl | 3 ++- dom/webidl/MediaDeviceInfo.webidl | 3 ++- dom/webidl/MediaDevices.webidl | 3 ++- dom/webidl/MediaElementAudioSourceNode.webidl | 3 ++- dom/webidl/MediaEncryptedEvent.webidl | 3 ++- dom/webidl/MediaError.webidl | 3 ++- dom/webidl/MediaKeyError.webidl | 3 ++- dom/webidl/MediaKeyMessageEvent.webidl | 3 ++- dom/webidl/MediaKeySession.webidl | 3 ++- dom/webidl/MediaKeyStatusMap.webidl | 3 ++- dom/webidl/MediaKeySystemAccess.webidl | 3 ++- dom/webidl/MediaKeys.webidl | 3 ++- dom/webidl/MediaKeysRequestStatus.webidl | 3 ++- dom/webidl/MediaList.webidl | 3 ++- dom/webidl/MediaQueryList.webidl | 3 ++- dom/webidl/MediaQueryListEvent.webidl | 3 ++- dom/webidl/MediaRecorder.webidl | 3 ++- dom/webidl/MediaRecorderErrorEvent.webidl | 3 ++- dom/webidl/MediaSource.webidl | 3 ++- dom/webidl/MediaStream.webidl | 3 ++- dom/webidl/MediaStreamAudioDestinationNode.webidl | 3 ++- dom/webidl/MediaStreamAudioSourceNode.webidl | 3 ++- dom/webidl/MediaStreamError.webidl | 3 ++- dom/webidl/MediaStreamEvent.webidl | 3 ++- dom/webidl/MediaStreamTrack.webidl | 3 ++- dom/webidl/MediaStreamTrackEvent.webidl | 3 ++- dom/webidl/MediaTrackConstraintSet.webidl | 3 ++- dom/webidl/MediaTrackSettings.webidl | 3 ++- dom/webidl/MediaTrackSupportedConstraints.webidl | 3 ++- dom/webidl/MenuBoxObject.webidl | 4 ++-- dom/webidl/MessageChannel.webidl | 3 ++- dom/webidl/MessageEvent.webidl | 3 ++- dom/webidl/MessagePort.webidl | 3 ++- dom/webidl/MimeType.webidl | 3 ++- dom/webidl/MimeTypeArray.webidl | 3 ++- dom/webidl/MouseEvent.webidl | 3 ++- dom/webidl/MouseScrollEvent.webidl | 3 ++- dom/webidl/MozApplicationEvent.webidl | 3 ++- dom/webidl/MutationEvent.webidl | 3 ++- dom/webidl/MutationObserver.webidl | 3 ++- dom/webidl/NamedNodeMap.webidl | 3 ++- dom/webidl/NativeOSFileInternals.webidl | 2 ++ dom/webidl/Navigator.webidl | 3 ++- dom/webidl/NetDashboard.webidl | 3 ++- dom/webidl/NetworkInformation.webidl | 2 ++ dom/webidl/NetworkOptions.webidl | 2 ++ dom/webidl/Node.webidl | 3 ++- dom/webidl/NodeFilter.webidl | 3 ++- dom/webidl/NodeIterator.webidl | 3 ++- dom/webidl/NodeList.webidl | 3 ++- dom/webidl/Notification.webidl | 3 ++- dom/webidl/NotificationEvent.webidl | 3 ++- dom/webidl/NotifyPaintEvent.webidl | 3 ++- dom/webidl/OfflineAudioCompletionEvent.webidl | 3 ++- dom/webidl/OfflineAudioContext.webidl | 3 ++- dom/webidl/OfflineResourceList.webidl | 2 ++ dom/webidl/OffscreenCanvas.webidl | 3 ++- dom/webidl/OscillatorNode.webidl | 3 ++- dom/webidl/PageTransitionEvent.webidl | 3 ++- dom/webidl/PaintRequest.webidl | 3 ++- dom/webidl/PaintRequestList.webidl | 3 ++- dom/webidl/PaintWorkletGlobalScope.webidl | 3 ++- dom/webidl/PannerNode.webidl | 3 ++- dom/webidl/ParentNode.webidl | 3 ++- dom/webidl/ParentSHistory.webidl | 3 ++- dom/webidl/PaymentAddress.webidl | 3 ++- dom/webidl/PaymentRequest.webidl | 3 ++- dom/webidl/PaymentRequestUpdateEvent.webidl | 3 ++- dom/webidl/PaymentResponse.webidl | 3 ++- dom/webidl/PeerConnectionImpl.webidl | 3 ++- dom/webidl/PeerConnectionImplEnums.webidl | 3 ++- dom/webidl/PeerConnectionObserver.webidl | 3 ++- dom/webidl/PeerConnectionObserverEnums.webidl | 3 ++- dom/webidl/Performance.webidl | 3 ++- dom/webidl/PerformanceEntry.webidl | 3 ++- dom/webidl/PerformanceEntryEvent.webidl | 3 ++- dom/webidl/PerformanceMark.webidl | 3 ++- dom/webidl/PerformanceMeasure.webidl | 3 ++- dom/webidl/PerformanceNavigation.webidl | 3 ++- dom/webidl/PerformanceNavigationTiming.webidl | 3 ++- dom/webidl/PerformanceObserver.webidl | 3 ++- dom/webidl/PerformanceObserverEntryList.webidl | 3 ++- dom/webidl/PerformanceResourceTiming.webidl | 3 ++- dom/webidl/PerformanceServerTiming.webidl | 3 ++- dom/webidl/PerformanceTiming.webidl | 3 ++- dom/webidl/PeriodicWave.webidl | 3 ++- dom/webidl/PermissionStatus.webidl | 3 ++- dom/webidl/Permissions.webidl | 3 ++- dom/webidl/Plugin.webidl | 3 ++- dom/webidl/PluginArray.webidl | 3 ++- dom/webidl/PluginCrashedEvent.webidl | 3 ++- dom/webidl/PointerEvent.webidl | 3 ++- dom/webidl/PopStateEvent.webidl | 3 ++- dom/webidl/PopupBlockedEvent.webidl | 3 ++- dom/webidl/Position.webidl | 3 ++- dom/webidl/PositionError.webidl | 3 ++- dom/webidl/Presentation.webidl | 3 ++- dom/webidl/PresentationAvailability.webidl | 3 ++- dom/webidl/PresentationConnection.webidl | 3 ++- dom/webidl/PresentationConnectionAvailableEvent.webidl | 3 ++- dom/webidl/PresentationConnectionCloseEvent.webidl | 3 ++- dom/webidl/PresentationConnectionList.webidl | 3 ++- dom/webidl/PresentationReceiver.webidl | 3 ++- dom/webidl/PresentationRequest.webidl | 3 ++- dom/webidl/ProcessingInstruction.webidl | 3 ++- dom/webidl/ProfileTimelineMarker.webidl | 3 ++- dom/webidl/ProgressEvent.webidl | 3 ++- dom/webidl/Promise.webidl | 3 ++- dom/webidl/PromiseRejectionEvent.webidl | 3 ++- dom/webidl/PushEvent.webidl | 3 ++- dom/webidl/PushManager.webidl | 3 ++- dom/webidl/PushMessageData.webidl | 3 ++- dom/webidl/PushSubscription.webidl | 3 ++- dom/webidl/PushSubscriptionOptions.webidl | 3 ++- dom/webidl/RTCCertificate.webidl | 3 ++- dom/webidl/RTCConfiguration.webidl | 3 ++- dom/webidl/RTCDTMFSender.webidl | 3 ++- dom/webidl/RTCDataChannel.webidl | 2 ++ dom/webidl/RTCDataChannelEvent.webidl | 3 ++- dom/webidl/RTCIceCandidate.webidl | 3 ++- dom/webidl/RTCIdentityAssertion.webidl | 3 ++- dom/webidl/RTCIdentityProvider.webidl | 3 ++- dom/webidl/RTCPeerConnection.webidl | 3 ++- dom/webidl/RTCPeerConnectionIceEvent.webidl | 3 ++- dom/webidl/RTCPeerConnectionStatic.webidl | 3 ++- dom/webidl/RTCRtpReceiver.webidl | 3 ++- dom/webidl/RTCRtpSender.webidl | 3 ++- dom/webidl/RTCRtpSources.webidl | 3 ++- dom/webidl/RTCRtpTransceiver.webidl | 3 ++- dom/webidl/RTCSessionDescription.webidl | 3 ++- dom/webidl/RTCStatsReport.webidl | 3 ++- dom/webidl/RTCTrackEvent.webidl | 3 ++- dom/webidl/RadioNodeList.webidl | 3 ++- dom/webidl/Range.webidl | 3 ++- dom/webidl/Request.webidl | 3 ++- dom/webidl/Response.webidl | 3 ++- dom/webidl/SVGAElement.webidl | 3 ++- dom/webidl/SVGAngle.webidl | 3 ++- dom/webidl/SVGAnimateElement.webidl | 3 ++- dom/webidl/SVGAnimateMotionElement.webidl | 3 ++- dom/webidl/SVGAnimateTransformElement.webidl | 3 ++- dom/webidl/SVGAnimatedAngle.webidl | 3 ++- dom/webidl/SVGAnimatedBoolean.webidl | 3 ++- dom/webidl/SVGAnimatedEnumeration.webidl | 3 ++- dom/webidl/SVGAnimatedInteger.webidl | 3 ++- dom/webidl/SVGAnimatedLength.webidl | 3 ++- dom/webidl/SVGAnimatedLengthList.webidl | 3 ++- dom/webidl/SVGAnimatedNumber.webidl | 3 ++- dom/webidl/SVGAnimatedNumberList.webidl | 3 ++- dom/webidl/SVGAnimatedPathData.webidl | 3 ++- dom/webidl/SVGAnimatedPoints.webidl | 3 ++- dom/webidl/SVGAnimatedPreserveAspectRatio.webidl | 3 ++- dom/webidl/SVGAnimatedRect.webidl | 3 ++- dom/webidl/SVGAnimatedString.webidl | 3 ++- dom/webidl/SVGAnimatedTransformList.webidl | 3 ++- dom/webidl/SVGAnimationElement.webidl | 3 ++- dom/webidl/SVGCircleElement.webidl | 3 ++- dom/webidl/SVGClipPathElement.webidl | 3 ++- dom/webidl/SVGComponentTransferFunctionElement.webidl | 3 ++- dom/webidl/SVGDefsElement.webidl | 3 ++- dom/webidl/SVGDescElement.webidl | 3 ++- dom/webidl/SVGElement.webidl | 3 ++- dom/webidl/SVGEllipseElement.webidl | 3 ++- dom/webidl/SVGFEBlendElement.webidl | 3 ++- dom/webidl/SVGFEColorMatrixElement.webidl | 3 ++- dom/webidl/SVGFEComponentTransferElement.webidl | 3 ++- dom/webidl/SVGFECompositeElement.webidl | 3 ++- dom/webidl/SVGFEConvolveMatrixElement.webidl | 3 ++- dom/webidl/SVGFEDiffuseLightingElement.webidl | 3 ++- dom/webidl/SVGFEDisplacementMapElement.webidl | 3 ++- dom/webidl/SVGFEDistantLightElement.webidl | 3 ++- dom/webidl/SVGFEDropShadowElement.webidl | 3 ++- dom/webidl/SVGFEFloodElement.webidl | 3 ++- dom/webidl/SVGFEFuncAElement.webidl | 3 ++- dom/webidl/SVGFEFuncBElement.webidl | 3 ++- dom/webidl/SVGFEFuncGElement.webidl | 3 ++- dom/webidl/SVGFEFuncRElement.webidl | 3 ++- dom/webidl/SVGFEGaussianBlurElement.webidl | 3 ++- dom/webidl/SVGFEImageElement.webidl | 3 ++- dom/webidl/SVGFEMergeElement.webidl | 3 ++- dom/webidl/SVGFEMergeNodeElement.webidl | 3 ++- dom/webidl/SVGFEMorphologyElement.webidl | 3 ++- dom/webidl/SVGFEOffsetElement.webidl | 3 ++- dom/webidl/SVGFEPointLightElement.webidl | 3 ++- dom/webidl/SVGFESpecularLightingElement.webidl | 3 ++- dom/webidl/SVGFESpotLightElement.webidl | 3 ++- dom/webidl/SVGFETileElement.webidl | 3 ++- dom/webidl/SVGFETurbulenceElement.webidl | 3 ++- dom/webidl/SVGFilterElement.webidl | 3 ++- dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl | 3 ++- dom/webidl/SVGFitToViewBox.webidl | 3 ++- dom/webidl/SVGForeignObjectElement.webidl | 3 ++- dom/webidl/SVGGElement.webidl | 3 ++- dom/webidl/SVGGeometryElement.webidl | 3 ++- dom/webidl/SVGGradientElement.webidl | 3 ++- dom/webidl/SVGGraphicsElement.webidl | 3 ++- dom/webidl/SVGImageElement.webidl | 3 ++- dom/webidl/SVGLength.webidl | 3 ++- dom/webidl/SVGLengthList.webidl | 3 ++- dom/webidl/SVGLineElement.webidl | 3 ++- dom/webidl/SVGLinearGradientElement.webidl | 3 ++- dom/webidl/SVGMPathElement.webidl | 3 ++- dom/webidl/SVGMarkerElement.webidl | 3 ++- dom/webidl/SVGMaskElement.webidl | 3 ++- dom/webidl/SVGMatrix.webidl | 3 ++- dom/webidl/SVGMetadataElement.webidl | 3 ++- dom/webidl/SVGNumber.webidl | 3 ++- dom/webidl/SVGNumberList.webidl | 3 ++- dom/webidl/SVGPathElement.webidl | 3 ++- dom/webidl/SVGPathSeg.webidl | 3 ++- dom/webidl/SVGPathSegList.webidl | 3 ++- dom/webidl/SVGPatternElement.webidl | 3 ++- dom/webidl/SVGPoint.webidl | 3 ++- dom/webidl/SVGPointList.webidl | 3 ++- dom/webidl/SVGPolygonElement.webidl | 3 ++- dom/webidl/SVGPolylineElement.webidl | 3 ++- dom/webidl/SVGPreserveAspectRatio.webidl | 3 ++- dom/webidl/SVGRadialGradientElement.webidl | 3 ++- dom/webidl/SVGRect.webidl | 3 ++- dom/webidl/SVGRectElement.webidl | 3 ++- dom/webidl/SVGSVGElement.webidl | 3 ++- dom/webidl/SVGScriptElement.webidl | 3 ++- dom/webidl/SVGSetElement.webidl | 3 ++- dom/webidl/SVGStopElement.webidl | 3 ++- dom/webidl/SVGStringList.webidl | 3 ++- dom/webidl/SVGStyleElement.webidl | 3 ++- dom/webidl/SVGSwitchElement.webidl | 3 ++- dom/webidl/SVGSymbolElement.webidl | 3 ++- dom/webidl/SVGTSpanElement.webidl | 3 ++- dom/webidl/SVGTests.webidl | 3 ++- dom/webidl/SVGTextContentElement.webidl | 3 ++- dom/webidl/SVGTextElement.webidl | 3 ++- dom/webidl/SVGTextPathElement.webidl | 3 ++- dom/webidl/SVGTextPositioningElement.webidl | 3 ++- dom/webidl/SVGTitleElement.webidl | 3 ++- dom/webidl/SVGTransform.webidl | 3 ++- dom/webidl/SVGTransformList.webidl | 3 ++- dom/webidl/SVGURIReference.webidl | 3 ++- dom/webidl/SVGUnitTypes.webidl | 3 ++- dom/webidl/SVGUseElement.webidl | 3 ++- dom/webidl/SVGViewElement.webidl | 3 ++- dom/webidl/SVGZoomAndPan.webidl | 3 ++- dom/webidl/SVGZoomAndPanValues.webidl | 3 ++- dom/webidl/Screen.webidl | 3 ++- dom/webidl/ScreenOrientation.webidl | 3 ++- dom/webidl/ScriptProcessorNode.webidl | 3 ++- dom/webidl/ScrollAreaEvent.webidl | 3 ++- dom/webidl/ScrollViewChangeEvent.webidl | 3 ++- dom/webidl/SecurityPolicyViolationEvent.webidl | 2 ++ dom/webidl/Selection.webidl | 3 ++- dom/webidl/ServiceWorker.webidl | 3 ++- dom/webidl/ServiceWorkerContainer.webidl | 3 ++- dom/webidl/ServiceWorkerGlobalScope.webidl | 3 ++- dom/webidl/ServiceWorkerRegistration.webidl | 3 ++- dom/webidl/ShadowRoot.webidl | 3 ++- dom/webidl/SharedWorker.webidl | 3 ++- dom/webidl/SharedWorkerGlobalScope.webidl | 3 ++- dom/webidl/SimpleGestureEvent.webidl | 3 ++- dom/webidl/SocketCommon.webidl | 3 ++- dom/webidl/SourceBuffer.webidl | 3 ++- dom/webidl/SourceBufferList.webidl | 3 ++- dom/webidl/SpeechGrammar.webidl | 3 ++- dom/webidl/SpeechGrammarList.webidl | 3 ++- dom/webidl/SpeechRecognition.webidl | 3 ++- dom/webidl/SpeechRecognitionAlternative.webidl | 3 ++- dom/webidl/SpeechRecognitionError.webidl | 3 ++- dom/webidl/SpeechRecognitionEvent.webidl | 3 ++- dom/webidl/SpeechRecognitionResult.webidl | 3 ++- dom/webidl/SpeechRecognitionResultList.webidl | 3 ++- dom/webidl/SpeechSynthesis.webidl | 3 ++- dom/webidl/SpeechSynthesisErrorEvent.webidl | 3 ++- dom/webidl/SpeechSynthesisEvent.webidl | 3 ++- dom/webidl/SpeechSynthesisUtterance.webidl | 3 ++- dom/webidl/SpeechSynthesisVoice.webidl | 3 ++- dom/webidl/StereoPannerNode.webidl | 3 ++- dom/webidl/Storage.webidl | 3 ++- dom/webidl/StorageEvent.webidl | 3 ++- dom/webidl/StorageManager.webidl | 3 ++- dom/webidl/StorageType.webidl | 3 ++- dom/webidl/StreamFilter.webidl | 3 ++- dom/webidl/StreamFilterDataEvent.webidl | 3 ++- dom/webidl/StyleRuleChangeEvent.webidl | 3 ++- dom/webidl/StyleSheet.webidl | 3 ++- dom/webidl/StyleSheetApplicableStateChangeEvent.webidl | 3 ++- dom/webidl/StyleSheetChangeEvent.webidl | 3 ++- dom/webidl/StyleSheetList.webidl | 2 ++ dom/webidl/SubtleCrypto.webidl | 3 ++- dom/webidl/TCPServerSocket.webidl | 3 ++- dom/webidl/TCPServerSocketEvent.webidl | 3 ++- dom/webidl/TCPSocket.webidl | 3 ++- dom/webidl/TCPSocketErrorEvent.webidl | 3 ++- dom/webidl/TCPSocketEvent.webidl | 3 ++- dom/webidl/TestFunctions.webidl | 3 ++- dom/webidl/TestInterfaceJS.webidl | 3 ++- dom/webidl/TestInterfaceJSDictionaries.webidl | 3 ++- dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl | 3 ++- dom/webidl/Text.webidl | 3 ++- dom/webidl/TextClause.webidl | 3 ++- dom/webidl/TextDecoder.webidl | 3 ++- dom/webidl/TextEncoder.webidl | 3 ++- dom/webidl/TextTrack.webidl | 3 ++- dom/webidl/TextTrackCue.webidl | 3 ++- dom/webidl/TextTrackCueList.webidl | 3 ++- dom/webidl/TextTrackList.webidl | 3 ++- dom/webidl/TimeEvent.webidl | 3 ++- dom/webidl/TimeRanges.webidl | 3 ++- dom/webidl/Touch.webidl | 3 ++- dom/webidl/TouchEvent.webidl | 3 ++- dom/webidl/TouchList.webidl | 3 ++- dom/webidl/TrackEvent.webidl | 3 ++- dom/webidl/TransceiverImpl.webidl | 3 ++- dom/webidl/TransitionEvent.webidl | 3 ++- dom/webidl/TreeBoxObject.webidl | 4 ++-- dom/webidl/TreeColumn.webidl | 2 ++ dom/webidl/TreeColumns.webidl | 2 ++ dom/webidl/TreeContentView.webidl | 3 ++- dom/webidl/TreeView.webidl | 3 ++- dom/webidl/TreeWalker.webidl | 3 ++- dom/webidl/U2F.webidl | 3 ++- dom/webidl/UDPMessageEvent.webidl | 3 ++- dom/webidl/UDPSocket.webidl | 3 ++- dom/webidl/UIEvent.webidl | 3 ++- dom/webidl/URL.webidl | 3 ++- dom/webidl/URLSearchParams.webidl | 3 ++- dom/webidl/UserProximityEvent.webidl | 3 ++- dom/webidl/VRDisplay.webidl | 3 ++- dom/webidl/VRDisplayEvent.webidl | 3 ++- dom/webidl/VRServiceTest.webidl | 2 ++ dom/webidl/VTTCue.webidl | 3 ++- dom/webidl/VTTRegion.webidl | 3 ++- dom/webidl/ValidityState.webidl | 3 ++- dom/webidl/VideoPlaybackQuality.webidl | 3 ++- dom/webidl/VideoStreamTrack.webidl | 3 ++- dom/webidl/VideoTrack.webidl | 3 ++- dom/webidl/VideoTrackList.webidl | 3 ++- dom/webidl/VisualViewport.webidl | 3 ++- dom/webidl/WaveShaperNode.webidl | 3 ++- dom/webidl/WebAuthentication.webidl | 3 ++- dom/webidl/WebComponents.webidl | 3 ++- dom/webidl/WebGLContextEvent.webidl | 3 ++- dom/webidl/WebGPUExtras.webidl | 3 ++- dom/webidl/WebKitCSSMatrix.webidl | 3 ++- dom/webidl/WebSocket.webidl | 3 ++- dom/webidl/WebrtcDeprecated.webidl | 3 ++- dom/webidl/WebrtcGlobalInformation.webidl | 3 ++- dom/webidl/WheelEvent.webidl | 3 ++- dom/webidl/WidevineCDMManifest.webidl | 3 ++- dom/webidl/Window.webidl | 3 ++- dom/webidl/WindowOrWorkerGlobalScope.webidl | 3 ++- dom/webidl/WindowRoot.webidl | 3 ++- dom/webidl/Worker.webidl | 3 ++- dom/webidl/WorkerDebuggerGlobalScope.webidl | 3 ++- dom/webidl/WorkerGlobalScope.webidl | 3 ++- dom/webidl/WorkerLocation.webidl | 3 ++- dom/webidl/WorkerNavigator.webidl | 2 ++ dom/webidl/Worklet.webidl | 3 ++- dom/webidl/WorkletGlobalScope.webidl | 3 ++- dom/webidl/XMLDocument.webidl | 3 ++- dom/webidl/XMLHttpRequest.webidl | 3 ++- dom/webidl/XMLHttpRequestEventTarget.webidl | 3 ++- dom/webidl/XMLHttpRequestUpload.webidl | 3 ++- dom/webidl/XMLSerializer.webidl | 2 ++ dom/webidl/XPathEvaluator.webidl | 3 ++- dom/webidl/XPathExpression.webidl | 3 ++- dom/webidl/XPathNSResolver.webidl | 3 ++- dom/webidl/XPathResult.webidl | 3 ++- dom/webidl/XSLTProcessor.webidl | 3 ++- dom/webidl/XULCommandEvent.webidl | 3 ++- dom/webidl/XULDocument.webidl | 3 ++- dom/webidl/XULElement.webidl | 3 ++- dom/webidl/XULPopupElement.webidl | 3 ++- 707 files changed, 1411 insertions(+), 677 deletions(-) diff --git a/dom/bindings/test/TestCodeGen.webidl b/dom/bindings/test/TestCodeGen.webidl index 8bf40b27b24e..59c1ef11f42d 100644 --- a/dom/bindings/test/TestCodeGen.webidl +++ b/dom/bindings/test/TestCodeGen.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestDictionary.webidl b/dom/bindings/test/TestDictionary.webidl index 3dd91bd6500c..e5a9835abe7f 100644 --- a/dom/bindings/test/TestDictionary.webidl +++ b/dom/bindings/test/TestDictionary.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestExampleGen.webidl b/dom/bindings/test/TestExampleGen.webidl index 2fedb3122bf7..f4607c159edb 100644 --- a/dom/bindings/test/TestExampleGen.webidl +++ b/dom/bindings/test/TestExampleGen.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestJSImplGen.webidl b/dom/bindings/test/TestJSImplGen.webidl index fe291d4fa7c6..18c1e8a0921f 100644 --- a/dom/bindings/test/TestJSImplGen.webidl +++ b/dom/bindings/test/TestJSImplGen.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestJSImplInheritanceGen.webidl b/dom/bindings/test/TestJSImplInheritanceGen.webidl index e62dbd10be6e..fa1e28e59ebc 100644 --- a/dom/bindings/test/TestJSImplInheritanceGen.webidl +++ b/dom/bindings/test/TestJSImplInheritanceGen.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestTypedef.webidl b/dom/bindings/test/TestTypedef.webidl index 7f758c79e8f8..6c97d64891c1 100644 --- a/dom/bindings/test/TestTypedef.webidl +++ b/dom/bindings/test/TestTypedef.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/BrowsingContext.webidl b/dom/chrome-webidl/BrowsingContext.webidl index 2b0df20aa7ee..684a23157848 100644 --- a/dom/chrome-webidl/BrowsingContext.webidl +++ b/dom/chrome-webidl/BrowsingContext.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/ChannelWrapper.webidl b/dom/chrome-webidl/ChannelWrapper.webidl index 8f9a5c3daf56..d1ef4081ca1c 100644 --- a/dom/chrome-webidl/ChannelWrapper.webidl +++ b/dom/chrome-webidl/ChannelWrapper.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/ChromeUtils.webidl b/dom/chrome-webidl/ChromeUtils.webidl index 20c3076478c8..9208b9eb5c83 100644 --- a/dom/chrome-webidl/ChromeUtils.webidl +++ b/dom/chrome-webidl/ChromeUtils.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/DominatorTree.webidl b/dom/chrome-webidl/DominatorTree.webidl index 7eac4a8be251..ce974a0832a6 100644 --- a/dom/chrome-webidl/DominatorTree.webidl +++ b/dom/chrome-webidl/DominatorTree.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/HeapSnapshot.webidl b/dom/chrome-webidl/HeapSnapshot.webidl index f1418dc28215..56903b9213b6 100644 --- a/dom/chrome-webidl/HeapSnapshot.webidl +++ b/dom/chrome-webidl/HeapSnapshot.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/InspectorUtils.webidl b/dom/chrome-webidl/InspectorUtils.webidl index 98dff60c9c56..dc225d5ac88d 100644 --- a/dom/chrome-webidl/InspectorUtils.webidl +++ b/dom/chrome-webidl/InspectorUtils.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/IteratorResult.webidl b/dom/chrome-webidl/IteratorResult.webidl index 1fdd26810e07..f4eec4e1a8de 100644 --- a/dom/chrome-webidl/IteratorResult.webidl +++ b/dom/chrome-webidl/IteratorResult.webidl @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/dom/chrome-webidl/MatchGlob.webidl b/dom/chrome-webidl/MatchGlob.webidl index 60fda71900c5..ec95f44a03cf 100644 --- a/dom/chrome-webidl/MatchGlob.webidl +++ b/dom/chrome-webidl/MatchGlob.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MatchPattern.webidl b/dom/chrome-webidl/MatchPattern.webidl index e7a96a486b04..e4b4d50b6c14 100644 --- a/dom/chrome-webidl/MatchPattern.webidl +++ b/dom/chrome-webidl/MatchPattern.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MessageManager.webidl b/dom/chrome-webidl/MessageManager.webidl index 7f3c47297f27..072fc14a53e0 100644 --- a/dom/chrome-webidl/MessageManager.webidl +++ b/dom/chrome-webidl/MessageManager.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozDocumentObserver.webidl b/dom/chrome-webidl/MozDocumentObserver.webidl index 6fcbffaaac2a..08830ec566c2 100644 --- a/dom/chrome-webidl/MozDocumentObserver.webidl +++ b/dom/chrome-webidl/MozDocumentObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/MozSharedMap.webidl b/dom/chrome-webidl/MozSharedMap.webidl index 178dc82a948f..b9c03185f19e 100644 --- a/dom/chrome-webidl/MozSharedMap.webidl +++ b/dom/chrome-webidl/MozSharedMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl b/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl index fec002af579c..7e5bc0f363a9 100644 --- a/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl +++ b/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozStorageStatementParams.webidl b/dom/chrome-webidl/MozStorageStatementParams.webidl index 61cba37770cb..d173dc5af303 100644 --- a/dom/chrome-webidl/MozStorageStatementParams.webidl +++ b/dom/chrome-webidl/MozStorageStatementParams.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozStorageStatementRow.webidl b/dom/chrome-webidl/MozStorageStatementRow.webidl index 5e644ec24bed..e22d0d4997ef 100644 --- a/dom/chrome-webidl/MozStorageStatementRow.webidl +++ b/dom/chrome-webidl/MozStorageStatementRow.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/PlacesObservers.webidl b/dom/chrome-webidl/PlacesObservers.webidl index e6ab84872969..255612f9f854 100644 --- a/dom/chrome-webidl/PlacesObservers.webidl +++ b/dom/chrome-webidl/PlacesObservers.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PrecompiledScript.webidl b/dom/chrome-webidl/PrecompiledScript.webidl index 5e2a21ad202f..c3d5d8f90e15 100644 --- a/dom/chrome-webidl/PrecompiledScript.webidl +++ b/dom/chrome-webidl/PrecompiledScript.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PrioEncoder.webidl b/dom/chrome-webidl/PrioEncoder.webidl index 3b0243326bcc..819ed3ada80d 100644 --- a/dom/chrome-webidl/PrioEncoder.webidl +++ b/dom/chrome-webidl/PrioEncoder.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PromiseDebugging.webidl b/dom/chrome-webidl/PromiseDebugging.webidl index 1a5c1aa321cc..56840a3810d1 100644 --- a/dom/chrome-webidl/PromiseDebugging.webidl +++ b/dom/chrome-webidl/PromiseDebugging.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/StructuredCloneHolder.webidl b/dom/chrome-webidl/StructuredCloneHolder.webidl index 716de49f5087..99b9dd79934a 100644 --- a/dom/chrome-webidl/StructuredCloneHolder.webidl +++ b/dom/chrome-webidl/StructuredCloneHolder.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/WebExtensionContentScript.webidl b/dom/chrome-webidl/WebExtensionContentScript.webidl index 488bd82b104d..787e8df71b24 100644 --- a/dom/chrome-webidl/WebExtensionContentScript.webidl +++ b/dom/chrome-webidl/WebExtensionContentScript.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/WebExtensionPolicy.webidl b/dom/chrome-webidl/WebExtensionPolicy.webidl index 6fc51046eb82..ca99b16d88fe 100644 --- a/dom/chrome-webidl/WebExtensionPolicy.webidl +++ b/dom/chrome-webidl/WebExtensionPolicy.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/XULFrameElement.webidl b/dom/chrome-webidl/XULFrameElement.webidl index 80d9f55113ee..447a94815270 100644 --- a/dom/chrome-webidl/XULFrameElement.webidl +++ b/dom/chrome-webidl/XULFrameElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/XULScrollElement.webidl b/dom/chrome-webidl/XULScrollElement.webidl index ac417969950a..5a3a4f7f2925 100644 --- a/dom/chrome-webidl/XULScrollElement.webidl +++ b/dom/chrome-webidl/XULScrollElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/APZTestData.webidl b/dom/webidl/APZTestData.webidl index 8f10823498ff..12f84d3c9814 100644 --- a/dom/webidl/APZTestData.webidl +++ b/dom/webidl/APZTestData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbortController.webidl b/dom/webidl/AbortController.webidl index 19a8f8a63733..d2175d786592 100644 --- a/dom/webidl/AbortController.webidl +++ b/dom/webidl/AbortController.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbortSignal.webidl b/dom/webidl/AbortSignal.webidl index 6b66f76c4cd9..2505b00d0509 100644 --- a/dom/webidl/AbortSignal.webidl +++ b/dom/webidl/AbortSignal.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbstractWorker.webidl b/dom/webidl/AbstractWorker.webidl index 7ea6e367b6c2..d905eb87087e 100644 --- a/dom/webidl/AbstractWorker.webidl +++ b/dom/webidl/AbstractWorker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AccessibleNode.webidl b/dom/webidl/AccessibleNode.webidl index f121c8bad702..c7c9dd5ee2fa 100644 --- a/dom/webidl/AccessibleNode.webidl +++ b/dom/webidl/AccessibleNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AddonManager.webidl b/dom/webidl/AddonManager.webidl index 0fb9cf3925ee..bacf69e5059e 100644 --- a/dom/webidl/AddonManager.webidl +++ b/dom/webidl/AddonManager.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnalyserNode.webidl b/dom/webidl/AnalyserNode.webidl index bb8ba514de86..bcbb965ed046 100644 --- a/dom/webidl/AnalyserNode.webidl +++ b/dom/webidl/AnalyserNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Animatable.webidl b/dom/webidl/Animatable.webidl index 664ec8ea282a..15aea8516bef 100644 --- a/dom/webidl/Animatable.webidl +++ b/dom/webidl/Animatable.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Animation.webidl b/dom/webidl/Animation.webidl index 54e586b01f98..234e2423dcd3 100644 --- a/dom/webidl/Animation.webidl +++ b/dom/webidl/Animation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationEffect.webidl b/dom/webidl/AnimationEffect.webidl index 81a04b2193f2..aa2d01c7cd24 100644 --- a/dom/webidl/AnimationEffect.webidl +++ b/dom/webidl/AnimationEffect.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationEvent.webidl b/dom/webidl/AnimationEvent.webidl index e48ed571ca00..c72e9daec739 100644 --- a/dom/webidl/AnimationEvent.webidl +++ b/dom/webidl/AnimationEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationPlaybackEvent.webidl b/dom/webidl/AnimationPlaybackEvent.webidl index db8136eae66e..ef95558812bd 100644 --- a/dom/webidl/AnimationPlaybackEvent.webidl +++ b/dom/webidl/AnimationPlaybackEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationTimeline.webidl b/dom/webidl/AnimationTimeline.webidl index 7a1bc0cb713c..6b46d89f69ff 100644 --- a/dom/webidl/AnimationTimeline.webidl +++ b/dom/webidl/AnimationTimeline.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnonymousContent.webidl b/dom/webidl/AnonymousContent.webidl index c1037ca55fe0..89cc7bd7366c 100644 --- a/dom/webidl/AnonymousContent.webidl +++ b/dom/webidl/AnonymousContent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AppInfo.webidl b/dom/webidl/AppInfo.webidl index a4f44d46c250..5141fda6cf36 100644 --- a/dom/webidl/AppInfo.webidl +++ b/dom/webidl/AppInfo.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/AppNotificationServiceOptions.webidl b/dom/webidl/AppNotificationServiceOptions.webidl index f5addc92ac7f..7c63e2106e0e 100644 --- a/dom/webidl/AppNotificationServiceOptions.webidl +++ b/dom/webidl/AppNotificationServiceOptions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Attr.webidl b/dom/webidl/Attr.webidl index 921e2df81fbd..1fd7161cf7e3 100644 --- a/dom/webidl/Attr.webidl +++ b/dom/webidl/Attr.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioBuffer.webidl b/dom/webidl/AudioBuffer.webidl index 7006b86e35bd..cd169b463783 100644 --- a/dom/webidl/AudioBuffer.webidl +++ b/dom/webidl/AudioBuffer.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioBufferSourceNode.webidl b/dom/webidl/AudioBufferSourceNode.webidl index 1c30db3da2d6..29c03f36bb75 100644 --- a/dom/webidl/AudioBufferSourceNode.webidl +++ b/dom/webidl/AudioBufferSourceNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioContext.webidl b/dom/webidl/AudioContext.webidl index d115b968b626..81974b7374cc 100644 --- a/dom/webidl/AudioContext.webidl +++ b/dom/webidl/AudioContext.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioDestinationNode.webidl b/dom/webidl/AudioDestinationNode.webidl index e5c6db868f9e..e3b49d8f865e 100644 --- a/dom/webidl/AudioDestinationNode.webidl +++ b/dom/webidl/AudioDestinationNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioListener.webidl b/dom/webidl/AudioListener.webidl index d25c3ac4cc9d..1d9e43e117ed 100644 --- a/dom/webidl/AudioListener.webidl +++ b/dom/webidl/AudioListener.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioNode.webidl b/dom/webidl/AudioNode.webidl index 8792b64bc2c8..65507727584a 100644 --- a/dom/webidl/AudioNode.webidl +++ b/dom/webidl/AudioNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioParam.webidl b/dom/webidl/AudioParam.webidl index 491e3a1af247..fc19e491f02e 100644 --- a/dom/webidl/AudioParam.webidl +++ b/dom/webidl/AudioParam.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioParamMap.webidl b/dom/webidl/AudioParamMap.webidl index 9aabd93d4d85..573292ce63c0 100644 --- a/dom/webidl/AudioParamMap.webidl +++ b/dom/webidl/AudioParamMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioProcessingEvent.webidl b/dom/webidl/AudioProcessingEvent.webidl index 8cf3d9cc2272..61f143d7f178 100644 --- a/dom/webidl/AudioProcessingEvent.webidl +++ b/dom/webidl/AudioProcessingEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioScheduledSourceNode.webidl b/dom/webidl/AudioScheduledSourceNode.webidl index 2acf6373b32c..58e918d638e7 100644 --- a/dom/webidl/AudioScheduledSourceNode.webidl +++ b/dom/webidl/AudioScheduledSourceNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioStreamTrack.webidl b/dom/webidl/AudioStreamTrack.webidl index 9fff71cedc36..72ec57913745 100644 --- a/dom/webidl/AudioStreamTrack.webidl +++ b/dom/webidl/AudioStreamTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioTrack.webidl b/dom/webidl/AudioTrack.webidl index e70456a3726c..3d6fa299124e 100644 --- a/dom/webidl/AudioTrack.webidl +++ b/dom/webidl/AudioTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioTrackList.webidl b/dom/webidl/AudioTrackList.webidl index 2c229a67a285..b78ebf0e2605 100644 --- a/dom/webidl/AudioTrackList.webidl +++ b/dom/webidl/AudioTrackList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorklet.webidl b/dom/webidl/AudioWorklet.webidl index 720cd03ce67c..0494bf7a4495 100644 --- a/dom/webidl/AudioWorklet.webidl +++ b/dom/webidl/AudioWorklet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletGlobalScope.webidl b/dom/webidl/AudioWorkletGlobalScope.webidl index a2b860e31507..b9afd2d42c55 100644 --- a/dom/webidl/AudioWorkletGlobalScope.webidl +++ b/dom/webidl/AudioWorkletGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletNode.webidl b/dom/webidl/AudioWorkletNode.webidl index fedb94497592..0468dfe2229c 100644 --- a/dom/webidl/AudioWorkletNode.webidl +++ b/dom/webidl/AudioWorkletNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletProcessor.webidl b/dom/webidl/AudioWorkletProcessor.webidl index 01ef6cbc48ca..61b879fbc743 100644 --- a/dom/webidl/AudioWorkletProcessor.webidl +++ b/dom/webidl/AudioWorkletProcessor.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AutocompleteInfo.webidl b/dom/webidl/AutocompleteInfo.webidl index ad32ff6d3262..2541dcd1cd54 100644 --- a/dom/webidl/AutocompleteInfo.webidl +++ b/dom/webidl/AutocompleteInfo.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BarProp.webidl b/dom/webidl/BarProp.webidl index 871f0793e4cb..71a02236c038 100644 --- a/dom/webidl/BarProp.webidl +++ b/dom/webidl/BarProp.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BaseAudioContext.webidl b/dom/webidl/BaseAudioContext.webidl index 2b730e62518d..cccba37ec9ff 100644 --- a/dom/webidl/BaseAudioContext.webidl +++ b/dom/webidl/BaseAudioContext.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BaseKeyframeTypes.webidl b/dom/webidl/BaseKeyframeTypes.webidl index 5686d6126ed3..757244007940 100644 --- a/dom/webidl/BaseKeyframeTypes.webidl +++ b/dom/webidl/BaseKeyframeTypes.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BasicCardPayment.webidl b/dom/webidl/BasicCardPayment.webidl index 3cd62a43aa62..9ab85a6ff2fa 100644 --- a/dom/webidl/BasicCardPayment.webidl +++ b/dom/webidl/BasicCardPayment.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BatteryManager.webidl b/dom/webidl/BatteryManager.webidl index a964f3b0b014..2cf63434dd68 100644 --- a/dom/webidl/BatteryManager.webidl +++ b/dom/webidl/BatteryManager.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BeforeUnloadEvent.webidl b/dom/webidl/BeforeUnloadEvent.webidl index e64e1b2c2991..7ce92e47a84f 100644 --- a/dom/webidl/BeforeUnloadEvent.webidl +++ b/dom/webidl/BeforeUnloadEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BiquadFilterNode.webidl b/dom/webidl/BiquadFilterNode.webidl index c9ac0f0b9092..9e0801c818b0 100644 --- a/dom/webidl/BiquadFilterNode.webidl +++ b/dom/webidl/BiquadFilterNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Blob.webidl b/dom/webidl/Blob.webidl index 94812cd89c65..4ae3a15bef34 100644 --- a/dom/webidl/Blob.webidl +++ b/dom/webidl/Blob.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BlobEvent.webidl b/dom/webidl/BlobEvent.webidl index 8d0418701e56..6b9b579b13e1 100644 --- a/dom/webidl/BlobEvent.webidl +++ b/dom/webidl/BlobEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BoxObject.webidl b/dom/webidl/BoxObject.webidl index 8bebd6c9eb3e..ed143dee2dbb 100644 --- a/dom/webidl/BoxObject.webidl +++ b/dom/webidl/BoxObject.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BroadcastChannel.webidl b/dom/webidl/BroadcastChannel.webidl index fb0b639f786a..2cbc1987e58f 100644 --- a/dom/webidl/BroadcastChannel.webidl +++ b/dom/webidl/BroadcastChannel.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserElement.webidl b/dom/webidl/BrowserElement.webidl index 8a683d9466b4..5f0d2af5f66d 100644 --- a/dom/webidl/BrowserElement.webidl +++ b/dom/webidl/BrowserElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserElementDictionaries.webidl b/dom/webidl/BrowserElementDictionaries.webidl index 400e402532c5..22b284f60566 100644 --- a/dom/webidl/BrowserElementDictionaries.webidl +++ b/dom/webidl/BrowserElementDictionaries.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserFeedWriter.webidl b/dom/webidl/BrowserFeedWriter.webidl index d756a8837ebc..d3e26b0b7f6b 100644 --- a/dom/webidl/BrowserFeedWriter.webidl +++ b/dom/webidl/BrowserFeedWriter.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CDATASection.webidl b/dom/webidl/CDATASection.webidl index 895dae0894cf..4e0f83ef5596 100644 --- a/dom/webidl/CDATASection.webidl +++ b/dom/webidl/CDATASection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSPDictionaries.webidl b/dom/webidl/CSPDictionaries.webidl index f8de1c9ad822..11d4d1c450a6 100644 --- a/dom/webidl/CSPDictionaries.webidl +++ b/dom/webidl/CSPDictionaries.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CSPReport.webidl b/dom/webidl/CSPReport.webidl index 301ca2885c9b..6db4a5c9b84b 100644 --- a/dom/webidl/CSPReport.webidl +++ b/dom/webidl/CSPReport.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CSS.webidl b/dom/webidl/CSS.webidl index ad3f9a42d872..5b48847ab71b 100644 --- a/dom/webidl/CSS.webidl +++ b/dom/webidl/CSS.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSAnimation.webidl b/dom/webidl/CSSAnimation.webidl index 63abf6c7a39a..f0b485e0dc2a 100644 --- a/dom/webidl/CSSAnimation.webidl +++ b/dom/webidl/CSSAnimation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSConditionRule.webidl b/dom/webidl/CSSConditionRule.webidl index 24fae2343c73..87bf020c3d9f 100644 --- a/dom/webidl/CSSConditionRule.webidl +++ b/dom/webidl/CSSConditionRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSCounterStyleRule.webidl b/dom/webidl/CSSCounterStyleRule.webidl index bb6f7e0e1b8d..fdc5cc0ee65b 100644 --- a/dom/webidl/CSSCounterStyleRule.webidl +++ b/dom/webidl/CSSCounterStyleRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSFontFaceRule.webidl b/dom/webidl/CSSFontFaceRule.webidl index 221dd26aec20..72b9fc5fa0e3 100644 --- a/dom/webidl/CSSFontFaceRule.webidl +++ b/dom/webidl/CSSFontFaceRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSFontFeatureValuesRule.webidl b/dom/webidl/CSSFontFeatureValuesRule.webidl index 7532938141ea..191046c6d652 100644 --- a/dom/webidl/CSSFontFeatureValuesRule.webidl +++ b/dom/webidl/CSSFontFeatureValuesRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSGroupingRule.webidl b/dom/webidl/CSSGroupingRule.webidl index 93a221fb0bbb..cc777584f4a9 100644 --- a/dom/webidl/CSSGroupingRule.webidl +++ b/dom/webidl/CSSGroupingRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSImportRule.webidl b/dom/webidl/CSSImportRule.webidl index fccb97141f01..3e75a66eabf9 100644 --- a/dom/webidl/CSSImportRule.webidl +++ b/dom/webidl/CSSImportRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSKeyframeRule.webidl b/dom/webidl/CSSKeyframeRule.webidl index 25d8965f2a5d..13f7598d4135 100644 --- a/dom/webidl/CSSKeyframeRule.webidl +++ b/dom/webidl/CSSKeyframeRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSKeyframesRule.webidl b/dom/webidl/CSSKeyframesRule.webidl index d0ea978d0384..d01cc3f9edfb 100644 --- a/dom/webidl/CSSKeyframesRule.webidl +++ b/dom/webidl/CSSKeyframesRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSMediaRule.webidl b/dom/webidl/CSSMediaRule.webidl index 841a1b6f6b0e..abccb810f4ea 100644 --- a/dom/webidl/CSSMediaRule.webidl +++ b/dom/webidl/CSSMediaRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSMozDocumentRule.webidl b/dom/webidl/CSSMozDocumentRule.webidl index 27a22d52c73d..f0b0d1a6630a 100644 --- a/dom/webidl/CSSMozDocumentRule.webidl +++ b/dom/webidl/CSSMozDocumentRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSNamespaceRule.webidl b/dom/webidl/CSSNamespaceRule.webidl index 63f9301738d6..024f5fdb99aa 100644 --- a/dom/webidl/CSSNamespaceRule.webidl +++ b/dom/webidl/CSSNamespaceRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSPageRule.webidl b/dom/webidl/CSSPageRule.webidl index 93e47ef02b9a..c9ca015c6af9 100644 --- a/dom/webidl/CSSPageRule.webidl +++ b/dom/webidl/CSSPageRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSPseudoElement.webidl b/dom/webidl/CSSPseudoElement.webidl index 903cf3dd44f3..bbeae7b139fe 100644 --- a/dom/webidl/CSSPseudoElement.webidl +++ b/dom/webidl/CSSPseudoElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSRule.webidl b/dom/webidl/CSSRule.webidl index a825930351ed..a54db14503f7 100644 --- a/dom/webidl/CSSRule.webidl +++ b/dom/webidl/CSSRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSRuleList.webidl b/dom/webidl/CSSRuleList.webidl index c4faec1489a6..769ccf2dc7ce 100644 --- a/dom/webidl/CSSRuleList.webidl +++ b/dom/webidl/CSSRuleList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleDeclaration.webidl b/dom/webidl/CSSStyleDeclaration.webidl index 050edbd9f84e..c5feda75d574 100644 --- a/dom/webidl/CSSStyleDeclaration.webidl +++ b/dom/webidl/CSSStyleDeclaration.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleRule.webidl b/dom/webidl/CSSStyleRule.webidl index 571bd6a57feb..b53d5f97afac 100644 --- a/dom/webidl/CSSStyleRule.webidl +++ b/dom/webidl/CSSStyleRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleSheet.webidl b/dom/webidl/CSSStyleSheet.webidl index 4c5f1977ef0d..4d934e0a868d 100644 --- a/dom/webidl/CSSStyleSheet.webidl +++ b/dom/webidl/CSSStyleSheet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSSupportsRule.webidl b/dom/webidl/CSSSupportsRule.webidl index 0576e90ebd2b..72a0341c6840 100644 --- a/dom/webidl/CSSSupportsRule.webidl +++ b/dom/webidl/CSSSupportsRule.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSTransition.webidl b/dom/webidl/CSSTransition.webidl index 25a8ca92d9ed..1c9d5c91281a 100644 --- a/dom/webidl/CSSTransition.webidl +++ b/dom/webidl/CSSTransition.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Cache.webidl b/dom/webidl/Cache.webidl index d5314df2a670..597333b48917 100644 --- a/dom/webidl/Cache.webidl +++ b/dom/webidl/Cache.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CacheStorage.webidl b/dom/webidl/CacheStorage.webidl index 232ff5a2fe78..18b5e444a04d 100644 --- a/dom/webidl/CacheStorage.webidl +++ b/dom/webidl/CacheStorage.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CanvasCaptureMediaStream.webidl b/dom/webidl/CanvasCaptureMediaStream.webidl index 98b1adbf6307..5e2c959ac9c1 100644 --- a/dom/webidl/CanvasCaptureMediaStream.webidl +++ b/dom/webidl/CanvasCaptureMediaStream.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CanvasRenderingContext2D.webidl b/dom/webidl/CanvasRenderingContext2D.webidl index 13f61d4fe240..bfd8fd86a0a5 100644 --- a/dom/webidl/CanvasRenderingContext2D.webidl +++ b/dom/webidl/CanvasRenderingContext2D.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CaretPosition.webidl b/dom/webidl/CaretPosition.webidl index 5907b40d5015..eab4674b77b2 100644 --- a/dom/webidl/CaretPosition.webidl +++ b/dom/webidl/CaretPosition.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CaretStateChangedEvent.webidl b/dom/webidl/CaretStateChangedEvent.webidl index 39edd4d8f84c..c6866f356dd5 100644 --- a/dom/webidl/CaretStateChangedEvent.webidl +++ b/dom/webidl/CaretStateChangedEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChannelMergerNode.webidl b/dom/webidl/ChannelMergerNode.webidl index 6818abae2ad7..5a01dfffb473 100644 --- a/dom/webidl/ChannelMergerNode.webidl +++ b/dom/webidl/ChannelMergerNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChannelSplitterNode.webidl b/dom/webidl/ChannelSplitterNode.webidl index 25d254ca58e2..c23dbd3a394f 100644 --- a/dom/webidl/ChannelSplitterNode.webidl +++ b/dom/webidl/ChannelSplitterNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CharacterData.webidl b/dom/webidl/CharacterData.webidl index 8d6a214e58ec..e85881e9255b 100644 --- a/dom/webidl/CharacterData.webidl +++ b/dom/webidl/CharacterData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CheckerboardReportService.webidl b/dom/webidl/CheckerboardReportService.webidl index d5a624e0fa7c..5e5246e6ec25 100644 --- a/dom/webidl/CheckerboardReportService.webidl +++ b/dom/webidl/CheckerboardReportService.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChildNode.webidl b/dom/webidl/ChildNode.webidl index ae36cd93eb7c..7aad4e9da273 100644 --- a/dom/webidl/ChildNode.webidl +++ b/dom/webidl/ChildNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChildSHistory.webidl b/dom/webidl/ChildSHistory.webidl index 17db8d66aad4..80778f470407 100644 --- a/dom/webidl/ChildSHistory.webidl +++ b/dom/webidl/ChildSHistory.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChromeNodeList.webidl b/dom/webidl/ChromeNodeList.webidl index 3f062f2a3bf1..c9d81787140c 100644 --- a/dom/webidl/ChromeNodeList.webidl +++ b/dom/webidl/ChromeNodeList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Client.webidl b/dom/webidl/Client.webidl index 75d60b6d3c58..b1eeb8e47518 100644 --- a/dom/webidl/Client.webidl +++ b/dom/webidl/Client.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Clients.webidl b/dom/webidl/Clients.webidl index 054ee0e51041..d1ebe03e05a3 100644 --- a/dom/webidl/Clients.webidl +++ b/dom/webidl/Clients.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Clipboard.webidl b/dom/webidl/Clipboard.webidl index 08c6d3b7d2e7..db4db1aa6228 100644 --- a/dom/webidl/Clipboard.webidl +++ b/dom/webidl/Clipboard.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ClipboardEvent.webidl b/dom/webidl/ClipboardEvent.webidl index 8fe8a4935bce..bbf833d1ac61 100644 --- a/dom/webidl/ClipboardEvent.webidl +++ b/dom/webidl/ClipboardEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CloseEvent.webidl b/dom/webidl/CloseEvent.webidl index 4fddbd8342b9..af8c46f85772 100644 --- a/dom/webidl/CloseEvent.webidl +++ b/dom/webidl/CloseEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CommandEvent.webidl b/dom/webidl/CommandEvent.webidl index 0ce0a4e0f094..29d530f4101b 100644 --- a/dom/webidl/CommandEvent.webidl +++ b/dom/webidl/CommandEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Comment.webidl b/dom/webidl/Comment.webidl index 023335f166ab..75ff7e40434d 100644 --- a/dom/webidl/Comment.webidl +++ b/dom/webidl/Comment.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CompositionEvent.webidl b/dom/webidl/CompositionEvent.webidl index 16c5d6ea814c..c37360b8e450 100644 --- a/dom/webidl/CompositionEvent.webidl +++ b/dom/webidl/CompositionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Console.webidl b/dom/webidl/Console.webidl index 6fbce7a43d0b..02192f98e901 100644 --- a/dom/webidl/Console.webidl +++ b/dom/webidl/Console.webidl @@ -1,5 +1,5 @@ /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=2 et sw=2 tw=80: */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ConstantSourceNode.webidl b/dom/webidl/ConstantSourceNode.webidl index cd005897aacd..6a7b72889a04 100644 --- a/dom/webidl/ConstantSourceNode.webidl +++ b/dom/webidl/ConstantSourceNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ConvolverNode.webidl b/dom/webidl/ConvolverNode.webidl index 0e0e1137ccb6..9284e3ab5c85 100644 --- a/dom/webidl/ConvolverNode.webidl +++ b/dom/webidl/ConvolverNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Coordinates.webidl b/dom/webidl/Coordinates.webidl index 840782f74928..08f7e999b869 100644 --- a/dom/webidl/Coordinates.webidl +++ b/dom/webidl/Coordinates.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CreateOfferRequest.webidl b/dom/webidl/CreateOfferRequest.webidl index 134fe33fa206..b632ce4ce28a 100644 --- a/dom/webidl/CreateOfferRequest.webidl +++ b/dom/webidl/CreateOfferRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CredentialManagement.webidl b/dom/webidl/CredentialManagement.webidl index fcb525075aed..eb7eafeb1d28 100644 --- a/dom/webidl/CredentialManagement.webidl +++ b/dom/webidl/CredentialManagement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Crypto.webidl b/dom/webidl/Crypto.webidl index 31574a219cd6..413e872e7d85 100644 --- a/dom/webidl/Crypto.webidl +++ b/dom/webidl/Crypto.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CustomElementRegistry.webidl b/dom/webidl/CustomElementRegistry.webidl index b4b091b84784..d28c61055276 100644 --- a/dom/webidl/CustomElementRegistry.webidl +++ b/dom/webidl/CustomElementRegistry.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CustomEvent.webidl b/dom/webidl/CustomEvent.webidl index 8c7124ddca56..888bb9fdd2e8 100644 --- a/dom/webidl/CustomEvent.webidl +++ b/dom/webidl/CustomEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMError.webidl b/dom/webidl/DOMError.webidl index 5fb5d17ed91b..a52de882fdc4 100644 --- a/dom/webidl/DOMError.webidl +++ b/dom/webidl/DOMError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMException.webidl b/dom/webidl/DOMException.webidl index 157e5cdca834..5f1b7590be98 100644 --- a/dom/webidl/DOMException.webidl +++ b/dom/webidl/DOMException.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMImplementation.webidl b/dom/webidl/DOMImplementation.webidl index 5fa3c8592708..a88faf5ff1d9 100644 --- a/dom/webidl/DOMImplementation.webidl +++ b/dom/webidl/DOMImplementation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl index ad6b04ec8bea..5d9751248ba2 100644 --- a/dom/webidl/DOMMatrix.webidl +++ b/dom/webidl/DOMMatrix.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMParser.webidl b/dom/webidl/DOMParser.webidl index 8afff03da225..d30f0b2605cf 100644 --- a/dom/webidl/DOMParser.webidl +++ b/dom/webidl/DOMParser.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl index caf388c701db..f81dcfa96a7f 100644 --- a/dom/webidl/DOMPoint.webidl +++ b/dom/webidl/DOMPoint.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl index ee8b5e545522..cb04f0930d25 100644 --- a/dom/webidl/DOMQuad.webidl +++ b/dom/webidl/DOMQuad.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl index 6846ee0cef16..51cc122d482c 100644 --- a/dom/webidl/DOMRect.webidl +++ b/dom/webidl/DOMRect.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMRectList.webidl b/dom/webidl/DOMRectList.webidl index 74332bfc1608..fc3083dea05e 100644 --- a/dom/webidl/DOMRectList.webidl +++ b/dom/webidl/DOMRectList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMRequest.webidl b/dom/webidl/DOMRequest.webidl index 2e25fc192734..e1381c135483 100644 --- a/dom/webidl/DOMRequest.webidl +++ b/dom/webidl/DOMRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/DOMStringList.webidl b/dom/webidl/DOMStringList.webidl index 56c5836ffec7..94e68fae7192 100644 --- a/dom/webidl/DOMStringList.webidl +++ b/dom/webidl/DOMStringList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMStringMap.webidl b/dom/webidl/DOMStringMap.webidl index e86e37a378be..474c9ecdade1 100644 --- a/dom/webidl/DOMStringMap.webidl +++ b/dom/webidl/DOMStringMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMTokenList.webidl b/dom/webidl/DOMTokenList.webidl index a662300d83dd..4390f44c4e35 100644 --- a/dom/webidl/DOMTokenList.webidl +++ b/dom/webidl/DOMTokenList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransfer.webidl b/dom/webidl/DataTransfer.webidl index d880cdfbb5d3..724dd9c81428 100644 --- a/dom/webidl/DataTransfer.webidl +++ b/dom/webidl/DataTransfer.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransferItem.webidl b/dom/webidl/DataTransferItem.webidl index 449498104de8..4c754a566053 100644 --- a/dom/webidl/DataTransferItem.webidl +++ b/dom/webidl/DataTransferItem.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransferItemList.webidl b/dom/webidl/DataTransferItemList.webidl index 079afdd14811..37d464f6f69e 100644 --- a/dom/webidl/DataTransferItemList.webidl +++ b/dom/webidl/DataTransferItemList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DecoderDoctorNotification.webidl b/dom/webidl/DecoderDoctorNotification.webidl index c994918bf4fb..48ee165d01e5 100644 --- a/dom/webidl/DecoderDoctorNotification.webidl +++ b/dom/webidl/DecoderDoctorNotification.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DedicatedWorkerGlobalScope.webidl b/dom/webidl/DedicatedWorkerGlobalScope.webidl index 57b48839f70d..5eea422085ea 100644 --- a/dom/webidl/DedicatedWorkerGlobalScope.webidl +++ b/dom/webidl/DedicatedWorkerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DelayNode.webidl b/dom/webidl/DelayNode.webidl index 02575bc5878a..6186ccea2983 100644 --- a/dom/webidl/DelayNode.webidl +++ b/dom/webidl/DelayNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceLightEvent.webidl b/dom/webidl/DeviceLightEvent.webidl index 8b44d2f0157e..901d22f4415b 100644 --- a/dom/webidl/DeviceLightEvent.webidl +++ b/dom/webidl/DeviceLightEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceMotionEvent.webidl b/dom/webidl/DeviceMotionEvent.webidl index 851b913ef15e..ecb2ec7fe5f5 100644 --- a/dom/webidl/DeviceMotionEvent.webidl +++ b/dom/webidl/DeviceMotionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceOrientationEvent.webidl b/dom/webidl/DeviceOrientationEvent.webidl index 511add55dbdc..ee2b99c7b7a0 100644 --- a/dom/webidl/DeviceOrientationEvent.webidl +++ b/dom/webidl/DeviceOrientationEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceProximityEvent.webidl b/dom/webidl/DeviceProximityEvent.webidl index 70ee70b3364f..57725b805059 100644 --- a/dom/webidl/DeviceProximityEvent.webidl +++ b/dom/webidl/DeviceProximityEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Directory.webidl b/dom/webidl/Directory.webidl index 942d50c7cba7..e4a3b6ba91f8 100644 --- a/dom/webidl/Directory.webidl +++ b/dom/webidl/Directory.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl index b7290dd84c44..a6bc5cf19acf 100644 --- a/dom/webidl/Document.webidl +++ b/dom/webidl/Document.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentFragment.webidl b/dom/webidl/DocumentFragment.webidl index 0f814666fb64..5374018eca04 100644 --- a/dom/webidl/DocumentFragment.webidl +++ b/dom/webidl/DocumentFragment.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentOrShadowRoot.webidl b/dom/webidl/DocumentOrShadowRoot.webidl index 8a288f6151cc..7fc0f5f6225e 100644 --- a/dom/webidl/DocumentOrShadowRoot.webidl +++ b/dom/webidl/DocumentOrShadowRoot.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentTimeline.webidl b/dom/webidl/DocumentTimeline.webidl index 4837bd2ec79c..d604e219e15f 100644 --- a/dom/webidl/DocumentTimeline.webidl +++ b/dom/webidl/DocumentTimeline.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentType.webidl b/dom/webidl/DocumentType.webidl index 89190266fdeb..04f648699ba2 100644 --- a/dom/webidl/DocumentType.webidl +++ b/dom/webidl/DocumentType.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DragEvent.webidl b/dom/webidl/DragEvent.webidl index 806177790c57..5b5d754af019 100644 --- a/dom/webidl/DragEvent.webidl +++ b/dom/webidl/DragEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DynamicsCompressorNode.webidl b/dom/webidl/DynamicsCompressorNode.webidl index 78170756ad19..44c8631e8f61 100644 --- a/dom/webidl/DynamicsCompressorNode.webidl +++ b/dom/webidl/DynamicsCompressorNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl index 8cc484419fd3..662b18be77a6 100644 --- a/dom/webidl/Element.webidl +++ b/dom/webidl/Element.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ErrorEvent.webidl b/dom/webidl/ErrorEvent.webidl index cb858dffdbe6..61b1978ac0bc 100644 --- a/dom/webidl/ErrorEvent.webidl +++ b/dom/webidl/ErrorEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Event.webidl b/dom/webidl/Event.webidl index 2d02ff7ef468..7aabaa1bea09 100644 --- a/dom/webidl/Event.webidl +++ b/dom/webidl/Event.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventHandler.webidl b/dom/webidl/EventHandler.webidl index bbddbd50bbf0..7f9e18684ba0 100644 --- a/dom/webidl/EventHandler.webidl +++ b/dom/webidl/EventHandler.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventListener.webidl b/dom/webidl/EventListener.webidl index 46aa748d6917..4c93ffac9996 100644 --- a/dom/webidl/EventListener.webidl +++ b/dom/webidl/EventListener.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventSource.webidl b/dom/webidl/EventSource.webidl index f6d54c3bd97e..ce352431dfc7 100644 --- a/dom/webidl/EventSource.webidl +++ b/dom/webidl/EventSource.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventTarget.webidl b/dom/webidl/EventTarget.webidl index 72475a4a3194..38a4aaa41324 100644 --- a/dom/webidl/EventTarget.webidl +++ b/dom/webidl/EventTarget.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ExtendableEvent.webidl b/dom/webidl/ExtendableEvent.webidl index 01dc545efd4e..04a36127551f 100644 --- a/dom/webidl/ExtendableEvent.webidl +++ b/dom/webidl/ExtendableEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ExtendableMessageEvent.webidl b/dom/webidl/ExtendableMessageEvent.webidl index b2bdf6792ac9..5d3cee460679 100644 --- a/dom/webidl/ExtendableMessageEvent.webidl +++ b/dom/webidl/ExtendableMessageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/External.webidl b/dom/webidl/External.webidl index 91be6163f74a..269ed00b63ea 100644 --- a/dom/webidl/External.webidl +++ b/dom/webidl/External.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FakePluginTagInit.webidl b/dom/webidl/FakePluginTagInit.webidl index 714be875092c..e98880ba658f 100644 --- a/dom/webidl/FakePluginTagInit.webidl +++ b/dom/webidl/FakePluginTagInit.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Fetch.webidl b/dom/webidl/Fetch.webidl index bbb1faf7f7d7..23d19862c72c 100644 --- a/dom/webidl/Fetch.webidl +++ b/dom/webidl/Fetch.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FetchEvent.webidl b/dom/webidl/FetchEvent.webidl index 148433f356b9..992bc23d0570 100644 --- a/dom/webidl/FetchEvent.webidl +++ b/dom/webidl/FetchEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FetchObserver.webidl b/dom/webidl/FetchObserver.webidl index 78c2824e9769..bfefc5b0e63b 100644 --- a/dom/webidl/FetchObserver.webidl +++ b/dom/webidl/FetchObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/File.webidl b/dom/webidl/File.webidl index 6cc5d8b0026b..96feb4fe7a52 100644 --- a/dom/webidl/File.webidl +++ b/dom/webidl/File.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileList.webidl b/dom/webidl/FileList.webidl index 5e4590347b47..0809f75f5c9d 100644 --- a/dom/webidl/FileList.webidl +++ b/dom/webidl/FileList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileMode.webidl b/dom/webidl/FileMode.webidl index 788c2c9bf0ee..7f438ee3867a 100644 --- a/dom/webidl/FileMode.webidl +++ b/dom/webidl/FileMode.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/FileReader.webidl b/dom/webidl/FileReader.webidl index 1e79ba09fd9d..d7b31cd6c325 100644 --- a/dom/webidl/FileReader.webidl +++ b/dom/webidl/FileReader.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileReaderSync.webidl b/dom/webidl/FileReaderSync.webidl index 6628794f2432..dc54390d9e7f 100644 --- a/dom/webidl/FileReaderSync.webidl +++ b/dom/webidl/FileReaderSync.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystem.webidl b/dom/webidl/FileSystem.webidl index 06b88c5ce91a..06c06a5b527b 100644 --- a/dom/webidl/FileSystem.webidl +++ b/dom/webidl/FileSystem.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemDirectoryEntry.webidl b/dom/webidl/FileSystemDirectoryEntry.webidl index f972d216fc3f..9fab959de0d2 100644 --- a/dom/webidl/FileSystemDirectoryEntry.webidl +++ b/dom/webidl/FileSystemDirectoryEntry.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemDirectoryReader.webidl b/dom/webidl/FileSystemDirectoryReader.webidl index 3be94830c993..e7cdf65db6f9 100644 --- a/dom/webidl/FileSystemDirectoryReader.webidl +++ b/dom/webidl/FileSystemDirectoryReader.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemEntry.webidl b/dom/webidl/FileSystemEntry.webidl index af112282d2b0..e25e5b9ad61d 100644 --- a/dom/webidl/FileSystemEntry.webidl +++ b/dom/webidl/FileSystemEntry.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemFileEntry.webidl b/dom/webidl/FileSystemFileEntry.webidl index 3f141e54afd5..fe86d6687f3b 100644 --- a/dom/webidl/FileSystemFileEntry.webidl +++ b/dom/webidl/FileSystemFileEntry.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Flex.webidl b/dom/webidl/Flex.webidl index 58c713630bee..9c3d6a1901fa 100644 --- a/dom/webidl/Flex.webidl +++ b/dom/webidl/Flex.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FocusEvent.webidl b/dom/webidl/FocusEvent.webidl index 52a2f1fde895..50cf54d8f70b 100644 --- a/dom/webidl/FocusEvent.webidl +++ b/dom/webidl/FocusEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFace.webidl b/dom/webidl/FontFace.webidl index 5705f5d8debd..337b96b7eae0 100644 --- a/dom/webidl/FontFace.webidl +++ b/dom/webidl/FontFace.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSet.webidl b/dom/webidl/FontFaceSet.webidl index 7f58fbe5e407..823319377231 100644 --- a/dom/webidl/FontFaceSet.webidl +++ b/dom/webidl/FontFaceSet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSetLoadEvent.webidl b/dom/webidl/FontFaceSetLoadEvent.webidl index fee0f306810e..0290ba6261ec 100644 --- a/dom/webidl/FontFaceSetLoadEvent.webidl +++ b/dom/webidl/FontFaceSetLoadEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSource.webidl b/dom/webidl/FontFaceSource.webidl index 96e1c6d76da0..ecc69186a932 100644 --- a/dom/webidl/FontFaceSource.webidl +++ b/dom/webidl/FontFaceSource.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FormData.webidl b/dom/webidl/FormData.webidl index 16f780d5dc22..52b5807731b7 100644 --- a/dom/webidl/FormData.webidl +++ b/dom/webidl/FormData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FrameLoader.webidl b/dom/webidl/FrameLoader.webidl index 44584502dede..09fd318c9d3b 100644 --- a/dom/webidl/FrameLoader.webidl +++ b/dom/webidl/FrameLoader.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Function.webidl b/dom/webidl/Function.webidl index a873a871b270..8633a837c5cd 100644 --- a/dom/webidl/Function.webidl +++ b/dom/webidl/Function.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FuzzingFunctions.webidl b/dom/webidl/FuzzingFunctions.webidl index 268db55436a2..9762041b14c2 100644 --- a/dom/webidl/FuzzingFunctions.webidl +++ b/dom/webidl/FuzzingFunctions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GainNode.webidl b/dom/webidl/GainNode.webidl index 04bba87cb352..8713c43308e5 100644 --- a/dom/webidl/GainNode.webidl +++ b/dom/webidl/GainNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Gamepad.webidl b/dom/webidl/Gamepad.webidl index 480f94696630..47b9ba127ab2 100644 --- a/dom/webidl/Gamepad.webidl +++ b/dom/webidl/Gamepad.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadAxisMoveEvent.webidl b/dom/webidl/GamepadAxisMoveEvent.webidl index 7699674b453f..25582a435538 100644 --- a/dom/webidl/GamepadAxisMoveEvent.webidl +++ b/dom/webidl/GamepadAxisMoveEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadButtonEvent.webidl b/dom/webidl/GamepadButtonEvent.webidl index b8a9e086bfc7..ff85b81da49f 100644 --- a/dom/webidl/GamepadButtonEvent.webidl +++ b/dom/webidl/GamepadButtonEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadEvent.webidl b/dom/webidl/GamepadEvent.webidl index f4c3092ac1b2..e14cb18470ef 100644 --- a/dom/webidl/GamepadEvent.webidl +++ b/dom/webidl/GamepadEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadHapticActuator.webidl b/dom/webidl/GamepadHapticActuator.webidl index 9255debe34bf..2b510619e6b2 100644 --- a/dom/webidl/GamepadHapticActuator.webidl +++ b/dom/webidl/GamepadHapticActuator.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadPose.webidl b/dom/webidl/GamepadPose.webidl index 4bc2086984ec..90028bbea143 100644 --- a/dom/webidl/GamepadPose.webidl +++ b/dom/webidl/GamepadPose.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadServiceTest.webidl b/dom/webidl/GamepadServiceTest.webidl index 4831ae3ccbf5..71233f99e762 100644 --- a/dom/webidl/GamepadServiceTest.webidl +++ b/dom/webidl/GamepadServiceTest.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Geolocation.webidl b/dom/webidl/Geolocation.webidl index 79324005969b..fa284fa2dbd9 100644 --- a/dom/webidl/Geolocation.webidl +++ b/dom/webidl/Geolocation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GeometryUtils.webidl b/dom/webidl/GeometryUtils.webidl index 53a24a789d32..a7cdd66748c0 100644 --- a/dom/webidl/GeometryUtils.webidl +++ b/dom/webidl/GeometryUtils.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GetUserMediaRequest.webidl b/dom/webidl/GetUserMediaRequest.webidl index 7ccbcc9f4187..0d4fb1d90093 100644 --- a/dom/webidl/GetUserMediaRequest.webidl +++ b/dom/webidl/GetUserMediaRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Grid.webidl b/dom/webidl/Grid.webidl index 0b5dbf23991d..ac8b0bd6556a 100644 --- a/dom/webidl/Grid.webidl +++ b/dom/webidl/Grid.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GroupedHistoryEvent.webidl b/dom/webidl/GroupedHistoryEvent.webidl index d999a1ec9770..9e95dae6464a 100644 --- a/dom/webidl/GroupedHistoryEvent.webidl +++ b/dom/webidl/GroupedHistoryEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAllCollection.webidl b/dom/webidl/HTMLAllCollection.webidl index b3521388883b..466e84e4874d 100644 --- a/dom/webidl/HTMLAllCollection.webidl +++ b/dom/webidl/HTMLAllCollection.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/HTMLAnchorElement.webidl b/dom/webidl/HTMLAnchorElement.webidl index fe1c1a71c226..cbb4cd4846c8 100644 --- a/dom/webidl/HTMLAnchorElement.webidl +++ b/dom/webidl/HTMLAnchorElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAreaElement.webidl b/dom/webidl/HTMLAreaElement.webidl index 997535a90248..8efc381f62ce 100644 --- a/dom/webidl/HTMLAreaElement.webidl +++ b/dom/webidl/HTMLAreaElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAudioElement.webidl b/dom/webidl/HTMLAudioElement.webidl index 72566983945a..2478b0e2bb9f 100644 --- a/dom/webidl/HTMLAudioElement.webidl +++ b/dom/webidl/HTMLAudioElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBRElement.webidl b/dom/webidl/HTMLBRElement.webidl index b0b0f80ede99..0b47e6b4d5f6 100644 --- a/dom/webidl/HTMLBRElement.webidl +++ b/dom/webidl/HTMLBRElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBaseElement.webidl b/dom/webidl/HTMLBaseElement.webidl index ed86f8c77d90..b893fcc39e7e 100644 --- a/dom/webidl/HTMLBaseElement.webidl +++ b/dom/webidl/HTMLBaseElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBodyElement.webidl b/dom/webidl/HTMLBodyElement.webidl index f89c287d72f7..d0081da7053b 100644 --- a/dom/webidl/HTMLBodyElement.webidl +++ b/dom/webidl/HTMLBodyElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLButtonElement.webidl b/dom/webidl/HTMLButtonElement.webidl index 9ea7d9082f7f..214428073d6e 100644 --- a/dom/webidl/HTMLButtonElement.webidl +++ b/dom/webidl/HTMLButtonElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLCanvasElement.webidl b/dom/webidl/HTMLCanvasElement.webidl index b92a5314bd33..003ca9a67bf0 100644 --- a/dom/webidl/HTMLCanvasElement.webidl +++ b/dom/webidl/HTMLCanvasElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLCollection.webidl b/dom/webidl/HTMLCollection.webidl index f7f020c0ff1f..d93848e3aa3d 100644 --- a/dom/webidl/HTMLCollection.webidl +++ b/dom/webidl/HTMLCollection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDListElement.webidl b/dom/webidl/HTMLDListElement.webidl index 4cf1c218310f..24e9c6682666 100644 --- a/dom/webidl/HTMLDListElement.webidl +++ b/dom/webidl/HTMLDListElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDataElement.webidl b/dom/webidl/HTMLDataElement.webidl index d24537871423..4bc4c4e569f7 100644 --- a/dom/webidl/HTMLDataElement.webidl +++ b/dom/webidl/HTMLDataElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDataListElement.webidl b/dom/webidl/HTMLDataListElement.webidl index 4c38fddf375f..3a7debdedd57 100644 --- a/dom/webidl/HTMLDataListElement.webidl +++ b/dom/webidl/HTMLDataListElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDetailsElement.webidl b/dom/webidl/HTMLDetailsElement.webidl index 04df82e30fae..e52a4b30f330 100644 --- a/dom/webidl/HTMLDetailsElement.webidl +++ b/dom/webidl/HTMLDetailsElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDialogElement.webidl b/dom/webidl/HTMLDialogElement.webidl index e9117c9c9cc3..069cc1045e4c 100644 --- a/dom/webidl/HTMLDialogElement.webidl +++ b/dom/webidl/HTMLDialogElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDirectoryElement.webidl b/dom/webidl/HTMLDirectoryElement.webidl index 65becbb60509..d123e3b6b371 100644 --- a/dom/webidl/HTMLDirectoryElement.webidl +++ b/dom/webidl/HTMLDirectoryElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDivElement.webidl b/dom/webidl/HTMLDivElement.webidl index 2b762c6faa8b..c770b710bdbe 100644 --- a/dom/webidl/HTMLDivElement.webidl +++ b/dom/webidl/HTMLDivElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDocument.webidl b/dom/webidl/HTMLDocument.webidl index e587170ff6f7..be7aa77beb23 100644 --- a/dom/webidl/HTMLDocument.webidl +++ b/dom/webidl/HTMLDocument.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLElement.webidl b/dom/webidl/HTMLElement.webidl index 09742a32a2d4..68c327d9ba4d 100644 --- a/dom/webidl/HTMLElement.webidl +++ b/dom/webidl/HTMLElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLEmbedElement.webidl b/dom/webidl/HTMLEmbedElement.webidl index bb6b5c0ea019..d3f193cbaf4d 100644 --- a/dom/webidl/HTMLEmbedElement.webidl +++ b/dom/webidl/HTMLEmbedElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFieldSetElement.webidl b/dom/webidl/HTMLFieldSetElement.webidl index 23f14e91b4a3..f11c77f0ffe9 100644 --- a/dom/webidl/HTMLFieldSetElement.webidl +++ b/dom/webidl/HTMLFieldSetElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFontElement.webidl b/dom/webidl/HTMLFontElement.webidl index 8db6d3246630..fa4da74c37cb 100644 --- a/dom/webidl/HTMLFontElement.webidl +++ b/dom/webidl/HTMLFontElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFormControlsCollection.webidl b/dom/webidl/HTMLFormControlsCollection.webidl index eb2d83d4219c..ebb1f0cc87f6 100644 --- a/dom/webidl/HTMLFormControlsCollection.webidl +++ b/dom/webidl/HTMLFormControlsCollection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFormElement.webidl b/dom/webidl/HTMLFormElement.webidl index 86b6c2438d41..db2e25b38317 100644 --- a/dom/webidl/HTMLFormElement.webidl +++ b/dom/webidl/HTMLFormElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFrameElement.webidl b/dom/webidl/HTMLFrameElement.webidl index 2d712caf8e76..d741e3ba3882 100644 --- a/dom/webidl/HTMLFrameElement.webidl +++ b/dom/webidl/HTMLFrameElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFrameSetElement.webidl b/dom/webidl/HTMLFrameSetElement.webidl index afc4465d1820..1a5f12eae996 100644 --- a/dom/webidl/HTMLFrameSetElement.webidl +++ b/dom/webidl/HTMLFrameSetElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHRElement.webidl b/dom/webidl/HTMLHRElement.webidl index 24ba3112aa94..c8b4092992ca 100644 --- a/dom/webidl/HTMLHRElement.webidl +++ b/dom/webidl/HTMLHRElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHeadElement.webidl b/dom/webidl/HTMLHeadElement.webidl index b649712a6b1c..ced58edb022a 100644 --- a/dom/webidl/HTMLHeadElement.webidl +++ b/dom/webidl/HTMLHeadElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHeadingElement.webidl b/dom/webidl/HTMLHeadingElement.webidl index a39e24cfba3b..45bd6fa93691 100644 --- a/dom/webidl/HTMLHeadingElement.webidl +++ b/dom/webidl/HTMLHeadingElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHtmlElement.webidl b/dom/webidl/HTMLHtmlElement.webidl index 5b2a9a926d77..b96b8860a5d9 100644 --- a/dom/webidl/HTMLHtmlElement.webidl +++ b/dom/webidl/HTMLHtmlElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHyperlinkElementUtils.webidl b/dom/webidl/HTMLHyperlinkElementUtils.webidl index ae53fd75e23a..51072f7b2501 100644 --- a/dom/webidl/HTMLHyperlinkElementUtils.webidl +++ b/dom/webidl/HTMLHyperlinkElementUtils.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLIFrameElement.webidl b/dom/webidl/HTMLIFrameElement.webidl index 5801de76457a..0c8e54a321ea 100644 --- a/dom/webidl/HTMLIFrameElement.webidl +++ b/dom/webidl/HTMLIFrameElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLImageElement.webidl b/dom/webidl/HTMLImageElement.webidl index ae91af091c57..0dbbb33fd6e3 100644 --- a/dom/webidl/HTMLImageElement.webidl +++ b/dom/webidl/HTMLImageElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLInputElement.webidl b/dom/webidl/HTMLInputElement.webidl index c5f4ab8a533e..2b9acaba88ba 100644 --- a/dom/webidl/HTMLInputElement.webidl +++ b/dom/webidl/HTMLInputElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLIElement.webidl b/dom/webidl/HTMLLIElement.webidl index 3f104d09e07f..0611f48d8eb6 100644 --- a/dom/webidl/HTMLLIElement.webidl +++ b/dom/webidl/HTMLLIElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLabelElement.webidl b/dom/webidl/HTMLLabelElement.webidl index 4b624dfafa49..ec1ca9b206c8 100644 --- a/dom/webidl/HTMLLabelElement.webidl +++ b/dom/webidl/HTMLLabelElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLegendElement.webidl b/dom/webidl/HTMLLegendElement.webidl index 6f03ecf1b6ab..f41d1c1f8999 100644 --- a/dom/webidl/HTMLLegendElement.webidl +++ b/dom/webidl/HTMLLegendElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLinkElement.webidl b/dom/webidl/HTMLLinkElement.webidl index 0fc7890d6eaa..a043ce3eb284 100644 --- a/dom/webidl/HTMLLinkElement.webidl +++ b/dom/webidl/HTMLLinkElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMapElement.webidl b/dom/webidl/HTMLMapElement.webidl index 199c70876ab4..cab4de6b6cce 100644 --- a/dom/webidl/HTMLMapElement.webidl +++ b/dom/webidl/HTMLMapElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMediaElement.webidl b/dom/webidl/HTMLMediaElement.webidl index 7c33165fc590..4685c0d4d374 100644 --- a/dom/webidl/HTMLMediaElement.webidl +++ b/dom/webidl/HTMLMediaElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMenuElement.webidl b/dom/webidl/HTMLMenuElement.webidl index 1194226c5b3d..4e7fab2ef2b8 100644 --- a/dom/webidl/HTMLMenuElement.webidl +++ b/dom/webidl/HTMLMenuElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMenuItemElement.webidl b/dom/webidl/HTMLMenuItemElement.webidl index 648188e2c833..a51fc7a814c6 100644 --- a/dom/webidl/HTMLMenuItemElement.webidl +++ b/dom/webidl/HTMLMenuItemElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMetaElement.webidl b/dom/webidl/HTMLMetaElement.webidl index 30014a955663..70b4ba101f7c 100644 --- a/dom/webidl/HTMLMetaElement.webidl +++ b/dom/webidl/HTMLMetaElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMeterElement.webidl b/dom/webidl/HTMLMeterElement.webidl index 5db5b66045ee..1033406dae72 100644 --- a/dom/webidl/HTMLMeterElement.webidl +++ b/dom/webidl/HTMLMeterElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLModElement.webidl b/dom/webidl/HTMLModElement.webidl index 8ed8b994b58f..06e11321c74d 100644 --- a/dom/webidl/HTMLModElement.webidl +++ b/dom/webidl/HTMLModElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOListElement.webidl b/dom/webidl/HTMLOListElement.webidl index 93084c227d13..a78d667fd0eb 100644 --- a/dom/webidl/HTMLOListElement.webidl +++ b/dom/webidl/HTMLOListElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLObjectElement.webidl b/dom/webidl/HTMLObjectElement.webidl index b5bcddc816e6..5ed6e2f8cf42 100644 --- a/dom/webidl/HTMLObjectElement.webidl +++ b/dom/webidl/HTMLObjectElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptGroupElement.webidl b/dom/webidl/HTMLOptGroupElement.webidl index d46fb869d111..5860c15d46fc 100644 --- a/dom/webidl/HTMLOptGroupElement.webidl +++ b/dom/webidl/HTMLOptGroupElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptionElement.webidl b/dom/webidl/HTMLOptionElement.webidl index 415f6fdd4a04..c65149684380 100644 --- a/dom/webidl/HTMLOptionElement.webidl +++ b/dom/webidl/HTMLOptionElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptionsCollection.webidl b/dom/webidl/HTMLOptionsCollection.webidl index 9e2cc06a7775..83e059a9f3ab 100644 --- a/dom/webidl/HTMLOptionsCollection.webidl +++ b/dom/webidl/HTMLOptionsCollection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOutputElement.webidl b/dom/webidl/HTMLOutputElement.webidl index 61590153536d..88dd5d8c3ee6 100644 --- a/dom/webidl/HTMLOutputElement.webidl +++ b/dom/webidl/HTMLOutputElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLParagraphElement.webidl b/dom/webidl/HTMLParagraphElement.webidl index 289af4c9fdde..8b86d5239eab 100644 --- a/dom/webidl/HTMLParagraphElement.webidl +++ b/dom/webidl/HTMLParagraphElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLParamElement.webidl b/dom/webidl/HTMLParamElement.webidl index cf6b5a35a7be..b77bba202951 100644 --- a/dom/webidl/HTMLParamElement.webidl +++ b/dom/webidl/HTMLParamElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLPictureElement.webidl b/dom/webidl/HTMLPictureElement.webidl index 387eee78ddcd..78565cd55cbd 100644 --- a/dom/webidl/HTMLPictureElement.webidl +++ b/dom/webidl/HTMLPictureElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLPreElement.webidl b/dom/webidl/HTMLPreElement.webidl index 6929cd533ad3..db1475e86088 100644 --- a/dom/webidl/HTMLPreElement.webidl +++ b/dom/webidl/HTMLPreElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLProgressElement.webidl b/dom/webidl/HTMLProgressElement.webidl index 564b9f2a4f7e..bde207e65ded 100644 --- a/dom/webidl/HTMLProgressElement.webidl +++ b/dom/webidl/HTMLProgressElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLQuoteElement.webidl b/dom/webidl/HTMLQuoteElement.webidl index c999b14786bb..07ba8b3cc473 100644 --- a/dom/webidl/HTMLQuoteElement.webidl +++ b/dom/webidl/HTMLQuoteElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLScriptElement.webidl b/dom/webidl/HTMLScriptElement.webidl index 8a23ec613125..83ad31e022d0 100644 --- a/dom/webidl/HTMLScriptElement.webidl +++ b/dom/webidl/HTMLScriptElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSelectElement.webidl b/dom/webidl/HTMLSelectElement.webidl index 115b305ecdad..4a961e42d2ea 100644 --- a/dom/webidl/HTMLSelectElement.webidl +++ b/dom/webidl/HTMLSelectElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSlotElement.webidl b/dom/webidl/HTMLSlotElement.webidl index c4a4f6b13d6e..e6392da4258d 100644 --- a/dom/webidl/HTMLSlotElement.webidl +++ b/dom/webidl/HTMLSlotElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSourceElement.webidl b/dom/webidl/HTMLSourceElement.webidl index 8cd2ed0781b6..9a9734bc501d 100644 --- a/dom/webidl/HTMLSourceElement.webidl +++ b/dom/webidl/HTMLSourceElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSpanElement.webidl b/dom/webidl/HTMLSpanElement.webidl index 6f65cdfb383d..4b6480aff073 100644 --- a/dom/webidl/HTMLSpanElement.webidl +++ b/dom/webidl/HTMLSpanElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLStyleElement.webidl b/dom/webidl/HTMLStyleElement.webidl index c0c8b985b0da..2d080dc6b607 100644 --- a/dom/webidl/HTMLStyleElement.webidl +++ b/dom/webidl/HTMLStyleElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableCaptionElement.webidl b/dom/webidl/HTMLTableCaptionElement.webidl index 48c9d354a6d3..ce8c453c899e 100644 --- a/dom/webidl/HTMLTableCaptionElement.webidl +++ b/dom/webidl/HTMLTableCaptionElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableCellElement.webidl b/dom/webidl/HTMLTableCellElement.webidl index aff94914f120..ca0e105ed8e4 100644 --- a/dom/webidl/HTMLTableCellElement.webidl +++ b/dom/webidl/HTMLTableCellElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableColElement.webidl b/dom/webidl/HTMLTableColElement.webidl index 02be4590a108..900d7202c8d0 100644 --- a/dom/webidl/HTMLTableColElement.webidl +++ b/dom/webidl/HTMLTableColElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableElement.webidl b/dom/webidl/HTMLTableElement.webidl index f81e00041844..21c1f82006e5 100644 --- a/dom/webidl/HTMLTableElement.webidl +++ b/dom/webidl/HTMLTableElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableRowElement.webidl b/dom/webidl/HTMLTableRowElement.webidl index 9a204f9a9bd1..c807b096a7b6 100644 --- a/dom/webidl/HTMLTableRowElement.webidl +++ b/dom/webidl/HTMLTableRowElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableSectionElement.webidl b/dom/webidl/HTMLTableSectionElement.webidl index a71682fc15d1..0104a9584c2d 100644 --- a/dom/webidl/HTMLTableSectionElement.webidl +++ b/dom/webidl/HTMLTableSectionElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTemplateElement.webidl b/dom/webidl/HTMLTemplateElement.webidl index f77eeaa42906..e17f7f0c352c 100644 --- a/dom/webidl/HTMLTemplateElement.webidl +++ b/dom/webidl/HTMLTemplateElement.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTextAreaElement.webidl b/dom/webidl/HTMLTextAreaElement.webidl index 026007e1c0ca..e0bbf7acad68 100644 --- a/dom/webidl/HTMLTextAreaElement.webidl +++ b/dom/webidl/HTMLTextAreaElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTimeElement.webidl b/dom/webidl/HTMLTimeElement.webidl index 35c06fef3181..e8ab88fe1568 100644 --- a/dom/webidl/HTMLTimeElement.webidl +++ b/dom/webidl/HTMLTimeElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTitleElement.webidl b/dom/webidl/HTMLTitleElement.webidl index bbce70bb2a61..ba0d02bde202 100644 --- a/dom/webidl/HTMLTitleElement.webidl +++ b/dom/webidl/HTMLTitleElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTrackElement.webidl b/dom/webidl/HTMLTrackElement.webidl index cbb70db2a3bf..4092ab0cb29a 100644 --- a/dom/webidl/HTMLTrackElement.webidl +++ b/dom/webidl/HTMLTrackElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLUListElement.webidl b/dom/webidl/HTMLUListElement.webidl index 725437494a58..bb76a3401e86 100644 --- a/dom/webidl/HTMLUListElement.webidl +++ b/dom/webidl/HTMLUListElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLVideoElement.webidl b/dom/webidl/HTMLVideoElement.webidl index 9c9a0e437862..d185983fe502 100644 --- a/dom/webidl/HTMLVideoElement.webidl +++ b/dom/webidl/HTMLVideoElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HashChangeEvent.webidl b/dom/webidl/HashChangeEvent.webidl index 6e8be455c4a1..f61ce22485a8 100644 --- a/dom/webidl/HashChangeEvent.webidl +++ b/dom/webidl/HashChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/History.webidl b/dom/webidl/History.webidl index fef868018295..a472de093a99 100644 --- a/dom/webidl/History.webidl +++ b/dom/webidl/History.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBCursor.webidl b/dom/webidl/IDBCursor.webidl index e49103402687..59bdf963805e 100644 --- a/dom/webidl/IDBCursor.webidl +++ b/dom/webidl/IDBCursor.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBDatabase.webidl b/dom/webidl/IDBDatabase.webidl index bdc03ca30587..4d4620f0f70d 100644 --- a/dom/webidl/IDBDatabase.webidl +++ b/dom/webidl/IDBDatabase.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBFactory.webidl b/dom/webidl/IDBFactory.webidl index 0599af5e6805..469dfe941eae 100644 --- a/dom/webidl/IDBFactory.webidl +++ b/dom/webidl/IDBFactory.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBFileHandle.webidl b/dom/webidl/IDBFileHandle.webidl index e312742c640f..b04ee8529240 100644 --- a/dom/webidl/IDBFileHandle.webidl +++ b/dom/webidl/IDBFileHandle.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtaone at http://mozilla.org/MPL/2.0/. */ diff --git a/dom/webidl/IDBFileRequest.webidl b/dom/webidl/IDBFileRequest.webidl index fc3a8c5b67eb..a2aeb5b3d113 100644 --- a/dom/webidl/IDBFileRequest.webidl +++ b/dom/webidl/IDBFileRequest.webidl @@ -1,5 +1,5 @@ /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=2 et sw=2 tw=80: */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBIndex.webidl b/dom/webidl/IDBIndex.webidl index 5632ad8c18cc..da5ffd239fd0 100644 --- a/dom/webidl/IDBIndex.webidl +++ b/dom/webidl/IDBIndex.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBKeyRange.webidl b/dom/webidl/IDBKeyRange.webidl index 1caba7618568..81fcb482fb44 100644 --- a/dom/webidl/IDBKeyRange.webidl +++ b/dom/webidl/IDBKeyRange.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBMutableFile.webidl b/dom/webidl/IDBMutableFile.webidl index 4883cb22037e..f92cb2c29d17 100644 --- a/dom/webidl/IDBMutableFile.webidl +++ b/dom/webidl/IDBMutableFile.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBObjectStore.webidl b/dom/webidl/IDBObjectStore.webidl index 635b582f61df..c9d1a42a3fbb 100644 --- a/dom/webidl/IDBObjectStore.webidl +++ b/dom/webidl/IDBObjectStore.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBOpenDBRequest.webidl b/dom/webidl/IDBOpenDBRequest.webidl index ba0ebf837cb3..a3fc51e42a46 100644 --- a/dom/webidl/IDBOpenDBRequest.webidl +++ b/dom/webidl/IDBOpenDBRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBRequest.webidl b/dom/webidl/IDBRequest.webidl index c23bf9fe709c..6e10b07fda05 100644 --- a/dom/webidl/IDBRequest.webidl +++ b/dom/webidl/IDBRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBTransaction.webidl b/dom/webidl/IDBTransaction.webidl index 1819692e95ff..081ed102a120 100644 --- a/dom/webidl/IDBTransaction.webidl +++ b/dom/webidl/IDBTransaction.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBVersionChangeEvent.webidl b/dom/webidl/IDBVersionChangeEvent.webidl index 1c93850047d1..b2e762dc925a 100644 --- a/dom/webidl/IDBVersionChangeEvent.webidl +++ b/dom/webidl/IDBVersionChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IIRFilterNode.webidl b/dom/webidl/IIRFilterNode.webidl index 8a0057944bee..c13f3fa0b7a3 100644 --- a/dom/webidl/IIRFilterNode.webidl +++ b/dom/webidl/IIRFilterNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IdleDeadline.webidl b/dom/webidl/IdleDeadline.webidl index 903122ab8921..1caa66148afa 100644 --- a/dom/webidl/IdleDeadline.webidl +++ b/dom/webidl/IdleDeadline.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageBitmap.webidl b/dom/webidl/ImageBitmap.webidl index abc800e21d89..1a069b98bd31 100644 --- a/dom/webidl/ImageBitmap.webidl +++ b/dom/webidl/ImageBitmap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageBitmapRenderingContext.webidl b/dom/webidl/ImageBitmapRenderingContext.webidl index b94447cd96db..304087d3c055 100644 --- a/dom/webidl/ImageBitmapRenderingContext.webidl +++ b/dom/webidl/ImageBitmapRenderingContext.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageCapture.webidl b/dom/webidl/ImageCapture.webidl index 22f330335cc8..eedd636fe1ea 100644 --- a/dom/webidl/ImageCapture.webidl +++ b/dom/webidl/ImageCapture.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageCaptureErrorEvent.webidl b/dom/webidl/ImageCaptureErrorEvent.webidl index b7300aa30c1a..646ffcdcf873 100644 --- a/dom/webidl/ImageCaptureErrorEvent.webidl +++ b/dom/webidl/ImageCaptureErrorEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageData.webidl b/dom/webidl/ImageData.webidl index f6000bd0595f..a1912bdad70e 100644 --- a/dom/webidl/ImageData.webidl +++ b/dom/webidl/ImageData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageDocument.webidl b/dom/webidl/ImageDocument.webidl index 571e345ddebe..2c24e4c7bfb6 100644 --- a/dom/webidl/ImageDocument.webidl +++ b/dom/webidl/ImageDocument.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/InputEvent.webidl b/dom/webidl/InputEvent.webidl index 805b0510cd20..c515ddffc0f2 100644 --- a/dom/webidl/InputEvent.webidl +++ b/dom/webidl/InputEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/InstallTrigger.webidl b/dom/webidl/InstallTrigger.webidl index 68f48ddc61ef..438300689a44 100644 --- a/dom/webidl/InstallTrigger.webidl +++ b/dom/webidl/InstallTrigger.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IntersectionObserver.webidl b/dom/webidl/IntersectionObserver.webidl index 8c66394b5d66..740d8e132eb5 100644 --- a/dom/webidl/IntersectionObserver.webidl +++ b/dom/webidl/IntersectionObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IntlUtils.webidl b/dom/webidl/IntlUtils.webidl index c70e0f955c82..da452fdf48d2 100644 --- a/dom/webidl/IntlUtils.webidl +++ b/dom/webidl/IntlUtils.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IterableIterator.webidl b/dom/webidl/IterableIterator.webidl index 633b67b1edb5..651f63d9b7ba 100644 --- a/dom/webidl/IterableIterator.webidl +++ b/dom/webidl/IterableIterator.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyAlgorithm.webidl b/dom/webidl/KeyAlgorithm.webidl index 260b1e624b26..1a1cf06f7cc5 100644 --- a/dom/webidl/KeyAlgorithm.webidl +++ b/dom/webidl/KeyAlgorithm.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyEvent.webidl b/dom/webidl/KeyEvent.webidl index 6fd66afc21d9..60186ce877b1 100644 --- a/dom/webidl/KeyEvent.webidl +++ b/dom/webidl/KeyEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyIdsInitData.webidl b/dom/webidl/KeyIdsInitData.webidl index 108a5572e86f..06b8e3e3bb83 100644 --- a/dom/webidl/KeyIdsInitData.webidl +++ b/dom/webidl/KeyIdsInitData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyboardEvent.webidl b/dom/webidl/KeyboardEvent.webidl index 28e35c74eccf..635c8ce13b79 100644 --- a/dom/webidl/KeyboardEvent.webidl +++ b/dom/webidl/KeyboardEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyframeAnimationOptions.webidl b/dom/webidl/KeyframeAnimationOptions.webidl index 047f46ed1aad..fb43399f4655 100644 --- a/dom/webidl/KeyframeAnimationOptions.webidl +++ b/dom/webidl/KeyframeAnimationOptions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyframeEffect.webidl b/dom/webidl/KeyframeEffect.webidl index 4d7e1ba632f9..1ed1b42eeb03 100644 --- a/dom/webidl/KeyframeEffect.webidl +++ b/dom/webidl/KeyframeEffect.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/L10nUtils.webidl b/dom/webidl/L10nUtils.webidl index 9e3e2f59eb85..1aed971dfba3 100644 --- a/dom/webidl/L10nUtils.webidl +++ b/dom/webidl/L10nUtils.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LegacyQueryInterface.webidl b/dom/webidl/LegacyQueryInterface.webidl index f6a4634aef7d..00cbd3b172c2 100644 --- a/dom/webidl/LegacyQueryInterface.webidl +++ b/dom/webidl/LegacyQueryInterface.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LinkStyle.webidl b/dom/webidl/LinkStyle.webidl index db0bc031adde..497a2ebe3554 100644 --- a/dom/webidl/LinkStyle.webidl +++ b/dom/webidl/LinkStyle.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LocalMediaStream.webidl b/dom/webidl/LocalMediaStream.webidl index 1ef7474a26dd..ee790b2a3720 100644 --- a/dom/webidl/LocalMediaStream.webidl +++ b/dom/webidl/LocalMediaStream.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Location.webidl b/dom/webidl/Location.webidl index 7381f6d1c434..4b9131086164 100644 --- a/dom/webidl/Location.webidl +++ b/dom/webidl/Location.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIAccess.webidl b/dom/webidl/MIDIAccess.webidl index 97c8be42ce55..c6bdd0ac0954 100644 --- a/dom/webidl/MIDIAccess.webidl +++ b/dom/webidl/MIDIAccess.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIConnectionEvent.webidl b/dom/webidl/MIDIConnectionEvent.webidl index 482319576906..781a885f5434 100644 --- a/dom/webidl/MIDIConnectionEvent.webidl +++ b/dom/webidl/MIDIConnectionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIInput.webidl b/dom/webidl/MIDIInput.webidl index 9cfc4fea1c45..727811b1dcca 100644 --- a/dom/webidl/MIDIInput.webidl +++ b/dom/webidl/MIDIInput.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIInputMap.webidl b/dom/webidl/MIDIInputMap.webidl index 19154ed8b44d..ed4c9ce4031b 100644 --- a/dom/webidl/MIDIInputMap.webidl +++ b/dom/webidl/MIDIInputMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIMessageEvent.webidl b/dom/webidl/MIDIMessageEvent.webidl index f9d55dbab883..23f66461d806 100644 --- a/dom/webidl/MIDIMessageEvent.webidl +++ b/dom/webidl/MIDIMessageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOptions.webidl b/dom/webidl/MIDIOptions.webidl index 314ebec535fd..6c56f641f07f 100644 --- a/dom/webidl/MIDIOptions.webidl +++ b/dom/webidl/MIDIOptions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOutput.webidl b/dom/webidl/MIDIOutput.webidl index d3c5a46b2cc4..7d0ab8d1a5e1 100644 --- a/dom/webidl/MIDIOutput.webidl +++ b/dom/webidl/MIDIOutput.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOutputMap.webidl b/dom/webidl/MIDIOutputMap.webidl index 64ac6da333cd..aa880bd3a825 100644 --- a/dom/webidl/MIDIOutputMap.webidl +++ b/dom/webidl/MIDIOutputMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIPort.webidl b/dom/webidl/MIDIPort.webidl index 65274ebbffb1..3296c37ea8bd 100644 --- a/dom/webidl/MIDIPort.webidl +++ b/dom/webidl/MIDIPort.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaCapabilities.webidl b/dom/webidl/MediaCapabilities.webidl index 636f5605ac85..cc2281690319 100644 --- a/dom/webidl/MediaCapabilities.webidl +++ b/dom/webidl/MediaCapabilities.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaDeviceInfo.webidl b/dom/webidl/MediaDeviceInfo.webidl index 023cd82f2afa..e099c3ca7c09 100644 --- a/dom/webidl/MediaDeviceInfo.webidl +++ b/dom/webidl/MediaDeviceInfo.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaDevices.webidl b/dom/webidl/MediaDevices.webidl index a71aa05c1a37..c369a0157ac7 100644 --- a/dom/webidl/MediaDevices.webidl +++ b/dom/webidl/MediaDevices.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaElementAudioSourceNode.webidl b/dom/webidl/MediaElementAudioSourceNode.webidl index 37de32536d24..3caea11e82d2 100644 --- a/dom/webidl/MediaElementAudioSourceNode.webidl +++ b/dom/webidl/MediaElementAudioSourceNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaEncryptedEvent.webidl b/dom/webidl/MediaEncryptedEvent.webidl index 113d3e629ab4..c38de0b339a4 100644 --- a/dom/webidl/MediaEncryptedEvent.webidl +++ b/dom/webidl/MediaEncryptedEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaError.webidl b/dom/webidl/MediaError.webidl index bd1ed4e3f67c..4d353a2a4755 100644 --- a/dom/webidl/MediaError.webidl +++ b/dom/webidl/MediaError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyError.webidl b/dom/webidl/MediaKeyError.webidl index e9fcd2d7ee31..41c693bf63c1 100644 --- a/dom/webidl/MediaKeyError.webidl +++ b/dom/webidl/MediaKeyError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyMessageEvent.webidl b/dom/webidl/MediaKeyMessageEvent.webidl index eabef221fea0..10eb2817c167 100644 --- a/dom/webidl/MediaKeyMessageEvent.webidl +++ b/dom/webidl/MediaKeyMessageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeySession.webidl b/dom/webidl/MediaKeySession.webidl index 342483fb1390..359363a9d833 100644 --- a/dom/webidl/MediaKeySession.webidl +++ b/dom/webidl/MediaKeySession.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyStatusMap.webidl b/dom/webidl/MediaKeyStatusMap.webidl index 648adaf40189..cc834759cbfc 100644 --- a/dom/webidl/MediaKeyStatusMap.webidl +++ b/dom/webidl/MediaKeyStatusMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeySystemAccess.webidl b/dom/webidl/MediaKeySystemAccess.webidl index 38bcd578c03b..1672d54de38f 100644 --- a/dom/webidl/MediaKeySystemAccess.webidl +++ b/dom/webidl/MediaKeySystemAccess.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeys.webidl b/dom/webidl/MediaKeys.webidl index aab679eece97..93fc7ca72a9e 100644 --- a/dom/webidl/MediaKeys.webidl +++ b/dom/webidl/MediaKeys.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeysRequestStatus.webidl b/dom/webidl/MediaKeysRequestStatus.webidl index 737372f664a6..30737240f255 100644 --- a/dom/webidl/MediaKeysRequestStatus.webidl +++ b/dom/webidl/MediaKeysRequestStatus.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaList.webidl b/dom/webidl/MediaList.webidl index 89f2f0f95647..27bf6151165b 100644 --- a/dom/webidl/MediaList.webidl +++ b/dom/webidl/MediaList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/MediaQueryList.webidl b/dom/webidl/MediaQueryList.webidl index 120c96e385c3..664411eead98 100644 --- a/dom/webidl/MediaQueryList.webidl +++ b/dom/webidl/MediaQueryList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaQueryListEvent.webidl b/dom/webidl/MediaQueryListEvent.webidl index 5e53e9734fec..f27d6914d31e 100644 --- a/dom/webidl/MediaQueryListEvent.webidl +++ b/dom/webidl/MediaQueryListEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaRecorder.webidl b/dom/webidl/MediaRecorder.webidl index 65d1893e9eff..a22dda68fc33 100644 --- a/dom/webidl/MediaRecorder.webidl +++ b/dom/webidl/MediaRecorder.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaRecorderErrorEvent.webidl b/dom/webidl/MediaRecorderErrorEvent.webidl index 2043d9a9b57c..414993e66677 100644 --- a/dom/webidl/MediaRecorderErrorEvent.webidl +++ b/dom/webidl/MediaRecorderErrorEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaSource.webidl b/dom/webidl/MediaSource.webidl index 63691e090d7a..33f0447764e8 100644 --- a/dom/webidl/MediaSource.webidl +++ b/dom/webidl/MediaSource.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStream.webidl b/dom/webidl/MediaStream.webidl index e57a3c058d97..912d49290352 100644 --- a/dom/webidl/MediaStream.webidl +++ b/dom/webidl/MediaStream.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamAudioDestinationNode.webidl b/dom/webidl/MediaStreamAudioDestinationNode.webidl index 9776ab994f64..9964e4695488 100644 --- a/dom/webidl/MediaStreamAudioDestinationNode.webidl +++ b/dom/webidl/MediaStreamAudioDestinationNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamAudioSourceNode.webidl b/dom/webidl/MediaStreamAudioSourceNode.webidl index 06727a5dadd2..409a52a1c216 100644 --- a/dom/webidl/MediaStreamAudioSourceNode.webidl +++ b/dom/webidl/MediaStreamAudioSourceNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamError.webidl b/dom/webidl/MediaStreamError.webidl index 54c8f5792b7b..860fcc79227e 100644 --- a/dom/webidl/MediaStreamError.webidl +++ b/dom/webidl/MediaStreamError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamEvent.webidl b/dom/webidl/MediaStreamEvent.webidl index 56bac3a866d7..e0e135211a8c 100644 --- a/dom/webidl/MediaStreamEvent.webidl +++ b/dom/webidl/MediaStreamEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamTrack.webidl b/dom/webidl/MediaStreamTrack.webidl index 4bb18c9f7a2e..fa9d0f90598d 100644 --- a/dom/webidl/MediaStreamTrack.webidl +++ b/dom/webidl/MediaStreamTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamTrackEvent.webidl b/dom/webidl/MediaStreamTrackEvent.webidl index 538adf2f9306..296fe472144c 100644 --- a/dom/webidl/MediaStreamTrackEvent.webidl +++ b/dom/webidl/MediaStreamTrackEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaTrackConstraintSet.webidl b/dom/webidl/MediaTrackConstraintSet.webidl index 63bc6bac5da8..e91998a84045 100644 --- a/dom/webidl/MediaTrackConstraintSet.webidl +++ b/dom/webidl/MediaTrackConstraintSet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaTrackSettings.webidl b/dom/webidl/MediaTrackSettings.webidl index 551ba0cd67d1..48dbbe5541f1 100644 --- a/dom/webidl/MediaTrackSettings.webidl +++ b/dom/webidl/MediaTrackSettings.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaTrackSupportedConstraints.webidl b/dom/webidl/MediaTrackSupportedConstraints.webidl index a5915489229f..5f6a91526217 100644 --- a/dom/webidl/MediaTrackSupportedConstraints.webidl +++ b/dom/webidl/MediaTrackSupportedConstraints.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MenuBoxObject.webidl b/dom/webidl/MenuBoxObject.webidl index 449cadc5967b..82acf91b4a49 100644 --- a/dom/webidl/MenuBoxObject.webidl +++ b/dom/webidl/MenuBoxObject.webidl @@ -1,5 +1,5 @@ - -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessageChannel.webidl b/dom/webidl/MessageChannel.webidl index 1e2ca4a19803..a9b56cf349e0 100644 --- a/dom/webidl/MessageChannel.webidl +++ b/dom/webidl/MessageChannel.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessageEvent.webidl b/dom/webidl/MessageEvent.webidl index 7d78c20e05b9..1d8dd83bfef0 100644 --- a/dom/webidl/MessageEvent.webidl +++ b/dom/webidl/MessageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessagePort.webidl b/dom/webidl/MessagePort.webidl index f8b3de622cd2..027b03383e03 100644 --- a/dom/webidl/MessagePort.webidl +++ b/dom/webidl/MessagePort.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MimeType.webidl b/dom/webidl/MimeType.webidl index a33d31640d02..8d964c0d9fa1 100644 --- a/dom/webidl/MimeType.webidl +++ b/dom/webidl/MimeType.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MimeTypeArray.webidl b/dom/webidl/MimeTypeArray.webidl index ca553552a6a8..21f490ddd3ec 100644 --- a/dom/webidl/MimeTypeArray.webidl +++ b/dom/webidl/MimeTypeArray.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MouseEvent.webidl b/dom/webidl/MouseEvent.webidl index 712e0b90d3e7..4ba8ec67d59e 100644 --- a/dom/webidl/MouseEvent.webidl +++ b/dom/webidl/MouseEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MouseScrollEvent.webidl b/dom/webidl/MouseScrollEvent.webidl index c1e52bd8ce0b..fc116cb85875 100644 --- a/dom/webidl/MouseScrollEvent.webidl +++ b/dom/webidl/MouseScrollEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MozApplicationEvent.webidl b/dom/webidl/MozApplicationEvent.webidl index e46fdca06b82..5b90a8de2b8c 100644 --- a/dom/webidl/MozApplicationEvent.webidl +++ b/dom/webidl/MozApplicationEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MutationEvent.webidl b/dom/webidl/MutationEvent.webidl index 85ad597f74a3..77986aaec695 100644 --- a/dom/webidl/MutationEvent.webidl +++ b/dom/webidl/MutationEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MutationObserver.webidl b/dom/webidl/MutationObserver.webidl index c179a64509a5..1c1c7951876e 100644 --- a/dom/webidl/MutationObserver.webidl +++ b/dom/webidl/MutationObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NamedNodeMap.webidl b/dom/webidl/NamedNodeMap.webidl index 88e2ff51fe51..4cc1d97533f2 100644 --- a/dom/webidl/NamedNodeMap.webidl +++ b/dom/webidl/NamedNodeMap.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/NativeOSFileInternals.webidl b/dom/webidl/NativeOSFileInternals.webidl index 934b6ae11805..a579fef57c85 100644 --- a/dom/webidl/NativeOSFileInternals.webidl +++ b/dom/webidl/NativeOSFileInternals.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtaone at http://mozilla.org/MPL/2.0/. */ diff --git a/dom/webidl/Navigator.webidl b/dom/webidl/Navigator.webidl index 13d91fecda4e..4ee6962b9672 100644 --- a/dom/webidl/Navigator.webidl +++ b/dom/webidl/Navigator.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NetDashboard.webidl b/dom/webidl/NetDashboard.webidl index 0d9128a6d390..767c4c91ad3a 100644 --- a/dom/webidl/NetDashboard.webidl +++ b/dom/webidl/NetDashboard.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/NetworkInformation.webidl b/dom/webidl/NetworkInformation.webidl index 08fe6e7e4966..2ab7401cc7f7 100644 --- a/dom/webidl/NetworkInformation.webidl +++ b/dom/webidl/NetworkInformation.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NetworkOptions.webidl b/dom/webidl/NetworkOptions.webidl index b313c932ddb4..22e93df21ac0 100644 --- a/dom/webidl/NetworkOptions.webidl +++ b/dom/webidl/NetworkOptions.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Node.webidl b/dom/webidl/Node.webidl index 176ab1ae8e4f..e43e2db9963e 100644 --- a/dom/webidl/Node.webidl +++ b/dom/webidl/Node.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeFilter.webidl b/dom/webidl/NodeFilter.webidl index 6da959dc930a..90844138bba9 100644 --- a/dom/webidl/NodeFilter.webidl +++ b/dom/webidl/NodeFilter.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeIterator.webidl b/dom/webidl/NodeIterator.webidl index 201b382a0d9e..20ff741f33a7 100644 --- a/dom/webidl/NodeIterator.webidl +++ b/dom/webidl/NodeIterator.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeList.webidl b/dom/webidl/NodeList.webidl index 7e794e7676e4..43bed4c694b0 100644 --- a/dom/webidl/NodeList.webidl +++ b/dom/webidl/NodeList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Notification.webidl b/dom/webidl/Notification.webidl index 3c9dba876f11..3ce3831153da 100644 --- a/dom/webidl/Notification.webidl +++ b/dom/webidl/Notification.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NotificationEvent.webidl b/dom/webidl/NotificationEvent.webidl index 47a30349cd66..5e13d394f34e 100644 --- a/dom/webidl/NotificationEvent.webidl +++ b/dom/webidl/NotificationEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NotifyPaintEvent.webidl b/dom/webidl/NotifyPaintEvent.webidl index 0560b8bd59ca..cab7f3e9ec06 100644 --- a/dom/webidl/NotifyPaintEvent.webidl +++ b/dom/webidl/NotifyPaintEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineAudioCompletionEvent.webidl b/dom/webidl/OfflineAudioCompletionEvent.webidl index 03c58b96ef00..1c2b60c05a3b 100644 --- a/dom/webidl/OfflineAudioCompletionEvent.webidl +++ b/dom/webidl/OfflineAudioCompletionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineAudioContext.webidl b/dom/webidl/OfflineAudioContext.webidl index a2498d6e56a8..2aed44a5f4c6 100644 --- a/dom/webidl/OfflineAudioContext.webidl +++ b/dom/webidl/OfflineAudioContext.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineResourceList.webidl b/dom/webidl/OfflineResourceList.webidl index a1561e8552a6..369ded271250 100644 --- a/dom/webidl/OfflineResourceList.webidl +++ b/dom/webidl/OfflineResourceList.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/OffscreenCanvas.webidl b/dom/webidl/OffscreenCanvas.webidl index 682fc7ce3101..cc25e72e5ab8 100644 --- a/dom/webidl/OffscreenCanvas.webidl +++ b/dom/webidl/OffscreenCanvas.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OscillatorNode.webidl b/dom/webidl/OscillatorNode.webidl index acf75a81812e..8967e75fd2ef 100644 --- a/dom/webidl/OscillatorNode.webidl +++ b/dom/webidl/OscillatorNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PageTransitionEvent.webidl b/dom/webidl/PageTransitionEvent.webidl index a0749e7f50f6..505be2f7f346 100644 --- a/dom/webidl/PageTransitionEvent.webidl +++ b/dom/webidl/PageTransitionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaintRequest.webidl b/dom/webidl/PaintRequest.webidl index 065be0866341..84247753e2c0 100644 --- a/dom/webidl/PaintRequest.webidl +++ b/dom/webidl/PaintRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/PaintRequestList.webidl b/dom/webidl/PaintRequestList.webidl index d14f18a733c4..b30c8f9ff480 100644 --- a/dom/webidl/PaintRequestList.webidl +++ b/dom/webidl/PaintRequestList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaintWorkletGlobalScope.webidl b/dom/webidl/PaintWorkletGlobalScope.webidl index 19a1fdd42c6b..5498d8cda86f 100644 --- a/dom/webidl/PaintWorkletGlobalScope.webidl +++ b/dom/webidl/PaintWorkletGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PannerNode.webidl b/dom/webidl/PannerNode.webidl index 2debe3ed2936..486148e60536 100644 --- a/dom/webidl/PannerNode.webidl +++ b/dom/webidl/PannerNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ParentNode.webidl b/dom/webidl/ParentNode.webidl index 87754b96987e..8eea0de68d58 100644 --- a/dom/webidl/ParentNode.webidl +++ b/dom/webidl/ParentNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ParentSHistory.webidl b/dom/webidl/ParentSHistory.webidl index f892172da0ed..6646f15a9f1b 100644 --- a/dom/webidl/ParentSHistory.webidl +++ b/dom/webidl/ParentSHistory.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentAddress.webidl b/dom/webidl/PaymentAddress.webidl index ed7de30aabfa..8f1d0d54049d 100644 --- a/dom/webidl/PaymentAddress.webidl +++ b/dom/webidl/PaymentAddress.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentRequest.webidl b/dom/webidl/PaymentRequest.webidl index a88ba9d1d739..ff9b67e9fd39 100644 --- a/dom/webidl/PaymentRequest.webidl +++ b/dom/webidl/PaymentRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentRequestUpdateEvent.webidl b/dom/webidl/PaymentRequestUpdateEvent.webidl index 15e7f64eb5bb..268d4d429fa4 100644 --- a/dom/webidl/PaymentRequestUpdateEvent.webidl +++ b/dom/webidl/PaymentRequestUpdateEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentResponse.webidl b/dom/webidl/PaymentResponse.webidl index f45e7131f212..0f10bcecb5a2 100644 --- a/dom/webidl/PaymentResponse.webidl +++ b/dom/webidl/PaymentResponse.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionImpl.webidl b/dom/webidl/PeerConnectionImpl.webidl index bbef2175a579..d60703404e89 100644 --- a/dom/webidl/PeerConnectionImpl.webidl +++ b/dom/webidl/PeerConnectionImpl.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionImplEnums.webidl b/dom/webidl/PeerConnectionImplEnums.webidl index 0add53f06426..df2719de8215 100644 --- a/dom/webidl/PeerConnectionImplEnums.webidl +++ b/dom/webidl/PeerConnectionImplEnums.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionObserver.webidl b/dom/webidl/PeerConnectionObserver.webidl index ff5f711327b2..f9dff9cfee10 100644 --- a/dom/webidl/PeerConnectionObserver.webidl +++ b/dom/webidl/PeerConnectionObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionObserverEnums.webidl b/dom/webidl/PeerConnectionObserverEnums.webidl index abe0e0768bab..ec5ffb207912 100644 --- a/dom/webidl/PeerConnectionObserverEnums.webidl +++ b/dom/webidl/PeerConnectionObserverEnums.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Performance.webidl b/dom/webidl/Performance.webidl index 0d467ba6c93e..ee4e4d8b4914 100644 --- a/dom/webidl/Performance.webidl +++ b/dom/webidl/Performance.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceEntry.webidl b/dom/webidl/PerformanceEntry.webidl index 459a20a6701e..9c2f5384bb35 100644 --- a/dom/webidl/PerformanceEntry.webidl +++ b/dom/webidl/PerformanceEntry.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceEntryEvent.webidl b/dom/webidl/PerformanceEntryEvent.webidl index 2cf75c5e4437..b6830543a121 100644 --- a/dom/webidl/PerformanceEntryEvent.webidl +++ b/dom/webidl/PerformanceEntryEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceMark.webidl b/dom/webidl/PerformanceMark.webidl index 20e9e92c022b..961b2b191247 100644 --- a/dom/webidl/PerformanceMark.webidl +++ b/dom/webidl/PerformanceMark.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceMeasure.webidl b/dom/webidl/PerformanceMeasure.webidl index aa4e8cd256bc..bd3204614e99 100644 --- a/dom/webidl/PerformanceMeasure.webidl +++ b/dom/webidl/PerformanceMeasure.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceNavigation.webidl b/dom/webidl/PerformanceNavigation.webidl index b7157bd09ed9..92d32ab5ec57 100644 --- a/dom/webidl/PerformanceNavigation.webidl +++ b/dom/webidl/PerformanceNavigation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceNavigationTiming.webidl b/dom/webidl/PerformanceNavigationTiming.webidl index fa7da1721d89..8c9a06f70efd 100644 --- a/dom/webidl/PerformanceNavigationTiming.webidl +++ b/dom/webidl/PerformanceNavigationTiming.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceObserver.webidl b/dom/webidl/PerformanceObserver.webidl index e4b3c88dc477..0766918e22ad 100644 --- a/dom/webidl/PerformanceObserver.webidl +++ b/dom/webidl/PerformanceObserver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceObserverEntryList.webidl b/dom/webidl/PerformanceObserverEntryList.webidl index 25d926868d1f..bd8ec779c5f8 100644 --- a/dom/webidl/PerformanceObserverEntryList.webidl +++ b/dom/webidl/PerformanceObserverEntryList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceResourceTiming.webidl b/dom/webidl/PerformanceResourceTiming.webidl index 746718c035f3..9e4e859b32ce 100644 --- a/dom/webidl/PerformanceResourceTiming.webidl +++ b/dom/webidl/PerformanceResourceTiming.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceServerTiming.webidl b/dom/webidl/PerformanceServerTiming.webidl index a31f2da71dc5..3ca7b5c9d6f9 100644 --- a/dom/webidl/PerformanceServerTiming.webidl +++ b/dom/webidl/PerformanceServerTiming.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceTiming.webidl b/dom/webidl/PerformanceTiming.webidl index 85a8211c0008..96ae00dc5e9b 100644 --- a/dom/webidl/PerformanceTiming.webidl +++ b/dom/webidl/PerformanceTiming.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeriodicWave.webidl b/dom/webidl/PeriodicWave.webidl index ff00ccb92292..d136849b3123 100644 --- a/dom/webidl/PeriodicWave.webidl +++ b/dom/webidl/PeriodicWave.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PermissionStatus.webidl b/dom/webidl/PermissionStatus.webidl index 3abfd66f4076..7d988ee396f4 100644 --- a/dom/webidl/PermissionStatus.webidl +++ b/dom/webidl/PermissionStatus.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Permissions.webidl b/dom/webidl/Permissions.webidl index cf2a59b4795d..3c5ec41479ff 100644 --- a/dom/webidl/Permissions.webidl +++ b/dom/webidl/Permissions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Plugin.webidl b/dom/webidl/Plugin.webidl index 2799a2055ef8..a3bf45f21c71 100644 --- a/dom/webidl/Plugin.webidl +++ b/dom/webidl/Plugin.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PluginArray.webidl b/dom/webidl/PluginArray.webidl index 2ff862bd4b48..fb7e08ae7f45 100644 --- a/dom/webidl/PluginArray.webidl +++ b/dom/webidl/PluginArray.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PluginCrashedEvent.webidl b/dom/webidl/PluginCrashedEvent.webidl index 8eed7244e519..4bef0399baaf 100644 --- a/dom/webidl/PluginCrashedEvent.webidl +++ b/dom/webidl/PluginCrashedEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PointerEvent.webidl b/dom/webidl/PointerEvent.webidl index 652451efa44e..ec09ccf10cd5 100644 --- a/dom/webidl/PointerEvent.webidl +++ b/dom/webidl/PointerEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PopStateEvent.webidl b/dom/webidl/PopStateEvent.webidl index 428ab9c8498c..fe5c0cdd12f0 100644 --- a/dom/webidl/PopStateEvent.webidl +++ b/dom/webidl/PopStateEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PopupBlockedEvent.webidl b/dom/webidl/PopupBlockedEvent.webidl index bf338d56b263..2d004d55f441 100644 --- a/dom/webidl/PopupBlockedEvent.webidl +++ b/dom/webidl/PopupBlockedEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Position.webidl b/dom/webidl/Position.webidl index 93812a379148..a09a2666c65a 100644 --- a/dom/webidl/Position.webidl +++ b/dom/webidl/Position.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PositionError.webidl b/dom/webidl/PositionError.webidl index d644cbe483e7..d2164a3aa013 100644 --- a/dom/webidl/PositionError.webidl +++ b/dom/webidl/PositionError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Presentation.webidl b/dom/webidl/Presentation.webidl index d5b331616320..6fc3ab93a328 100644 --- a/dom/webidl/Presentation.webidl +++ b/dom/webidl/Presentation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationAvailability.webidl b/dom/webidl/PresentationAvailability.webidl index f72b88565d55..7c9870cba393 100644 --- a/dom/webidl/PresentationAvailability.webidl +++ b/dom/webidl/PresentationAvailability.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnection.webidl b/dom/webidl/PresentationConnection.webidl index 9676d20692af..fb73d6113cd2 100644 --- a/dom/webidl/PresentationConnection.webidl +++ b/dom/webidl/PresentationConnection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionAvailableEvent.webidl b/dom/webidl/PresentationConnectionAvailableEvent.webidl index 9efecb7d6275..94281db48262 100644 --- a/dom/webidl/PresentationConnectionAvailableEvent.webidl +++ b/dom/webidl/PresentationConnectionAvailableEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionCloseEvent.webidl b/dom/webidl/PresentationConnectionCloseEvent.webidl index da6c25545ef8..67155f04c5d3 100644 --- a/dom/webidl/PresentationConnectionCloseEvent.webidl +++ b/dom/webidl/PresentationConnectionCloseEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionList.webidl b/dom/webidl/PresentationConnectionList.webidl index 2c90ce9de4f0..41929c690ea3 100644 --- a/dom/webidl/PresentationConnectionList.webidl +++ b/dom/webidl/PresentationConnectionList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationReceiver.webidl b/dom/webidl/PresentationReceiver.webidl index 0fa51c151a28..dfa93e041675 100644 --- a/dom/webidl/PresentationReceiver.webidl +++ b/dom/webidl/PresentationReceiver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationRequest.webidl b/dom/webidl/PresentationRequest.webidl index c0c5fb8a6e3b..88435b329479 100644 --- a/dom/webidl/PresentationRequest.webidl +++ b/dom/webidl/PresentationRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProcessingInstruction.webidl b/dom/webidl/ProcessingInstruction.webidl index 40b001aed144..2906d65e62f7 100644 --- a/dom/webidl/ProcessingInstruction.webidl +++ b/dom/webidl/ProcessingInstruction.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProfileTimelineMarker.webidl b/dom/webidl/ProfileTimelineMarker.webidl index 24f3f9e0089d..337a2cb59db3 100644 --- a/dom/webidl/ProfileTimelineMarker.webidl +++ b/dom/webidl/ProfileTimelineMarker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProgressEvent.webidl b/dom/webidl/ProgressEvent.webidl index c2ecf579379e..438a0290ac36 100644 --- a/dom/webidl/ProgressEvent.webidl +++ b/dom/webidl/ProgressEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Promise.webidl b/dom/webidl/Promise.webidl index a296553dfa00..8c27092cd1be 100644 --- a/dom/webidl/Promise.webidl +++ b/dom/webidl/Promise.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PromiseRejectionEvent.webidl b/dom/webidl/PromiseRejectionEvent.webidl index c03f3ae0310e..b6cbd287f1b9 100644 --- a/dom/webidl/PromiseRejectionEvent.webidl +++ b/dom/webidl/PromiseRejectionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushEvent.webidl b/dom/webidl/PushEvent.webidl index 325576ff94a2..3645113f76c9 100644 --- a/dom/webidl/PushEvent.webidl +++ b/dom/webidl/PushEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushManager.webidl b/dom/webidl/PushManager.webidl index 4cda66135d1f..f5b4e9b411ee 100644 --- a/dom/webidl/PushManager.webidl +++ b/dom/webidl/PushManager.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushMessageData.webidl b/dom/webidl/PushMessageData.webidl index 151287307df6..b4b30a575f7d 100644 --- a/dom/webidl/PushMessageData.webidl +++ b/dom/webidl/PushMessageData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushSubscription.webidl b/dom/webidl/PushSubscription.webidl index abdec07b57f7..3c03e443edc8 100644 --- a/dom/webidl/PushSubscription.webidl +++ b/dom/webidl/PushSubscription.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushSubscriptionOptions.webidl b/dom/webidl/PushSubscriptionOptions.webidl index 064cd94735ec..3e0d1576240e 100644 --- a/dom/webidl/PushSubscriptionOptions.webidl +++ b/dom/webidl/PushSubscriptionOptions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCCertificate.webidl b/dom/webidl/RTCCertificate.webidl index 405859518517..3a52be661185 100644 --- a/dom/webidl/RTCCertificate.webidl +++ b/dom/webidl/RTCCertificate.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCConfiguration.webidl b/dom/webidl/RTCConfiguration.webidl index 4b1a97031ccc..ce99e04a749f 100644 --- a/dom/webidl/RTCConfiguration.webidl +++ b/dom/webidl/RTCConfiguration.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCDTMFSender.webidl b/dom/webidl/RTCDTMFSender.webidl index bf601a1222d7..4dba7b7f3dd4 100644 --- a/dom/webidl/RTCDTMFSender.webidl +++ b/dom/webidl/RTCDTMFSender.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCDataChannel.webidl b/dom/webidl/RTCDataChannel.webidl index 2ded0ce4590a..8c50dba2f905 100644 --- a/dom/webidl/RTCDataChannel.webidl +++ b/dom/webidl/RTCDataChannel.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/RTCDataChannelEvent.webidl b/dom/webidl/RTCDataChannelEvent.webidl index 9eba382439de..c95f1a672d50 100644 --- a/dom/webidl/RTCDataChannelEvent.webidl +++ b/dom/webidl/RTCDataChannelEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIceCandidate.webidl b/dom/webidl/RTCIceCandidate.webidl index 2e425f3930b2..ea4719217735 100644 --- a/dom/webidl/RTCIceCandidate.webidl +++ b/dom/webidl/RTCIceCandidate.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIdentityAssertion.webidl b/dom/webidl/RTCIdentityAssertion.webidl index 621b21fed9fb..57b1fdcb09e6 100644 --- a/dom/webidl/RTCIdentityAssertion.webidl +++ b/dom/webidl/RTCIdentityAssertion.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIdentityProvider.webidl b/dom/webidl/RTCIdentityProvider.webidl index 8717ea2588fd..cc55d4c43da3 100644 --- a/dom/webidl/RTCIdentityProvider.webidl +++ b/dom/webidl/RTCIdentityProvider.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index ab935f1a31c2..4344f4006e2b 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnectionIceEvent.webidl b/dom/webidl/RTCPeerConnectionIceEvent.webidl index 5ec47f4705be..c47e0a7bc773 100644 --- a/dom/webidl/RTCPeerConnectionIceEvent.webidl +++ b/dom/webidl/RTCPeerConnectionIceEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnectionStatic.webidl b/dom/webidl/RTCPeerConnectionStatic.webidl index 5b21ee6e65c2..e5e595fc0419 100644 --- a/dom/webidl/RTCPeerConnectionStatic.webidl +++ b/dom/webidl/RTCPeerConnectionStatic.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpReceiver.webidl b/dom/webidl/RTCRtpReceiver.webidl index 38cc3394617e..0227ae04ea77 100644 --- a/dom/webidl/RTCRtpReceiver.webidl +++ b/dom/webidl/RTCRtpReceiver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpSender.webidl b/dom/webidl/RTCRtpSender.webidl index 49193896b5c7..f8a64c36e140 100644 --- a/dom/webidl/RTCRtpSender.webidl +++ b/dom/webidl/RTCRtpSender.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpSources.webidl b/dom/webidl/RTCRtpSources.webidl index 460d700ccc97..3680d3a97c43 100644 --- a/dom/webidl/RTCRtpSources.webidl +++ b/dom/webidl/RTCRtpSources.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpTransceiver.webidl b/dom/webidl/RTCRtpTransceiver.webidl index 422c721110d7..47727b09e60c 100644 --- a/dom/webidl/RTCRtpTransceiver.webidl +++ b/dom/webidl/RTCRtpTransceiver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCSessionDescription.webidl b/dom/webidl/RTCSessionDescription.webidl index 6da3525e48c6..d8a482c02d70 100644 --- a/dom/webidl/RTCSessionDescription.webidl +++ b/dom/webidl/RTCSessionDescription.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCStatsReport.webidl b/dom/webidl/RTCStatsReport.webidl index 9cc42a078f9d..1c67ce4aff3d 100644 --- a/dom/webidl/RTCStatsReport.webidl +++ b/dom/webidl/RTCStatsReport.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCTrackEvent.webidl b/dom/webidl/RTCTrackEvent.webidl index 27da47c6855a..0229763a9393 100644 --- a/dom/webidl/RTCTrackEvent.webidl +++ b/dom/webidl/RTCTrackEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RadioNodeList.webidl b/dom/webidl/RadioNodeList.webidl index f37e1cca36c9..63d7df862330 100644 --- a/dom/webidl/RadioNodeList.webidl +++ b/dom/webidl/RadioNodeList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Range.webidl b/dom/webidl/Range.webidl index 1313eb90ff60..7d48e40b1d63 100644 --- a/dom/webidl/Range.webidl +++ b/dom/webidl/Range.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Request.webidl b/dom/webidl/Request.webidl index 070b2e29a2c0..53b123af9710 100644 --- a/dom/webidl/Request.webidl +++ b/dom/webidl/Request.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 1; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Response.webidl b/dom/webidl/Response.webidl index afcb3fa823a4..4f5f002e83e0 100644 --- a/dom/webidl/Response.webidl +++ b/dom/webidl/Response.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAElement.webidl b/dom/webidl/SVGAElement.webidl index 05b0cb1137ae..46349c8bf61b 100644 --- a/dom/webidl/SVGAElement.webidl +++ b/dom/webidl/SVGAElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAngle.webidl b/dom/webidl/SVGAngle.webidl index f17b8836cc61..63f29e413c3f 100644 --- a/dom/webidl/SVGAngle.webidl +++ b/dom/webidl/SVGAngle.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateElement.webidl b/dom/webidl/SVGAnimateElement.webidl index c9841f2a84d7..6d5edd6cad5b 100644 --- a/dom/webidl/SVGAnimateElement.webidl +++ b/dom/webidl/SVGAnimateElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateMotionElement.webidl b/dom/webidl/SVGAnimateMotionElement.webidl index 38993d761959..2ef3ce3b97f1 100644 --- a/dom/webidl/SVGAnimateMotionElement.webidl +++ b/dom/webidl/SVGAnimateMotionElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateTransformElement.webidl b/dom/webidl/SVGAnimateTransformElement.webidl index 38701e61ce34..1e657d2fe579 100644 --- a/dom/webidl/SVGAnimateTransformElement.webidl +++ b/dom/webidl/SVGAnimateTransformElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedAngle.webidl b/dom/webidl/SVGAnimatedAngle.webidl index 5b01c8c35ec4..4abd05086812 100644 --- a/dom/webidl/SVGAnimatedAngle.webidl +++ b/dom/webidl/SVGAnimatedAngle.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedBoolean.webidl b/dom/webidl/SVGAnimatedBoolean.webidl index 990bbc7dee3c..97fc9faf1d1b 100644 --- a/dom/webidl/SVGAnimatedBoolean.webidl +++ b/dom/webidl/SVGAnimatedBoolean.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedEnumeration.webidl b/dom/webidl/SVGAnimatedEnumeration.webidl index 80591c2f1b14..1eec9906c512 100644 --- a/dom/webidl/SVGAnimatedEnumeration.webidl +++ b/dom/webidl/SVGAnimatedEnumeration.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedInteger.webidl b/dom/webidl/SVGAnimatedInteger.webidl index 61b43b3517ba..11d7332196a2 100644 --- a/dom/webidl/SVGAnimatedInteger.webidl +++ b/dom/webidl/SVGAnimatedInteger.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedLength.webidl b/dom/webidl/SVGAnimatedLength.webidl index f7fac144d3c6..1134b8635749 100644 --- a/dom/webidl/SVGAnimatedLength.webidl +++ b/dom/webidl/SVGAnimatedLength.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedLengthList.webidl b/dom/webidl/SVGAnimatedLengthList.webidl index 0d85e1616b3a..e424abb40ddd 100644 --- a/dom/webidl/SVGAnimatedLengthList.webidl +++ b/dom/webidl/SVGAnimatedLengthList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedNumber.webidl b/dom/webidl/SVGAnimatedNumber.webidl index 5908f0f868ea..ded957f2d77c 100644 --- a/dom/webidl/SVGAnimatedNumber.webidl +++ b/dom/webidl/SVGAnimatedNumber.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedNumberList.webidl b/dom/webidl/SVGAnimatedNumberList.webidl index 81fba2e062ea..75908631fdfc 100644 --- a/dom/webidl/SVGAnimatedNumberList.webidl +++ b/dom/webidl/SVGAnimatedNumberList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPathData.webidl b/dom/webidl/SVGAnimatedPathData.webidl index 08f10f7217cf..f5b60f5171f9 100644 --- a/dom/webidl/SVGAnimatedPathData.webidl +++ b/dom/webidl/SVGAnimatedPathData.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPoints.webidl b/dom/webidl/SVGAnimatedPoints.webidl index 891ca4bc0fdb..512ba6be22b0 100644 --- a/dom/webidl/SVGAnimatedPoints.webidl +++ b/dom/webidl/SVGAnimatedPoints.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl b/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl index 07506a5bf812..b0c7138615be 100644 --- a/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl +++ b/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedRect.webidl b/dom/webidl/SVGAnimatedRect.webidl index fffebbe88d78..e19a08008d8f 100644 --- a/dom/webidl/SVGAnimatedRect.webidl +++ b/dom/webidl/SVGAnimatedRect.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedString.webidl b/dom/webidl/SVGAnimatedString.webidl index eaf3773d0e2a..91f5b0abae0d 100644 --- a/dom/webidl/SVGAnimatedString.webidl +++ b/dom/webidl/SVGAnimatedString.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedTransformList.webidl b/dom/webidl/SVGAnimatedTransformList.webidl index 3ea39d130a07..73afb468c9d7 100644 --- a/dom/webidl/SVGAnimatedTransformList.webidl +++ b/dom/webidl/SVGAnimatedTransformList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimationElement.webidl b/dom/webidl/SVGAnimationElement.webidl index 4f9a95fe3b8a..f8ea1625f856 100644 --- a/dom/webidl/SVGAnimationElement.webidl +++ b/dom/webidl/SVGAnimationElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGCircleElement.webidl b/dom/webidl/SVGCircleElement.webidl index 021b5be242fc..e2d26fdd47cd 100644 --- a/dom/webidl/SVGCircleElement.webidl +++ b/dom/webidl/SVGCircleElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGClipPathElement.webidl b/dom/webidl/SVGClipPathElement.webidl index e1421430d61c..f70a3a6cc291 100644 --- a/dom/webidl/SVGClipPathElement.webidl +++ b/dom/webidl/SVGClipPathElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGComponentTransferFunctionElement.webidl b/dom/webidl/SVGComponentTransferFunctionElement.webidl index 1842fe6f5617..9c73e0678af3 100644 --- a/dom/webidl/SVGComponentTransferFunctionElement.webidl +++ b/dom/webidl/SVGComponentTransferFunctionElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGDefsElement.webidl b/dom/webidl/SVGDefsElement.webidl index 0b37978b47bc..e23adf59cf87 100644 --- a/dom/webidl/SVGDefsElement.webidl +++ b/dom/webidl/SVGDefsElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGDescElement.webidl b/dom/webidl/SVGDescElement.webidl index 1841ff54585d..bb077035dfc9 100644 --- a/dom/webidl/SVGDescElement.webidl +++ b/dom/webidl/SVGDescElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGElement.webidl b/dom/webidl/SVGElement.webidl index a01be3788591..d8246b53f31e 100644 --- a/dom/webidl/SVGElement.webidl +++ b/dom/webidl/SVGElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGEllipseElement.webidl b/dom/webidl/SVGEllipseElement.webidl index cb509f03190f..80bff4de917a 100644 --- a/dom/webidl/SVGEllipseElement.webidl +++ b/dom/webidl/SVGEllipseElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEBlendElement.webidl b/dom/webidl/SVGFEBlendElement.webidl index 5cd469bd5ab6..875c8af31b32 100644 --- a/dom/webidl/SVGFEBlendElement.webidl +++ b/dom/webidl/SVGFEBlendElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEColorMatrixElement.webidl b/dom/webidl/SVGFEColorMatrixElement.webidl index 61d91040d5d0..854aa7e1fc15 100644 --- a/dom/webidl/SVGFEColorMatrixElement.webidl +++ b/dom/webidl/SVGFEColorMatrixElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEComponentTransferElement.webidl b/dom/webidl/SVGFEComponentTransferElement.webidl index 6cf6f6d65df3..deb1bd7f99e2 100644 --- a/dom/webidl/SVGFEComponentTransferElement.webidl +++ b/dom/webidl/SVGFEComponentTransferElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFECompositeElement.webidl b/dom/webidl/SVGFECompositeElement.webidl index 3ab983fe0d8b..b135a345ca30 100644 --- a/dom/webidl/SVGFECompositeElement.webidl +++ b/dom/webidl/SVGFECompositeElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEConvolveMatrixElement.webidl b/dom/webidl/SVGFEConvolveMatrixElement.webidl index 27d8e80e764c..12765eda9fca 100644 --- a/dom/webidl/SVGFEConvolveMatrixElement.webidl +++ b/dom/webidl/SVGFEConvolveMatrixElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDiffuseLightingElement.webidl b/dom/webidl/SVGFEDiffuseLightingElement.webidl index fb89721d8475..8a794e936d68 100644 --- a/dom/webidl/SVGFEDiffuseLightingElement.webidl +++ b/dom/webidl/SVGFEDiffuseLightingElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDisplacementMapElement.webidl b/dom/webidl/SVGFEDisplacementMapElement.webidl index 461faff91974..697ae342ce0a 100644 --- a/dom/webidl/SVGFEDisplacementMapElement.webidl +++ b/dom/webidl/SVGFEDisplacementMapElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDistantLightElement.webidl b/dom/webidl/SVGFEDistantLightElement.webidl index 933befc936ae..ed21012bc79e 100644 --- a/dom/webidl/SVGFEDistantLightElement.webidl +++ b/dom/webidl/SVGFEDistantLightElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDropShadowElement.webidl b/dom/webidl/SVGFEDropShadowElement.webidl index b858fc91cd65..87de66a585b1 100644 --- a/dom/webidl/SVGFEDropShadowElement.webidl +++ b/dom/webidl/SVGFEDropShadowElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFloodElement.webidl b/dom/webidl/SVGFEFloodElement.webidl index 51d9539ff3ec..28d38c2685a8 100644 --- a/dom/webidl/SVGFEFloodElement.webidl +++ b/dom/webidl/SVGFEFloodElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncAElement.webidl b/dom/webidl/SVGFEFuncAElement.webidl index 97282cd19550..8ab69cf1a07f 100644 --- a/dom/webidl/SVGFEFuncAElement.webidl +++ b/dom/webidl/SVGFEFuncAElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncBElement.webidl b/dom/webidl/SVGFEFuncBElement.webidl index 8b5c2b9255ab..3477dfb4611a 100644 --- a/dom/webidl/SVGFEFuncBElement.webidl +++ b/dom/webidl/SVGFEFuncBElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncGElement.webidl b/dom/webidl/SVGFEFuncGElement.webidl index 39d2f3059070..4c1a83fe1460 100644 --- a/dom/webidl/SVGFEFuncGElement.webidl +++ b/dom/webidl/SVGFEFuncGElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncRElement.webidl b/dom/webidl/SVGFEFuncRElement.webidl index 78e492be431a..a368dd6586ef 100644 --- a/dom/webidl/SVGFEFuncRElement.webidl +++ b/dom/webidl/SVGFEFuncRElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEGaussianBlurElement.webidl b/dom/webidl/SVGFEGaussianBlurElement.webidl index db2101b53516..ee353b02e5de 100644 --- a/dom/webidl/SVGFEGaussianBlurElement.webidl +++ b/dom/webidl/SVGFEGaussianBlurElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEImageElement.webidl b/dom/webidl/SVGFEImageElement.webidl index 3262c0d8a2fd..ba1022b91231 100644 --- a/dom/webidl/SVGFEImageElement.webidl +++ b/dom/webidl/SVGFEImageElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMergeElement.webidl b/dom/webidl/SVGFEMergeElement.webidl index adafbba9a6e7..f900dbf9d02e 100644 --- a/dom/webidl/SVGFEMergeElement.webidl +++ b/dom/webidl/SVGFEMergeElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMergeNodeElement.webidl b/dom/webidl/SVGFEMergeNodeElement.webidl index 4ff217ba77a0..158ce07695b4 100644 --- a/dom/webidl/SVGFEMergeNodeElement.webidl +++ b/dom/webidl/SVGFEMergeNodeElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMorphologyElement.webidl b/dom/webidl/SVGFEMorphologyElement.webidl index 82910a6faa05..dad595564901 100644 --- a/dom/webidl/SVGFEMorphologyElement.webidl +++ b/dom/webidl/SVGFEMorphologyElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEOffsetElement.webidl b/dom/webidl/SVGFEOffsetElement.webidl index 90132d528800..927ee587e7ba 100644 --- a/dom/webidl/SVGFEOffsetElement.webidl +++ b/dom/webidl/SVGFEOffsetElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEPointLightElement.webidl b/dom/webidl/SVGFEPointLightElement.webidl index 232edc45d056..afe5e6ad234d 100644 --- a/dom/webidl/SVGFEPointLightElement.webidl +++ b/dom/webidl/SVGFEPointLightElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFESpecularLightingElement.webidl b/dom/webidl/SVGFESpecularLightingElement.webidl index 42b6b0e9c8d4..95e21ac1f990 100644 --- a/dom/webidl/SVGFESpecularLightingElement.webidl +++ b/dom/webidl/SVGFESpecularLightingElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFESpotLightElement.webidl b/dom/webidl/SVGFESpotLightElement.webidl index 281d20c8c0bf..4382624f73bd 100644 --- a/dom/webidl/SVGFESpotLightElement.webidl +++ b/dom/webidl/SVGFESpotLightElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFETileElement.webidl b/dom/webidl/SVGFETileElement.webidl index 38cad60409fc..3eed676c01d4 100644 --- a/dom/webidl/SVGFETileElement.webidl +++ b/dom/webidl/SVGFETileElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFETurbulenceElement.webidl b/dom/webidl/SVGFETurbulenceElement.webidl index 45c9d468b2e2..211e52f6d139 100644 --- a/dom/webidl/SVGFETurbulenceElement.webidl +++ b/dom/webidl/SVGFETurbulenceElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFilterElement.webidl b/dom/webidl/SVGFilterElement.webidl index bbea6841f7a5..179da6696120 100644 --- a/dom/webidl/SVGFilterElement.webidl +++ b/dom/webidl/SVGFilterElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl b/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl index 3319505866af..a688e9a304d8 100644 --- a/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl +++ b/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFitToViewBox.webidl b/dom/webidl/SVGFitToViewBox.webidl index 881e658d21d1..ba2088560afd 100644 --- a/dom/webidl/SVGFitToViewBox.webidl +++ b/dom/webidl/SVGFitToViewBox.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGForeignObjectElement.webidl b/dom/webidl/SVGForeignObjectElement.webidl index 6829f4501f79..dddb98238027 100644 --- a/dom/webidl/SVGForeignObjectElement.webidl +++ b/dom/webidl/SVGForeignObjectElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGElement.webidl b/dom/webidl/SVGGElement.webidl index 8d690677e5e4..8f8feb286bfd 100644 --- a/dom/webidl/SVGGElement.webidl +++ b/dom/webidl/SVGGElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGeometryElement.webidl b/dom/webidl/SVGGeometryElement.webidl index 28029794c673..c95d89002ffe 100644 --- a/dom/webidl/SVGGeometryElement.webidl +++ b/dom/webidl/SVGGeometryElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGradientElement.webidl b/dom/webidl/SVGGradientElement.webidl index 8eb75b107141..25ecdaf4cbce 100644 --- a/dom/webidl/SVGGradientElement.webidl +++ b/dom/webidl/SVGGradientElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGraphicsElement.webidl b/dom/webidl/SVGGraphicsElement.webidl index 74af1f6738ea..bf09fc2332f5 100644 --- a/dom/webidl/SVGGraphicsElement.webidl +++ b/dom/webidl/SVGGraphicsElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGImageElement.webidl b/dom/webidl/SVGImageElement.webidl index 4ba236bed470..02d753bd37aa 100644 --- a/dom/webidl/SVGImageElement.webidl +++ b/dom/webidl/SVGImageElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLength.webidl b/dom/webidl/SVGLength.webidl index 6d56132db084..9e7c2f3a032a 100644 --- a/dom/webidl/SVGLength.webidl +++ b/dom/webidl/SVGLength.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLengthList.webidl b/dom/webidl/SVGLengthList.webidl index c4fab44e4b7f..e75f85870f43 100644 --- a/dom/webidl/SVGLengthList.webidl +++ b/dom/webidl/SVGLengthList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLineElement.webidl b/dom/webidl/SVGLineElement.webidl index 3ec4ba1016b6..59c2c951cc8d 100644 --- a/dom/webidl/SVGLineElement.webidl +++ b/dom/webidl/SVGLineElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLinearGradientElement.webidl b/dom/webidl/SVGLinearGradientElement.webidl index 200bc47e67ed..1c14e0a9b3d9 100644 --- a/dom/webidl/SVGLinearGradientElement.webidl +++ b/dom/webidl/SVGLinearGradientElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMPathElement.webidl b/dom/webidl/SVGMPathElement.webidl index 7165b6cf7459..ed959b24bbb5 100644 --- a/dom/webidl/SVGMPathElement.webidl +++ b/dom/webidl/SVGMPathElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMarkerElement.webidl b/dom/webidl/SVGMarkerElement.webidl index a4f819b2d09c..f25690cf8d88 100644 --- a/dom/webidl/SVGMarkerElement.webidl +++ b/dom/webidl/SVGMarkerElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMaskElement.webidl b/dom/webidl/SVGMaskElement.webidl index ad5096b69003..c0498db7cb71 100644 --- a/dom/webidl/SVGMaskElement.webidl +++ b/dom/webidl/SVGMaskElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMatrix.webidl b/dom/webidl/SVGMatrix.webidl index 3ede75cc727a..77af638ea91b 100644 --- a/dom/webidl/SVGMatrix.webidl +++ b/dom/webidl/SVGMatrix.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMetadataElement.webidl b/dom/webidl/SVGMetadataElement.webidl index 1c404f91f2d0..21bded60eaa4 100644 --- a/dom/webidl/SVGMetadataElement.webidl +++ b/dom/webidl/SVGMetadataElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGNumber.webidl b/dom/webidl/SVGNumber.webidl index 8e1bb58c1031..e8a7d3ed910d 100644 --- a/dom/webidl/SVGNumber.webidl +++ b/dom/webidl/SVGNumber.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGNumberList.webidl b/dom/webidl/SVGNumberList.webidl index b4247d33746a..869cc67689ca 100644 --- a/dom/webidl/SVGNumberList.webidl +++ b/dom/webidl/SVGNumberList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathElement.webidl b/dom/webidl/SVGPathElement.webidl index a811a8ff20d0..184863aa78a3 100644 --- a/dom/webidl/SVGPathElement.webidl +++ b/dom/webidl/SVGPathElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathSeg.webidl b/dom/webidl/SVGPathSeg.webidl index 5895a8c963f6..e62f71102df1 100644 --- a/dom/webidl/SVGPathSeg.webidl +++ b/dom/webidl/SVGPathSeg.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathSegList.webidl b/dom/webidl/SVGPathSegList.webidl index dc8c9a436fa1..a2ddd3a038ba 100644 --- a/dom/webidl/SVGPathSegList.webidl +++ b/dom/webidl/SVGPathSegList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPatternElement.webidl b/dom/webidl/SVGPatternElement.webidl index c1d9af9b7d61..60a359825dc8 100644 --- a/dom/webidl/SVGPatternElement.webidl +++ b/dom/webidl/SVGPatternElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPoint.webidl b/dom/webidl/SVGPoint.webidl index c8113d40b75e..b91180e634cd 100644 --- a/dom/webidl/SVGPoint.webidl +++ b/dom/webidl/SVGPoint.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPointList.webidl b/dom/webidl/SVGPointList.webidl index 2bc553855f9c..f4548e8e2740 100644 --- a/dom/webidl/SVGPointList.webidl +++ b/dom/webidl/SVGPointList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPolygonElement.webidl b/dom/webidl/SVGPolygonElement.webidl index 338f9766a6a2..5b22f31ece9c 100644 --- a/dom/webidl/SVGPolygonElement.webidl +++ b/dom/webidl/SVGPolygonElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPolylineElement.webidl b/dom/webidl/SVGPolylineElement.webidl index 0508d009fa91..93e6c96903da 100644 --- a/dom/webidl/SVGPolylineElement.webidl +++ b/dom/webidl/SVGPolylineElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPreserveAspectRatio.webidl b/dom/webidl/SVGPreserveAspectRatio.webidl index 2a9db63f583e..9681cbdba335 100644 --- a/dom/webidl/SVGPreserveAspectRatio.webidl +++ b/dom/webidl/SVGPreserveAspectRatio.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRadialGradientElement.webidl b/dom/webidl/SVGRadialGradientElement.webidl index 8d7ce901681d..f1ca2156664e 100644 --- a/dom/webidl/SVGRadialGradientElement.webidl +++ b/dom/webidl/SVGRadialGradientElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRect.webidl b/dom/webidl/SVGRect.webidl index 0edda0640fb9..3358a8477ec3 100644 --- a/dom/webidl/SVGRect.webidl +++ b/dom/webidl/SVGRect.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRectElement.webidl b/dom/webidl/SVGRectElement.webidl index 9dddd83bbbf3..7f408849b4f0 100644 --- a/dom/webidl/SVGRectElement.webidl +++ b/dom/webidl/SVGRectElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSVGElement.webidl b/dom/webidl/SVGSVGElement.webidl index 98ca7d6dc780..178a12faa2fb 100644 --- a/dom/webidl/SVGSVGElement.webidl +++ b/dom/webidl/SVGSVGElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGScriptElement.webidl b/dom/webidl/SVGScriptElement.webidl index 41bbe065b67a..e21849bef7bb 100644 --- a/dom/webidl/SVGScriptElement.webidl +++ b/dom/webidl/SVGScriptElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSetElement.webidl b/dom/webidl/SVGSetElement.webidl index 8b816fa75914..71b67fa716d1 100644 --- a/dom/webidl/SVGSetElement.webidl +++ b/dom/webidl/SVGSetElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStopElement.webidl b/dom/webidl/SVGStopElement.webidl index d75e52b73399..f5258afe7929 100644 --- a/dom/webidl/SVGStopElement.webidl +++ b/dom/webidl/SVGStopElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStringList.webidl b/dom/webidl/SVGStringList.webidl index ad7288fe1c09..dfd3098dc10e 100644 --- a/dom/webidl/SVGStringList.webidl +++ b/dom/webidl/SVGStringList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStyleElement.webidl b/dom/webidl/SVGStyleElement.webidl index dcdbb8c2c27e..d7dc9e31211f 100644 --- a/dom/webidl/SVGStyleElement.webidl +++ b/dom/webidl/SVGStyleElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSwitchElement.webidl b/dom/webidl/SVGSwitchElement.webidl index 43cdb6861a89..0e6c5f178981 100644 --- a/dom/webidl/SVGSwitchElement.webidl +++ b/dom/webidl/SVGSwitchElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSymbolElement.webidl b/dom/webidl/SVGSymbolElement.webidl index ece2c5a3f046..357c4b586b1d 100644 --- a/dom/webidl/SVGSymbolElement.webidl +++ b/dom/webidl/SVGSymbolElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTSpanElement.webidl b/dom/webidl/SVGTSpanElement.webidl index a6d944450cbc..9b19238c7d16 100644 --- a/dom/webidl/SVGTSpanElement.webidl +++ b/dom/webidl/SVGTSpanElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTests.webidl b/dom/webidl/SVGTests.webidl index e3c38242b38e..a49f19d0a327 100644 --- a/dom/webidl/SVGTests.webidl +++ b/dom/webidl/SVGTests.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextContentElement.webidl b/dom/webidl/SVGTextContentElement.webidl index 15ec9637309e..ed380a89a395 100644 --- a/dom/webidl/SVGTextContentElement.webidl +++ b/dom/webidl/SVGTextContentElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextElement.webidl b/dom/webidl/SVGTextElement.webidl index 042326de2ee3..db85964c12ec 100644 --- a/dom/webidl/SVGTextElement.webidl +++ b/dom/webidl/SVGTextElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextPathElement.webidl b/dom/webidl/SVGTextPathElement.webidl index 73a50f3ff47d..152197678dd7 100644 --- a/dom/webidl/SVGTextPathElement.webidl +++ b/dom/webidl/SVGTextPathElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextPositioningElement.webidl b/dom/webidl/SVGTextPositioningElement.webidl index 80b8b94fac9f..6c358eae48e0 100644 --- a/dom/webidl/SVGTextPositioningElement.webidl +++ b/dom/webidl/SVGTextPositioningElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTitleElement.webidl b/dom/webidl/SVGTitleElement.webidl index d40c63373ea7..694295e86a33 100644 --- a/dom/webidl/SVGTitleElement.webidl +++ b/dom/webidl/SVGTitleElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTransform.webidl b/dom/webidl/SVGTransform.webidl index 488fb8d07880..bfb9745ae3d0 100644 --- a/dom/webidl/SVGTransform.webidl +++ b/dom/webidl/SVGTransform.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTransformList.webidl b/dom/webidl/SVGTransformList.webidl index c9763aa26c97..b308c14de1c6 100644 --- a/dom/webidl/SVGTransformList.webidl +++ b/dom/webidl/SVGTransformList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGURIReference.webidl b/dom/webidl/SVGURIReference.webidl index 11f94c1917fb..84c32f167f96 100644 --- a/dom/webidl/SVGURIReference.webidl +++ b/dom/webidl/SVGURIReference.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGUnitTypes.webidl b/dom/webidl/SVGUnitTypes.webidl index d02e7019bcd4..41c68009c6e3 100644 --- a/dom/webidl/SVGUnitTypes.webidl +++ b/dom/webidl/SVGUnitTypes.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGUseElement.webidl b/dom/webidl/SVGUseElement.webidl index 8e7a6fd8cf4c..376d5e1c327a 100644 --- a/dom/webidl/SVGUseElement.webidl +++ b/dom/webidl/SVGUseElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGViewElement.webidl b/dom/webidl/SVGViewElement.webidl index b4be87645de7..074f0e97684b 100644 --- a/dom/webidl/SVGViewElement.webidl +++ b/dom/webidl/SVGViewElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGZoomAndPan.webidl b/dom/webidl/SVGZoomAndPan.webidl index bb5ee780ac09..79bf5671f953 100644 --- a/dom/webidl/SVGZoomAndPan.webidl +++ b/dom/webidl/SVGZoomAndPan.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGZoomAndPanValues.webidl b/dom/webidl/SVGZoomAndPanValues.webidl index a09653f0bea3..7e0ebc010503 100644 --- a/dom/webidl/SVGZoomAndPanValues.webidl +++ b/dom/webidl/SVGZoomAndPanValues.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Screen.webidl b/dom/webidl/Screen.webidl index 59d6ca31e400..e382d1bd5e21 100644 --- a/dom/webidl/Screen.webidl +++ b/dom/webidl/Screen.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/ScreenOrientation.webidl b/dom/webidl/ScreenOrientation.webidl index 0f0b6736e4b6..4c8dcdf4cb88 100644 --- a/dom/webidl/ScreenOrientation.webidl +++ b/dom/webidl/ScreenOrientation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScriptProcessorNode.webidl b/dom/webidl/ScriptProcessorNode.webidl index 81c02443f170..25923f9bc57a 100644 --- a/dom/webidl/ScriptProcessorNode.webidl +++ b/dom/webidl/ScriptProcessorNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScrollAreaEvent.webidl b/dom/webidl/ScrollAreaEvent.webidl index f24b7c0ad040..ca324eaa1e24 100644 --- a/dom/webidl/ScrollAreaEvent.webidl +++ b/dom/webidl/ScrollAreaEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScrollViewChangeEvent.webidl b/dom/webidl/ScrollViewChangeEvent.webidl index a3e92139a2cc..d2cec242fdbf 100644 --- a/dom/webidl/ScrollViewChangeEvent.webidl +++ b/dom/webidl/ScrollViewChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SecurityPolicyViolationEvent.webidl b/dom/webidl/SecurityPolicyViolationEvent.webidl index 051277488006..db8f4cddc169 100644 --- a/dom/webidl/SecurityPolicyViolationEvent.webidl +++ b/dom/webidl/SecurityPolicyViolationEvent.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Selection.webidl b/dom/webidl/Selection.webidl index e15d2a97ce51..9620871f7158 100644 --- a/dom/webidl/Selection.webidl +++ b/dom/webidl/Selection.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorker.webidl b/dom/webidl/ServiceWorker.webidl index 8978cf07a284..624e2bbb1b94 100644 --- a/dom/webidl/ServiceWorker.webidl +++ b/dom/webidl/ServiceWorker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerContainer.webidl b/dom/webidl/ServiceWorkerContainer.webidl index 3d0bc34f2616..0205c4f4531f 100644 --- a/dom/webidl/ServiceWorkerContainer.webidl +++ b/dom/webidl/ServiceWorkerContainer.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerGlobalScope.webidl b/dom/webidl/ServiceWorkerGlobalScope.webidl index 624a0643d811..bda4fdd4ccf4 100644 --- a/dom/webidl/ServiceWorkerGlobalScope.webidl +++ b/dom/webidl/ServiceWorkerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerRegistration.webidl b/dom/webidl/ServiceWorkerRegistration.webidl index 3c1f710b4938..c54b178d9d13 100644 --- a/dom/webidl/ServiceWorkerRegistration.webidl +++ b/dom/webidl/ServiceWorkerRegistration.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ShadowRoot.webidl b/dom/webidl/ShadowRoot.webidl index fe3e93341cbd..532f0a208812 100644 --- a/dom/webidl/ShadowRoot.webidl +++ b/dom/webidl/ShadowRoot.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SharedWorker.webidl b/dom/webidl/SharedWorker.webidl index 9504f302e065..e363e080bdc8 100644 --- a/dom/webidl/SharedWorker.webidl +++ b/dom/webidl/SharedWorker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SharedWorkerGlobalScope.webidl b/dom/webidl/SharedWorkerGlobalScope.webidl index 7c9483bf6aaa..77ab1e2710ed 100644 --- a/dom/webidl/SharedWorkerGlobalScope.webidl +++ b/dom/webidl/SharedWorkerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SimpleGestureEvent.webidl b/dom/webidl/SimpleGestureEvent.webidl index ab55c9014165..fd3213bb81bf 100644 --- a/dom/webidl/SimpleGestureEvent.webidl +++ b/dom/webidl/SimpleGestureEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SocketCommon.webidl b/dom/webidl/SocketCommon.webidl index 044199ea2bd6..e00a23c9ec73 100644 --- a/dom/webidl/SocketCommon.webidl +++ b/dom/webidl/SocketCommon.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SourceBuffer.webidl b/dom/webidl/SourceBuffer.webidl index 0e2eaa58f6ec..af2cbf8fe541 100644 --- a/dom/webidl/SourceBuffer.webidl +++ b/dom/webidl/SourceBuffer.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SourceBufferList.webidl b/dom/webidl/SourceBufferList.webidl index 15c302622a66..8cc513ed9e2d 100644 --- a/dom/webidl/SourceBufferList.webidl +++ b/dom/webidl/SourceBufferList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechGrammar.webidl b/dom/webidl/SpeechGrammar.webidl index 8cc97d2ffc5c..49ac1cccecc8 100644 --- a/dom/webidl/SpeechGrammar.webidl +++ b/dom/webidl/SpeechGrammar.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechGrammarList.webidl b/dom/webidl/SpeechGrammarList.webidl index f1b5775ae0c3..0b602a8980ca 100644 --- a/dom/webidl/SpeechGrammarList.webidl +++ b/dom/webidl/SpeechGrammarList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognition.webidl b/dom/webidl/SpeechRecognition.webidl index f24eee83cf3a..b52f6f23cb65 100644 --- a/dom/webidl/SpeechRecognition.webidl +++ b/dom/webidl/SpeechRecognition.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionAlternative.webidl b/dom/webidl/SpeechRecognitionAlternative.webidl index f2692404d590..0b767a4aa7fc 100644 --- a/dom/webidl/SpeechRecognitionAlternative.webidl +++ b/dom/webidl/SpeechRecognitionAlternative.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionError.webidl b/dom/webidl/SpeechRecognitionError.webidl index ddc74e88da00..e9d6114882cf 100644 --- a/dom/webidl/SpeechRecognitionError.webidl +++ b/dom/webidl/SpeechRecognitionError.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionEvent.webidl b/dom/webidl/SpeechRecognitionEvent.webidl index 7a95323d7752..bd3703335bf9 100644 --- a/dom/webidl/SpeechRecognitionEvent.webidl +++ b/dom/webidl/SpeechRecognitionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionResult.webidl b/dom/webidl/SpeechRecognitionResult.webidl index c66bb9ca2f06..848b5e00701a 100644 --- a/dom/webidl/SpeechRecognitionResult.webidl +++ b/dom/webidl/SpeechRecognitionResult.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionResultList.webidl b/dom/webidl/SpeechRecognitionResultList.webidl index ec182c1def48..99a628f0a23f 100644 --- a/dom/webidl/SpeechRecognitionResultList.webidl +++ b/dom/webidl/SpeechRecognitionResultList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesis.webidl b/dom/webidl/SpeechSynthesis.webidl index f57a07b8bb50..eacd09d2f1c9 100644 --- a/dom/webidl/SpeechSynthesis.webidl +++ b/dom/webidl/SpeechSynthesis.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisErrorEvent.webidl b/dom/webidl/SpeechSynthesisErrorEvent.webidl index 1388755d3139..dcaf1e84155c 100644 --- a/dom/webidl/SpeechSynthesisErrorEvent.webidl +++ b/dom/webidl/SpeechSynthesisErrorEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisEvent.webidl b/dom/webidl/SpeechSynthesisEvent.webidl index 310ad6867d11..5c035bbc645f 100644 --- a/dom/webidl/SpeechSynthesisEvent.webidl +++ b/dom/webidl/SpeechSynthesisEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisUtterance.webidl b/dom/webidl/SpeechSynthesisUtterance.webidl index 14f6e9fde4e8..88f390d8eac7 100644 --- a/dom/webidl/SpeechSynthesisUtterance.webidl +++ b/dom/webidl/SpeechSynthesisUtterance.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisVoice.webidl b/dom/webidl/SpeechSynthesisVoice.webidl index 39ea6964d0fc..2c311c4a9bef 100644 --- a/dom/webidl/SpeechSynthesisVoice.webidl +++ b/dom/webidl/SpeechSynthesisVoice.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StereoPannerNode.webidl b/dom/webidl/StereoPannerNode.webidl index 9b8b3e2f841a..9e1b65a1d43a 100644 --- a/dom/webidl/StereoPannerNode.webidl +++ b/dom/webidl/StereoPannerNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Storage.webidl b/dom/webidl/Storage.webidl index b64974a287b2..44bf75b21074 100644 --- a/dom/webidl/Storage.webidl +++ b/dom/webidl/Storage.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageEvent.webidl b/dom/webidl/StorageEvent.webidl index e03f8232cc58..b1735667026a 100644 --- a/dom/webidl/StorageEvent.webidl +++ b/dom/webidl/StorageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageManager.webidl b/dom/webidl/StorageManager.webidl index 4247607ff4de..679d0adc5c98 100644 --- a/dom/webidl/StorageManager.webidl +++ b/dom/webidl/StorageManager.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageType.webidl b/dom/webidl/StorageType.webidl index cb0702d2a8b8..7ec4c5e05c00 100644 --- a/dom/webidl/StorageType.webidl +++ b/dom/webidl/StorageType.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StreamFilter.webidl b/dom/webidl/StreamFilter.webidl index 3a100c4a3404..a494f8f89893 100644 --- a/dom/webidl/StreamFilter.webidl +++ b/dom/webidl/StreamFilter.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StreamFilterDataEvent.webidl b/dom/webidl/StreamFilterDataEvent.webidl index 961c453dcff6..55c89ceb1470 100644 --- a/dom/webidl/StreamFilterDataEvent.webidl +++ b/dom/webidl/StreamFilterDataEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/StyleRuleChangeEvent.webidl b/dom/webidl/StyleRuleChangeEvent.webidl index ef35bae6486c..8edc2680fbc0 100644 --- a/dom/webidl/StyleRuleChangeEvent.webidl +++ b/dom/webidl/StyleRuleChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheet.webidl b/dom/webidl/StyleSheet.webidl index 049f3d9d0791..23e7bbcb3044 100644 --- a/dom/webidl/StyleSheet.webidl +++ b/dom/webidl/StyleSheet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl b/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl index cb196569f54e..4f5cbce90b36 100644 --- a/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl +++ b/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetChangeEvent.webidl b/dom/webidl/StyleSheetChangeEvent.webidl index 9d04f67cce5c..7a74782109aa 100644 --- a/dom/webidl/StyleSheetChangeEvent.webidl +++ b/dom/webidl/StyleSheetChangeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetList.webidl b/dom/webidl/StyleSheetList.webidl index e6091ac296eb..98b69cc14502 100644 --- a/dom/webidl/StyleSheetList.webidl +++ b/dom/webidl/StyleSheetList.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/SubtleCrypto.webidl b/dom/webidl/SubtleCrypto.webidl index 328447ee7b09..b8ec366e3697 100644 --- a/dom/webidl/SubtleCrypto.webidl +++ b/dom/webidl/SubtleCrypto.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TCPServerSocket.webidl b/dom/webidl/TCPServerSocket.webidl index 06d6689d2d00..14163ea1d06a 100644 --- a/dom/webidl/TCPServerSocket.webidl +++ b/dom/webidl/TCPServerSocket.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPServerSocketEvent.webidl b/dom/webidl/TCPServerSocketEvent.webidl index f133ae7812f8..d710b9f2ef55 100644 --- a/dom/webidl/TCPServerSocketEvent.webidl +++ b/dom/webidl/TCPServerSocketEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocket.webidl b/dom/webidl/TCPSocket.webidl index 42c6c2f7388c..c007021f0307 100644 --- a/dom/webidl/TCPSocket.webidl +++ b/dom/webidl/TCPSocket.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocketErrorEvent.webidl b/dom/webidl/TCPSocketErrorEvent.webidl index 22db1b768c90..c247c1d21e00 100644 --- a/dom/webidl/TCPSocketErrorEvent.webidl +++ b/dom/webidl/TCPSocketErrorEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocketEvent.webidl b/dom/webidl/TCPSocketEvent.webidl index 6a3d6851df4d..709d3a2c1d9f 100644 --- a/dom/webidl/TCPSocketEvent.webidl +++ b/dom/webidl/TCPSocketEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TestFunctions.webidl b/dom/webidl/TestFunctions.webidl index 9c72392c3701..2f53fdb3f541 100644 --- a/dom/webidl/TestFunctions.webidl +++ b/dom/webidl/TestFunctions.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJS.webidl b/dom/webidl/TestInterfaceJS.webidl index 835f4ae29fd1..b5480ef584ee 100644 --- a/dom/webidl/TestInterfaceJS.webidl +++ b/dom/webidl/TestInterfaceJS.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJSDictionaries.webidl b/dom/webidl/TestInterfaceJSDictionaries.webidl index 366864a8d4f8..55dcd4328b1c 100644 --- a/dom/webidl/TestInterfaceJSDictionaries.webidl +++ b/dom/webidl/TestInterfaceJSDictionaries.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl b/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl index 9a953784cf98..d1f4461be292 100644 --- a/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl +++ b/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Text.webidl b/dom/webidl/Text.webidl index 3b79d6d3725b..50ecd0e6c27b 100644 --- a/dom/webidl/Text.webidl +++ b/dom/webidl/Text.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextClause.webidl b/dom/webidl/TextClause.webidl index 2baeeb2d7856..a70da13d4c4a 100644 --- a/dom/webidl/TextClause.webidl +++ b/dom/webidl/TextClause.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextDecoder.webidl b/dom/webidl/TextDecoder.webidl index 9246c2a3207d..90f5ff34a4cb 100644 --- a/dom/webidl/TextDecoder.webidl +++ b/dom/webidl/TextDecoder.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextEncoder.webidl b/dom/webidl/TextEncoder.webidl index 27f6e03d2cec..461f490777dd 100644 --- a/dom/webidl/TextEncoder.webidl +++ b/dom/webidl/TextEncoder.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrack.webidl b/dom/webidl/TextTrack.webidl index 442a1667f199..d7d3f39f3263 100644 --- a/dom/webidl/TextTrack.webidl +++ b/dom/webidl/TextTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackCue.webidl b/dom/webidl/TextTrackCue.webidl index 2dc242dd1670..6597638f3ead 100644 --- a/dom/webidl/TextTrackCue.webidl +++ b/dom/webidl/TextTrackCue.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackCueList.webidl b/dom/webidl/TextTrackCueList.webidl index 0854004bdb86..0e3e691e591e 100644 --- a/dom/webidl/TextTrackCueList.webidl +++ b/dom/webidl/TextTrackCueList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackList.webidl b/dom/webidl/TextTrackList.webidl index 1150871e3a76..02db6c236384 100644 --- a/dom/webidl/TextTrackList.webidl +++ b/dom/webidl/TextTrackList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TimeEvent.webidl b/dom/webidl/TimeEvent.webidl index 8bbe4db53fa1..10046b0a77e0 100644 --- a/dom/webidl/TimeEvent.webidl +++ b/dom/webidl/TimeEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TimeRanges.webidl b/dom/webidl/TimeRanges.webidl index 9f9b5270b1bb..4317bdfeac93 100644 --- a/dom/webidl/TimeRanges.webidl +++ b/dom/webidl/TimeRanges.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Touch.webidl b/dom/webidl/Touch.webidl index d00e46654520..98e017f841df 100644 --- a/dom/webidl/Touch.webidl +++ b/dom/webidl/Touch.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TouchEvent.webidl b/dom/webidl/TouchEvent.webidl index fd677787ab31..18783d55a2dd 100644 --- a/dom/webidl/TouchEvent.webidl +++ b/dom/webidl/TouchEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TouchList.webidl b/dom/webidl/TouchList.webidl index 562a7fb4fcb3..5bbaf5439cad 100644 --- a/dom/webidl/TouchList.webidl +++ b/dom/webidl/TouchList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TrackEvent.webidl b/dom/webidl/TrackEvent.webidl index 2daa2f457502..db588aa9d545 100644 --- a/dom/webidl/TrackEvent.webidl +++ b/dom/webidl/TrackEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TransceiverImpl.webidl b/dom/webidl/TransceiverImpl.webidl index 0883ea343f0d..dd7e085495ad 100644 --- a/dom/webidl/TransceiverImpl.webidl +++ b/dom/webidl/TransceiverImpl.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TransitionEvent.webidl b/dom/webidl/TransitionEvent.webidl index d4476dffaf3a..b6c315be09e1 100644 --- a/dom/webidl/TransitionEvent.webidl +++ b/dom/webidl/TransitionEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TreeBoxObject.webidl b/dom/webidl/TreeBoxObject.webidl index 125361fbf734..579fd716d93a 100644 --- a/dom/webidl/TreeBoxObject.webidl +++ b/dom/webidl/TreeBoxObject.webidl @@ -1,5 +1,5 @@ - -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TreeColumn.webidl b/dom/webidl/TreeColumn.webidl index c65f73c949a7..05cda8f9bc66 100644 --- a/dom/webidl/TreeColumn.webidl +++ b/dom/webidl/TreeColumn.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeColumns.webidl b/dom/webidl/TreeColumns.webidl index 5958d1235229..c07da92f1b5a 100644 --- a/dom/webidl/TreeColumns.webidl +++ b/dom/webidl/TreeColumns.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeContentView.webidl b/dom/webidl/TreeContentView.webidl index 954a826860d7..3859cff50256 100644 --- a/dom/webidl/TreeContentView.webidl +++ b/dom/webidl/TreeContentView.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeView.webidl b/dom/webidl/TreeView.webidl index 523cb9335655..09d7498d0715 100644 --- a/dom/webidl/TreeView.webidl +++ b/dom/webidl/TreeView.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeWalker.webidl b/dom/webidl/TreeWalker.webidl index 2cd302f00789..4bb0d98d39bf 100644 --- a/dom/webidl/TreeWalker.webidl +++ b/dom/webidl/TreeWalker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/U2F.webidl b/dom/webidl/U2F.webidl index 3ab3e3feffee..a954bc24ca9c 100644 --- a/dom/webidl/U2F.webidl +++ b/dom/webidl/U2F.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UDPMessageEvent.webidl b/dom/webidl/UDPMessageEvent.webidl index 862f719d087e..4fd3a0bf34bf 100644 --- a/dom/webidl/UDPMessageEvent.webidl +++ b/dom/webidl/UDPMessageEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UDPSocket.webidl b/dom/webidl/UDPSocket.webidl index da9b86ff4bd4..ef9c2cac92e0 100644 --- a/dom/webidl/UDPSocket.webidl +++ b/dom/webidl/UDPSocket.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UIEvent.webidl b/dom/webidl/UIEvent.webidl index 0f137796c006..bf37669efb1c 100644 --- a/dom/webidl/UIEvent.webidl +++ b/dom/webidl/UIEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/URL.webidl b/dom/webidl/URL.webidl index b04e8f58e7b4..d87b87d98688 100644 --- a/dom/webidl/URL.webidl +++ b/dom/webidl/URL.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/URLSearchParams.webidl b/dom/webidl/URLSearchParams.webidl index 2828d81ddd46..8faeea4aff1b 100644 --- a/dom/webidl/URLSearchParams.webidl +++ b/dom/webidl/URLSearchParams.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UserProximityEvent.webidl b/dom/webidl/UserProximityEvent.webidl index 671fc4625685..bf6182001405 100644 --- a/dom/webidl/UserProximityEvent.webidl +++ b/dom/webidl/UserProximityEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VRDisplay.webidl b/dom/webidl/VRDisplay.webidl index 43bcd3e00ebc..6cf46cd3d234 100644 --- a/dom/webidl/VRDisplay.webidl +++ b/dom/webidl/VRDisplay.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/VRDisplayEvent.webidl b/dom/webidl/VRDisplayEvent.webidl index 83d39e7cb73d..8efd994af253 100644 --- a/dom/webidl/VRDisplayEvent.webidl +++ b/dom/webidl/VRDisplayEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/VRServiceTest.webidl b/dom/webidl/VRServiceTest.webidl index fbca7df0badc..0e4e19cc02e8 100644 --- a/dom/webidl/VRServiceTest.webidl +++ b/dom/webidl/VRServiceTest.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VTTCue.webidl b/dom/webidl/VTTCue.webidl index 4f8214c21d96..13b8bdc148b8 100644 --- a/dom/webidl/VTTCue.webidl +++ b/dom/webidl/VTTCue.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VTTRegion.webidl b/dom/webidl/VTTRegion.webidl index d665cfea4c83..8e0f255d06da 100644 --- a/dom/webidl/VTTRegion.webidl +++ b/dom/webidl/VTTRegion.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ValidityState.webidl b/dom/webidl/ValidityState.webidl index 7e99870e9ec3..5be610f150b5 100644 --- a/dom/webidl/ValidityState.webidl +++ b/dom/webidl/ValidityState.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoPlaybackQuality.webidl b/dom/webidl/VideoPlaybackQuality.webidl index abbe8d19a680..8fc4faeebd74 100644 --- a/dom/webidl/VideoPlaybackQuality.webidl +++ b/dom/webidl/VideoPlaybackQuality.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoStreamTrack.webidl b/dom/webidl/VideoStreamTrack.webidl index b194d5c9fae1..badae090e3b5 100644 --- a/dom/webidl/VideoStreamTrack.webidl +++ b/dom/webidl/VideoStreamTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoTrack.webidl b/dom/webidl/VideoTrack.webidl index 7f5974f21204..22ed1f5048e7 100644 --- a/dom/webidl/VideoTrack.webidl +++ b/dom/webidl/VideoTrack.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoTrackList.webidl b/dom/webidl/VideoTrackList.webidl index 144120226c4c..c111c41b3d10 100644 --- a/dom/webidl/VideoTrackList.webidl +++ b/dom/webidl/VideoTrackList.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VisualViewport.webidl b/dom/webidl/VisualViewport.webidl index 25c25cd1897c..289e78a7310c 100644 --- a/dom/webidl/VisualViewport.webidl +++ b/dom/webidl/VisualViewport.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WaveShaperNode.webidl b/dom/webidl/WaveShaperNode.webidl index 0bea44c8ca77..ac07214dd0f3 100644 --- a/dom/webidl/WaveShaperNode.webidl +++ b/dom/webidl/WaveShaperNode.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebAuthentication.webidl b/dom/webidl/WebAuthentication.webidl index 503c973f0b0d..7e18c2a367d4 100644 --- a/dom/webidl/WebAuthentication.webidl +++ b/dom/webidl/WebAuthentication.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebComponents.webidl b/dom/webidl/WebComponents.webidl index 23343fd8d932..9e946aa99594 100644 --- a/dom/webidl/WebComponents.webidl +++ b/dom/webidl/WebComponents.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebGLContextEvent.webidl b/dom/webidl/WebGLContextEvent.webidl index 8b227da72964..ec89af14181e 100644 --- a/dom/webidl/WebGLContextEvent.webidl +++ b/dom/webidl/WebGLContextEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebGPUExtras.webidl b/dom/webidl/WebGPUExtras.webidl index ad38d509b893..32831567fc3f 100644 --- a/dom/webidl/WebGPUExtras.webidl +++ b/dom/webidl/WebGPUExtras.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebKitCSSMatrix.webidl b/dom/webidl/WebKitCSSMatrix.webidl index a81381b06c24..3b576287cfd8 100644 --- a/dom/webidl/WebKitCSSMatrix.webidl +++ b/dom/webidl/WebKitCSSMatrix.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebSocket.webidl b/dom/webidl/WebSocket.webidl index d656baf7fb09..11d6e132e00c 100644 --- a/dom/webidl/WebSocket.webidl +++ b/dom/webidl/WebSocket.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebrtcDeprecated.webidl b/dom/webidl/WebrtcDeprecated.webidl index bd939ba8ceec..a1d9d226494e 100644 --- a/dom/webidl/WebrtcDeprecated.webidl +++ b/dom/webidl/WebrtcDeprecated.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebrtcGlobalInformation.webidl b/dom/webidl/WebrtcGlobalInformation.webidl index cdda0993d101..f730f9c34cb2 100644 --- a/dom/webidl/WebrtcGlobalInformation.webidl +++ b/dom/webidl/WebrtcGlobalInformation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WheelEvent.webidl b/dom/webidl/WheelEvent.webidl index 0c89bc73eee0..36b06eb6a786 100644 --- a/dom/webidl/WheelEvent.webidl +++ b/dom/webidl/WheelEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WidevineCDMManifest.webidl b/dom/webidl/WidevineCDMManifest.webidl index 6d6f36f32473..5b4a7dad9228 100644 --- a/dom/webidl/WidevineCDMManifest.webidl +++ b/dom/webidl/WidevineCDMManifest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl index 6ca2c8e2ab28..79896b35e211 100644 --- a/dom/webidl/Window.webidl +++ b/dom/webidl/Window.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WindowOrWorkerGlobalScope.webidl b/dom/webidl/WindowOrWorkerGlobalScope.webidl index 32e9966553de..cabbde09d036 100644 --- a/dom/webidl/WindowOrWorkerGlobalScope.webidl +++ b/dom/webidl/WindowOrWorkerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WindowRoot.webidl b/dom/webidl/WindowRoot.webidl index 0ddb1a9fb685..826581fe73f0 100644 --- a/dom/webidl/WindowRoot.webidl +++ b/dom/webidl/WindowRoot.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Worker.webidl b/dom/webidl/Worker.webidl index b4ce05003fc7..12be666310ad 100644 --- a/dom/webidl/Worker.webidl +++ b/dom/webidl/Worker.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerDebuggerGlobalScope.webidl b/dom/webidl/WorkerDebuggerGlobalScope.webidl index 16850589a61c..352345d6f7a1 100644 --- a/dom/webidl/WorkerDebuggerGlobalScope.webidl +++ b/dom/webidl/WorkerDebuggerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/WorkerGlobalScope.webidl b/dom/webidl/WorkerGlobalScope.webidl index 9b4342ed8aec..72a6750f2a66 100644 --- a/dom/webidl/WorkerGlobalScope.webidl +++ b/dom/webidl/WorkerGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerLocation.webidl b/dom/webidl/WorkerLocation.webidl index 23fc478d8060..1ac648d63732 100644 --- a/dom/webidl/WorkerLocation.webidl +++ b/dom/webidl/WorkerLocation.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerNavigator.webidl b/dom/webidl/WorkerNavigator.webidl index 5cfa2eec3791..6211e1dd0b34 100644 --- a/dom/webidl/WorkerNavigator.webidl +++ b/dom/webidl/WorkerNavigator.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Worklet.webidl b/dom/webidl/Worklet.webidl index 7b22874e48f8..402926eda86a 100644 --- a/dom/webidl/Worklet.webidl +++ b/dom/webidl/Worklet.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkletGlobalScope.webidl b/dom/webidl/WorkletGlobalScope.webidl index c4b684d20685..48a11f92625c 100644 --- a/dom/webidl/WorkletGlobalScope.webidl +++ b/dom/webidl/WorkletGlobalScope.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLDocument.webidl b/dom/webidl/XMLDocument.webidl index 1db8952ad554..889d4cfcd3cb 100644 --- a/dom/webidl/XMLDocument.webidl +++ b/dom/webidl/XMLDocument.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequest.webidl b/dom/webidl/XMLHttpRequest.webidl index 2814e57789fe..7681d08ea3b8 100644 --- a/dom/webidl/XMLHttpRequest.webidl +++ b/dom/webidl/XMLHttpRequest.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequestEventTarget.webidl b/dom/webidl/XMLHttpRequestEventTarget.webidl index 035da04ccd0f..96afd86d9add 100644 --- a/dom/webidl/XMLHttpRequestEventTarget.webidl +++ b/dom/webidl/XMLHttpRequestEventTarget.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequestUpload.webidl b/dom/webidl/XMLHttpRequestUpload.webidl index cbb8728b7a4a..65cd306aeada 100644 --- a/dom/webidl/XMLHttpRequestUpload.webidl +++ b/dom/webidl/XMLHttpRequestUpload.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLSerializer.webidl b/dom/webidl/XMLSerializer.webidl index c337ba45113c..63dcfca12071 100644 --- a/dom/webidl/XMLSerializer.webidl +++ b/dom/webidl/XMLSerializer.webidl @@ -1,3 +1,5 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathEvaluator.webidl b/dom/webidl/XPathEvaluator.webidl index 636048757bbc..da8e842b12b5 100644 --- a/dom/webidl/XPathEvaluator.webidl +++ b/dom/webidl/XPathEvaluator.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathExpression.webidl b/dom/webidl/XPathExpression.webidl index 90bc603f82e1..f0c2ad1968e6 100644 --- a/dom/webidl/XPathExpression.webidl +++ b/dom/webidl/XPathExpression.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathNSResolver.webidl b/dom/webidl/XPathNSResolver.webidl index 6309ff38c1c6..62ed6369bace 100644 --- a/dom/webidl/XPathNSResolver.webidl +++ b/dom/webidl/XPathNSResolver.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathResult.webidl b/dom/webidl/XPathResult.webidl index d50063771d62..a3667bb0b72a 100644 --- a/dom/webidl/XPathResult.webidl +++ b/dom/webidl/XPathResult.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XSLTProcessor.webidl b/dom/webidl/XSLTProcessor.webidl index e183bc877d8c..82d74bf9947b 100644 --- a/dom/webidl/XSLTProcessor.webidl +++ b/dom/webidl/XSLTProcessor.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/XULCommandEvent.webidl b/dom/webidl/XULCommandEvent.webidl index 898f221ade82..48614f112470 100644 --- a/dom/webidl/XULCommandEvent.webidl +++ b/dom/webidl/XULCommandEvent.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULDocument.webidl b/dom/webidl/XULDocument.webidl index 523d4a18fa8a..e40fe4220dd4 100644 --- a/dom/webidl/XULDocument.webidl +++ b/dom/webidl/XULDocument.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULElement.webidl b/dom/webidl/XULElement.webidl index 3841c447ad96..d3f7cf61f306 100644 --- a/dom/webidl/XULElement.webidl +++ b/dom/webidl/XULElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULPopupElement.webidl b/dom/webidl/XULPopupElement.webidl index a6e5b7b2dcff..7933b103111a 100644 --- a/dom/webidl/XULPopupElement.webidl +++ b/dom/webidl/XULPopupElement.webidl @@ -1,4 +1,5 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ From bf250afcd0dbdac99040582137ca70e566e3dab4 Mon Sep 17 00:00:00 2001 From: Michael Cooper Date: Thu, 13 Sep 2018 19:50:21 +0000 Subject: [PATCH 11/40] Bug 1447499 - Simplify about:studies code r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D5480 --HG-- extra : moz-landing-system : lando --- .../content/about-studies/about-studies.css | 8 +- .../content/about-studies/about-studies.html | 2 - .../content/about-studies/about-studies.js | 238 ++++++++++-------- .../normandy/content/about-studies/common.js | 139 ---------- .../content/about-studies/img/shield-logo.png | Bin 5188 -> 0 bytes .../content/about-studies/shield-studies.js | 207 --------------- .../test/browser/browser_about_studies.js | 4 +- 7 files changed, 143 insertions(+), 455 deletions(-) delete mode 100644 toolkit/components/normandy/content/about-studies/common.js delete mode 100644 toolkit/components/normandy/content/about-studies/img/shield-logo.png delete mode 100644 toolkit/components/normandy/content/about-studies/shield-studies.js diff --git a/toolkit/components/normandy/content/about-studies/about-studies.css b/toolkit/components/normandy/content/about-studies/about-studies.css index d52f797b9c34..14c44caece2f 100644 --- a/toolkit/components/normandy/content/about-studies/about-studies.css +++ b/toolkit/components/normandy/content/about-studies/about-studies.css @@ -30,11 +30,11 @@ button > .button-box { } .about-studies-container { - display: flex; - flex-direction: row; font-size: 1.25rem; min-height: 100%; width: 100%; + max-width: 960px; + margin: 0 auto; } #categories { @@ -50,10 +50,6 @@ button > .button-box { flex-direction: row; } -.main-content { - flex: 1; -} - .info-box { margin-bottom: 10px; text-align: center; diff --git a/toolkit/components/normandy/content/about-studies/about-studies.html b/toolkit/components/normandy/content/about-studies/about-studies.html index edb02a95f0f4..0de72d4b186f 100644 --- a/toolkit/components/normandy/content/about-studies/about-studies.html +++ b/toolkit/components/normandy/content/about-studies/about-studies.html @@ -17,8 +17,6 @@ - - diff --git a/toolkit/components/normandy/content/about-studies/about-studies.js b/toolkit/components/normandy/content/about-studies/about-studies.js index dc5d63b61b28..dfaba1b34aeb 100644 --- a/toolkit/components/normandy/content/about-studies/about-studies.js +++ b/toolkit/components/normandy/content/about-studies/about-studies.js @@ -1,23 +1,24 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ + "use strict"; -/* global classnames PropTypes r React ReactDOM remoteValues ShieldStudies */ +/* global classnames PropTypes React ReactDOM */ /** - * Mapping of pages displayed on the sidebar. Keys are the value used in the - * URL hash to identify the current page. - * - * Pages will appear in the sidebar in the order they are defined here. If the - * URL doesn't contain a hash, the first page will be displayed in the content area. + * Shorthand for creating elements (to avoid using a JSX preprocessor) */ -const PAGES = new Map([ - ["shieldStudies", { - name: "title", - component: ShieldStudies, - icon: "resource://normandy-content/about-studies/img/shield-logo.png", - }], -]); +const r = React.createElement; + +/** + * Dispatches a page event to the privileged frame script for this tab. + * @param {String} action + * @param {Object} data + */ +function sendPageEvent(action, data) { + const event = new CustomEvent("ShieldPageEvent", { bubbles: true, detail: { action, data } }); + document.dispatchEvent(event); +} /** * Handle basic layout and routing within about:studies. @@ -26,133 +27,172 @@ class AboutStudies extends React.Component { constructor(props) { super(props); - let hash = new URL(window.location).hash.slice(1); - if (!PAGES.has(hash)) { - hash = "shieldStudies"; - } - - this.state = { - currentPageId: hash, + this.remoteValueNameMap = { + StudyList: "addonStudies", + ShieldLearnMoreHref: "learnMoreHref", + StudiesEnabled: "studiesEnabled", + ShieldTranslations: "translations", }; - this.handleEvent = this.handleEvent.bind(this); + this.state = {}; + for (const stateName of Object.values(this.remoteValueNameMap)) { + this.state[stateName] = null; + } } - componentDidMount() { - remoteValues.shieldTranslations.subscribe(this); - window.addEventListener("hashchange", this); + componentWillMount() { + for (const remoteName of Object.keys(this.remoteValueNameMap)) { + document.addEventListener(`ReceiveRemoteValue:${remoteName}`, this); + sendPageEvent(`GetRemoteValue:${remoteName}`); + } } componentWillUnmount() { - remoteValues.shieldTranslations.unsubscribe(this); - window.removeEventListener("hashchange", this); - } - - receiveRemoteValue(name, value) { - switch (name) { - case "ShieldTranslations": { - this.setState({ translations: value }); - break; - } - default: { - console.error(`Unknown remote value ${name}`); - } + for (const remoteName of Object.keys(this.remoteValueNameMap)) { + document.removeEventListener(`ReceiveRemoteValue:${remoteName}`, this); } } - handleEvent(event) { - const newHash = new URL(event.newURL).hash.slice(1); - if (PAGES.has(newHash)) { - this.setState({currentPageId: newHash}); + /** Event handle to receive remote values from documentAddEventListener */ + handleEvent({ type, detail: value }) { + const prefix = "ReceiveRemoteValue:"; + if (type.startsWith(prefix)) { + const name = type.substring(prefix.length); + this.setState({ [this.remoteValueNameMap[name]]: value }); } } render() { - const currentPageId = this.state.currentPageId; - const pageEntries = Array.from(PAGES.entries()); - const currentPage = PAGES.get(currentPageId); - const { translations } = this.state; + const { translations, learnMoreHref, studiesEnabled, addonStudies } = this.state; + + // Wait for all values to be loaded before rendering. Some of the values may + // be falsey, so an explicit null check is needed. + if (Object.values(this.state).some(v => v === null)) { + return null; + } return ( - r("div", {className: "about-studies-container"}, - translations && r(Sidebar, {}, - pageEntries.map(([id, page]) => ( - r(SidebarItem, { - key: id, - pageId: id, - selected: id === currentPageId, - page, - translations, - }) - )), - ), - r(Content, {}, - translations && currentPage && r(currentPage.component, {translations}) - ), + r("div", { className: "about-studies-container main-content" }, + r(WhatsThisBox, { translations, learnMoreHref, studiesEnabled }), + r(StudyList, { translations, addonStudies }), ) ); } } -class Sidebar extends React.Component { +/** + * Explains the contents of the page, and offers a way to learn more and update preferences. + */ +class WhatsThisBox extends React.Component { + handleUpdateClick() { + sendPageEvent("NavigateToDataPreferences"); + } + render() { - return r("ul", {id: "categories"}, this.props.children); + const { learnMoreHref, studiesEnabled, translations } = this.props; + + return ( + r("div", { className: "info-box" }, + r("div", { className: "info-box-content" }, + r("span", {}, + studiesEnabled ? translations.enabledList : translations.disabledList, + ), + r("a", { id: "shield-studies-learn-more", href: learnMoreHref }, translations.learnMore), + + r("button", { id: "shield-studies-update-preferences", onClick: this.handleUpdateClick }, + r("div", { className: "button-box" }, + navigator.platform.includes("Win") ? translations.updateButtonWin : translations.updateButtonUnix + ), + ) + ) + ) + ); } } -Sidebar.propTypes = { - children: PropTypes.node, + +/** + * Shows a list of studies, with an option to end in-progress ones. + */ +class StudyList extends React.Component { + render() { + const { addonStudies, translations } = this.props; + + if (!addonStudies.length) { + return r("p", { className: "study-list-info" }, translations.noStudies); + } + + addonStudies.sort((a, b) => { + if (a.active !== b.active) { + return a.active ? -1 : 1; + } + return b.studyStartDate - a.studyStartDate; + }); + + return ( + r("ul", { className: "study-list" }, + addonStudies.map(study => ( + r(StudyListItem, { key: study.name, study, translations }) + )) + ) + ); + } +} +StudyList.propTypes = { + addonStudies: PropTypes.array.isRequired, translations: PropTypes.object.isRequired, }; -class SidebarItem extends React.Component { +/** + * Details about an individual study, with an option to end it if it is active. + */ +class StudyListItem extends React.Component { constructor(props) { super(props); - this.handleClick = this.handleClick.bind(this); + this.handleClickRemove = this.handleClickRemove.bind(this); } - handleClick() { - window.location = `#${this.props.pageId}`; + handleClickRemove() { + sendPageEvent("RemoveStudy", { recipeId: this.props.study.recipeId, reason: "individual-opt-out" }); } render() { - const { page, selected, translations } = this.props; + const { study, translations } = this.props; return ( r("li", { - className: classnames("category", {selected}), - onClick: this.handleClick, + className: classnames("study", { disabled: !study.active }), + "data-study-name": study.name, }, - page.icon && r("img", {className: "category-icon", src: page.icon}), - r("span", {className: "category-name"}, translations[page.name]), - ) - ); - } -} -SidebarItem.propTypes = { - pageId: PropTypes.string.isRequired, - page: PropTypes.shape({ - icon: PropTypes.string, - name: PropTypes.string.isRequired, - }).isRequired, - selected: PropTypes.bool, - translations: PropTypes.object.isRequired, -}; - -class Content extends React.Component { - render() { - return ( - r("div", {className: "main-content"}, - r("div", {className: "content-box"}, - this.props.children, + r("div", { className: "study-icon" }, + study.name.slice(0, 1) + ), + r("div", { className: "study-details" }, + r("div", { className: "study-name" }, study.name), + r("div", { className: "study-description", title: study.description }, + r("span", { className: "study-status" }, study.active ? translations.activeStatus : translations.completeStatus), + r("span", {}, "\u2022"), // • + r("span", {}, study.description), + ), + ), + r("div", { className: "study-actions" }, + study.active && + r("button", { className: "remove-button", onClick: this.handleClickRemove }, + r("div", { className: "button-box" }, + translations.removeButton + ), + ) ), ) ); } } -Content.propTypes = { - children: PropTypes.node, +StudyListItem.propTypes = { + study: PropTypes.shape({ + recipeId: PropTypes.number.isRequired, + name: PropTypes.string.isRequired, + active: PropTypes.boolean, + description: PropTypes.string.isRequired, + }).isRequired, + translations: PropTypes.object.isRequired, }; -ReactDOM.render( - r(AboutStudies), - document.getElementById("app"), -); +ReactDOM.render(r(AboutStudies), document.getElementById("app")); diff --git a/toolkit/components/normandy/content/about-studies/common.js b/toolkit/components/normandy/content/about-studies/common.js deleted file mode 100644 index b2b25077d6e9..000000000000 --- a/toolkit/components/normandy/content/about-studies/common.js +++ /dev/null @@ -1,139 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ -"use strict"; -/* eslint-disable no-unused-vars */ -/* global PropTypes React */ - -/** - * Shorthand for creating elements (to avoid using a JSX preprocessor) - */ -const r = React.createElement; - -/** - * Information box used at the top of listings. - */ -window.InfoBox = class InfoBox extends React.Component { - render() { - return ( - r("div", {className: "info-box"}, - r("div", {className: "info-box-content"}, - this.props.children, - ), - ) - ); - } -}; -window.InfoBox.propTypes = { - children: PropTypes.node, -}; - -/** - * Button using in-product styling. - */ -window.FxButton = class FxButton extends React.Component { - render() { - return ( - r("button", Object.assign({}, this.props, {children: undefined}), - r("div", {className: "button-box"}, - this.props.children, - ), - ) - ); - } -}; -window.FxButton.propTypes = { - children: PropTypes.node, -}; - -/** - * Wrapper class for a value that is provided by the frame script. - * - * Emits a "GetRemoteValue:{name}" page event on load to fetch the initial - * value, and listens for "ReceiveRemoteValue:{name}" page callbacks to receive - * the value when it updates. - * - * @example - * const myRemoteValue = new RemoteValue("MyValue", 5); - * class MyComponent extends React.Component { - * constructor(props) { - * super(props); - * this.state = { - * myValue: null, - * }; - * } - * - * componentWillMount() { - * myRemoteValue.subscribe(this); - * } - * - * componentWillUnmount() { - * myRemoteValue.unsubscribe(this); - * } - * - * receiveRemoteValue(name, value) { - * this.setState({myValue: value}); - * } - * - * render() { - * return r("div", {}, this.state.myValue); - * } - * } - */ -class RemoteValue { - constructor(name, defaultValue = null) { - this.name = name; - this.handlers = []; - this.value = defaultValue; - - document.addEventListener(`ReceiveRemoteValue:${this.name}`, this); - sendPageEvent(`GetRemoteValue:${this.name}`); - } - - /** - * Subscribe to this value as it updates. Handlers are called with the current - * value immediately after subscribing. - * @param {Object} handler - * Object with a receiveRemoteValue(name, value) method that is called with - * the name and value of this RemoteValue when it is updated. - */ - subscribe(handler) { - this.handlers.push(handler); - handler.receiveRemoteValue(this.name, this.value); - } - - /** - * Remove a previously-registered handler. - * @param {Object} handler - */ - unsubscribe(handler) { - this.handlers = this.handlers.filter(h => h !== handler); - } - - handleEvent(event) { - this.value = event.detail; - for (const handler of this.handlers) { - handler.receiveRemoteValue(this.name, this.value); - } - } -} - -/** - * Collection of RemoteValue instances used within the page. - */ -const remoteValues = { - studyList: new RemoteValue("StudyList"), - shieldLearnMoreHref: new RemoteValue("ShieldLearnMoreHref"), - studiesEnabled: new RemoteValue("StudiesEnabled"), - shieldTranslations: new RemoteValue("ShieldTranslations"), -}; - -/** - * Dispatches a page event to the privileged frame script for this tab. - * @param {String} action - * @param {Object} data - */ -function sendPageEvent(action, data) { - const event = new CustomEvent("ShieldPageEvent", {bubbles: true, detail: {action, data}}); - document.dispatchEvent(event); -} diff --git a/toolkit/components/normandy/content/about-studies/img/shield-logo.png b/toolkit/components/normandy/content/about-studies/img/shield-logo.png deleted file mode 100644 index 83a19d6ac5b5e39493881fb814cac85ed0d6005a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5188 zcmV-K6uaw*P)W=DmRNIa1-K*f*=Bm!O#(#K1RaF?Xwzh_bh6c>e z&Oj6;9335@s;Uaz-CeL)EEpRfM<^J?sZ*!%_{n3`)z+c6w+A0Te#Gh1XXqC%U$l=5 zk95e2-0!g4`|9iKdt_M|A_=0{-qEq4V2hQhHi3^5D? zk|eh!{O*I779IzBKPQky$*-7$Lo369Zw`0wzsy;HThf~9`_2$ z%F2y3SYBFc<^|#E+S)p1W@b@dR)%|b?;WMnsl6{>zV5nRuDz1dl0C($?CJap&v9vj zAW>ai4cCziBt@E<02RmQcLQb$M%ptoGbj`aTqqRo)&=&|)YNo+{qlK;<+z?iBH14d z1gbcWLo$^@I-Q0n2*~Af(BBzwrr_V0P>m-TcpwPEeE<7M#N(i78nIXmx?qT+h-fTk z1m@E*xAj2wE?&I2;rIJxNs{D>igJY{$;`!zm$0+5gNccW{|&fYF4*n%Nsa8XfN?E3 zy6{&G_g;JWEj`Bn56oKTvHzcDP_g6;5_aX3XUNX;=nKjn!09j{BEln=FYA|0!Ig7LmV%8Dh7g!{Ewi@eY*yBJ$JxB+^lYwV&(8WnexRMj z5{Wn%);Fe9jo@o&CPLFVjk+>Ll&7gZlM>DdmA6#JAsAvxS|Kn{Rm$n|BbPZkJgo2E zzyI+f;L{fb?C<~Q|2H-^G}G1?QZ9;*kC^v?lhYZR(X*E01wL62jm*yip%-#62tqv- zs%fIx3GCd7G?zM>Dli;QnH?G0Q_JaLWauIyAZ~{9sR%UG3vsnAVw}dJQr;PAZ}HY4 zpn`TTT`I=@>$3qa2q-S^QcQZM*CsVT{p}xk=IcKu2WU?WLo4JY_jSol)Mkw|ujo%*2}^%e6OL=zV^4or5l$<*Gm1dVQ6JR@Vq1Kb z@zaE{ncdqDaj8^t-epa2UDy4J0Ap-k2tWkq9Bm&;rU$mm4>#`xs;!QCr)TY<9=|g$ z#0MtZ3F;18C!80CK0W|Ap8LMvVkbS=h&5h2O9}>p zCk{gF90Qh=16HhFyZO+wGx0zoM%{*1$-swS`&mB!_HT0ZpGdMj);f@JP8f$;9?|_+ zATeklN>;KV2difzup}#@2`+Lzu&Mv#_}dUOwR!2>8x#1zo?bJ7X|S}DcCm_Sfo#$c?~>~Cys_A3I!NL-TF z=U4$)W(_jd`cWjfg3;^?&Uw1nb9r;h&8vbPmT zM#f5ISPr$EvxbOH?Ytr&r97BXr4_vv0Lu(y$$(-I^mQib)nUZ*0j_S{V`4U;qL}z9 zv-X^y?xAbSNmqR+UcRrs%Ze3%FkZFAs-lrhSP{@PO}9|0>YZEuh>Vtc+(0{xfQnSp ziF!e=*F3=Pl~)1)@ZkCt`W}q4dM&a}c*OvULk^6US96=u3n@iF@7FS!x!@Qh)3vpB zMS%CdKQGm}5Cq6ZL$oR?YQzSCrI`_^9K7t_Tlw`bf5UHn`)i(i^ChGKoumMWl2)LJ zGWOig`u@0|hM;9ej8Al!0^84FFo|u`0TzxDXwv zE$m%>70-O{i~N57=iGU4kD-OYvS|?WfKp0XGk#$|Q4?!rbA|#D6)hKp8Dr-w0v>$e zfuop`y1i5bYYlq0qrqg4AY&i*qb~#}9+E(Yeu!MzyvDY9$1pmpu<9`dpq>hI9x4vT+^2P*<@-n{j%wr!Vv-Z`t~OM_^JkvtMl zWLN;=0*_`p>)=_BJRdsv!C#-ItM-crt}`_gLhO}rANvv=AQxKXvga+0n}{)!f?$je zGR7}+a(c?%-roL-fbzHQKXqLrT2iQeMO6#K+%mKokrEgk^#$sYQL#XR;}%|c<4v6I z!+(1<3*a`EWetBTt(YZCmLYbGCrp+WC}-MlNt#0 zM5d^!)Ey#4Y@KFRXHtBvbQ!R)kXedFqsR+H)QL{_cvXzLf>CuLu_rJ>tnVp+mx={;Bw;}V3U;Yw13$-mveKfQRg~cqHxjLzoj#jW4 z70C?PStsH5uw2&U1&oGw^3|Cy3yHC~HUnN5j7@N9?FeocZ0fr$+xreM*0w!2U!F+-+E0Xfi*&!p2P@0)8*1(L&R8siU>WKKe0T21wnzYIPfmRtAa~rXhKr zd)|FN#Z{G&t*ay^*J+egRHrIg1Gm$|N@<4U^Jf{1Cb{e82jL>f>4m=#i@|bk5gCK= zN%GUMdu)Kgh+T&~`|fYyo2TDSDwdXD#cVcd3(F&7(8T34$?GY0v{N|U1$3>7;&6%z zl^D#Pzi>V~F*$j?0amZ3Vioc;)mm+*q*3V*y!yq@VfXIc{ClHV$?=Ns+@DuH_*0A} zb~1lug=5oyCOrw+a)FYuE+;^x2AeE>q#8cH^^4E(nEO40yWZ+S(6&8JQ>H*f(x?p= z_1ke@*_U>u}=te0Hh+j<=px6#)BU8;Oh;z)1B@_tzNsB$z*m)i({ZK%|}1^ zY0jQrB01h7b?bFerQ&^bLz4=QcR%f0eD-NKGc$XYCw}y<%vCPXjAe;=+^kk~ij5Tp zVxyQ1xZUJEXja|4_h&EQ=hGjk2_Bi2_%GP2n9m|p>qch-i-8zt}`GM3X@Lv9lmn;igjbuA{o~?GT`MQz`pf?~Ka7#}~9E#Rx5Q#)e z(OB%HNc1iPByc0)@Ip8eKA~&6s6pwDv7tXn%V|))8o{Wj;IQFgHruGEjEuPnL>*}L zj%I4x5OmrG)XWn5M;}aPZjsAt$BD%}lFw;F$LnA(MNv(Rl8fp>2-Vjl8uoV5EA@I^ z+Kwl!x${*DtNf@bGZA0fU2sq*5uiZrS>Czu$+z$V#aU_N5pfOH<5h4Gy*qj)(+b}C3D z34^JqG=+t{q@Bq2?c0C4W5t4wShWY>-% z^4S{8e;KB!D>&Vzu&8+6n%L614dAfr-?mCk$C_o97IQ3Dr-{bA66m&^20MsxAPqxjWJ8QZG$bb>@gi7bWOU?n;-C&+bQzFcU&reGbIbHJkx2O0LmM_6sn=?< z09|Xc|2Es{8*`I6!N>1Wptp2M#C{_uzYJRA-)FgPHy+W?W$GNqW2p8TfG zo8BcBi#n}Xh9qM#?s?}uw7g|z|BxnsE{+Zp&~}Jd2I}aEa{c9+r>y;E8E$9qq&IRM8AWl7VC&4(#9mJ|Qu=B?^baGP?{A z5|c?^Uq8WMNbbFUylKW@dM&Ij-(bdftorP!l!O5dT|KrP*rRDOOQ!k%rw*RfBb0URXIa!1PZ> zWb=%UdD%KLfb^^63QB@wZGD|bJn|7Ql+6o_I>FnST_+&NbK~&1-BS1R^{;*X8yC)B ze5~Bw2rlLRKpI*<`NPeeIJSh}8KQr8nZ&IZ2o045ax^NSm>zuY0E%j$`dd=t3K^0; z*~i+YAZ=HJO*ci^G}J4GihL3NK^%6syWjou&wu{&pCS7b$K5bQR$Om@T&UeJ#8SEH z6d9|&?|tt(mdoXKTHOmdV#2{7ilfEBljk^e>@tNF2eBR(@tcZ-M)Ua7RoqbxuQPyA z^if?3Ql5#DpAJ#0Hi`AN**czPq(4cyQb#wNQoLimgG3_!_cy%ZjR!36v%0z}4&lZj z`?}5m`*Zi`;BIkoA^zFVe(vDn!op-M7PmXoQe+3bEUc_?=;Q^iOs`YT%l)#8aM~m| zP{r%^QCkjCT6IaLB9egN!3ZM*Jp_GT!MqSArrD%aDl*XDe{%1>y?bwe`#Ut`a$Dfj zJrGvD-T*nee}5q9Rk{JukA3W8f3rFm+Y*)s>`qyWaL|uoYRoUKabak=W@N|mZ$5wF|B`0xN@Lupw@qpr#Cs92vn4r^!{<#L6wvC)F1 zah|Yk+qR!es+4z#0iv<~E91XzfPE5jQW9t)uD+A*OaJu9p~J7eIy3W1>t}8WLXX!= z8>rPAVr=IYzLWlBgMxRG$)4KYy?1z<_0Jyft<~$T`MG&1W4mGVe`&xqOee=Ku&R$w zOuQkUNPO6;pP#w3xb#E|UYmpzMFQJBRwtE8MN*+i6j8fpCMPDoWK~vQ>>uba%JoyR zP^8_t41j-v0g9Z49XI82S<+wD>Q}zYswv)O!C>b?X5l_->udYg*4A(5a;eR9y7#b^ yxBp_v^j~|to(ooUmdt!c#3KpGXo|xBbo?uJ;RzJKF3R)(0000 { - if (a.active !== b.active) { - return a.active ? -1 : 1; - } - return b.studyStartDate - a.studyStartDate; - }); - - this.setState({studies}); - } else { - this.setState({studies: value}); - } - } - - render() { - const { studies } = this.state; - const { translations } = this.props; - - if (studies === null) { - // loading - return null; - } - - let info = null; - if (studies.length === 0) { - info = r("p", {className: "study-list-info"}, translations.noStudies); - } - - return ( - r("div", {}, - info, - r("ul", {className: "study-list"}, - this.state.studies.map(study => ( - r(StudyListItem, {key: study.name, study, translations}) - )) - ), - ) - ); - } -} - -class StudyListItem extends React.Component { - constructor(props) { - super(props); - this.handleClickRemove = this.handleClickRemove.bind(this); - } - - handleClickRemove() { - sendPageEvent("RemoveStudy", {recipeId: this.props.study.recipeId, reason: "individual-opt-out"}); - } - - render() { - const {study, translations} = this.props; - return ( - r("li", { - className: classnames("study", {disabled: !study.active}), - "data-study-name": study.name, - }, - r("div", {className: "study-icon"}, - study.name.slice(0, 1) - ), - r("div", {className: "study-details"}, - r("div", {className: "study-name"}, study.name), - r("div", {className: "study-description", title: study.description}, - r("span", {className: "study-status"}, study.active ? translations.activeStatus : translations.completeStatus), - r("span", {}, "\u2022"), // • - r("span", {}, study.description), - ), - ), - r("div", {className: "study-actions"}, - study.active && - r(FxButton, {className: "remove-button", onClick: this.handleClickRemove}, translations.removeButton), - ), - ) - ); - } -} -StudyListItem.propTypes = { - study: PropTypes.shape({ - recipeId: PropTypes.number.isRequired, - name: PropTypes.string.isRequired, - active: PropTypes.boolean, - description: PropTypes.string.isRequired, - }).isRequired, - translations: PropTypes.object.isRequired, -}; - -class WhatsThisBox extends React.Component { - constructor(props) { - super(props); - this.state = { - learnMoreHref: null, - studiesEnabled: null, - }; - } - - componentDidMount() { - remoteValues.shieldLearnMoreHref.subscribe(this); - remoteValues.studiesEnabled.subscribe(this); - } - - componentWillUnmount() { - remoteValues.shieldLearnMoreHref.unsubscribe(this); - remoteValues.studiesEnabled.unsubscribe(this); - } - - receiveRemoteValue(name, value) { - switch (name) { - case "ShieldLearnMoreHref": { - this.setState({ learnMoreHref: value }); - break; - } - case "StudiesEnabled": { - this.setState({ studiesEnabled: value }); - break; - } - default: { - console.error(`Unknown remote value ${name}`); - } - } - } - - render() { - const { learnMoreHref, studiesEnabled } = this.state; - const { translations } = this.props; - - let message = null; - - // studiesEnabled can be null, in which case do nothing - if (studiesEnabled === false) { - message = r("span", {}, translations.disabledList); - } else if (studiesEnabled === true) { - message = r("span", {}, translations.enabledList); - } - - const updateButtonKey = navigator.platform.includes("Win") ? "updateButtonWin" : "updateButtonUnix"; - - return ( - r(InfoBox, {}, - message, - r("a", {id: "shield-studies-learn-more", href: learnMoreHref}, translations.learnMore), - r(UpdatePreferencesButton, {}, translations[updateButtonKey]), - ) - ); - } -} diff --git a/toolkit/components/normandy/test/browser/browser_about_studies.js b/toolkit/components/normandy/test/browser/browser_about_studies.js index 96dc8a268893..d0098dad3094 100644 --- a/toolkit/components/normandy/test/browser/browser_about_studies.js +++ b/toolkit/components/normandy/test/browser/browser_about_studies.js @@ -183,7 +183,7 @@ decorate_task( await ContentTask.spawn(browser, null, async () => { const doc = content.document; - await ContentTaskUtils.waitForCondition(() => !!doc.querySelector(".info-box-content > span")); + await ContentTaskUtils.waitForCondition(() => doc.querySelector(".info-box-content > span")); is( doc.querySelector(".info-box-content > span").textContent, @@ -196,4 +196,4 @@ decorate_task( RecipeRunner.checkPrefs(); } } -); +).only(); From d15f0d0fa0087fe14c1bd5a2e145bc9ea7119d97 Mon Sep 17 00:00:00 2001 From: Michael Cooper Date: Thu, 13 Sep 2018 19:52:54 +0000 Subject: [PATCH 12/40] Bug 1447499 - Refactor test helper PreferenceExperiments.withMockExperiment to work like AddonStudies.withStudies. r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D5609 --HG-- extra : moz-landing-system : lando --- .../normandy/content/AboutPages.jsm | 2 +- .../normandy/lib/PreferenceExperiments.jsm | 49 ++- .../test/browser/browser_NormandyDriver.js | 2 +- .../browser/browser_PreferenceExperiments.js | 375 +++++++++--------- 4 files changed, 211 insertions(+), 217 deletions(-) diff --git a/toolkit/components/normandy/content/AboutPages.jsm b/toolkit/components/normandy/content/AboutPages.jsm index b87a215a6d54..e8aa14e63258 100644 --- a/toolkit/components/normandy/content/AboutPages.jsm +++ b/toolkit/components/normandy/content/AboutPages.jsm @@ -61,7 +61,7 @@ var AboutPages = { this.aboutStudies.registerParentListeners(); CleanupManager.addCleanupHandler(() => { - // Stop loading processs scripts and notify existing scripts to clean up. + // Stop loading process scripts and notify existing scripts to clean up. Services.ppmm.broadcastAsyncMessage("Shield:ShuttingDown"); Services.mm.broadcastAsyncMessage("Shield:ShuttingDown"); diff --git a/toolkit/components/normandy/lib/PreferenceExperiments.jsm b/toolkit/components/normandy/lib/PreferenceExperiments.jsm index deecdfaac315..709d2e545c84 100644 --- a/toolkit/components/normandy/lib/PreferenceExperiments.jsm +++ b/toolkit/components/normandy/lib/PreferenceExperiments.jsm @@ -90,14 +90,14 @@ const PreferenceBranchType = { /** * Asynchronously load the JSON file that stores experiment status in the profile. */ -let storePromise; +let gStorePromise; function ensureStorage() { - if (storePromise === undefined) { + if (gStorePromise === undefined) { const path = OS.Path.join(OS.Constants.Path.profileDir, EXPERIMENT_FILE); const storage = new JSONFile({path}); - storePromise = storage.load().then(() => storage); + gStorePromise = storage.load().then(() => storage); } - return storePromise; + return gStorePromise; } const log = LogManager.getLogger("preference-experiments"); @@ -248,23 +248,30 @@ var PreferenceExperiments = { * Test wrapper that temporarily replaces the stored experiment data with fake * data for testing. */ - withMockExperiments(testFunction) { - return async function inner(...args) { - const oldPromise = storePromise; - const mockExperiments = {}; - storePromise = Promise.resolve({ - data: mockExperiments, - saveSoon() { }, - }); - const oldObservers = experimentObservers; - experimentObservers = new Map(); - try { - await testFunction(...args, mockExperiments); - } finally { - storePromise = oldPromise; - PreferenceExperiments.stopAllObservers(); - experimentObservers = oldObservers; - } + withMockExperiments(mockExperiments = []) { + return function wrapper(testFunction) { + return async function wrappedTestFunction(...args) { + const data = {}; + + for (const exp of mockExperiments) { + data[exp.name] = exp; + } + + const oldPromise = gStorePromise; + gStorePromise = Promise.resolve({ + data, + saveSoon() { }, + }); + const oldObservers = experimentObservers; + experimentObservers = new Map(); + try { + await testFunction(...args, mockExperiments); + } finally { + gStorePromise = oldPromise; + PreferenceExperiments.stopAllObservers(); + experimentObservers = oldObservers; + } + }; }; }, diff --git a/toolkit/components/normandy/test/browser/browser_NormandyDriver.js b/toolkit/components/normandy/test/browser/browser_NormandyDriver.js index 6e540c0ddfd1..208ce5d9412c 100644 --- a/toolkit/components/normandy/test/browser/browser_NormandyDriver.js +++ b/toolkit/components/normandy/test/browser/browser_NormandyDriver.js @@ -173,7 +173,7 @@ decorate_task( decorate_task( withSandboxManager(Assert), withMockPreferences, - PreferenceExperiments.withMockExperiments, + PreferenceExperiments.withMockExperiments(), async function testPreferenceStudies(sandboxManager) { const driver = new NormandyDriver(sandboxManager); sandboxManager.cloneIntoGlobal("driver", driver, {cloneFunctions: true}); diff --git a/toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js b/toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js index 8fb84f429c82..313aa045e612 100644 --- a/toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js +++ b/toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js @@ -28,9 +28,8 @@ function experimentFactory(attrs) { // clearAllExperimentStorage decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test" })]), async function(experiments) { - experiments.test = experimentFactory({name: "test"}); ok(await PreferenceExperiments.has("test"), "Mock experiment is detected."); await PreferenceExperiments.clearAllExperimentStorage(); ok( @@ -42,10 +41,9 @@ decorate_task( // start should throw if an experiment with the given name already exists decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test" })]), withSendEventStub, async function(experiments, sendEventStub) { - experiments.test = experimentFactory({name: "test"}); await Assert.rejects( PreferenceExperiments.start({ name: "test", @@ -69,10 +67,9 @@ decorate_task( // start should throw if an experiment for the given preference is active decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test", preferenceName: "fake.preference" })]), withSendEventStub, async function(experiments, sendEventStub) { - experiments.test = experimentFactory({name: "test", preferenceName: "fake.preference"}); await Assert.rejects( PreferenceExperiments.start({ name: "different", @@ -96,7 +93,7 @@ decorate_task( // start should throw if an invalid preferenceBranchType is given decorate_task( - withMockExperiments, + withMockExperiments(), withSendEventStub, async function(experiments, sendEventStub) { await Assert.rejects( @@ -123,7 +120,7 @@ decorate_task( // start should save experiment data, modify the preference, and register a // watcher. decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, withStub(PreferenceExperiments, "startObserver"), withSendEventStub, @@ -139,7 +136,7 @@ decorate_task( preferenceBranchType: "default", preferenceType: "string", }); - ok("test" in experiments, "start saved the experiment"); + ok(await PreferenceExperiments.get("test"), "start saved the experiment"); ok( startObserverStub.calledWith("test", "fake.preference", "string", "newvalue"), "start registered an observer", @@ -156,7 +153,8 @@ decorate_task( preferenceBranchType: "default", }; const experiment = {}; - Object.keys(expectedExperiment).forEach(key => experiment[key] = experiments.test[key]); + const actualExperiment = await PreferenceExperiments.get("test"); + Object.keys(expectedExperiment).forEach(key => experiment[key] = actualExperiment[key]); Assert.deepEqual(experiment, expectedExperiment, "start saved the experiment"); is( @@ -179,7 +177,7 @@ decorate_task( // start should modify the user preference for the user branch type decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, withStub(PreferenceExperiments, "startObserver"), async function(experiments, mockPreferences, startObserver) { @@ -211,7 +209,8 @@ decorate_task( }; const experiment = {}; - Object.keys(expectedExperiment).forEach(key => experiment[key] = experiments.test[key]); + const actualExperiment = await PreferenceExperiments.get("test"); + Object.keys(expectedExperiment).forEach(key => experiment[key] = actualExperiment[key]); Assert.deepEqual(experiment, expectedExperiment, "start saved the experiment"); Assert.notEqual( @@ -254,7 +253,7 @@ decorate_task( // startObserver should throw if an observer for the experiment is already // active. decorate_task( - withMockExperiments, + withMockExperiments(), async function() { PreferenceExperiments.startObserver("test", "fake.preference", "string", "newvalue"); Assert.throws( @@ -269,7 +268,7 @@ decorate_task( // startObserver should register an observer that calls stop when a preference // changes from its experimental value. decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, async function(mockExperiments, mockPreferences) { const tests = [ @@ -300,7 +299,7 @@ decorate_task( ); decorate_task( - withMockExperiments, + withMockExperiments(), async function testHasObserver() { PreferenceExperiments.startObserver("test", "fake.preference", "string", "experimentValue"); @@ -316,7 +315,7 @@ decorate_task( // stopObserver should throw if there is no observer active for it to stop. decorate_task( - withMockExperiments, + withMockExperiments(), async function() { Assert.throws( () => PreferenceExperiments.stopObserver("neveractive", "another.fake", "othervalue"), @@ -328,7 +327,7 @@ decorate_task( // stopObserver should cancel an active observer. decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, async function(mockExperiments, mockPreferences) { const stop = sinon.stub(PreferenceExperiments, "stop"); @@ -357,7 +356,7 @@ decorate_task( // stopAllObservers decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, async function(mockExperiments, mockPreferences) { const stop = sinon.stub(PreferenceExperiments, "stop"); @@ -390,7 +389,7 @@ decorate_task( // markLastSeen should throw if it can't find a matching experiment decorate_task( - withMockExperiments, + withMockExperiments(), async function() { await Assert.rejects( PreferenceExperiments.markLastSeen("neveractive"), @@ -401,14 +400,13 @@ decorate_task( ); // markLastSeen should update the lastSeen date +const oldDate = new Date(1988, 10, 1).toJSON(); decorate_task( - withMockExperiments, - async function(experiments) { - const oldDate = new Date(1988, 10, 1).toJSON(); - experiments.test = experimentFactory({name: "test", lastSeen: oldDate}); + withMockExperiments([experimentFactory({ name: "test", lastSeen: oldDate })]), + async function([experiment]) { await PreferenceExperiments.markLastSeen("test"); Assert.notEqual( - experiments.test.lastSeen, + experiment.lastSeen, oldDate, "markLastSeen updated the experiment lastSeen date", ); @@ -417,7 +415,7 @@ decorate_task( // stop should throw if an experiment with the given name doesn't exist decorate_task( - withMockExperiments, + withMockExperiments(), withSendEventStub, async function(experiments, sendEventStub) { await Assert.rejects( @@ -436,10 +434,9 @@ decorate_task( // stop should throw if the experiment is already expired decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test", expired: true })]), withSendEventStub, async function(experiments, sendEventStub) { - experiments.test = experimentFactory({name: "test", expired: true}); await Assert.rejects( PreferenceExperiments.stop("test"), /already expired/, @@ -457,7 +454,18 @@ decorate_task( // stop should mark the experiment as expired, stop its observer, and revert the // preference value. decorate_task( - withMockExperiments, + withMockExperiments([ + experimentFactory({ + name: "test", + expired: false, + branch: "fakebranch", + preferenceName: "fake.preference", + preferenceValue: "experimentvalue", + preferenceType: "string", + previousPreferenceValue: "oldvalue", + preferenceBranchType: "default", + }), + ]), withMockPreferences, withSpy(PreferenceExperiments, "stopObserver"), withSendEventStub, @@ -468,21 +476,12 @@ decorate_task( mockPreferences.set(`${startupPrefs}.fake.preference`, "experimentvalue", "user"); mockPreferences.set("fake.preference", "experimentvalue", "default"); - experiments.test = experimentFactory({ - name: "test", - expired: false, - branch: "fakebranch", - preferenceName: "fake.preference", - preferenceValue: "experimentvalue", - preferenceType: "string", - previousPreferenceValue: "oldvalue", - preferenceBranchType: "default", - }); PreferenceExperiments.startObserver("test", "fake.preference", "string", "experimentvalue"); await PreferenceExperiments.stop("test", {reason: "test-reason"}); ok(stopObserverSpy.calledWith("test"), "stop removed an observer"); - is(experiments.test.expired, true, "stop marked the experiment as expired"); + const experiment = await PreferenceExperiments.get("test"); + is(experiment.expired, true, "stop marked the experiment as expired"); is( DefaultPreferences.get("fake.preference"), "oldvalue", @@ -495,7 +494,7 @@ decorate_task( Assert.deepEqual( sendEventStub.args, - [["unenroll", "preference_study", experiments.test.name, { + [["unenroll", "preference_study", "test", { didResetValue: "true", reason: "test-reason", branch: "fakebranch", @@ -509,7 +508,15 @@ decorate_task( // stop should also support user pref experiments decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + expired: false, + preferenceName: "fake.preference", + preferenceValue: "experimentvalue", + preferenceType: "string", + previousPreferenceValue: "oldvalue", + preferenceBranchType: "user", + })]), withMockPreferences, withStub(PreferenceExperiments, "stopObserver"), withStub(PreferenceExperiments, "hasObserver"), @@ -517,20 +524,12 @@ decorate_task( hasObserver.returns(true); mockPreferences.set("fake.preference", "experimentvalue", "user"); - experiments.test = experimentFactory({ - name: "test", - expired: false, - preferenceName: "fake.preference", - preferenceValue: "experimentvalue", - preferenceType: "string", - previousPreferenceValue: "oldvalue", - preferenceBranchType: "user", - }); PreferenceExperiments.startObserver("test", "fake.preference", "string", "experimentvalue"); await PreferenceExperiments.stop("test"); ok(stopObserver.calledWith("test"), "stop removed an observer"); - is(experiments.test.expired, true, "stop marked the experiment as expired"); + const experiment = await PreferenceExperiments.get("test"); + is(experiment.expired, true, "stop marked the experiment as expired"); is( Preferences.get("fake.preference"), "oldvalue", @@ -543,20 +542,19 @@ decorate_task( // stop should remove a preference that had no value prior to an experiment for user prefs decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + expired: false, + preferenceName: "fake.preference", + preferenceValue: "experimentvalue", + preferenceType: "string", + previousPreferenceValue: null, + preferenceBranchType: "user", + })]), withMockPreferences, async function(experiments, mockPreferences) { const stopObserver = sinon.stub(PreferenceExperiments, "stopObserver"); mockPreferences.set("fake.preference", "experimentvalue", "user"); - experiments.test = experimentFactory({ - name: "test", - expired: false, - preferenceName: "fake.preference", - preferenceValue: "experimentvalue", - preferenceType: "string", - previousPreferenceValue: null, - preferenceBranchType: "user", - }); await PreferenceExperiments.stop("test"); ok( @@ -570,22 +568,21 @@ decorate_task( // stop should not modify a preference if resetValue is false decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + expired: false, + branch: "fakebranch", + preferenceName: "fake.preference", + preferenceValue: "experimentvalue", + preferenceType: "string", + previousPreferenceValue: "oldvalue", + preferenceBranchType: "default", + })]), withMockPreferences, withStub(PreferenceExperiments, "stopObserver"), withSendEventStub, async function testStopReset(experiments, mockPreferences, stopObserverStub, sendEventStub) { mockPreferences.set("fake.preference", "customvalue", "default"); - experiments.test = experimentFactory({ - name: "test", - expired: false, - branch: "fakebranch", - preferenceName: "fake.preference", - preferenceValue: "experimentvalue", - preferenceType: "string", - previousPreferenceValue: "oldvalue", - preferenceBranchType: "default", - }); await PreferenceExperiments.stop("test", {reason: "test-reason", resetValue: false}); is( @@ -595,7 +592,7 @@ decorate_task( ); Assert.deepEqual( sendEventStub.args, - [["unenroll", "preference_study", experiments.test.name, { + [["unenroll", "preference_study", "test", { didResetValue: "false", reason: "test-reason", branch: "fakebranch", @@ -607,7 +604,7 @@ decorate_task( // get should throw if no experiment exists with the given name decorate_task( - withMockExperiments, + withMockExperiments(), async function() { await Assert.rejects( PreferenceExperiments.get("neverexisted"), @@ -619,29 +616,25 @@ decorate_task( // get decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test" })]), async function(experiments) { - const experiment = experimentFactory({name: "test"}); - experiments.test = experiment; - - const fetchedExperiment = await PreferenceExperiments.get("test"); - Assert.deepEqual(fetchedExperiment, experiment, "get fetches the correct experiment"); + const experiment = await PreferenceExperiments.get("test"); + is(experiment.name, "test", "get fetches the correct experiment"); // Modifying the fetched experiment must not edit the data source. - fetchedExperiment.name = "othername"; - is(experiments.test.name, "test", "get returns a copy of the experiment"); + experiment.name = "othername"; + const refetched = await PreferenceExperiments.get("test"); + is(refetched.name, "test", "get returns a copy of the experiment"); } ); // get all decorate_task( - withMockExperiments, - async function testGetAll(experiments) { - const experiment1 = experimentFactory({name: "experiment1"}); - const experiment2 = experimentFactory({name: "experiment2", disabled: true}); - experiments.experiment1 = experiment1; - experiments.experiment2 = experiment2; - + withMockExperiments([ + experimentFactory({ name: "experiment1", disabled: false }), + experimentFactory({ name: "experiment2", disabled: true }), + ]), + async function testGetAll([experiment1, experiment2]) { const fetchedExperiments = await PreferenceExperiments.getAll(); is(fetchedExperiments.length, 2, "getAll returns a list of all stored experiments"); Assert.deepEqual( @@ -663,28 +656,29 @@ decorate_task( // get all active decorate_task( - withMockExperiments, - withMockPreferences, - async function testGetAllActive(experiments) { - experiments.active = experimentFactory({ + withMockExperiments([ + experimentFactory({ name: "active", expired: false, - }); - experiments.inactive = experimentFactory({ + }), + experimentFactory({ name: "inactive", expired: true, - }); - - const activeExperiments = await PreferenceExperiments.getAllActive(); + }), + ]), + withMockPreferences, + async function testGetAllActive([activeExperiment, inactiveExperiment]) { + let allActiveExperiments = await PreferenceExperiments.getAllActive(); Assert.deepEqual( - activeExperiments, - [experiments.active], + allActiveExperiments, + [activeExperiment], "getAllActive only returns active experiments", ); - activeExperiments[0].name = "newfakename"; + allActiveExperiments[0].name = "newfakename"; + allActiveExperiments = await PreferenceExperiments.getAllActive(); Assert.notEqual( - experiments.active.name, + allActiveExperiments, "newfakename", "getAllActive returns copies of stored experiments", ); @@ -693,9 +687,8 @@ decorate_task( // has decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test" })]), async function(experiments) { - experiments.test = experimentFactory({name: "test"}); ok(await PreferenceExperiments.has("test"), "has returned true for a stored experiment"); ok(!(await PreferenceExperiments.has("missing")), "has returned false for a missing experiment"); } @@ -703,25 +696,22 @@ decorate_task( // init should register telemetry experiments decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + branch: "branch", + preferenceName: "fake.pref", + preferenceValue: "experiment value", + expired: false, + preferenceBranchType: "default", + })]), withMockPreferences, withStub(TelemetryEnvironment, "setExperimentActive"), withStub(PreferenceExperiments, "startObserver"), async function testInit(experiments, mockPreferences, setActiveStub, startObserverStub) { mockPreferences.set("fake.pref", "experiment value"); - - experiments.test = experimentFactory({ - name: "test", - branch: "branch", - preferenceName: "fake.pref", - preferenceValue: "experiment value", - expired: false, - preferenceBranchType: "default", - }); - await PreferenceExperiments.init(); ok( - setActiveStub.calledWith("test", "branch", {type: "normandy-exp"}), + setActiveStub.calledWith("test", "branch", { type: "normandy-exp" }), "Experiment is registered by init", ); }, @@ -729,24 +719,21 @@ decorate_task( // init should use the provided experiment type decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + branch: "branch", + preferenceName: "fake.pref", + preferenceValue: "experiment value", + experimentType: "pref-test", + })]), withMockPreferences, withStub(TelemetryEnvironment, "setExperimentActive"), withStub(PreferenceExperiments, "startObserver"), async function testInit(experiments, mockPreferences, setActiveStub, startObserverStub) { mockPreferences.set("fake.pref", "experiment value"); - - experiments.test = experimentFactory({ - name: "test", - branch: "branch", - preferenceName: "fake.pref", - preferenceValue: "experiment value", - experimentType: "pref-test", - }); - await PreferenceExperiments.init(); ok( - setActiveStub.calledWith("test", "branch", {type: "normandy-pref-test"}), + setActiveStub.calledWith("test", "branch", { type: "normandy-pref-test" }), "init should use the provided experiment type", ); }, @@ -754,7 +741,7 @@ decorate_task( // starting and stopping experiments should register in telemetry decorate_task( - withMockExperiments, + withMockExperiments(), withStub(TelemetryEnvironment, "setExperimentActive"), withStub(TelemetryEnvironment, "setExperimentInactive"), withSendEventStub, @@ -770,10 +757,10 @@ decorate_task( Assert.deepEqual( setActiveStub.getCall(0).args, - ["test", "branch", {type: "normandy-exp"}], + ["test", "branch", { type: "normandy-exp" }], "Experiment is registered by start()", ); - await PreferenceExperiments.stop("test", {reason: "test-reason"}); + await PreferenceExperiments.stop("test", { reason: "test-reason" }); Assert.deepEqual(setInactiveStub.args, [["test"]], "Experiment is unregistered by stop()"); Assert.deepEqual( @@ -796,7 +783,7 @@ decorate_task( // starting experiments should use the provided experiment type decorate_task( - withMockExperiments, + withMockExperiments(), withStub(TelemetryEnvironment, "setExperimentActive"), withStub(TelemetryEnvironment, "setExperimentInactive"), withSendEventStub, @@ -813,7 +800,7 @@ decorate_task( Assert.deepEqual( setActiveStub.getCall(0).args, - ["test", "branch", {type: "normandy-pref-test"}], + ["test", "branch", { type: "normandy-pref-test" }], "start() should register the experiment with the provided type", ); @@ -834,10 +821,9 @@ decorate_task( // Experiments shouldn't be recorded by init() in telemetry if they are expired decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "expired", branch: "branch", expired: true })]), withStub(TelemetryEnvironment, "setExperimentActive"), async function testInitTelemetryExpired(experiments, setActiveStub) { - experiments.experiment1 = experimentFactory({name: "expired", branch: "branch", expired: true}); await PreferenceExperiments.init(); ok(!setActiveStub.called, "Expired experiment is not registered by init"); }, @@ -845,17 +831,16 @@ decorate_task( // Experiments should end if the preference has been changed when init() is called decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + preferenceName: "fake.preference", + preferenceValue: "experiment value", + })]), withMockPreferences, withStub(PreferenceExperiments, "stop"), async function testInitChanges(experiments, mockPreferences, stopStub) { mockPreferences.set("fake.preference", "experiment value", "default"); - experiments.test = experimentFactory({ - name: "test", - preferenceName: "fake.preference", - preferenceValue: "experiment value", - }); - mockPreferences.set("fake.preference", "changed value"); + mockPreferences.set("fake.preference", "changed value", "user"); await PreferenceExperiments.init(); is(Preferences.get("fake.preference"), "changed value", "Preference value was not changed"); @@ -873,7 +858,11 @@ decorate_task( // init should register an observer for experiments decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + preferenceName: "fake.preference", + preferenceValue: "experiment value", + })]), withMockPreferences, withStub(PreferenceExperiments, "startObserver"), withStub(PreferenceExperiments, "stop"), @@ -882,11 +871,6 @@ decorate_task( stop.throws("Stop should not be called"); mockPreferences.set("fake.preference", "experiment value", "default"); is(Preferences.get("fake.preference"), "experiment value", "pref shouldn't have a user value"); - experiments.test = experimentFactory({ - name: "test", - preferenceName: "fake.preference", - preferenceValue: "experiment value", - }); await PreferenceExperiments.init(); ok(startObserver.calledOnce, "init should register an observer"); @@ -900,21 +884,24 @@ decorate_task( // saveStartupPrefs decorate_task( - withMockExperiments, + withMockExperiments([ + experimentFactory({ + name: "char", + preferenceName: `fake.char`, + preferenceValue: "string", + }), + experimentFactory({ + name: "int", + preferenceName: `fake.int`, + preferenceValue: 2, + }), + experimentFactory({ + name: "bool", + preferenceName: `fake.bool`, + preferenceValue: true, + }), + ]), async function testSaveStartupPrefs(experiments) { - const experimentPrefs = { - char: "string", - int: 2, - bool: true, - }; - - for (const [key, value] of Object.entries(experimentPrefs)) { - experiments[key] = experimentFactory({ - preferenceName: `fake.${key}`, - preferenceValue: value, - }); - } - Services.prefs.deleteBranch(startupPrefs); Services.prefs.setBoolPref(`${startupPrefs}.fake.old`, true); await PreferenceExperiments.saveStartupPrefs(); @@ -942,13 +929,12 @@ decorate_task( // saveStartupPrefs errors for invalid pref type decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + preferenceName: "fake.invalidValue", + preferenceValue: new Date(), + })]), async function testSaveStartupPrefsError(experiments) { - experiments.test = experimentFactory({ - preferenceName: "fake.invalidValue", - preferenceValue: new Date(), - }); - await Assert.rejects( PreferenceExperiments.saveStartupPrefs(), /invalid preference type/i, @@ -959,19 +945,21 @@ decorate_task( // saveStartupPrefs should not store values for user-branch recipes decorate_task( - withMockExperiments, - async function testSaveStartupPrefsUserBranch(experiments) { - experiments.defaultBranchRecipe = experimentFactory({ + withMockExperiments([ + experimentFactory({ + name: "defaultBranchRecipe", preferenceName: "fake.default", preferenceValue: "experiment value", branch: "default", - }); - experiments.userBranchRecipe = experimentFactory({ + }), + experimentFactory({ + name: "userBranchRecipe", preferenceName: "fake.user", preferenceValue: "experiment value", branch: "user", - }); - + }), + ]), + async function testSaveStartupPrefsUserBranch(experiments) { await PreferenceExperiments.saveStartupPrefs(); is( @@ -991,7 +979,7 @@ decorate_task( // test that default branch prefs restore to the right value if the default pref changes decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, withStub(PreferenceExperiments, "startObserver"), withStub(PreferenceExperiments, "stopObserver"), @@ -1039,7 +1027,7 @@ decorate_task( // test that default branch prefs restore to the right value if the preference is removed decorate_task( - withMockExperiments, + withMockExperiments(), withMockPreferences, withStub(PreferenceExperiments, "startObserver"), withStub(PreferenceExperiments, "stopObserver"), @@ -1086,13 +1074,12 @@ decorate_task( // stop should pass "unknown" to telemetry event for `reason` if none is specified decorate_task( - withMockExperiments, + withMockExperiments([experimentFactory({ name: "test", preferenceName: "fake.preference" })]), withMockPreferences, withStub(PreferenceExperiments, "stopObserver"), withSendEventStub, async function testStopUnknownReason(experiments, mockPreferences, stopObserverStub, sendEventStub) { mockPreferences.set("fake.preference", "default value", "default"); - experiments.test = experimentFactory({ name: "test", preferenceName: "fake.preference" }); await PreferenceExperiments.stop("test"); is( sendEventStub.getCall(0).args[3].reason, @@ -1104,14 +1091,16 @@ decorate_task( // stop should pass along the value for resetValue to Telemetry Events as didResetValue decorate_task( - withMockExperiments, + withMockExperiments([ + experimentFactory({ name: "test1", preferenceName: "fake.preference1" }), + experimentFactory({ name: "test2", preferenceName: "fake.preference2" }), + ]), withMockPreferences, withStub(PreferenceExperiments, "stopObserver"), withSendEventStub, async function testStopResetValue(experiments, mockPreferences, stopObserverStub, sendEventStub) { mockPreferences.set("fake.preference1", "default value", "default"); - experiments.test1 = experimentFactory({ name: "test1", preferenceName: "fake.preference1" }); - await PreferenceExperiments.stop("test1", {resetValue: true}); + await PreferenceExperiments.stop("test1", { resetValue: true }); is(sendEventStub.callCount, 1); is( sendEventStub.getCall(0).args[3].didResetValue, @@ -1120,8 +1109,7 @@ decorate_task( ); mockPreferences.set("fake.preference2", "default value", "default"); - experiments.test2 = experimentFactory({ name: "test2", preferenceName: "fake.preference2" }); - await PreferenceExperiments.stop("test2", {resetValue: false}); + await PreferenceExperiments.stop("test2", { resetValue: false }); is(sendEventStub.callCount, 2); is( sendEventStub.getCall(1).args[3].didResetValue, @@ -1136,20 +1124,19 @@ decorate_task( decorate_task( withMockPreferences, withSendEventStub, - withMockExperiments, + withMockExperiments([experimentFactory({ + name: "test", + expired: false, + branch: "fakebranch", + preferenceName: "fake.preference", + preferenceValue: "experimentvalue", + preferenceType: "string", + previousPreferenceValue: "oldvalue", + preferenceBranchType: "default", + })]), async function testPrefChangeEventTelemetry(mockPreferences, sendEventStub, mockExperiments) { is(Preferences.get("fake.preference"), null, "preference should start unset"); mockPreferences.set("fake.preference", "oldvalue", "default"); - mockExperiments.test = experimentFactory({ - name: "test", - expired: false, - branch: "fakebranch", - preferenceName: "fake.preference", - preferenceValue: "experimentvalue", - preferenceType: "string", - previousPreferenceValue: "oldvalue", - preferenceBranchType: "default", - }); PreferenceExperiments.startObserver("test", "fake.preference", "string", "experimentvalue"); // setting the preference on the user branch should trigger the observer to stop the experiment From 3c8bd4ab57e8d31d64ff90f07e556921f20ab3c9 Mon Sep 17 00:00:00 2001 From: Michael Cooper Date: Thu, 13 Sep 2018 19:53:19 +0000 Subject: [PATCH 13/40] Bug 1447499 - Add preference studies to about:studies r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D5481 --HG-- extra : moz-landing-system : lando --- .../normandy/content/AboutPages.jsm | 74 +++++++-- .../normandy/content/ShieldFrameChild.jsm | 24 ++- .../content/about-studies/about-studies.css | 31 +--- .../content/about-studies/about-studies.js | 157 +++++++++++++++--- .../test/browser/browser_AddonStudies.js | 20 +-- .../test/browser/browser_ShieldPreferences.js | 4 +- .../test/browser/browser_about_studies.js | 147 +++++++++++----- .../browser_actions_AddonStudyAction.js | 10 +- .../components/normandy/test/browser/head.js | 22 ++- .../chrome/global/aboutStudies.properties | 11 +- 10 files changed, 370 insertions(+), 130 deletions(-) diff --git a/toolkit/components/normandy/content/AboutPages.jsm b/toolkit/components/normandy/content/AboutPages.jsm index e8aa14e63258..76f6fde0fd3d 100644 --- a/toolkit/components/normandy/content/AboutPages.jsm +++ b/toolkit/components/normandy/content/AboutPages.jsm @@ -6,9 +6,10 @@ ChromeUtils.import("resource://gre/modules/Services.jsm"); ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm"); +ChromeUtils.defineModuleGetter(this, "AddonStudies", "resource://normandy/lib/AddonStudies.jsm"); ChromeUtils.defineModuleGetter(this, "AddonStudyAction", "resource://normandy/actions/AddonStudyAction.jsm"); ChromeUtils.defineModuleGetter(this, "CleanupManager", "resource://normandy/lib/CleanupManager.jsm"); -ChromeUtils.defineModuleGetter(this, "AddonStudies", "resource://normandy/lib/AddonStudies.jsm"); +ChromeUtils.defineModuleGetter(this, "PreferenceExperiments", "resource://normandy/lib/PreferenceExperiments.jsm"); ChromeUtils.defineModuleGetter(this, "RecipeRunner", "resource://normandy/lib/RecipeRunner.jsm"); var EXPORTED_SYMBOLS = ["AboutPages"]; @@ -95,8 +96,10 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { * Register listeners for messages from the content processes. */ registerParentListeners() { - Services.mm.addMessageListener("Shield:GetStudyList", this); - Services.mm.addMessageListener("Shield:RemoveStudy", this); + Services.mm.addMessageListener("Shield:GetAddonStudyList", this); + Services.mm.addMessageListener("Shield:GetPreferenceStudyList", this); + Services.mm.addMessageListener("Shield:RemoveAddonStudy", this); + Services.mm.addMessageListener("Shield:RemovePreferenceStudy", this); Services.mm.addMessageListener("Shield:OpenDataPreferences", this); Services.mm.addMessageListener("Shield:GetStudiesEnabled", this); }, @@ -105,8 +108,10 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { * Unregister listeners for messages from the content process. */ unregisterParentListeners() { - Services.mm.removeMessageListener("Shield:GetStudyList", this); - Services.mm.removeMessageListener("Shield:RemoveStudy", this); + Services.mm.removeMessageListener("Shield:GetAddonStudyList", this); + Services.mm.removeMessageListener("Shield:GetPreferenceStudyList", this); + Services.mm.removeMessageListener("Shield:RemoveAddonStudy", this); + Services.mm.removeMessageListener("Shield:RemovePreferenceStudy", this); Services.mm.removeMessageListener("Shield:OpenDataPreferences", this); Services.mm.removeMessageListener("Shield:GetStudiesEnabled", this); }, @@ -118,11 +123,17 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { */ receiveMessage(message) { switch (message.name) { - case "Shield:GetStudyList": - this.sendStudyList(message.target); + case "Shield:GetAddonStudyList": + this.sendAddonStudyList(message.target); break; - case "Shield:RemoveStudy": - this.removeStudy(message.data.recipeId, message.data.reason); + case "Shield:GetPreferenceStudyList": + this.sendPreferenceStudyList(message.target); + break; + case "Shield:RemoveAddonStudy": + this.removeAddonStudy(message.data.recipeId, message.data.reason); + break; + case "Shield:RemovePreferenceStudy": + this.removePreferenceStudy(message.data.experimentName, message.data.reason); break; case "Shield:OpenDataPreferences": this.openDataPreferences(); @@ -134,15 +145,15 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { }, /** - * Fetch a list of studies from storage and send it to the process that - * requested them. + * Fetch a list of add-on studies from storage and send it to the process + * that requested them. * @param {} target * XUL element for the tab containing the about:studies page * that requested a study list. */ - async sendStudyList(target) { + async sendAddonStudyList(target) { try { - target.messageManager.sendAsyncMessage("Shield:ReceiveStudyList", { + target.messageManager.sendAsyncMessage("Shield:ReceiveAddonStudyList", { studies: await AddonStudies.getAll(), }); } catch (err) { @@ -151,6 +162,24 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { } }, + /** + * Fetch a list of preference studies from storage and send it to the + * process that requested them. + * @param {} target + * XUL element for the tab containing the about:studies page + * that requested a study list. + */ + async sendPreferenceStudyList(target) { + try { + target.messageManager.sendAsyncMessage("Shield:ReceivePreferenceStudyList", { + studies: await PreferenceExperiments.getAll(), + }); + } catch (err) { + // The child process might be gone, so no need to throw here. + Cu.reportError(err); + } + }, + /** * Get if studies are enabled and send it to the process that * requested them. This has to be in the parent process, since @@ -174,19 +203,32 @@ XPCOMUtils.defineLazyGetter(this.AboutPages, "aboutStudies", () => { }, /** - * Disable an active study and remove its add-on. + * Disable an active add-on study and remove its add-on. * @param {String} studyName */ - async removeStudy(recipeId, reason) { + async removeAddonStudy(recipeId, reason) { const action = new AddonStudyAction(); await action.unenroll(recipeId, reason); // Update any open tabs with the new study list now that it has changed. - Services.mm.broadcastAsyncMessage("Shield:ReceiveStudyList", { + Services.mm.broadcastAsyncMessage("Shield:ReceiveAddonStudyList", { studies: await AddonStudies.getAll(), }); }, + /** + * Disable an active preference study + * @param {String} studyName + */ + async removePreferenceStudy(experimentName, reason) { + PreferenceExperiments.stop(experimentName, { reason }); + + // Update any open tabs with the new study list now that it has changed. + Services.mm.broadcastAsyncMessage("Shield:ReceivePreferenceStudyList", { + studies: await PreferenceExperiments.getAll(), + }); + }, + openDataPreferences() { const browserWindow = Services.wm.getMostRecentWindow("navigator:browser"); browserWindow.openPreferences("privacy-reports", {origin: "aboutStudies"}); diff --git a/toolkit/components/normandy/content/ShieldFrameChild.jsm b/toolkit/components/normandy/content/ShieldFrameChild.jsm index d73f5bf4f042..7abcf138c909 100644 --- a/toolkit/components/normandy/content/ShieldFrameChild.jsm +++ b/toolkit/components/normandy/content/ShieldFrameChild.jsm @@ -42,16 +42,23 @@ class ShieldFrameChild extends ActorChild { // We waited until after we received an event to register message listeners // in order to save resources for tabs that don't ever load about:studies. this.mm.addMessageListener("Shield:ShuttingDown", this); - this.mm.addMessageListener("Shield:ReceiveStudyList", this); + this.mm.addMessageListener("Shield:ReceiveAddonStudyList", this); + this.mm.addMessageListener("Shield:ReceivePreferenceStudyList", this); this.mm.addMessageListener("Shield:ReceiveStudiesEnabled", this); switch (event.detail.action) { // Actions that require the parent process - case "GetRemoteValue:StudyList": - this.mm.sendAsyncMessage("Shield:GetStudyList"); + case "GetRemoteValue:AddonStudyList": + this.mm.sendAsyncMessage("Shield:GetAddonStudyList"); break; - case "RemoveStudy": - this.mm.sendAsyncMessage("Shield:RemoveStudy", event.detail.data); + case "GetRemoteValue:PreferenceStudyList": + this.mm.sendAsyncMessage("Shield:GetPreferenceStudyList"); + break; + case "RemoveAddonStudy": + this.mm.sendAsyncMessage("Shield:RemoveAddonStudy", event.detail.data); + break; + case "RemovePreferenceStudy": + this.mm.sendAsyncMessage("Shield:RemovePreferenceStudy", event.detail.data); break; case "GetRemoteValue:StudiesEnabled": this.mm.sendAsyncMessage("Shield:GetStudiesEnabled"); @@ -89,8 +96,11 @@ class ShieldFrameChild extends ActorChild { */ receiveMessage(message) { switch (message.name) { - case "Shield:ReceiveStudyList": - this.triggerPageCallback("ReceiveRemoteValue:StudyList", message.data.studies); + case "Shield:ReceiveAddonStudyList": + this.triggerPageCallback("ReceiveRemoteValue:AddonStudyList", message.data.studies); + break; + case "Shield:ReceivePreferenceStudyList": + this.triggerPageCallback("ReceiveRemoteValue:PreferenceStudyList", message.data.studies); break; case "Shield:ReceiveStudiesEnabled": this.triggerPageCallback("ReceiveRemoteValue:StudiesEnabled", message.data.studiesEnabled); diff --git a/toolkit/components/normandy/content/about-studies/about-studies.css b/toolkit/components/normandy/content/about-studies/about-studies.css index 14c44caece2f..71fd7676eec1 100644 --- a/toolkit/components/normandy/content/about-studies/about-studies.css +++ b/toolkit/components/normandy/content/about-studies/about-studies.css @@ -31,25 +31,10 @@ button > .button-box { .about-studies-container { font-size: 1.25rem; - min-height: 100%; - width: 100%; max-width: 960px; margin: 0 auto; } -#categories { - flex: 0 0; - margin: 0; - min-width: 200px; - padding: 40px 0 0; -} - -#categories .category { - align-items: center; - display: flex; - flex-direction: row; -} - .info-box { margin-bottom: 10px; text-align: center; @@ -156,23 +141,21 @@ button > .button-box { .study-name { font-weight: bold; margin-bottom: 0.3em; + white-space: pre; } -.study-description { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: 100%; -} - -.study-description > * { +.study-header > * { margin-right: 5px; } -.study-description > *:last-child { +.study-header > *:last-child { margin-right: 0; } +.study-description code { + font: italic 1.0rem 'Fira Mono', 'mono', 'monospace'; +} + .study-actions { flex: 0 0; } diff --git a/toolkit/components/normandy/content/about-studies/about-studies.js b/toolkit/components/normandy/content/about-studies/about-studies.js index dfaba1b34aeb..8ff2d0247b9f 100644 --- a/toolkit/components/normandy/content/about-studies/about-studies.js +++ b/toolkit/components/normandy/content/about-studies/about-studies.js @@ -28,7 +28,8 @@ class AboutStudies extends React.Component { super(props); this.remoteValueNameMap = { - StudyList: "addonStudies", + AddonStudyList: "addonStudies", + PreferenceStudyList: "prefStudies", ShieldLearnMoreHref: "learnMoreHref", StudiesEnabled: "studiesEnabled", ShieldTranslations: "translations", @@ -63,7 +64,7 @@ class AboutStudies extends React.Component { } render() { - const { translations, learnMoreHref, studiesEnabled, addonStudies } = this.state; + const { translations, learnMoreHref, studiesEnabled, addonStudies, prefStudies } = this.state; // Wait for all values to be loaded before rendering. Some of the values may // be falsey, so an explicit null check is needed. @@ -74,7 +75,7 @@ class AboutStudies extends React.Component { return ( r("div", { className: "about-studies-container main-content" }, r(WhatsThisBox, { translations, learnMoreHref, studiesEnabled }), - r(StudyList, { translations, addonStudies }), + r(StudyList, { translations, addonStudies, prefStudies }), ) ); } @@ -115,24 +116,55 @@ class WhatsThisBox extends React.Component { */ class StudyList extends React.Component { render() { - const { addonStudies, translations } = this.props; + const { addonStudies, prefStudies, translations } = this.props; - if (!addonStudies.length) { + if (!addonStudies.length && !prefStudies.length) { return r("p", { className: "study-list-info" }, translations.noStudies); } - addonStudies.sort((a, b) => { - if (a.active !== b.active) { - return a.active ? -1 : 1; + const activeStudies = []; + const inactiveStudies = []; + + // Since we are modifying the study objects, it is polite to make copies + for (const study of addonStudies) { + const clonedStudy = Object.assign({}, study, {type: "addon", sortDate: study.studyStartDate}); + if (study.active) { + activeStudies.push(clonedStudy); + } else { + inactiveStudies.push(clonedStudy); } - return b.studyStartDate - a.studyStartDate; - }); + } + + for (const study of prefStudies) { + const clonedStudy = Object.assign({}, study, {type: "pref", sortDate: new Date(study.lastSeen)}); + if (study.expired) { + inactiveStudies.push(clonedStudy); + } else { + activeStudies.push(clonedStudy); + } + } + + activeStudies.sort((a, b) => b.sortDate - a.sortDate); + inactiveStudies.sort((a, b) => b.sortDate - a.sortDate); return ( - r("ul", { className: "study-list" }, - addonStudies.map(study => ( - r(StudyListItem, { key: study.name, study, translations }) - )) + r("div", {}, + r("h2", {}, translations.activeStudiesList), + r("ul", { className: "study-list" }, + activeStudies.map(study => ( + study.type === "addon" + ? r(AddonStudyListItem, { key: study.name, study, translations }) + : r(PreferenceStudyListItem, { key: study.name, study, translations }) + )), + ), + r("h2", {}, translations.completedStudiesList), + r("ul", { className: "study-list" }, + inactiveStudies.map(study => ( + study.type === "addon" + ? r(AddonStudyListItem, { key: study.name, study, translations }) + : r(PreferenceStudyListItem, { key: study.name, study, translations }) + )), + ), ) ); } @@ -143,34 +175,39 @@ StudyList.propTypes = { }; /** - * Details about an individual study, with an option to end it if it is active. + * Details about an individual add-on study, with an option to end it if it is active. */ -class StudyListItem extends React.Component { +class AddonStudyListItem extends React.Component { constructor(props) { super(props); this.handleClickRemove = this.handleClickRemove.bind(this); } handleClickRemove() { - sendPageEvent("RemoveStudy", { recipeId: this.props.study.recipeId, reason: "individual-opt-out" }); + sendPageEvent("RemoveAddonStudy", { + recipeId: this.props.study.recipeId, + reason: "individual-opt-out", + }); } render() { const { study, translations } = this.props; return ( r("li", { - className: classnames("study", { disabled: !study.active }), + className: classnames("study addon-study", { disabled: !study.active }), "data-study-name": study.name, }, r("div", { className: "study-icon" }, - study.name.slice(0, 1) + study.name.replace(/-?add-?on-?/, "").replace(/-?study-?/, "").slice(0, 1) ), r("div", { className: "study-details" }, - r("div", { className: "study-name" }, study.name), - r("div", { className: "study-description", title: study.description }, - r("span", { className: "study-status" }, study.active ? translations.activeStatus : translations.completeStatus), + r("div", { className: "study-header" }, + r("span", { className: "study-name" }, study.name), r("span", {}, "\u2022"), // • - r("span", {}, study.description), + r("span", { className: "study-status" }, study.active ? translations.activeStatus : translations.completeStatus), + ), + r("div", { className: "study-description" }, + study.description ), ), r("div", { className: "study-actions" }, @@ -185,14 +222,84 @@ class StudyListItem extends React.Component { ); } } -StudyListItem.propTypes = { +AddonStudyListItem.propTypes = { study: PropTypes.shape({ recipeId: PropTypes.number.isRequired, name: PropTypes.string.isRequired, - active: PropTypes.boolean, + active: PropTypes.bool.isRequired, description: PropTypes.string.isRequired, }).isRequired, translations: PropTypes.object.isRequired, }; +/** + * Details about an individual preference study, with an option to end it if it is active. + */ +class PreferenceStudyListItem extends React.Component { + constructor(props) { + super(props); + this.handleClickRemove = this.handleClickRemove.bind(this); + } + + handleClickRemove() { + sendPageEvent("RemovePreferenceStudy", { + experimentName: this.props.study.name, + reason: "individual-opt-out", + }); + } + + render() { + const { study, translations } = this.props; + + // Sanitize the values by setting them as the text content of an element, + // and then getting the HTML representation of that text. This will have the + // browser safely sanitize them. Use outerHTML to also include the + // element in the string. + const sanitizer = document.createElement("code"); + sanitizer.textContent = study.preferenceName; + const sanitizedPreferenceName = sanitizer.outerHTML; + sanitizer.textContent = study.preferenceValue; + const sanitizedPreferenceValue = sanitizer.outerHTML; + const description = translations.preferenceStudyDescription + .replace(/%(?:1\$)?S/, sanitizedPreferenceName) + .replace(/%(?:2\$)?S/, sanitizedPreferenceValue); + + return ( + r("li", { + className: classnames("study pref-study", { disabled: study.expired }), + "data-study-name": study.name, + }, + r("div", { className: "study-icon" }, + study.name.replace(/-?pref-?(flip|study)-?/, "").replace(/-?study-?/, "").slice(0, 1) + ), + r("div", { className: "study-details" }, + r("div", { className: "study-header" }, + r("span", { className: "study-name" }, study.name), + r("span", {}, "\u2022"), // • + r("span", { className: "study-status" }, study.expired ? translations.completeStatus : translations.activeStatus), + ), + r("div", { className: "study-description", dangerouslySetInnerHTML: { __html: description }}), + ), + r("div", { className: "study-actions" }, + !study.expired && + r("button", { className: "remove-button", onClick: this.handleClickRemove }, + r("div", { className: "button-box" }, + translations.removeButton + ), + ) + ), + ) + ); + } +} +PreferenceStudyListItem.propTypes = { + study: PropTypes.shape({ + name: PropTypes.string.isRequired, + expired: PropTypes.bool.isRequired, + preferenceName: PropTypes.string.isRequired, + preferenceValue: PropTypes.oneOf(PropTypes.string, PropTypes.bool, PropTypes.number).isRequired, + }).isRequired, + translations: PropTypes.object.isRequired, +}; + ReactDOM.render(r(AboutStudies), document.getElementById("app")); diff --git a/toolkit/components/normandy/test/browser/browser_AddonStudies.js b/toolkit/components/normandy/test/browser/browser_AddonStudies.js index 10b73ed4602d..7ff0f6d367ff 100644 --- a/toolkit/components/normandy/test/browser/browser_AddonStudies.js +++ b/toolkit/components/normandy/test/browser/browser_AddonStudies.js @@ -33,7 +33,7 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory({name: "test-study"}), + addonStudyFactory({name: "test-study"}), ]), async function testGet([study]) { const storedStudy = await AddonStudies.get(study.recipeId); @@ -43,8 +43,8 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory(), - studyFactory(), + addonStudyFactory(), + addonStudyFactory(), ]), async function testGetAll(studies) { const storedStudies = await AddonStudies.getAll(); @@ -58,7 +58,7 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory({name: "test-study"}), + addonStudyFactory({name: "test-study"}), ]), async function testHas([study]) { let hasStudy = await AddonStudies.has(study.recipeId); @@ -95,8 +95,8 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory({name: "test-study1"}), - studyFactory({name: "test-study2"}), + addonStudyFactory({name: "test-study1"}), + addonStudyFactory({name: "test-study2"}), ]), async function testClear([study1, study2]) { const hasAll = ( @@ -116,9 +116,9 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory({active: true, addonId: "does.not.exist@example.com", studyEndDate: null}), - studyFactory({active: true, addonId: "installed@example.com"}), - studyFactory({active: false, addonId: "already.gone@example.com", studyEndDate: new Date(2012, 1)}), + addonStudyFactory({active: true, addonId: "does.not.exist@example.com", studyEndDate: null}), + addonStudyFactory({active: true, addonId: "installed@example.com"}), + addonStudyFactory({active: false, addonId: "already.gone@example.com", studyEndDate: new Date(2012, 1)}), ]), withSendEventStub, withInstalledWebExtension({id: "installed@example.com"}), @@ -162,7 +162,7 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - studyFactory({active: true, addonId: "installed@example.com", studyEndDate: null}), + addonStudyFactory({active: true, addonId: "installed@example.com", studyEndDate: null}), ]), withInstalledWebExtension({id: "installed@example.com"}, /* expectUninstall: */ true), async function testInit([study], [id, addonFile]) { diff --git a/toolkit/components/normandy/test/browser/browser_ShieldPreferences.js b/toolkit/components/normandy/test/browser/browser_ShieldPreferences.js index 5b688cec3c39..0f89d68ec2af 100644 --- a/toolkit/components/normandy/test/browser/browser_ShieldPreferences.js +++ b/toolkit/components/normandy/test/browser/browser_ShieldPreferences.js @@ -11,8 +11,8 @@ ShieldPreferences.init(); decorate_task( withMockPreferences, AddonStudies.withStudies([ - studyFactory({active: true}), - studyFactory({active: true}), + addonStudyFactory({active: true}), + addonStudyFactory({active: true}), ]), async function testDisableStudiesWhenOptOutDisabled(mockPreferences, [study1, study2]) { diff --git a/toolkit/components/normandy/test/browser/browser_about_studies.js b/toolkit/components/normandy/test/browser/browser_about_studies.js index d0098dad3094..8cc86a908e26 100644 --- a/toolkit/components/normandy/test/browser/browser_about_studies.js +++ b/toolkit/components/normandy/test/browser/browser_about_studies.js @@ -1,17 +1,19 @@ "use strict"; ChromeUtils.import("resource://normandy/lib/AddonStudies.jsm", this); +ChromeUtils.import("resource://normandy/lib/PreferenceExperiments.jsm", this); ChromeUtils.import("resource://normandy/lib/RecipeRunner.jsm", this); ChromeUtils.import("resource://normandy-content/AboutPages.jsm", this); function withAboutStudies(testFunc) { -return async (...args) => ( + return async (...args) => ( BrowserTestUtils.withNewTab("about:studies", async browser => ( testFunc(...args, browser) )) ); } +// Test that the code renders at all decorate_task( withAboutStudies, async function testAboutStudiesWorks(browser) { @@ -20,6 +22,7 @@ decorate_task( } ); +// Test that the learn more element is displayed correctly decorate_task( withPrefEnv({ set: [["app.normandy.shieldLearnMoreUrl", "http://test/%OS%/"]], @@ -41,9 +44,10 @@ decorate_task( } ); +// Test that jumping to preferences worked as expected decorate_task( withAboutStudies, - async function testUpdatePreferencesNewOrganization(browser) { + async function testUpdatePreferences(browser) { let loadPromise = BrowserTestUtils.firstBrowserLoaded(window); // We have to use gBrowser instead of browser in most spots since we're @@ -69,90 +73,159 @@ decorate_task( decorate_task( AddonStudies.withStudies([ - // Sort order should be study3, study1, study2 (order by enabled, then most recent). - studyFactory({ - name: "A Fake Study", + addonStudyFactory({ + name: "A Fake Add-on Study", active: true, description: "A fake description", - studyStartDate: new Date(2017), + studyStartDate: new Date(2018, 0, 4), }), - studyFactory({ - name: "B Fake Study", + addonStudyFactory({ + name: "B Fake Add-on Study", active: false, - description: "A fake description", - studyStartDate: new Date(2019), + description: "B fake description", + studyStartDate: new Date(2018, 0, 2), }), - studyFactory({ - name: "C Fake Study", + addonStudyFactory({ + name: "C Fake Add-on Study", active: true, - description: "A fake description", - studyStartDate: new Date(2018), + description: "C fake description", + studyStartDate: new Date(2018, 0, 1), + }), + ]), + PreferenceExperiments.withMockExperiments([ + preferenceStudyFactory({ + name: "D Fake Preference Study", + lastSeen: new Date(2018, 0, 3), + expired: false, + }), + preferenceStudyFactory({ + name: "E Fake Preference Study", + lastSeen: new Date(2018, 0, 5), + expired: true, + }), + preferenceStudyFactory({ + name: "F Fake Preference Study", + lastSeen: new Date(2018, 0, 6), + expired: false, }), ]), withAboutStudies, - async function testStudyListing([study1, study2, study3], browser) { - await ContentTask.spawn(browser, [study1, study2, study3], async ([cStudy1, cStudy2, cStudy3]) => { + async function testStudyListing(addonStudies, prefStudies, browser) { + await ContentTask.spawn(browser, { addonStudies, prefStudies }, async ({ addonStudies, prefStudies }) => { const doc = content.document; function getStudyRow(docElem, studyName) { return docElem.querySelector(`.study[data-study-name="${studyName}"]`); } - await ContentTaskUtils.waitForCondition(() => doc.querySelectorAll(".study-list .study").length); - const studyRows = doc.querySelectorAll(".study-list .study"); + await ContentTaskUtils.waitForCondition(() => doc.querySelectorAll(".active-study-list .study").length); + const activeNames = Array.from(doc.querySelectorAll(".active-study-list .study")) + .map(row => row.dataset.studyName); + const inactiveNames = Array.from(doc.querySelectorAll(".inactive-study-list .study")) + .map(row => row.dataset.studyName); - const names = Array.from(studyRows).map(row => row.querySelector(".study-name").textContent); Assert.deepEqual( - names, - [cStudy3.name, cStudy1.name, cStudy2.name], - "Studies are sorted first by enabled status, and then by descending start date." + activeNames, + [prefStudies[2].name, addonStudies[0].name, prefStudies[0].name, addonStudies[2].name], + "Active studies are grouped by enabled status, and sorted by date", + ); + Assert.deepEqual( + inactiveNames, + [prefStudies[1].name, addonStudies[1].name], + "Inactive studies are grouped by enabled status, and sorted by date", ); - const study1Row = getStudyRow(doc, cStudy1.name); + const activeAddonStudy = getStudyRow(doc, addonStudies[0].name); ok( - study1Row.querySelector(".study-description").textContent.includes(cStudy1.description), + activeAddonStudy.querySelector(".study-description").textContent.includes(addonStudies[0].description), "Study descriptions are shown in about:studies." ); is( - study1Row.querySelector(".study-status").textContent, + activeAddonStudy.querySelector(".study-status").textContent, "Active", "Active studies show an 'Active' indicator." ); ok( - study1Row.querySelector(".remove-button"), + activeAddonStudy.querySelector(".remove-button"), "Active studies show a remove button" ); is( - study1Row.querySelector(".study-icon").textContent.toLowerCase(), + activeAddonStudy.querySelector(".study-icon").textContent.toLowerCase(), "a", "Study icons use the first letter of the study name." ); - const study2Row = getStudyRow(doc, cStudy2.name); + const inactiveAddonStudy = getStudyRow(doc, addonStudies[1].name); is( - study2Row.querySelector(".study-status").textContent, + inactiveAddonStudy.querySelector(".study-status").textContent, "Complete", "Inactive studies are marked as complete." ); ok( - !study2Row.querySelector(".remove-button"), + !inactiveAddonStudy.querySelector(".remove-button"), "Inactive studies do not show a remove button" ); - study1Row.querySelector(".remove-button").click(); + const activePrefStudy = getStudyRow(doc, prefStudies[0].name); + ok( + activePrefStudy.querySelector(".study-description").textContent.includes(prefStudies[0].preferenceName), + "Preference studies show the preference they are changing" + ); + is( + activePrefStudy.querySelector(".study-status").textContent, + "Active", + "Active studies show an 'Active' indicator." + ); + ok( + activePrefStudy.querySelector(".remove-button"), + "Active studies show a remove button" + ); + is( + activePrefStudy.querySelector(".study-icon").textContent.toLowerCase(), + "d", + "Study icons use the first letter of the study name." + ); + + const inactivePrefStudy = getStudyRow(doc, prefStudies[1].name); + is( + inactivePrefStudy.querySelector(".study-status").textContent, + "Complete", + "Inactive studies are marked as complete." + ); + ok( + !inactivePrefStudy.querySelector(".remove-button"), + "Inactive studies do not show a remove button" + ); + + activeAddonStudy.querySelector(".remove-button").click(); await ContentTaskUtils.waitForCondition(() => ( - getStudyRow(doc, cStudy1.name).matches(".disabled") + getStudyRow(doc, addonStudies[0].name).matches(".study--disabled") )); ok( - getStudyRow(doc, cStudy1.name).matches(".disabled"), + getStudyRow(doc, addonStudies[0].name).matches(".study--disabled"), + "Clicking the remove button updates the UI to show that the study has been disabled." + ); + + activePrefStudy.querySelector(".remove-button").click(); + await ContentTaskUtils.waitForCondition(() => ( + getStudyRow(doc, prefStudies[0].name).matches(".study--disabled") + )); + ok( + getStudyRow(doc, prefStudies[0].name).matches(".study--disabled"), "Clicking the remove button updates the UI to show that the study has been disabled." ); }); - const updatedStudy1 = await AddonStudies.get(study1.recipeId); + const updatedAddonStudy = await AddonStudies.get(addonStudies[0].recipeId); ok( - !updatedStudy1.active, - "Clicking the remove button marks the study as inactive in storage." + !updatedAddonStudy.active, + "Clicking the remove button marks addon studies as inactive in storage." + ); + + const updatedPrefStudy = await PreferenceExperiments.get(prefStudies[0].name); + ok( + updatedPrefStudy.expired, + "Clicking the remove button marks preference studies as expired in storage." ); } ); @@ -163,7 +236,7 @@ decorate_task( async function testStudyListing(studies, browser) { await ContentTask.spawn(browser, null, async () => { const doc = content.document; - await ContentTaskUtils.waitForCondition(() => doc.querySelectorAll(".study-list").length); + await ContentTaskUtils.waitForCondition(() => doc.querySelectorAll(".study-list-info").length); const studyRows = doc.querySelectorAll(".study-list .study"); is(studyRows.length, 0, "There should be no studies"); is( diff --git a/toolkit/components/normandy/test/browser/browser_actions_AddonStudyAction.js b/toolkit/components/normandy/test/browser/browser_actions_AddonStudyAction.js index 06c0239029a9..be71dc07bdeb 100644 --- a/toolkit/components/normandy/test/browser/browser_actions_AddonStudyAction.js +++ b/toolkit/components/normandy/test/browser/browser_actions_AddonStudyAction.js @@ -41,7 +41,7 @@ function ensureAddonCleanup(testFunction) { // Test that enroll is not called if recipe is already enrolled decorate_task( ensureAddonCleanup, - AddonStudies.withStudies([studyFactory()]), + AddonStudies.withStudies([addonStudyFactory()]), withSendEventStub, async function enrollTwiceFail([study], sendEventStub) { const recipe = recipeFactory({ @@ -176,7 +176,7 @@ decorate_task( decorate_task( ensureAddonCleanup, AddonStudies.withStudies([ - studyFactory({active: false}), + addonStudyFactory({active: false}), ]), withSendEventStub, async ([study], sendEventStub) => { @@ -194,7 +194,7 @@ const testStopId = "testStop@example.com"; decorate_task( ensureAddonCleanup, AddonStudies.withStudies([ - studyFactory({active: true, addonId: testStopId, studyEndDate: null}), + addonStudyFactory({active: true, addonId: testStopId, studyEndDate: null}), ]), withInstalledWebExtension({id: testStopId}, /* expectUninstall: */ true), withSendEventStub, @@ -228,7 +228,7 @@ decorate_task( decorate_task( ensureAddonCleanup, AddonStudies.withStudies([ - studyFactory({active: true, addonId: "missingAddon@example.com", studyEndDate: null}), + addonStudyFactory({active: true, addonId: "missingAddon@example.com", studyEndDate: null}), ]), withSendEventStub, async function unenrollTest([study], sendEventStub) { @@ -291,7 +291,7 @@ decorate_task( // Test that enroll is not called if recipe is already enrolled decorate_task( ensureAddonCleanup, - AddonStudies.withStudies([studyFactory()]), + AddonStudies.withStudies([addonStudyFactory()]), async function enrollTwiceFail([study]) { const action = new AddonStudyAction(); const unenrollSpy = sinon.stub(action, "unenroll"); diff --git a/toolkit/components/normandy/test/browser/head.js b/toolkit/components/normandy/test/browser/head.js index d4dffa4ba5c1..42574032e0f0 100644 --- a/toolkit/components/normandy/test/browser/head.js +++ b/toolkit/components/normandy/test/browser/head.js @@ -280,10 +280,10 @@ this.decorate_task = function(...args) { return add_task(decorate(...args)); }; -let _studyFactoryId = 0; -this.studyFactory = function(attrs) { +let _addonStudyFactoryId = 0; +this.addonStudyFactory = function(attrs) { return Object.assign({ - recipeId: _studyFactoryId++, + recipeId: _addonStudyFactoryId++, name: "Test study", description: "fake", active: true, @@ -294,6 +294,22 @@ this.studyFactory = function(attrs) { }, attrs); }; +let _preferenceStudyFactoryId = 0; +this.preferenceStudyFactory = function(attrs) { + return Object.assign({ + name: "Test study", + branch: "control", + expired: false, + lastSeen: new Date().toJSON(), + preferenceName: "test.study", + preferenceValue: false, + preferenceType: "boolean", + previousPreferenceValue: undefined, + preferenceBranchType: "default", + experimentType: "exp", + }, attrs); +}; + this.withStub = function(...stubArgs) { return function wrapper(testFunction) { return async function wrappedTestFunction(...args) { diff --git a/toolkit/locales/en-US/chrome/global/aboutStudies.properties b/toolkit/locales/en-US/chrome/global/aboutStudies.properties index c0c7d0311b1f..188139fdda34 100644 --- a/toolkit/locales/en-US/chrome/global/aboutStudies.properties +++ b/toolkit/locales/en-US/chrome/global/aboutStudies.properties @@ -8,9 +8,12 @@ title = Shield Studies removeButton = Remove +# LOCALIZATION NOTE (activeStudiesList): Title above a list of active studies +activeStudiesList = Active studies +# LOCALIZATION NOTE (activeStudiesList): Title above a list of completed studies +completedStudiesList = Completed studies # LOCALIZATION NOTE (activeStatus): Displayed for an active study activeStatus = Active - # LOCALIZATION NOTE (completeStatus): Displayed for a study that is already complete completeStatus = Complete @@ -21,3 +24,9 @@ noStudies = You have not participated in any studies. disabledList = This is a list of studies that you have participated in. No new studies will run. # LOCALIZATION NOTE (enabledList): %S is brandShortName (e.g. Firefox) enabledList = What’s this? %S may install and run studies from time to time. + +# LOCALIZATION NOTE (preferenceStudyDescription) $1%S will be replaced with the +# name of a preference (such as "stream.improvesearch.topSiteSearchShortcuts") +# and $2%S will be replaced with the value of that preference. Both values will +# be formatted differently than the surrounding text. +preferenceStudyDescription = This study sets %1$S to %2$S. \ No newline at end of file From 679b5e2db1bc607cff5ad8640eb9a4b3626e4cf9 Mon Sep 17 00:00:00 2001 From: Cosmin Sabou Date: Thu, 13 Sep 2018 23:04:55 +0300 Subject: [PATCH 14/40] Backed out 5 changesets (bug 1485040) for causing build bustages on test_mozwebidlcodegen. CLOSED TREE Backed out changeset b417c2d937e8 (bug 1485040) Backed out changeset c567c4c7438f (bug 1485040) Backed out changeset 806c36cb2c4c (bug 1485040) Backed out changeset 0fbb490ffc7f (bug 1485040) Backed out changeset a9622e7761eb (bug 1485040) --- .../mozwebidlcodegen/test/Child.webidl | 3 - .../test/ExampleBinding.webidl | 3 - .../mozwebidlcodegen/test/Parent.webidl | 3 - .../mozwebidlcodegen/test/TestEvent.webidl | 3 - dom/bindings/test/TestCodeGen.webidl | 3 +- dom/bindings/test/TestDictionary.webidl | 3 +- dom/bindings/test/TestExampleGen.webidl | 3 +- dom/bindings/test/TestJSImplGen.webidl | 3 +- .../test/TestJSImplInheritanceGen.webidl | 3 +- dom/bindings/test/TestTypedef.webidl | 3 +- dom/chrome-webidl/BrowsingContext.webidl | 3 +- dom/chrome-webidl/ChannelWrapper.webidl | 2 - dom/chrome-webidl/ChromeUtils.webidl | 3 +- dom/chrome-webidl/DominatorTree.webidl | 3 +- dom/chrome-webidl/HeapSnapshot.webidl | 3 +- dom/chrome-webidl/InspectorUtils.webidl | 3 +- dom/chrome-webidl/IteratorResult.webidl | 2 +- dom/chrome-webidl/MatchGlob.webidl | 2 - dom/chrome-webidl/MatchPattern.webidl | 2 - dom/chrome-webidl/MessageManager.webidl | 3 +- dom/chrome-webidl/MozDocumentObserver.webidl | 3 +- dom/chrome-webidl/MozSharedMap.webidl | 3 +- .../MozStorageAsyncStatementParams.webidl | 3 +- .../MozStorageStatementParams.webidl | 3 +- .../MozStorageStatementRow.webidl | 3 +- dom/chrome-webidl/PlacesEvent.webidl | 6 - dom/chrome-webidl/PlacesObservers.webidl | 3 +- dom/chrome-webidl/PrecompiledScript.webidl | 3 +- dom/chrome-webidl/PrioEncoder.webidl | 3 +- dom/chrome-webidl/PromiseDebugging.webidl | 3 +- .../StructuredCloneHolder.webidl | 3 +- .../WebExtensionContentScript.webidl | 2 - dom/chrome-webidl/WebExtensionPolicy.webidl | 2 - dom/chrome-webidl/XULFrameElement.webidl | 3 +- dom/chrome-webidl/XULScrollElement.webidl | 3 +- dom/webidl/APZTestData.webidl | 3 +- dom/webidl/AbortController.webidl | 3 +- dom/webidl/AbortSignal.webidl | 3 +- dom/webidl/AbstractWorker.webidl | 3 +- dom/webidl/AccessibleNode.webidl | 3 +- dom/webidl/AddonEvent.webidl | 6 - dom/webidl/AddonManager.webidl | 2 - dom/webidl/AnalyserNode.webidl | 35 ++- dom/webidl/Animatable.webidl | 3 +- dom/webidl/Animation.webidl | 3 +- dom/webidl/AnimationEffect.webidl | 3 +- dom/webidl/AnimationEvent.webidl | 3 +- dom/webidl/AnimationPlaybackEvent.webidl | 3 +- dom/webidl/AnimationTimeline.webidl | 3 +- dom/webidl/AnonymousContent.webidl | 3 +- dom/webidl/AppInfo.webidl | 2 - .../AppNotificationServiceOptions.webidl | 3 +- dom/webidl/Attr.webidl | 3 +- dom/webidl/AudioBuffer.webidl | 3 +- dom/webidl/AudioBufferSourceNode.webidl | 3 +- dom/webidl/AudioContext.webidl | 3 +- dom/webidl/AudioDestinationNode.webidl | 3 +- dom/webidl/AudioListener.webidl | 3 +- dom/webidl/AudioNode.webidl | 75 +++--- dom/webidl/AudioParam.webidl | 45 ++-- dom/webidl/AudioParamMap.webidl | 3 +- dom/webidl/AudioProcessingEvent.webidl | 3 +- dom/webidl/AudioScheduledSourceNode.webidl | 3 +- dom/webidl/AudioStreamTrack.webidl | 3 +- dom/webidl/AudioTrack.webidl | 3 +- dom/webidl/AudioTrackList.webidl | 3 +- dom/webidl/AudioWorklet.webidl | 3 +- dom/webidl/AudioWorkletGlobalScope.webidl | 3 +- dom/webidl/AudioWorkletNode.webidl | 3 +- dom/webidl/AudioWorkletProcessor.webidl | 3 +- dom/webidl/AutocompleteInfo.webidl | 3 +- dom/webidl/BarProp.webidl | 3 +- dom/webidl/BaseAudioContext.webidl | 125 +++++----- dom/webidl/BaseKeyframeTypes.webidl | 3 +- dom/webidl/BasicCardPayment.webidl | 3 +- dom/webidl/BatteryManager.webidl | 3 +- dom/webidl/BeforeUnloadEvent.webidl | 3 +- dom/webidl/BiquadFilterNode.webidl | 3 +- dom/webidl/Blob.webidl | 3 +- dom/webidl/BlobEvent.webidl | 3 +- dom/webidl/BoxObject.webidl | 3 +- dom/webidl/BroadcastChannel.webidl | 3 +- dom/webidl/BrowserElement.webidl | 3 +- dom/webidl/BrowserElementDictionaries.webidl | 3 +- dom/webidl/BrowserFeedWriter.webidl | 3 +- dom/webidl/CDATASection.webidl | 3 +- dom/webidl/CSPDictionaries.webidl | 2 - dom/webidl/CSPReport.webidl | 2 - dom/webidl/CSS.webidl | 3 +- dom/webidl/CSSAnimation.webidl | 3 +- dom/webidl/CSSConditionRule.webidl | 3 +- dom/webidl/CSSCounterStyleRule.webidl | 3 +- dom/webidl/CSSFontFaceRule.webidl | 3 +- dom/webidl/CSSFontFeatureValuesRule.webidl | 3 +- dom/webidl/CSSGroupingRule.webidl | 3 +- dom/webidl/CSSImportRule.webidl | 3 +- dom/webidl/CSSKeyframeRule.webidl | 3 +- dom/webidl/CSSKeyframesRule.webidl | 3 +- dom/webidl/CSSMediaRule.webidl | 3 +- dom/webidl/CSSMozDocumentRule.webidl | 3 +- dom/webidl/CSSNamespaceRule.webidl | 3 +- dom/webidl/CSSPageRule.webidl | 3 +- dom/webidl/CSSPseudoElement.webidl | 3 +- dom/webidl/CSSRule.webidl | 3 +- dom/webidl/CSSRuleList.webidl | 3 +- dom/webidl/CSSStyleDeclaration.webidl | 3 +- dom/webidl/CSSStyleRule.webidl | 3 +- dom/webidl/CSSStyleSheet.webidl | 3 +- dom/webidl/CSSSupportsRule.webidl | 3 +- dom/webidl/CSSTransition.webidl | 3 +- dom/webidl/Cache.webidl | 3 +- dom/webidl/CacheStorage.webidl | 3 +- dom/webidl/CanvasCaptureMediaStream.webidl | 3 +- dom/webidl/CanvasRenderingContext2D.webidl | 3 +- dom/webidl/CaretPosition.webidl | 2 - dom/webidl/CaretStateChangedEvent.webidl | 3 +- dom/webidl/ChannelMergerNode.webidl | 3 +- dom/webidl/ChannelSplitterNode.webidl | 3 +- dom/webidl/CharacterData.webidl | 3 +- dom/webidl/CheckerboardReportService.webidl | 3 +- dom/webidl/ChildNode.webidl | 3 +- dom/webidl/ChildSHistory.webidl | 3 +- dom/webidl/ChromeNodeList.webidl | 3 +- dom/webidl/Client.webidl | 3 +- dom/webidl/Clients.webidl | 3 +- dom/webidl/Clipboard.webidl | 3 +- dom/webidl/ClipboardEvent.webidl | 3 +- dom/webidl/CloseEvent.webidl | 3 +- dom/webidl/CommandEvent.webidl | 3 +- dom/webidl/Comment.webidl | 3 +- dom/webidl/CompositionEvent.webidl | 3 +- dom/webidl/Console.webidl | 2 +- dom/webidl/ConstantSourceNode.webidl | 3 +- dom/webidl/ConvolverNode.webidl | 3 +- dom/webidl/Coordinates.webidl | 3 +- dom/webidl/CreateOfferRequest.webidl | 3 +- dom/webidl/CredentialManagement.webidl | 3 +- dom/webidl/Crypto.webidl | 3 +- dom/webidl/CustomElementRegistry.webidl | 2 - dom/webidl/CustomEvent.webidl | 3 +- dom/webidl/DOMError.webidl | 3 +- dom/webidl/DOMException.webidl | 3 +- dom/webidl/DOMImplementation.webidl | 3 +- dom/webidl/DOMMatrix.webidl | 235 +++++++++--------- dom/webidl/DOMParser.webidl | 2 - dom/webidl/DOMPoint.webidl | 33 ++- dom/webidl/DOMQuad.webidl | 33 ++- dom/webidl/DOMRect.webidl | 37 ++- dom/webidl/DOMRectList.webidl | 3 +- dom/webidl/DOMRequest.webidl | 3 +- dom/webidl/DOMStringList.webidl | 3 +- dom/webidl/DOMStringMap.webidl | 3 +- dom/webidl/DOMTokenList.webidl | 3 +- dom/webidl/DataTransfer.webidl | 3 +- dom/webidl/DataTransferItem.webidl | 3 +- dom/webidl/DataTransferItemList.webidl | 3 +- dom/webidl/DecoderDoctorNotification.webidl | 3 +- dom/webidl/DedicatedWorkerGlobalScope.webidl | 3 +- dom/webidl/DelayNode.webidl | 3 +- dom/webidl/DeviceLightEvent.webidl | 3 +- dom/webidl/DeviceMotionEvent.webidl | 3 +- dom/webidl/DeviceOrientationEvent.webidl | 3 +- dom/webidl/DeviceProximityEvent.webidl | 3 +- dom/webidl/Directory.webidl | 3 +- dom/webidl/Document.webidl | 3 +- dom/webidl/DocumentFragment.webidl | 3 +- dom/webidl/DocumentOrShadowRoot.webidl | 3 +- dom/webidl/DocumentTimeline.webidl | 3 +- dom/webidl/DocumentType.webidl | 3 +- dom/webidl/DragEvent.webidl | 3 +- dom/webidl/DynamicsCompressorNode.webidl | 3 +- dom/webidl/Element.webidl | 3 +- dom/webidl/ErrorEvent.webidl | 3 +- dom/webidl/Event.webidl | 3 +- dom/webidl/EventHandler.webidl | 3 +- dom/webidl/EventListener.webidl | 3 +- dom/webidl/EventSource.webidl | 3 +- dom/webidl/EventTarget.webidl | 3 +- dom/webidl/ExtendableEvent.webidl | 3 +- dom/webidl/ExtendableMessageEvent.webidl | 3 +- dom/webidl/External.webidl | 3 +- dom/webidl/FakePluginTagInit.webidl | 3 +- dom/webidl/Fetch.webidl | 3 +- dom/webidl/FetchEvent.webidl | 3 +- dom/webidl/FetchObserver.webidl | 3 +- dom/webidl/File.webidl | 3 +- dom/webidl/FileList.webidl | 3 +- dom/webidl/FileMode.webidl | 2 - dom/webidl/FileReader.webidl | 3 +- dom/webidl/FileReaderSync.webidl | 3 +- dom/webidl/FileSystem.webidl | 3 +- dom/webidl/FileSystemDirectoryEntry.webidl | 3 +- dom/webidl/FileSystemDirectoryReader.webidl | 3 +- dom/webidl/FileSystemEntry.webidl | 3 +- dom/webidl/FileSystemFileEntry.webidl | 3 +- dom/webidl/Flex.webidl | 3 +- dom/webidl/FocusEvent.webidl | 3 +- dom/webidl/FontFace.webidl | 3 +- dom/webidl/FontFaceSet.webidl | 3 +- dom/webidl/FontFaceSetLoadEvent.webidl | 3 +- dom/webidl/FontFaceSource.webidl | 3 +- dom/webidl/FormData.webidl | 3 +- dom/webidl/FrameLoader.webidl | 3 +- dom/webidl/Function.webidl | 3 +- dom/webidl/FuzzingFunctions.webidl | 3 +- dom/webidl/GainNode.webidl | 3 +- dom/webidl/Gamepad.webidl | 3 +- dom/webidl/GamepadAxisMoveEvent.webidl | 3 +- dom/webidl/GamepadButtonEvent.webidl | 3 +- dom/webidl/GamepadEvent.webidl | 3 +- dom/webidl/GamepadHapticActuator.webidl | 3 +- dom/webidl/GamepadPose.webidl | 3 +- dom/webidl/GamepadServiceTest.webidl | 2 - dom/webidl/Geolocation.webidl | 3 +- dom/webidl/GeometryUtils.webidl | 3 +- dom/webidl/GetUserMediaRequest.webidl | 3 +- dom/webidl/Grid.webidl | 3 +- dom/webidl/GroupedHistoryEvent.webidl | 3 +- dom/webidl/HTMLAllCollection.webidl | 2 - dom/webidl/HTMLAnchorElement.webidl | 3 +- dom/webidl/HTMLAreaElement.webidl | 3 +- dom/webidl/HTMLAudioElement.webidl | 3 +- dom/webidl/HTMLBRElement.webidl | 3 +- dom/webidl/HTMLBaseElement.webidl | 3 +- dom/webidl/HTMLBodyElement.webidl | 3 +- dom/webidl/HTMLButtonElement.webidl | 3 +- dom/webidl/HTMLCanvasElement.webidl | 3 +- dom/webidl/HTMLCollection.webidl | 3 +- dom/webidl/HTMLDListElement.webidl | 3 +- dom/webidl/HTMLDataElement.webidl | 3 +- dom/webidl/HTMLDataListElement.webidl | 3 +- dom/webidl/HTMLDetailsElement.webidl | 3 +- dom/webidl/HTMLDialogElement.webidl | 3 +- dom/webidl/HTMLDirectoryElement.webidl | 3 +- dom/webidl/HTMLDivElement.webidl | 3 +- dom/webidl/HTMLDocument.webidl | 3 +- dom/webidl/HTMLElement.webidl | 3 +- dom/webidl/HTMLEmbedElement.webidl | 3 +- dom/webidl/HTMLFieldSetElement.webidl | 3 +- dom/webidl/HTMLFontElement.webidl | 3 +- dom/webidl/HTMLFormControlsCollection.webidl | 3 +- dom/webidl/HTMLFormElement.webidl | 3 +- dom/webidl/HTMLFrameElement.webidl | 3 +- dom/webidl/HTMLFrameSetElement.webidl | 3 +- dom/webidl/HTMLHRElement.webidl | 3 +- dom/webidl/HTMLHeadElement.webidl | 3 +- dom/webidl/HTMLHeadingElement.webidl | 3 +- dom/webidl/HTMLHtmlElement.webidl | 3 +- dom/webidl/HTMLHyperlinkElementUtils.webidl | 3 +- dom/webidl/HTMLIFrameElement.webidl | 3 +- dom/webidl/HTMLImageElement.webidl | 3 +- dom/webidl/HTMLInputElement.webidl | 3 +- dom/webidl/HTMLLIElement.webidl | 3 +- dom/webidl/HTMLLabelElement.webidl | 3 +- dom/webidl/HTMLLegendElement.webidl | 3 +- dom/webidl/HTMLLinkElement.webidl | 3 +- dom/webidl/HTMLMapElement.webidl | 3 +- dom/webidl/HTMLMediaElement.webidl | 3 +- dom/webidl/HTMLMenuElement.webidl | 3 +- dom/webidl/HTMLMenuItemElement.webidl | 3 +- dom/webidl/HTMLMetaElement.webidl | 3 +- dom/webidl/HTMLMeterElement.webidl | 3 +- dom/webidl/HTMLModElement.webidl | 3 +- dom/webidl/HTMLOListElement.webidl | 3 +- dom/webidl/HTMLObjectElement.webidl | 3 +- dom/webidl/HTMLOptGroupElement.webidl | 3 +- dom/webidl/HTMLOptionElement.webidl | 3 +- dom/webidl/HTMLOptionsCollection.webidl | 3 +- dom/webidl/HTMLOutputElement.webidl | 3 +- dom/webidl/HTMLParagraphElement.webidl | 3 +- dom/webidl/HTMLParamElement.webidl | 3 +- dom/webidl/HTMLPictureElement.webidl | 3 +- dom/webidl/HTMLPreElement.webidl | 3 +- dom/webidl/HTMLProgressElement.webidl | 3 +- dom/webidl/HTMLQuoteElement.webidl | 3 +- dom/webidl/HTMLScriptElement.webidl | 3 +- dom/webidl/HTMLSelectElement.webidl | 3 +- dom/webidl/HTMLSlotElement.webidl | 3 +- dom/webidl/HTMLSourceElement.webidl | 3 +- dom/webidl/HTMLSpanElement.webidl | 3 +- dom/webidl/HTMLStyleElement.webidl | 3 +- dom/webidl/HTMLTableCaptionElement.webidl | 3 +- dom/webidl/HTMLTableCellElement.webidl | 3 +- dom/webidl/HTMLTableColElement.webidl | 3 +- dom/webidl/HTMLTableElement.webidl | 3 +- dom/webidl/HTMLTableRowElement.webidl | 3 +- dom/webidl/HTMLTableSectionElement.webidl | 3 +- dom/webidl/HTMLTemplateElement.webidl | 2 - dom/webidl/HTMLTextAreaElement.webidl | 3 +- dom/webidl/HTMLTimeElement.webidl | 3 +- dom/webidl/HTMLTitleElement.webidl | 3 +- dom/webidl/HTMLTrackElement.webidl | 3 +- dom/webidl/HTMLUListElement.webidl | 3 +- dom/webidl/HTMLVideoElement.webidl | 3 +- dom/webidl/HashChangeEvent.webidl | 3 +- dom/webidl/HiddenPluginEvent.webidl | 30 +-- dom/webidl/History.webidl | 3 +- dom/webidl/IDBCursor.webidl | 47 ++-- dom/webidl/IDBDatabase.webidl | 47 ++-- dom/webidl/IDBFactory.webidl | 3 +- dom/webidl/IDBFileHandle.webidl | 2 - dom/webidl/IDBFileRequest.webidl | 2 +- dom/webidl/IDBIndex.webidl | 83 +++---- dom/webidl/IDBKeyRange.webidl | 2 - dom/webidl/IDBMutableFile.webidl | 3 +- dom/webidl/IDBObjectStore.webidl | 61 +++-- dom/webidl/IDBOpenDBRequest.webidl | 3 +- dom/webidl/IDBRequest.webidl | 3 +- dom/webidl/IDBTransaction.webidl | 43 ++-- dom/webidl/IDBVersionChangeEvent.webidl | 3 +- dom/webidl/IIRFilterNode.webidl | 3 +- dom/webidl/IdleDeadline.webidl | 3 +- dom/webidl/ImageBitmap.webidl | 3 +- dom/webidl/ImageBitmapRenderingContext.webidl | 3 +- dom/webidl/ImageCapture.webidl | 3 +- dom/webidl/ImageCaptureErrorEvent.webidl | 3 +- dom/webidl/ImageData.webidl | 3 +- dom/webidl/ImageDocument.webidl | 3 +- dom/webidl/InputEvent.webidl | 3 +- dom/webidl/InstallTrigger.webidl | 2 - dom/webidl/IntersectionObserver.webidl | 3 +- dom/webidl/IntlUtils.webidl | 2 - dom/webidl/IterableIterator.webidl | 3 +- dom/webidl/KeyAlgorithm.webidl | 3 +- dom/webidl/KeyEvent.webidl | 3 +- dom/webidl/KeyIdsInitData.webidl | 3 +- dom/webidl/KeyboardEvent.webidl | 3 +- dom/webidl/KeyframeAnimationOptions.webidl | 3 +- dom/webidl/KeyframeEffect.webidl | 3 +- dom/webidl/L10nUtils.webidl | 3 +- dom/webidl/LegacyQueryInterface.webidl | 3 +- dom/webidl/LinkStyle.webidl | 3 +- dom/webidl/LocalMediaStream.webidl | 3 +- dom/webidl/Location.webidl | 3 +- dom/webidl/MIDIAccess.webidl | 3 +- dom/webidl/MIDIConnectionEvent.webidl | 3 +- dom/webidl/MIDIInput.webidl | 3 +- dom/webidl/MIDIInputMap.webidl | 3 +- dom/webidl/MIDIMessageEvent.webidl | 3 +- dom/webidl/MIDIOptions.webidl | 3 +- dom/webidl/MIDIOutput.webidl | 3 +- dom/webidl/MIDIOutputMap.webidl | 3 +- dom/webidl/MIDIPort.webidl | 3 +- dom/webidl/MediaCapabilities.webidl | 3 +- dom/webidl/MediaDeviceInfo.webidl | 3 +- dom/webidl/MediaDevices.webidl | 3 +- dom/webidl/MediaElementAudioSourceNode.webidl | 3 +- dom/webidl/MediaEncryptedEvent.webidl | 3 +- dom/webidl/MediaError.webidl | 3 +- dom/webidl/MediaKeyError.webidl | 3 +- dom/webidl/MediaKeyMessageEvent.webidl | 3 +- dom/webidl/MediaKeySession.webidl | 3 +- dom/webidl/MediaKeyStatusMap.webidl | 3 +- dom/webidl/MediaKeySystemAccess.webidl | 3 +- dom/webidl/MediaKeys.webidl | 3 +- dom/webidl/MediaKeysRequestStatus.webidl | 3 +- dom/webidl/MediaList.webidl | 3 +- dom/webidl/MediaQueryList.webidl | 3 +- dom/webidl/MediaQueryListEvent.webidl | 3 +- dom/webidl/MediaRecorder.webidl | 3 +- dom/webidl/MediaRecorderErrorEvent.webidl | 43 ++-- dom/webidl/MediaSource.webidl | 3 +- dom/webidl/MediaStream.webidl | 53 ++-- .../MediaStreamAudioDestinationNode.webidl | 3 +- dom/webidl/MediaStreamAudioSourceNode.webidl | 3 +- dom/webidl/MediaStreamError.webidl | 3 +- dom/webidl/MediaStreamEvent.webidl | 3 +- dom/webidl/MediaStreamTrack.webidl | 115 +++++---- dom/webidl/MediaStreamTrackEvent.webidl | 3 +- dom/webidl/MediaTrackConstraintSet.webidl | 3 +- dom/webidl/MediaTrackSettings.webidl | 45 ++-- .../MediaTrackSupportedConstraints.webidl | 57 +++-- dom/webidl/MenuBoxObject.webidl | 4 +- dom/webidl/MessageChannel.webidl | 3 +- dom/webidl/MessageEvent.webidl | 3 +- dom/webidl/MessagePort.webidl | 3 +- dom/webidl/MimeType.webidl | 3 +- dom/webidl/MimeTypeArray.webidl | 3 +- dom/webidl/MouseEvent.webidl | 3 +- dom/webidl/MouseScrollEvent.webidl | 3 +- dom/webidl/MozApplicationEvent.webidl | 3 +- dom/webidl/MozFrameLoaderOwner.webidl | 6 - dom/webidl/MutationEvent.webidl | 3 +- dom/webidl/MutationObserver.webidl | 3 +- dom/webidl/NamedNodeMap.webidl | 3 +- dom/webidl/NativeOSFileInternals.webidl | 2 - dom/webidl/Navigator.webidl | 3 +- dom/webidl/NetDashboard.webidl | 3 +- dom/webidl/NetworkInformation.webidl | 2 - dom/webidl/NetworkOptions.webidl | 2 - dom/webidl/Node.webidl | 3 +- dom/webidl/NodeFilter.webidl | 3 +- dom/webidl/NodeIterator.webidl | 3 +- dom/webidl/NodeList.webidl | 3 +- dom/webidl/Notification.webidl | 3 +- dom/webidl/NotificationEvent.webidl | 3 +- dom/webidl/NotifyPaintEvent.webidl | 3 +- dom/webidl/OfflineAudioCompletionEvent.webidl | 3 +- dom/webidl/OfflineAudioContext.webidl | 3 +- dom/webidl/OfflineResourceList.webidl | 2 - dom/webidl/OffscreenCanvas.webidl | 3 +- dom/webidl/OscillatorNode.webidl | 3 +- dom/webidl/PageTransitionEvent.webidl | 3 +- dom/webidl/PaintRequest.webidl | 3 +- dom/webidl/PaintRequestList.webidl | 3 +- dom/webidl/PaintWorkletGlobalScope.webidl | 3 +- dom/webidl/PannerNode.webidl | 83 +++---- dom/webidl/ParentNode.webidl | 3 +- dom/webidl/ParentSHistory.webidl | 3 +- dom/webidl/PaymentAddress.webidl | 3 +- dom/webidl/PaymentMethodChangeEvent.webidl | 6 - dom/webidl/PaymentRequest.webidl | 3 +- dom/webidl/PaymentRequestUpdateEvent.webidl | 3 +- dom/webidl/PaymentResponse.webidl | 3 +- dom/webidl/PeerConnectionImpl.webidl | 3 +- dom/webidl/PeerConnectionImplEnums.webidl | 3 +- dom/webidl/PeerConnectionObserver.webidl | 3 +- dom/webidl/PeerConnectionObserverEnums.webidl | 3 +- dom/webidl/Performance.webidl | 3 +- dom/webidl/PerformanceEntry.webidl | 3 +- dom/webidl/PerformanceEntryEvent.webidl | 3 +- dom/webidl/PerformanceMark.webidl | 3 +- dom/webidl/PerformanceMeasure.webidl | 3 +- dom/webidl/PerformanceNavigation.webidl | 3 +- dom/webidl/PerformanceNavigationTiming.webidl | 3 +- dom/webidl/PerformanceObserver.webidl | 3 +- .../PerformanceObserverEntryList.webidl | 3 +- dom/webidl/PerformanceResourceTiming.webidl | 3 +- dom/webidl/PerformanceServerTiming.webidl | 3 +- dom/webidl/PerformanceTiming.webidl | 3 +- dom/webidl/PeriodicWave.webidl | 3 +- dom/webidl/PermissionStatus.webidl | 3 +- dom/webidl/Permissions.webidl | 3 +- dom/webidl/Plugin.webidl | 3 +- dom/webidl/PluginArray.webidl | 3 +- dom/webidl/PluginCrashedEvent.webidl | 3 +- dom/webidl/PointerEvent.webidl | 3 +- dom/webidl/PopStateEvent.webidl | 3 +- dom/webidl/PopupBlockedEvent.webidl | 3 +- dom/webidl/Position.webidl | 3 +- dom/webidl/PositionError.webidl | 3 +- dom/webidl/Presentation.webidl | 3 +- dom/webidl/PresentationAvailability.webidl | 3 +- dom/webidl/PresentationConnection.webidl | 3 +- ...resentationConnectionAvailableEvent.webidl | 3 +- .../PresentationConnectionCloseEvent.webidl | 3 +- dom/webidl/PresentationConnectionList.webidl | 3 +- dom/webidl/PresentationReceiver.webidl | 3 +- dom/webidl/PresentationRequest.webidl | 3 +- dom/webidl/ProcessingInstruction.webidl | 3 +- dom/webidl/ProfileTimelineMarker.webidl | 3 +- dom/webidl/ProgressEvent.webidl | 3 +- dom/webidl/Promise.webidl | 3 +- dom/webidl/PromiseRejectionEvent.webidl | 3 +- dom/webidl/PushEvent.webidl | 3 +- dom/webidl/PushManager.webidl | 3 +- dom/webidl/PushMessageData.webidl | 3 +- dom/webidl/PushSubscription.webidl | 3 +- dom/webidl/PushSubscriptionOptions.webidl | 3 +- dom/webidl/RTCCertificate.webidl | 3 +- dom/webidl/RTCConfiguration.webidl | 37 ++- dom/webidl/RTCDTMFSender.webidl | 3 +- dom/webidl/RTCDTMFToneChangeEvent.webidl | 6 - dom/webidl/RTCDataChannel.webidl | 2 - dom/webidl/RTCDataChannelEvent.webidl | 3 +- dom/webidl/RTCIceCandidate.webidl | 3 +- dom/webidl/RTCIdentityAssertion.webidl | 3 +- dom/webidl/RTCIdentityProvider.webidl | 3 +- dom/webidl/RTCPeerConnection.webidl | 3 +- dom/webidl/RTCPeerConnectionIceEvent.webidl | 3 +- dom/webidl/RTCPeerConnectionStatic.webidl | 3 +- dom/webidl/RTCRtpReceiver.webidl | 3 +- dom/webidl/RTCRtpSender.webidl | 3 +- dom/webidl/RTCRtpSources.webidl | 3 +- dom/webidl/RTCRtpTransceiver.webidl | 107 ++++---- dom/webidl/RTCSessionDescription.webidl | 3 +- dom/webidl/RTCStatsReport.webidl | 3 +- dom/webidl/RTCTrackEvent.webidl | 3 +- dom/webidl/RadioNodeList.webidl | 3 +- dom/webidl/Range.webidl | 3 +- dom/webidl/Request.webidl | 3 +- dom/webidl/Response.webidl | 3 +- dom/webidl/SVGAElement.webidl | 3 +- dom/webidl/SVGAngle.webidl | 3 +- dom/webidl/SVGAnimateElement.webidl | 3 +- dom/webidl/SVGAnimateMotionElement.webidl | 3 +- dom/webidl/SVGAnimateTransformElement.webidl | 3 +- dom/webidl/SVGAnimatedAngle.webidl | 3 +- dom/webidl/SVGAnimatedBoolean.webidl | 3 +- dom/webidl/SVGAnimatedEnumeration.webidl | 3 +- dom/webidl/SVGAnimatedInteger.webidl | 3 +- dom/webidl/SVGAnimatedLength.webidl | 3 +- dom/webidl/SVGAnimatedLengthList.webidl | 3 +- dom/webidl/SVGAnimatedNumber.webidl | 3 +- dom/webidl/SVGAnimatedNumberList.webidl | 3 +- dom/webidl/SVGAnimatedPathData.webidl | 3 +- dom/webidl/SVGAnimatedPoints.webidl | 3 +- .../SVGAnimatedPreserveAspectRatio.webidl | 3 +- dom/webidl/SVGAnimatedRect.webidl | 3 +- dom/webidl/SVGAnimatedString.webidl | 3 +- dom/webidl/SVGAnimatedTransformList.webidl | 3 +- dom/webidl/SVGAnimationElement.webidl | 3 +- dom/webidl/SVGCircleElement.webidl | 3 +- dom/webidl/SVGClipPathElement.webidl | 3 +- ...SVGComponentTransferFunctionElement.webidl | 3 +- dom/webidl/SVGDefsElement.webidl | 3 +- dom/webidl/SVGDescElement.webidl | 3 +- dom/webidl/SVGElement.webidl | 3 +- dom/webidl/SVGEllipseElement.webidl | 3 +- dom/webidl/SVGFEBlendElement.webidl | 3 +- dom/webidl/SVGFEColorMatrixElement.webidl | 3 +- .../SVGFEComponentTransferElement.webidl | 3 +- dom/webidl/SVGFECompositeElement.webidl | 3 +- dom/webidl/SVGFEConvolveMatrixElement.webidl | 3 +- dom/webidl/SVGFEDiffuseLightingElement.webidl | 3 +- dom/webidl/SVGFEDisplacementMapElement.webidl | 3 +- dom/webidl/SVGFEDistantLightElement.webidl | 3 +- dom/webidl/SVGFEDropShadowElement.webidl | 3 +- dom/webidl/SVGFEFloodElement.webidl | 3 +- dom/webidl/SVGFEFuncAElement.webidl | 3 +- dom/webidl/SVGFEFuncBElement.webidl | 3 +- dom/webidl/SVGFEFuncGElement.webidl | 3 +- dom/webidl/SVGFEFuncRElement.webidl | 3 +- dom/webidl/SVGFEGaussianBlurElement.webidl | 3 +- dom/webidl/SVGFEImageElement.webidl | 3 +- dom/webidl/SVGFEMergeElement.webidl | 3 +- dom/webidl/SVGFEMergeNodeElement.webidl | 3 +- dom/webidl/SVGFEMorphologyElement.webidl | 3 +- dom/webidl/SVGFEOffsetElement.webidl | 3 +- dom/webidl/SVGFEPointLightElement.webidl | 3 +- .../SVGFESpecularLightingElement.webidl | 3 +- dom/webidl/SVGFESpotLightElement.webidl | 3 +- dom/webidl/SVGFETileElement.webidl | 3 +- dom/webidl/SVGFETurbulenceElement.webidl | 3 +- dom/webidl/SVGFilterElement.webidl | 3 +- ...VGFilterPrimitiveStandardAttributes.webidl | 3 +- dom/webidl/SVGFitToViewBox.webidl | 3 +- dom/webidl/SVGForeignObjectElement.webidl | 3 +- dom/webidl/SVGGElement.webidl | 3 +- dom/webidl/SVGGeometryElement.webidl | 3 +- dom/webidl/SVGGradientElement.webidl | 3 +- dom/webidl/SVGGraphicsElement.webidl | 3 +- dom/webidl/SVGImageElement.webidl | 3 +- dom/webidl/SVGLength.webidl | 3 +- dom/webidl/SVGLengthList.webidl | 3 +- dom/webidl/SVGLineElement.webidl | 3 +- dom/webidl/SVGLinearGradientElement.webidl | 3 +- dom/webidl/SVGMPathElement.webidl | 3 +- dom/webidl/SVGMarkerElement.webidl | 3 +- dom/webidl/SVGMaskElement.webidl | 3 +- dom/webidl/SVGMatrix.webidl | 3 +- dom/webidl/SVGMetadataElement.webidl | 3 +- dom/webidl/SVGNumber.webidl | 3 +- dom/webidl/SVGNumberList.webidl | 3 +- dom/webidl/SVGPathElement.webidl | 3 +- dom/webidl/SVGPathSeg.webidl | 3 +- dom/webidl/SVGPathSegList.webidl | 3 +- dom/webidl/SVGPatternElement.webidl | 3 +- dom/webidl/SVGPoint.webidl | 3 +- dom/webidl/SVGPointList.webidl | 3 +- dom/webidl/SVGPolygonElement.webidl | 3 +- dom/webidl/SVGPolylineElement.webidl | 3 +- dom/webidl/SVGPreserveAspectRatio.webidl | 3 +- dom/webidl/SVGRadialGradientElement.webidl | 3 +- dom/webidl/SVGRect.webidl | 3 +- dom/webidl/SVGRectElement.webidl | 3 +- dom/webidl/SVGSVGElement.webidl | 3 +- dom/webidl/SVGScriptElement.webidl | 3 +- dom/webidl/SVGSetElement.webidl | 3 +- dom/webidl/SVGStopElement.webidl | 3 +- dom/webidl/SVGStringList.webidl | 3 +- dom/webidl/SVGStyleElement.webidl | 3 +- dom/webidl/SVGSwitchElement.webidl | 3 +- dom/webidl/SVGSymbolElement.webidl | 3 +- dom/webidl/SVGTSpanElement.webidl | 3 +- dom/webidl/SVGTests.webidl | 3 +- dom/webidl/SVGTextContentElement.webidl | 3 +- dom/webidl/SVGTextElement.webidl | 3 +- dom/webidl/SVGTextPathElement.webidl | 3 +- dom/webidl/SVGTextPositioningElement.webidl | 3 +- dom/webidl/SVGTitleElement.webidl | 3 +- dom/webidl/SVGTransform.webidl | 3 +- dom/webidl/SVGTransformList.webidl | 3 +- dom/webidl/SVGURIReference.webidl | 3 +- dom/webidl/SVGUnitTypes.webidl | 3 +- dom/webidl/SVGUseElement.webidl | 3 +- dom/webidl/SVGViewElement.webidl | 3 +- dom/webidl/SVGZoomAndPan.webidl | 3 +- dom/webidl/SVGZoomAndPanValues.webidl | 3 +- dom/webidl/Screen.webidl | 3 +- dom/webidl/ScreenOrientation.webidl | 3 +- dom/webidl/ScriptProcessorNode.webidl | 3 +- dom/webidl/ScrollAreaEvent.webidl | 3 +- dom/webidl/ScrollViewChangeEvent.webidl | 3 +- .../SecurityPolicyViolationEvent.webidl | 50 ++-- dom/webidl/Selection.webidl | 3 +- dom/webidl/ServiceWorker.webidl | 3 +- dom/webidl/ServiceWorkerContainer.webidl | 3 +- dom/webidl/ServiceWorkerGlobalScope.webidl | 3 +- dom/webidl/ServiceWorkerRegistration.webidl | 3 +- dom/webidl/ShadowRoot.webidl | 3 +- dom/webidl/SharedWorker.webidl | 3 +- dom/webidl/SharedWorkerGlobalScope.webidl | 3 +- dom/webidl/SimpleGestureEvent.webidl | 3 +- dom/webidl/SocketCommon.webidl | 3 +- dom/webidl/SourceBuffer.webidl | 3 +- dom/webidl/SourceBufferList.webidl | 3 +- dom/webidl/SpeechGrammar.webidl | 3 +- dom/webidl/SpeechGrammarList.webidl | 3 +- dom/webidl/SpeechRecognition.webidl | 55 ++-- .../SpeechRecognitionAlternative.webidl | 3 +- dom/webidl/SpeechRecognitionError.webidl | 3 +- dom/webidl/SpeechRecognitionEvent.webidl | 3 +- dom/webidl/SpeechRecognitionResult.webidl | 3 +- dom/webidl/SpeechRecognitionResultList.webidl | 3 +- dom/webidl/SpeechSynthesis.webidl | 3 +- dom/webidl/SpeechSynthesisErrorEvent.webidl | 3 +- dom/webidl/SpeechSynthesisEvent.webidl | 3 +- dom/webidl/SpeechSynthesisUtterance.webidl | 3 +- dom/webidl/SpeechSynthesisVoice.webidl | 3 +- dom/webidl/StereoPannerNode.webidl | 3 +- dom/webidl/Storage.webidl | 3 +- dom/webidl/StorageEvent.webidl | 3 +- dom/webidl/StorageManager.webidl | 3 +- dom/webidl/StorageType.webidl | 3 +- dom/webidl/StreamFilter.webidl | 3 +- dom/webidl/StreamFilterDataEvent.webidl | 3 +- dom/webidl/StyleRuleChangeEvent.webidl | 3 +- dom/webidl/StyleSheet.webidl | 3 +- ...tyleSheetApplicableStateChangeEvent.webidl | 3 +- dom/webidl/StyleSheetChangeEvent.webidl | 3 +- dom/webidl/StyleSheetList.webidl | 2 - dom/webidl/SubtleCrypto.webidl | 3 +- dom/webidl/TCPServerSocket.webidl | 3 +- dom/webidl/TCPServerSocketEvent.webidl | 3 +- dom/webidl/TCPSocket.webidl | 3 +- dom/webidl/TCPSocketErrorEvent.webidl | 3 +- dom/webidl/TCPSocketEvent.webidl | 3 +- dom/webidl/TestFunctions.webidl | 3 +- dom/webidl/TestInterfaceJS.webidl | 3 +- dom/webidl/TestInterfaceJSDictionaries.webidl | 3 +- ...stInterfaceJSMaplikeSetlikeIterable.webidl | 3 +- dom/webidl/Text.webidl | 3 +- dom/webidl/TextClause.webidl | 3 +- dom/webidl/TextDecoder.webidl | 3 +- dom/webidl/TextEncoder.webidl | 3 +- dom/webidl/TextTrack.webidl | 3 +- dom/webidl/TextTrackCue.webidl | 3 +- dom/webidl/TextTrackCueList.webidl | 3 +- dom/webidl/TextTrackList.webidl | 3 +- dom/webidl/TimeEvent.webidl | 3 +- dom/webidl/TimeRanges.webidl | 3 +- dom/webidl/Touch.webidl | 3 +- dom/webidl/TouchEvent.webidl | 3 +- dom/webidl/TouchList.webidl | 3 +- dom/webidl/TrackEvent.webidl | 3 +- dom/webidl/TransceiverImpl.webidl | 3 +- dom/webidl/TransitionEvent.webidl | 3 +- dom/webidl/TreeBoxObject.webidl | 4 +- dom/webidl/TreeColumn.webidl | 2 - dom/webidl/TreeColumns.webidl | 2 - dom/webidl/TreeContentView.webidl | 3 +- dom/webidl/TreeView.webidl | 3 +- dom/webidl/TreeWalker.webidl | 3 +- dom/webidl/U2F.webidl | 55 ++-- dom/webidl/UDPMessageEvent.webidl | 3 +- dom/webidl/UDPSocket.webidl | 45 ++-- dom/webidl/UIEvent.webidl | 3 +- dom/webidl/URL.webidl | 3 +- dom/webidl/URLSearchParams.webidl | 3 +- dom/webidl/UserProximityEvent.webidl | 3 +- dom/webidl/VRDisplay.webidl | 3 +- dom/webidl/VRDisplayEvent.webidl | 3 +- dom/webidl/VRServiceTest.webidl | 2 - dom/webidl/VTTCue.webidl | 3 +- dom/webidl/VTTRegion.webidl | 3 +- dom/webidl/ValidityState.webidl | 3 +- dom/webidl/VideoPlaybackQuality.webidl | 3 +- dom/webidl/VideoStreamTrack.webidl | 3 +- dom/webidl/VideoTrack.webidl | 3 +- dom/webidl/VideoTrackList.webidl | 3 +- dom/webidl/VisualViewport.webidl | 3 +- dom/webidl/WaveShaperNode.webidl | 3 +- dom/webidl/WebAuthentication.webidl | 129 +++++----- dom/webidl/WebComponents.webidl | 3 +- dom/webidl/WebGLContextEvent.webidl | 3 +- dom/webidl/WebGPUExtras.webidl | 3 +- dom/webidl/WebKitCSSMatrix.webidl | 47 ++-- dom/webidl/WebSocket.webidl | 3 +- dom/webidl/WebrtcDeprecated.webidl | 3 +- dom/webidl/WebrtcGlobalInformation.webidl | 3 +- dom/webidl/WheelEvent.webidl | 3 +- dom/webidl/WidevineCDMManifest.webidl | 30 +-- dom/webidl/Window.webidl | 3 +- dom/webidl/WindowOrWorkerGlobalScope.webidl | 3 +- dom/webidl/WindowRoot.webidl | 3 +- dom/webidl/Worker.webidl | 3 +- dom/webidl/WorkerDebuggerGlobalScope.webidl | 3 +- dom/webidl/WorkerGlobalScope.webidl | 3 +- dom/webidl/WorkerLocation.webidl | 3 +- dom/webidl/WorkerNavigator.webidl | 2 - dom/webidl/Worklet.webidl | 3 +- dom/webidl/WorkletGlobalScope.webidl | 3 +- dom/webidl/XMLDocument.webidl | 3 +- dom/webidl/XMLHttpRequest.webidl | 3 +- dom/webidl/XMLHttpRequestEventTarget.webidl | 3 +- dom/webidl/XMLHttpRequestUpload.webidl | 3 +- dom/webidl/XMLSerializer.webidl | 2 - dom/webidl/XPathEvaluator.webidl | 3 +- dom/webidl/XPathExpression.webidl | 3 +- dom/webidl/XPathNSResolver.webidl | 3 +- dom/webidl/XPathResult.webidl | 3 +- dom/webidl/XSLTProcessor.webidl | 171 +++++++------ dom/webidl/XULCommandEvent.webidl | 3 +- dom/webidl/XULDocument.webidl | 3 +- dom/webidl/XULElement.webidl | 3 +- dom/webidl/XULPopupElement.webidl | 3 +- 717 files changed, 1657 insertions(+), 2438 deletions(-) diff --git a/dom/bindings/mozwebidlcodegen/test/Child.webidl b/dom/bindings/mozwebidlcodegen/test/Child.webidl index de1e0b8f8ae2..f7d0a76c9d3f 100644 --- a/dom/bindings/mozwebidlcodegen/test/Child.webidl +++ b/dom/bindings/mozwebidlcodegen/test/Child.webidl @@ -1,6 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ - interface Child : Parent { void ChildBaz(); }; diff --git a/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl b/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl index 31fe6e77a511..34794993fe4a 100644 --- a/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl +++ b/dom/bindings/mozwebidlcodegen/test/ExampleBinding.webidl @@ -1,6 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ - /* These interfaces are hard-coded and need to be defined. */ interface TestExampleInterface {}; interface TestExampleProxyInterface {}; diff --git a/dom/bindings/mozwebidlcodegen/test/Parent.webidl b/dom/bindings/mozwebidlcodegen/test/Parent.webidl index 56c9bdb3b9f0..423f364aea23 100644 --- a/dom/bindings/mozwebidlcodegen/test/Parent.webidl +++ b/dom/bindings/mozwebidlcodegen/test/Parent.webidl @@ -1,6 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ - interface Parent { void MethodFoo(); }; diff --git a/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl b/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl index 85dabef7efcb..db085629186c 100644 --- a/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl +++ b/dom/bindings/mozwebidlcodegen/test/TestEvent.webidl @@ -1,6 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ - interface EventTarget { void addEventListener(); }; diff --git a/dom/bindings/test/TestCodeGen.webidl b/dom/bindings/test/TestCodeGen.webidl index 59c1ef11f42d..8bf40b27b24e 100644 --- a/dom/bindings/test/TestCodeGen.webidl +++ b/dom/bindings/test/TestCodeGen.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestDictionary.webidl b/dom/bindings/test/TestDictionary.webidl index e5a9835abe7f..3dd91bd6500c 100644 --- a/dom/bindings/test/TestDictionary.webidl +++ b/dom/bindings/test/TestDictionary.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestExampleGen.webidl b/dom/bindings/test/TestExampleGen.webidl index f4607c159edb..2fedb3122bf7 100644 --- a/dom/bindings/test/TestExampleGen.webidl +++ b/dom/bindings/test/TestExampleGen.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestJSImplGen.webidl b/dom/bindings/test/TestJSImplGen.webidl index 18c1e8a0921f..fe291d4fa7c6 100644 --- a/dom/bindings/test/TestJSImplGen.webidl +++ b/dom/bindings/test/TestJSImplGen.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestJSImplInheritanceGen.webidl b/dom/bindings/test/TestJSImplInheritanceGen.webidl index fa1e28e59ebc..e62dbd10be6e 100644 --- a/dom/bindings/test/TestJSImplInheritanceGen.webidl +++ b/dom/bindings/test/TestJSImplInheritanceGen.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/bindings/test/TestTypedef.webidl b/dom/bindings/test/TestTypedef.webidl index 6c97d64891c1..7f758c79e8f8 100644 --- a/dom/bindings/test/TestTypedef.webidl +++ b/dom/bindings/test/TestTypedef.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/BrowsingContext.webidl b/dom/chrome-webidl/BrowsingContext.webidl index 684a23157848..2b0df20aa7ee 100644 --- a/dom/chrome-webidl/BrowsingContext.webidl +++ b/dom/chrome-webidl/BrowsingContext.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/ChannelWrapper.webidl b/dom/chrome-webidl/ChannelWrapper.webidl index d1ef4081ca1c..8f9a5c3daf56 100644 --- a/dom/chrome-webidl/ChannelWrapper.webidl +++ b/dom/chrome-webidl/ChannelWrapper.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/ChromeUtils.webidl b/dom/chrome-webidl/ChromeUtils.webidl index 9208b9eb5c83..20c3076478c8 100644 --- a/dom/chrome-webidl/ChromeUtils.webidl +++ b/dom/chrome-webidl/ChromeUtils.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/DominatorTree.webidl b/dom/chrome-webidl/DominatorTree.webidl index ce974a0832a6..7eac4a8be251 100644 --- a/dom/chrome-webidl/DominatorTree.webidl +++ b/dom/chrome-webidl/DominatorTree.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/HeapSnapshot.webidl b/dom/chrome-webidl/HeapSnapshot.webidl index 56903b9213b6..f1418dc28215 100644 --- a/dom/chrome-webidl/HeapSnapshot.webidl +++ b/dom/chrome-webidl/HeapSnapshot.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/InspectorUtils.webidl b/dom/chrome-webidl/InspectorUtils.webidl index dc225d5ac88d..98dff60c9c56 100644 --- a/dom/chrome-webidl/InspectorUtils.webidl +++ b/dom/chrome-webidl/InspectorUtils.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/IteratorResult.webidl b/dom/chrome-webidl/IteratorResult.webidl index f4eec4e1a8de..1fdd26810e07 100644 --- a/dom/chrome-webidl/IteratorResult.webidl +++ b/dom/chrome-webidl/IteratorResult.webidl @@ -1,4 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/dom/chrome-webidl/MatchGlob.webidl b/dom/chrome-webidl/MatchGlob.webidl index ec95f44a03cf..60fda71900c5 100644 --- a/dom/chrome-webidl/MatchGlob.webidl +++ b/dom/chrome-webidl/MatchGlob.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MatchPattern.webidl b/dom/chrome-webidl/MatchPattern.webidl index e4b4d50b6c14..e7a96a486b04 100644 --- a/dom/chrome-webidl/MatchPattern.webidl +++ b/dom/chrome-webidl/MatchPattern.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MessageManager.webidl b/dom/chrome-webidl/MessageManager.webidl index 072fc14a53e0..7f3c47297f27 100644 --- a/dom/chrome-webidl/MessageManager.webidl +++ b/dom/chrome-webidl/MessageManager.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozDocumentObserver.webidl b/dom/chrome-webidl/MozDocumentObserver.webidl index 08830ec566c2..6fcbffaaac2a 100644 --- a/dom/chrome-webidl/MozDocumentObserver.webidl +++ b/dom/chrome-webidl/MozDocumentObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/MozSharedMap.webidl b/dom/chrome-webidl/MozSharedMap.webidl index b9c03185f19e..178dc82a948f 100644 --- a/dom/chrome-webidl/MozSharedMap.webidl +++ b/dom/chrome-webidl/MozSharedMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl b/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl index 7e5bc0f363a9..fec002af579c 100644 --- a/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl +++ b/dom/chrome-webidl/MozStorageAsyncStatementParams.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozStorageStatementParams.webidl b/dom/chrome-webidl/MozStorageStatementParams.webidl index d173dc5af303..61cba37770cb 100644 --- a/dom/chrome-webidl/MozStorageStatementParams.webidl +++ b/dom/chrome-webidl/MozStorageStatementParams.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/MozStorageStatementRow.webidl b/dom/chrome-webidl/MozStorageStatementRow.webidl index e22d0d4997ef..5e644ec24bed 100644 --- a/dom/chrome-webidl/MozStorageStatementRow.webidl +++ b/dom/chrome-webidl/MozStorageStatementRow.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/PlacesEvent.webidl b/dom/chrome-webidl/PlacesEvent.webidl index d57320059dba..6d3fe684d909 100644 --- a/dom/chrome-webidl/PlacesEvent.webidl +++ b/dom/chrome-webidl/PlacesEvent.webidl @@ -1,9 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - enum PlacesEventType { "none", diff --git a/dom/chrome-webidl/PlacesObservers.webidl b/dom/chrome-webidl/PlacesObservers.webidl index 255612f9f854..e6ab84872969 100644 --- a/dom/chrome-webidl/PlacesObservers.webidl +++ b/dom/chrome-webidl/PlacesObservers.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PrecompiledScript.webidl b/dom/chrome-webidl/PrecompiledScript.webidl index c3d5d8f90e15..5e2a21ad202f 100644 --- a/dom/chrome-webidl/PrecompiledScript.webidl +++ b/dom/chrome-webidl/PrecompiledScript.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PrioEncoder.webidl b/dom/chrome-webidl/PrioEncoder.webidl index 819ed3ada80d..3b0243326bcc 100644 --- a/dom/chrome-webidl/PrioEncoder.webidl +++ b/dom/chrome-webidl/PrioEncoder.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/PromiseDebugging.webidl b/dom/chrome-webidl/PromiseDebugging.webidl index 56840a3810d1..1a5c1aa321cc 100644 --- a/dom/chrome-webidl/PromiseDebugging.webidl +++ b/dom/chrome-webidl/PromiseDebugging.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/StructuredCloneHolder.webidl b/dom/chrome-webidl/StructuredCloneHolder.webidl index 99b9dd79934a..716de49f5087 100644 --- a/dom/chrome-webidl/StructuredCloneHolder.webidl +++ b/dom/chrome-webidl/StructuredCloneHolder.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/chrome-webidl/WebExtensionContentScript.webidl b/dom/chrome-webidl/WebExtensionContentScript.webidl index 787e8df71b24..488bd82b104d 100644 --- a/dom/chrome-webidl/WebExtensionContentScript.webidl +++ b/dom/chrome-webidl/WebExtensionContentScript.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/WebExtensionPolicy.webidl b/dom/chrome-webidl/WebExtensionPolicy.webidl index ca99b16d88fe..6fc51046eb82 100644 --- a/dom/chrome-webidl/WebExtensionPolicy.webidl +++ b/dom/chrome-webidl/WebExtensionPolicy.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/XULFrameElement.webidl b/dom/chrome-webidl/XULFrameElement.webidl index 447a94815270..80d9f55113ee 100644 --- a/dom/chrome-webidl/XULFrameElement.webidl +++ b/dom/chrome-webidl/XULFrameElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/chrome-webidl/XULScrollElement.webidl b/dom/chrome-webidl/XULScrollElement.webidl index 5a3a4f7f2925..ac417969950a 100644 --- a/dom/chrome-webidl/XULScrollElement.webidl +++ b/dom/chrome-webidl/XULScrollElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/APZTestData.webidl b/dom/webidl/APZTestData.webidl index 12f84d3c9814..8f10823498ff 100644 --- a/dom/webidl/APZTestData.webidl +++ b/dom/webidl/APZTestData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbortController.webidl b/dom/webidl/AbortController.webidl index d2175d786592..19a8f8a63733 100644 --- a/dom/webidl/AbortController.webidl +++ b/dom/webidl/AbortController.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbortSignal.webidl b/dom/webidl/AbortSignal.webidl index 2505b00d0509..6b66f76c4cd9 100644 --- a/dom/webidl/AbortSignal.webidl +++ b/dom/webidl/AbortSignal.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AbstractWorker.webidl b/dom/webidl/AbstractWorker.webidl index d905eb87087e..7ea6e367b6c2 100644 --- a/dom/webidl/AbstractWorker.webidl +++ b/dom/webidl/AbstractWorker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AccessibleNode.webidl b/dom/webidl/AccessibleNode.webidl index c7c9dd5ee2fa..f121c8bad702 100644 --- a/dom/webidl/AccessibleNode.webidl +++ b/dom/webidl/AccessibleNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AddonEvent.webidl b/dom/webidl/AddonEvent.webidl index 4c7797be33e3..235f81ec22eb 100644 --- a/dom/webidl/AddonEvent.webidl +++ b/dom/webidl/AddonEvent.webidl @@ -1,9 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - [ Func="mozilla::AddonManagerWebAPI::IsAPIEnabled", Constructor(DOMString type, AddonEventInit eventInitDict)] interface AddonEvent : Event { diff --git a/dom/webidl/AddonManager.webidl b/dom/webidl/AddonManager.webidl index bacf69e5059e..0fb9cf3925ee 100644 --- a/dom/webidl/AddonManager.webidl +++ b/dom/webidl/AddonManager.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnalyserNode.webidl b/dom/webidl/AnalyserNode.webidl index bcbb965ed046..73c697f00375 100644 --- a/dom/webidl/AnalyserNode.webidl +++ b/dom/webidl/AnalyserNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -22,26 +21,26 @@ dictionary AnalyserOptions : AudioNodeOptions { Constructor(BaseAudioContext context, optional AnalyserOptions options)] interface AnalyserNode : AudioNode { - // Real-time frequency-domain data - void getFloatFrequencyData(Float32Array array); - void getByteFrequencyData(Uint8Array array); + // Real-time frequency-domain data + void getFloatFrequencyData(Float32Array array); + void getByteFrequencyData(Uint8Array array); - // Real-time waveform data - void getFloatTimeDomainData(Float32Array array); - void getByteTimeDomainData(Uint8Array array); + // Real-time waveform data + void getFloatTimeDomainData(Float32Array array); + void getByteTimeDomainData(Uint8Array array); - [SetterThrows, Pure] - attribute unsigned long fftSize; - [Pure] - readonly attribute unsigned long frequencyBinCount; + [SetterThrows, Pure] + attribute unsigned long fftSize; + [Pure] + readonly attribute unsigned long frequencyBinCount; - [SetterThrows, Pure] - attribute double minDecibels; - [SetterThrows, Pure] - attribute double maxDecibels; + [SetterThrows, Pure] + attribute double minDecibels; + [SetterThrows, Pure] + attribute double maxDecibels; - [SetterThrows, Pure] - attribute double smoothingTimeConstant; + [SetterThrows, Pure] + attribute double smoothingTimeConstant; }; diff --git a/dom/webidl/Animatable.webidl b/dom/webidl/Animatable.webidl index 15aea8516bef..664ec8ea282a 100644 --- a/dom/webidl/Animatable.webidl +++ b/dom/webidl/Animatable.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Animation.webidl b/dom/webidl/Animation.webidl index 234e2423dcd3..54e586b01f98 100644 --- a/dom/webidl/Animation.webidl +++ b/dom/webidl/Animation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationEffect.webidl b/dom/webidl/AnimationEffect.webidl index aa2d01c7cd24..81a04b2193f2 100644 --- a/dom/webidl/AnimationEffect.webidl +++ b/dom/webidl/AnimationEffect.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationEvent.webidl b/dom/webidl/AnimationEvent.webidl index c72e9daec739..e48ed571ca00 100644 --- a/dom/webidl/AnimationEvent.webidl +++ b/dom/webidl/AnimationEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationPlaybackEvent.webidl b/dom/webidl/AnimationPlaybackEvent.webidl index ef95558812bd..db8136eae66e 100644 --- a/dom/webidl/AnimationPlaybackEvent.webidl +++ b/dom/webidl/AnimationPlaybackEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnimationTimeline.webidl b/dom/webidl/AnimationTimeline.webidl index 6b46d89f69ff..7a1bc0cb713c 100644 --- a/dom/webidl/AnimationTimeline.webidl +++ b/dom/webidl/AnimationTimeline.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AnonymousContent.webidl b/dom/webidl/AnonymousContent.webidl index 89cc7bd7366c..c1037ca55fe0 100644 --- a/dom/webidl/AnonymousContent.webidl +++ b/dom/webidl/AnonymousContent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AppInfo.webidl b/dom/webidl/AppInfo.webidl index 5141fda6cf36..a4f44d46c250 100644 --- a/dom/webidl/AppInfo.webidl +++ b/dom/webidl/AppInfo.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/AppNotificationServiceOptions.webidl b/dom/webidl/AppNotificationServiceOptions.webidl index 7c63e2106e0e..f5addc92ac7f 100644 --- a/dom/webidl/AppNotificationServiceOptions.webidl +++ b/dom/webidl/AppNotificationServiceOptions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Attr.webidl b/dom/webidl/Attr.webidl index 1fd7161cf7e3..921e2df81fbd 100644 --- a/dom/webidl/Attr.webidl +++ b/dom/webidl/Attr.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioBuffer.webidl b/dom/webidl/AudioBuffer.webidl index cd169b463783..7006b86e35bd 100644 --- a/dom/webidl/AudioBuffer.webidl +++ b/dom/webidl/AudioBuffer.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioBufferSourceNode.webidl b/dom/webidl/AudioBufferSourceNode.webidl index 29c03f36bb75..1c30db3da2d6 100644 --- a/dom/webidl/AudioBufferSourceNode.webidl +++ b/dom/webidl/AudioBufferSourceNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioContext.webidl b/dom/webidl/AudioContext.webidl index 81974b7374cc..d115b968b626 100644 --- a/dom/webidl/AudioContext.webidl +++ b/dom/webidl/AudioContext.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioDestinationNode.webidl b/dom/webidl/AudioDestinationNode.webidl index e3b49d8f865e..e5c6db868f9e 100644 --- a/dom/webidl/AudioDestinationNode.webidl +++ b/dom/webidl/AudioDestinationNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioListener.webidl b/dom/webidl/AudioListener.webidl index 1d9e43e117ed..d25c3ac4cc9d 100644 --- a/dom/webidl/AudioListener.webidl +++ b/dom/webidl/AudioListener.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioNode.webidl b/dom/webidl/AudioNode.webidl index 65507727584a..80b33e50eeb2 100644 --- a/dom/webidl/AudioNode.webidl +++ b/dom/webidl/AudioNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -12,55 +11,55 @@ */ enum ChannelCountMode { - "max", - "clamped-max", - "explicit" + "max", + "clamped-max", + "explicit" }; enum ChannelInterpretation { - "speakers", - "discrete" + "speakers", + "discrete" }; dictionary AudioNodeOptions { - unsigned long channelCount; - ChannelCountMode channelCountMode; - ChannelInterpretation channelInterpretation; + unsigned long channelCount; + ChannelCountMode channelCountMode; + ChannelInterpretation channelInterpretation; }; [Pref="dom.webaudio.enabled"] interface AudioNode : EventTarget { - [Throws] - AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); - [Throws] - void connect(AudioParam destination, optional unsigned long output = 0); - [Throws] - void disconnect(); - [Throws] - void disconnect(unsigned long output); - [Throws] - void disconnect(AudioNode destination); - [Throws] - void disconnect(AudioNode destination, unsigned long output); - [Throws] - void disconnect(AudioNode destination, unsigned long output, unsigned long input); - [Throws] - void disconnect(AudioParam destination); - [Throws] - void disconnect(AudioParam destination, unsigned long output); + [Throws] + AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); + [Throws] + void connect(AudioParam destination, optional unsigned long output = 0); + [Throws] + void disconnect(); + [Throws] + void disconnect(unsigned long output); + [Throws] + void disconnect(AudioNode destination); + [Throws] + void disconnect(AudioNode destination, unsigned long output); + [Throws] + void disconnect(AudioNode destination, unsigned long output, unsigned long input); + [Throws] + void disconnect(AudioParam destination); + [Throws] + void disconnect(AudioParam destination, unsigned long output); - readonly attribute BaseAudioContext context; - readonly attribute unsigned long numberOfInputs; - readonly attribute unsigned long numberOfOutputs; + readonly attribute BaseAudioContext context; + readonly attribute unsigned long numberOfInputs; + readonly attribute unsigned long numberOfOutputs; - // Channel up-mixing and down-mixing rules for all inputs. - [SetterThrows] - attribute unsigned long channelCount; - [SetterThrows] - attribute ChannelCountMode channelCountMode; - [SetterThrows] - attribute ChannelInterpretation channelInterpretation; + // Channel up-mixing and down-mixing rules for all inputs. + [SetterThrows] + attribute unsigned long channelCount; + [SetterThrows] + attribute ChannelCountMode channelCountMode; + [SetterThrows] + attribute ChannelInterpretation channelInterpretation; }; diff --git a/dom/webidl/AudioParam.webidl b/dom/webidl/AudioParam.webidl index fc19e491f02e..dd4057de8044 100644 --- a/dom/webidl/AudioParam.webidl +++ b/dom/webidl/AudioParam.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -14,31 +13,31 @@ [Pref="dom.webaudio.enabled"] interface AudioParam { - attribute float value; - readonly attribute float defaultValue; - readonly attribute float minValue; - readonly attribute float maxValue; + attribute float value; + readonly attribute float defaultValue; + readonly attribute float minValue; + readonly attribute float maxValue; - // Parameter automation. - [Throws] - AudioParam setValueAtTime(float value, double startTime); - [Throws] - AudioParam linearRampToValueAtTime(float value, double endTime); - [Throws] - AudioParam exponentialRampToValueAtTime(float value, double endTime); + // Parameter automation. + [Throws] + AudioParam setValueAtTime(float value, double startTime); + [Throws] + AudioParam linearRampToValueAtTime(float value, double endTime); + [Throws] + AudioParam exponentialRampToValueAtTime(float value, double endTime); - // Exponentially approach the target value with a rate having the given time constant. - [Throws] - AudioParam setTargetAtTime(float target, double startTime, double timeConstant); + // Exponentially approach the target value with a rate having the given time constant. + [Throws] + AudioParam setTargetAtTime(float target, double startTime, double timeConstant); - // Sets an array of arbitrary parameter values starting at time for the given duration. - // The number of values will be scaled to fit into the desired duration. - [Throws] - AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); + // Sets an array of arbitrary parameter values starting at time for the given duration. + // The number of values will be scaled to fit into the desired duration. + [Throws] + AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); - // Cancels all scheduled parameter changes with times greater than or equal to startTime. - [Throws] - AudioParam cancelScheduledValues(double startTime); + // Cancels all scheduled parameter changes with times greater than or equal to startTime. + [Throws] + AudioParam cancelScheduledValues(double startTime); }; diff --git a/dom/webidl/AudioParamMap.webidl b/dom/webidl/AudioParamMap.webidl index 573292ce63c0..9aabd93d4d85 100644 --- a/dom/webidl/AudioParamMap.webidl +++ b/dom/webidl/AudioParamMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioProcessingEvent.webidl b/dom/webidl/AudioProcessingEvent.webidl index 61f143d7f178..8cf3d9cc2272 100644 --- a/dom/webidl/AudioProcessingEvent.webidl +++ b/dom/webidl/AudioProcessingEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioScheduledSourceNode.webidl b/dom/webidl/AudioScheduledSourceNode.webidl index 58e918d638e7..2acf6373b32c 100644 --- a/dom/webidl/AudioScheduledSourceNode.webidl +++ b/dom/webidl/AudioScheduledSourceNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioStreamTrack.webidl b/dom/webidl/AudioStreamTrack.webidl index 72ec57913745..9fff71cedc36 100644 --- a/dom/webidl/AudioStreamTrack.webidl +++ b/dom/webidl/AudioStreamTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioTrack.webidl b/dom/webidl/AudioTrack.webidl index 3d6fa299124e..e70456a3726c 100644 --- a/dom/webidl/AudioTrack.webidl +++ b/dom/webidl/AudioTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioTrackList.webidl b/dom/webidl/AudioTrackList.webidl index b78ebf0e2605..2c229a67a285 100644 --- a/dom/webidl/AudioTrackList.webidl +++ b/dom/webidl/AudioTrackList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorklet.webidl b/dom/webidl/AudioWorklet.webidl index 0494bf7a4495..720cd03ce67c 100644 --- a/dom/webidl/AudioWorklet.webidl +++ b/dom/webidl/AudioWorklet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletGlobalScope.webidl b/dom/webidl/AudioWorkletGlobalScope.webidl index b9afd2d42c55..a2b860e31507 100644 --- a/dom/webidl/AudioWorkletGlobalScope.webidl +++ b/dom/webidl/AudioWorkletGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletNode.webidl b/dom/webidl/AudioWorkletNode.webidl index 0468dfe2229c..fedb94497592 100644 --- a/dom/webidl/AudioWorkletNode.webidl +++ b/dom/webidl/AudioWorkletNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AudioWorkletProcessor.webidl b/dom/webidl/AudioWorkletProcessor.webidl index 61b879fbc743..01ef6cbc48ca 100644 --- a/dom/webidl/AudioWorkletProcessor.webidl +++ b/dom/webidl/AudioWorkletProcessor.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/AutocompleteInfo.webidl b/dom/webidl/AutocompleteInfo.webidl index 2541dcd1cd54..ad32ff6d3262 100644 --- a/dom/webidl/AutocompleteInfo.webidl +++ b/dom/webidl/AutocompleteInfo.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BarProp.webidl b/dom/webidl/BarProp.webidl index 71a02236c038..871f0793e4cb 100644 --- a/dom/webidl/BarProp.webidl +++ b/dom/webidl/BarProp.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BaseAudioContext.webidl b/dom/webidl/BaseAudioContext.webidl index cccba37ec9ff..e8796bb9f3ab 100644 --- a/dom/webidl/BaseAudioContext.webidl +++ b/dom/webidl/BaseAudioContext.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -15,89 +14,89 @@ callback DecodeSuccessCallback = void (AudioBuffer decodedData); callback DecodeErrorCallback = void (DOMException error); enum AudioContextState { - "suspended", - "running", - "closed" + "suspended", + "running", + "closed" }; interface BaseAudioContext : EventTarget { - readonly attribute AudioDestinationNode destination; - readonly attribute float sampleRate; - readonly attribute double currentTime; - readonly attribute AudioListener listener; - readonly attribute AudioContextState state; - [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] - readonly attribute AudioWorklet audioWorklet; - // Bug 1324552: readonly attribute double baseLatency; + readonly attribute AudioDestinationNode destination; + readonly attribute float sampleRate; + readonly attribute double currentTime; + readonly attribute AudioListener listener; + readonly attribute AudioContextState state; + [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] + readonly attribute AudioWorklet audioWorklet; + // Bug 1324552: readonly attribute double baseLatency; - [Throws] - Promise resume(); + [Throws] + Promise resume(); - attribute EventHandler onstatechange; + attribute EventHandler onstatechange; - [NewObject, Throws] - AudioBuffer createBuffer (unsigned long numberOfChannels, - unsigned long length, - float sampleRate); + [NewObject, Throws] + AudioBuffer createBuffer (unsigned long numberOfChannels, + unsigned long length, + float sampleRate); - [Throws] - Promise decodeAudioData(ArrayBuffer audioData, - optional DecodeSuccessCallback successCallback, - optional DecodeErrorCallback errorCallback); + [Throws] + Promise decodeAudioData(ArrayBuffer audioData, + optional DecodeSuccessCallback successCallback, + optional DecodeErrorCallback errorCallback); - // AudioNode creation - [NewObject, Throws] - AudioBufferSourceNode createBufferSource(); + // AudioNode creation + [NewObject, Throws] + AudioBufferSourceNode createBufferSource(); - [NewObject, Throws] - ConstantSourceNode createConstantSource(); + [NewObject, Throws] + ConstantSourceNode createConstantSource(); - [NewObject, Throws] - ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, - optional unsigned long numberOfInputChannels = 2, - optional unsigned long numberOfOutputChannels = 2); + [NewObject, Throws] + ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, + optional unsigned long numberOfInputChannels = 2, + optional unsigned long numberOfOutputChannels = 2); - [NewObject, Throws] - AnalyserNode createAnalyser(); + [NewObject, Throws] + AnalyserNode createAnalyser(); - [NewObject, Throws] - GainNode createGain(); + [NewObject, Throws] + GainNode createGain(); - [NewObject, Throws] - DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 + [NewObject, Throws] + DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 - [NewObject, Throws] - BiquadFilterNode createBiquadFilter(); + [NewObject, Throws] + BiquadFilterNode createBiquadFilter(); - [NewObject, Throws] - IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); + [NewObject, Throws] + IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); - [NewObject, Throws] - WaveShaperNode createWaveShaper(); + [NewObject, Throws] + WaveShaperNode createWaveShaper(); - [NewObject, Throws] - PannerNode createPanner(); + [NewObject, Throws] + PannerNode createPanner(); - [NewObject, Throws] - StereoPannerNode createStereoPanner(); + [NewObject, Throws] + StereoPannerNode createStereoPanner(); - [NewObject, Throws] - ConvolverNode createConvolver(); + [NewObject, Throws] + ConvolverNode createConvolver(); - [NewObject, Throws] - ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); + [NewObject, Throws] + ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); - [NewObject, Throws] - ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); + [NewObject, Throws] + ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); - [NewObject, Throws] - DynamicsCompressorNode createDynamicsCompressor(); + [NewObject, Throws] + DynamicsCompressorNode createDynamicsCompressor(); - [NewObject, Throws] - OscillatorNode createOscillator(); + [NewObject, Throws] + OscillatorNode createOscillator(); - [NewObject, Throws] - PeriodicWave createPeriodicWave(Float32Array real, - Float32Array imag, - optional PeriodicWaveConstraints constraints); + [NewObject, Throws] + PeriodicWave createPeriodicWave(Float32Array real, + Float32Array imag, + optional PeriodicWaveConstraints constraints); }; diff --git a/dom/webidl/BaseKeyframeTypes.webidl b/dom/webidl/BaseKeyframeTypes.webidl index 757244007940..5686d6126ed3 100644 --- a/dom/webidl/BaseKeyframeTypes.webidl +++ b/dom/webidl/BaseKeyframeTypes.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BasicCardPayment.webidl b/dom/webidl/BasicCardPayment.webidl index 9ab85a6ff2fa..3cd62a43aa62 100644 --- a/dom/webidl/BasicCardPayment.webidl +++ b/dom/webidl/BasicCardPayment.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BatteryManager.webidl b/dom/webidl/BatteryManager.webidl index 2cf63434dd68..a964f3b0b014 100644 --- a/dom/webidl/BatteryManager.webidl +++ b/dom/webidl/BatteryManager.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BeforeUnloadEvent.webidl b/dom/webidl/BeforeUnloadEvent.webidl index 7ce92e47a84f..e64e1b2c2991 100644 --- a/dom/webidl/BeforeUnloadEvent.webidl +++ b/dom/webidl/BeforeUnloadEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BiquadFilterNode.webidl b/dom/webidl/BiquadFilterNode.webidl index 9e0801c818b0..c9ac0f0b9092 100644 --- a/dom/webidl/BiquadFilterNode.webidl +++ b/dom/webidl/BiquadFilterNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Blob.webidl b/dom/webidl/Blob.webidl index 4ae3a15bef34..94812cd89c65 100644 --- a/dom/webidl/Blob.webidl +++ b/dom/webidl/Blob.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BlobEvent.webidl b/dom/webidl/BlobEvent.webidl index 6b9b579b13e1..8d0418701e56 100644 --- a/dom/webidl/BlobEvent.webidl +++ b/dom/webidl/BlobEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BoxObject.webidl b/dom/webidl/BoxObject.webidl index ed143dee2dbb..8bebd6c9eb3e 100644 --- a/dom/webidl/BoxObject.webidl +++ b/dom/webidl/BoxObject.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BroadcastChannel.webidl b/dom/webidl/BroadcastChannel.webidl index 2cbc1987e58f..fb0b639f786a 100644 --- a/dom/webidl/BroadcastChannel.webidl +++ b/dom/webidl/BroadcastChannel.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserElement.webidl b/dom/webidl/BrowserElement.webidl index 5f0d2af5f66d..8a683d9466b4 100644 --- a/dom/webidl/BrowserElement.webidl +++ b/dom/webidl/BrowserElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserElementDictionaries.webidl b/dom/webidl/BrowserElementDictionaries.webidl index 22b284f60566..400e402532c5 100644 --- a/dom/webidl/BrowserElementDictionaries.webidl +++ b/dom/webidl/BrowserElementDictionaries.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/BrowserFeedWriter.webidl b/dom/webidl/BrowserFeedWriter.webidl index d3e26b0b7f6b..d756a8837ebc 100644 --- a/dom/webidl/BrowserFeedWriter.webidl +++ b/dom/webidl/BrowserFeedWriter.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CDATASection.webidl b/dom/webidl/CDATASection.webidl index 4e0f83ef5596..895dae0894cf 100644 --- a/dom/webidl/CDATASection.webidl +++ b/dom/webidl/CDATASection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSPDictionaries.webidl b/dom/webidl/CSPDictionaries.webidl index 11d4d1c450a6..f8de1c9ad822 100644 --- a/dom/webidl/CSPDictionaries.webidl +++ b/dom/webidl/CSPDictionaries.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CSPReport.webidl b/dom/webidl/CSPReport.webidl index 6db4a5c9b84b..301ca2885c9b 100644 --- a/dom/webidl/CSPReport.webidl +++ b/dom/webidl/CSPReport.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CSS.webidl b/dom/webidl/CSS.webidl index 5b48847ab71b..ad3f9a42d872 100644 --- a/dom/webidl/CSS.webidl +++ b/dom/webidl/CSS.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSAnimation.webidl b/dom/webidl/CSSAnimation.webidl index f0b485e0dc2a..63abf6c7a39a 100644 --- a/dom/webidl/CSSAnimation.webidl +++ b/dom/webidl/CSSAnimation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSConditionRule.webidl b/dom/webidl/CSSConditionRule.webidl index 87bf020c3d9f..24fae2343c73 100644 --- a/dom/webidl/CSSConditionRule.webidl +++ b/dom/webidl/CSSConditionRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSCounterStyleRule.webidl b/dom/webidl/CSSCounterStyleRule.webidl index fdc5cc0ee65b..bb6f7e0e1b8d 100644 --- a/dom/webidl/CSSCounterStyleRule.webidl +++ b/dom/webidl/CSSCounterStyleRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSFontFaceRule.webidl b/dom/webidl/CSSFontFaceRule.webidl index 72b9fc5fa0e3..221dd26aec20 100644 --- a/dom/webidl/CSSFontFaceRule.webidl +++ b/dom/webidl/CSSFontFaceRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSFontFeatureValuesRule.webidl b/dom/webidl/CSSFontFeatureValuesRule.webidl index 191046c6d652..7532938141ea 100644 --- a/dom/webidl/CSSFontFeatureValuesRule.webidl +++ b/dom/webidl/CSSFontFeatureValuesRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSGroupingRule.webidl b/dom/webidl/CSSGroupingRule.webidl index cc777584f4a9..93a221fb0bbb 100644 --- a/dom/webidl/CSSGroupingRule.webidl +++ b/dom/webidl/CSSGroupingRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSImportRule.webidl b/dom/webidl/CSSImportRule.webidl index 3e75a66eabf9..fccb97141f01 100644 --- a/dom/webidl/CSSImportRule.webidl +++ b/dom/webidl/CSSImportRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSKeyframeRule.webidl b/dom/webidl/CSSKeyframeRule.webidl index 13f7598d4135..25d8965f2a5d 100644 --- a/dom/webidl/CSSKeyframeRule.webidl +++ b/dom/webidl/CSSKeyframeRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSKeyframesRule.webidl b/dom/webidl/CSSKeyframesRule.webidl index d01cc3f9edfb..d0ea978d0384 100644 --- a/dom/webidl/CSSKeyframesRule.webidl +++ b/dom/webidl/CSSKeyframesRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSMediaRule.webidl b/dom/webidl/CSSMediaRule.webidl index abccb810f4ea..841a1b6f6b0e 100644 --- a/dom/webidl/CSSMediaRule.webidl +++ b/dom/webidl/CSSMediaRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSMozDocumentRule.webidl b/dom/webidl/CSSMozDocumentRule.webidl index f0b0d1a6630a..27a22d52c73d 100644 --- a/dom/webidl/CSSMozDocumentRule.webidl +++ b/dom/webidl/CSSMozDocumentRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSNamespaceRule.webidl b/dom/webidl/CSSNamespaceRule.webidl index 024f5fdb99aa..63f9301738d6 100644 --- a/dom/webidl/CSSNamespaceRule.webidl +++ b/dom/webidl/CSSNamespaceRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSPageRule.webidl b/dom/webidl/CSSPageRule.webidl index c9ca015c6af9..93e47ef02b9a 100644 --- a/dom/webidl/CSSPageRule.webidl +++ b/dom/webidl/CSSPageRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSPseudoElement.webidl b/dom/webidl/CSSPseudoElement.webidl index bbeae7b139fe..903cf3dd44f3 100644 --- a/dom/webidl/CSSPseudoElement.webidl +++ b/dom/webidl/CSSPseudoElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSRule.webidl b/dom/webidl/CSSRule.webidl index a54db14503f7..a825930351ed 100644 --- a/dom/webidl/CSSRule.webidl +++ b/dom/webidl/CSSRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSRuleList.webidl b/dom/webidl/CSSRuleList.webidl index 769ccf2dc7ce..c4faec1489a6 100644 --- a/dom/webidl/CSSRuleList.webidl +++ b/dom/webidl/CSSRuleList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleDeclaration.webidl b/dom/webidl/CSSStyleDeclaration.webidl index c5feda75d574..050edbd9f84e 100644 --- a/dom/webidl/CSSStyleDeclaration.webidl +++ b/dom/webidl/CSSStyleDeclaration.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleRule.webidl b/dom/webidl/CSSStyleRule.webidl index b53d5f97afac..571bd6a57feb 100644 --- a/dom/webidl/CSSStyleRule.webidl +++ b/dom/webidl/CSSStyleRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSStyleSheet.webidl b/dom/webidl/CSSStyleSheet.webidl index 4d934e0a868d..4c5f1977ef0d 100644 --- a/dom/webidl/CSSStyleSheet.webidl +++ b/dom/webidl/CSSStyleSheet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSSupportsRule.webidl b/dom/webidl/CSSSupportsRule.webidl index 72a0341c6840..0576e90ebd2b 100644 --- a/dom/webidl/CSSSupportsRule.webidl +++ b/dom/webidl/CSSSupportsRule.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CSSTransition.webidl b/dom/webidl/CSSTransition.webidl index 1c9d5c91281a..25a8ca92d9ed 100644 --- a/dom/webidl/CSSTransition.webidl +++ b/dom/webidl/CSSTransition.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Cache.webidl b/dom/webidl/Cache.webidl index 597333b48917..d5314df2a670 100644 --- a/dom/webidl/Cache.webidl +++ b/dom/webidl/Cache.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CacheStorage.webidl b/dom/webidl/CacheStorage.webidl index 18b5e444a04d..232ff5a2fe78 100644 --- a/dom/webidl/CacheStorage.webidl +++ b/dom/webidl/CacheStorage.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CanvasCaptureMediaStream.webidl b/dom/webidl/CanvasCaptureMediaStream.webidl index 5e2c959ac9c1..98b1adbf6307 100644 --- a/dom/webidl/CanvasCaptureMediaStream.webidl +++ b/dom/webidl/CanvasCaptureMediaStream.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CanvasRenderingContext2D.webidl b/dom/webidl/CanvasRenderingContext2D.webidl index bfd8fd86a0a5..13f61d4fe240 100644 --- a/dom/webidl/CanvasRenderingContext2D.webidl +++ b/dom/webidl/CanvasRenderingContext2D.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CaretPosition.webidl b/dom/webidl/CaretPosition.webidl index eab4674b77b2..5907b40d5015 100644 --- a/dom/webidl/CaretPosition.webidl +++ b/dom/webidl/CaretPosition.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CaretStateChangedEvent.webidl b/dom/webidl/CaretStateChangedEvent.webidl index c6866f356dd5..39edd4d8f84c 100644 --- a/dom/webidl/CaretStateChangedEvent.webidl +++ b/dom/webidl/CaretStateChangedEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChannelMergerNode.webidl b/dom/webidl/ChannelMergerNode.webidl index 5a01dfffb473..6818abae2ad7 100644 --- a/dom/webidl/ChannelMergerNode.webidl +++ b/dom/webidl/ChannelMergerNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChannelSplitterNode.webidl b/dom/webidl/ChannelSplitterNode.webidl index c23dbd3a394f..25d254ca58e2 100644 --- a/dom/webidl/ChannelSplitterNode.webidl +++ b/dom/webidl/ChannelSplitterNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CharacterData.webidl b/dom/webidl/CharacterData.webidl index e85881e9255b..8d6a214e58ec 100644 --- a/dom/webidl/CharacterData.webidl +++ b/dom/webidl/CharacterData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CheckerboardReportService.webidl b/dom/webidl/CheckerboardReportService.webidl index 5e5246e6ec25..d5a624e0fa7c 100644 --- a/dom/webidl/CheckerboardReportService.webidl +++ b/dom/webidl/CheckerboardReportService.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChildNode.webidl b/dom/webidl/ChildNode.webidl index 7aad4e9da273..ae36cd93eb7c 100644 --- a/dom/webidl/ChildNode.webidl +++ b/dom/webidl/ChildNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChildSHistory.webidl b/dom/webidl/ChildSHistory.webidl index 80778f470407..17db8d66aad4 100644 --- a/dom/webidl/ChildSHistory.webidl +++ b/dom/webidl/ChildSHistory.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ChromeNodeList.webidl b/dom/webidl/ChromeNodeList.webidl index c9d81787140c..3f062f2a3bf1 100644 --- a/dom/webidl/ChromeNodeList.webidl +++ b/dom/webidl/ChromeNodeList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Client.webidl b/dom/webidl/Client.webidl index b1eeb8e47518..75d60b6d3c58 100644 --- a/dom/webidl/Client.webidl +++ b/dom/webidl/Client.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Clients.webidl b/dom/webidl/Clients.webidl index d1ebe03e05a3..054ee0e51041 100644 --- a/dom/webidl/Clients.webidl +++ b/dom/webidl/Clients.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Clipboard.webidl b/dom/webidl/Clipboard.webidl index db4db1aa6228..08c6d3b7d2e7 100644 --- a/dom/webidl/Clipboard.webidl +++ b/dom/webidl/Clipboard.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ClipboardEvent.webidl b/dom/webidl/ClipboardEvent.webidl index bbf833d1ac61..8fe8a4935bce 100644 --- a/dom/webidl/ClipboardEvent.webidl +++ b/dom/webidl/ClipboardEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CloseEvent.webidl b/dom/webidl/CloseEvent.webidl index af8c46f85772..4fddbd8342b9 100644 --- a/dom/webidl/CloseEvent.webidl +++ b/dom/webidl/CloseEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CommandEvent.webidl b/dom/webidl/CommandEvent.webidl index 29d530f4101b..0ce0a4e0f094 100644 --- a/dom/webidl/CommandEvent.webidl +++ b/dom/webidl/CommandEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Comment.webidl b/dom/webidl/Comment.webidl index 75ff7e40434d..023335f166ab 100644 --- a/dom/webidl/Comment.webidl +++ b/dom/webidl/Comment.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CompositionEvent.webidl b/dom/webidl/CompositionEvent.webidl index c37360b8e450..16c5d6ea814c 100644 --- a/dom/webidl/CompositionEvent.webidl +++ b/dom/webidl/CompositionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Console.webidl b/dom/webidl/Console.webidl index 02192f98e901..6fbce7a43d0b 100644 --- a/dom/webidl/Console.webidl +++ b/dom/webidl/Console.webidl @@ -1,5 +1,5 @@ /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ConstantSourceNode.webidl b/dom/webidl/ConstantSourceNode.webidl index 6a7b72889a04..cd005897aacd 100644 --- a/dom/webidl/ConstantSourceNode.webidl +++ b/dom/webidl/ConstantSourceNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ConvolverNode.webidl b/dom/webidl/ConvolverNode.webidl index 9284e3ab5c85..0e0e1137ccb6 100644 --- a/dom/webidl/ConvolverNode.webidl +++ b/dom/webidl/ConvolverNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Coordinates.webidl b/dom/webidl/Coordinates.webidl index 08f7e999b869..840782f74928 100644 --- a/dom/webidl/Coordinates.webidl +++ b/dom/webidl/Coordinates.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CreateOfferRequest.webidl b/dom/webidl/CreateOfferRequest.webidl index b632ce4ce28a..134fe33fa206 100644 --- a/dom/webidl/CreateOfferRequest.webidl +++ b/dom/webidl/CreateOfferRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CredentialManagement.webidl b/dom/webidl/CredentialManagement.webidl index eb7eafeb1d28..fcb525075aed 100644 --- a/dom/webidl/CredentialManagement.webidl +++ b/dom/webidl/CredentialManagement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Crypto.webidl b/dom/webidl/Crypto.webidl index 413e872e7d85..31574a219cd6 100644 --- a/dom/webidl/Crypto.webidl +++ b/dom/webidl/Crypto.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/CustomElementRegistry.webidl b/dom/webidl/CustomElementRegistry.webidl index d28c61055276..b4b091b84784 100644 --- a/dom/webidl/CustomElementRegistry.webidl +++ b/dom/webidl/CustomElementRegistry.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/CustomEvent.webidl b/dom/webidl/CustomEvent.webidl index 888bb9fdd2e8..8c7124ddca56 100644 --- a/dom/webidl/CustomEvent.webidl +++ b/dom/webidl/CustomEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMError.webidl b/dom/webidl/DOMError.webidl index a52de882fdc4..5fb5d17ed91b 100644 --- a/dom/webidl/DOMError.webidl +++ b/dom/webidl/DOMError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMException.webidl b/dom/webidl/DOMException.webidl index 5f1b7590be98..157e5cdca834 100644 --- a/dom/webidl/DOMException.webidl +++ b/dom/webidl/DOMException.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMImplementation.webidl b/dom/webidl/DOMImplementation.webidl index a88faf5ff1d9..5fa3c8592708 100644 --- a/dom/webidl/DOMImplementation.webidl +++ b/dom/webidl/DOMImplementation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl index 5d9751248ba2..06a0da44b3eb 100644 --- a/dom/webidl/DOMMatrix.webidl +++ b/dom/webidl/DOMMatrix.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -14,72 +13,72 @@ [Pref="layout.css.DOMMatrix.enabled", Constructor(optional (DOMString or sequence) init)] interface DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - readonly attribute unrestricted double a; - readonly attribute unrestricted double b; - readonly attribute unrestricted double c; - readonly attribute unrestricted double d; - readonly attribute unrestricted double e; - readonly attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + readonly attribute unrestricted double a; + readonly attribute unrestricted double b; + readonly attribute unrestricted double c; + readonly attribute unrestricted double d; + readonly attribute unrestricted double e; + readonly attribute unrestricted double f; - readonly attribute unrestricted double m11; - readonly attribute unrestricted double m12; - readonly attribute unrestricted double m13; - readonly attribute unrestricted double m14; - readonly attribute unrestricted double m21; - readonly attribute unrestricted double m22; - readonly attribute unrestricted double m23; - readonly attribute unrestricted double m24; - readonly attribute unrestricted double m31; - readonly attribute unrestricted double m32; - readonly attribute unrestricted double m33; - readonly attribute unrestricted double m34; - readonly attribute unrestricted double m41; - readonly attribute unrestricted double m42; - readonly attribute unrestricted double m43; - readonly attribute unrestricted double m44; + readonly attribute unrestricted double m11; + readonly attribute unrestricted double m12; + readonly attribute unrestricted double m13; + readonly attribute unrestricted double m14; + readonly attribute unrestricted double m21; + readonly attribute unrestricted double m22; + readonly attribute unrestricted double m23; + readonly attribute unrestricted double m24; + readonly attribute unrestricted double m31; + readonly attribute unrestricted double m32; + readonly attribute unrestricted double m33; + readonly attribute unrestricted double m34; + readonly attribute unrestricted double m41; + readonly attribute unrestricted double m42; + readonly attribute unrestricted double m43; + readonly attribute unrestricted double m44; - // Immutable transform methods - DOMMatrix translate(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scale(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3d(unrestricted double scale, + // Immutable transform methods + DOMMatrix translate(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scale(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniform(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotate(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVector(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngle(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewX(unrestricted double sx); - DOMMatrix skewY(unrestricted double sy); - DOMMatrix multiply(DOMMatrix other); - DOMMatrix flipX(); - DOMMatrix flipY(); - DOMMatrix inverse(); + optional unrestricted double originY = 0); + DOMMatrix scale3d(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniform(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotate(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVector(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngle(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewX(unrestricted double sx); + DOMMatrix skewY(unrestricted double sy); + DOMMatrix multiply(DOMMatrix other); + DOMMatrix flipX(); + DOMMatrix flipY(); + DOMMatrix inverse(); - // Helper methods - readonly attribute boolean is2D; - readonly attribute boolean isIdentity; - DOMPoint transformPoint(optional DOMPointInit point); - [Throws] Float32Array toFloat32Array(); - [Throws] Float64Array toFloat64Array(); - stringifier; - [Default] object toJSON(); + // Helper methods + readonly attribute boolean is2D; + readonly attribute boolean isIdentity; + DOMPoint transformPoint(optional DOMPointInit point); + [Throws] Float32Array toFloat32Array(); + [Throws] Float64Array toFloat64Array(); + stringifier; + [Default] object toJSON(); }; [Pref="layout.css.DOMMatrix.enabled", @@ -90,62 +89,62 @@ interface DOMMatrixReadOnly { Constructor(Float64Array array64), Constructor(sequence numberSequence)] interface DOMMatrix : DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - inherit attribute unrestricted double a; - inherit attribute unrestricted double b; - inherit attribute unrestricted double c; - inherit attribute unrestricted double d; - inherit attribute unrestricted double e; - inherit attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + inherit attribute unrestricted double a; + inherit attribute unrestricted double b; + inherit attribute unrestricted double c; + inherit attribute unrestricted double d; + inherit attribute unrestricted double e; + inherit attribute unrestricted double f; - inherit attribute unrestricted double m11; - inherit attribute unrestricted double m12; - inherit attribute unrestricted double m13; - inherit attribute unrestricted double m14; - inherit attribute unrestricted double m21; - inherit attribute unrestricted double m22; - inherit attribute unrestricted double m23; - inherit attribute unrestricted double m24; - inherit attribute unrestricted double m31; - inherit attribute unrestricted double m32; - inherit attribute unrestricted double m33; - inherit attribute unrestricted double m34; - inherit attribute unrestricted double m41; - inherit attribute unrestricted double m42; - inherit attribute unrestricted double m43; - inherit attribute unrestricted double m44; + inherit attribute unrestricted double m11; + inherit attribute unrestricted double m12; + inherit attribute unrestricted double m13; + inherit attribute unrestricted double m14; + inherit attribute unrestricted double m21; + inherit attribute unrestricted double m22; + inherit attribute unrestricted double m23; + inherit attribute unrestricted double m24; + inherit attribute unrestricted double m31; + inherit attribute unrestricted double m32; + inherit attribute unrestricted double m33; + inherit attribute unrestricted double m34; + inherit attribute unrestricted double m41; + inherit attribute unrestricted double m42; + inherit attribute unrestricted double m43; + inherit attribute unrestricted double m44; - // Mutable transform methods - DOMMatrix multiplySelf(DOMMatrix other); - DOMMatrix preMultiplySelf(DOMMatrix other); - DOMMatrix translateSelf(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scaleSelf(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3dSelf(unrestricted double scale, + // Mutable transform methods + DOMMatrix multiplySelf(DOMMatrix other); + DOMMatrix preMultiplySelf(DOMMatrix other); + DOMMatrix translateSelf(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scaleSelf(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotateSelf(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVectorSelf(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngleSelf(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewXSelf(unrestricted double sx); - DOMMatrix skewYSelf(unrestricted double sy); - DOMMatrix invertSelf(); - [Throws] DOMMatrix setMatrixValue(DOMString transformList); + optional unrestricted double originY = 0); + DOMMatrix scale3dSelf(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotateSelf(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVectorSelf(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngleSelf(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewXSelf(unrestricted double sx); + DOMMatrix skewYSelf(unrestricted double sy); + DOMMatrix invertSelf(); + [Throws] DOMMatrix setMatrixValue(DOMString transformList); }; diff --git a/dom/webidl/DOMParser.webidl b/dom/webidl/DOMParser.webidl index d30f0b2605cf..8afff03da225 100644 --- a/dom/webidl/DOMParser.webidl +++ b/dom/webidl/DOMParser.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl index f81dcfa96a7f..2ebba958e45a 100644 --- a/dom/webidl/DOMPoint.webidl +++ b/dom/webidl/DOMPoint.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -15,31 +14,31 @@ Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPointReadOnly { - [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); + [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double z; - readonly attribute unrestricted double w; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double z; + readonly attribute unrestricted double w; - [Default] object toJSON(); + [Default] object toJSON(); }; [Pref="layout.css.DOMPoint.enabled", Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPoint : DOMPointReadOnly { - [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); + [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double z; - inherit attribute unrestricted double w; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double z; + inherit attribute unrestricted double w; }; dictionary DOMPointInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double z = 0; - unrestricted double w = 1; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double z = 0; + unrestricted double w = 1; }; diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl index cb04f0930d25..7370330b2954 100644 --- a/dom/webidl/DOMQuad.webidl +++ b/dom/webidl/DOMQuad.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -16,27 +15,27 @@ optional DOMPointInit p3, optional DOMPointInit p4), Constructor(DOMRectReadOnly rect)] interface DOMQuad { - [SameObject] readonly attribute DOMPoint p1; - [SameObject] readonly attribute DOMPoint p2; - [SameObject] readonly attribute DOMPoint p3; - [SameObject] readonly attribute DOMPoint p4; - [NewObject] DOMRectReadOnly getBounds(); + [SameObject] readonly attribute DOMPoint p1; + [SameObject] readonly attribute DOMPoint p2; + [SameObject] readonly attribute DOMPoint p3; + [SameObject] readonly attribute DOMPoint p4; + [NewObject] DOMRectReadOnly getBounds(); - [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; + [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; - DOMQuadJSON toJSON(); + DOMQuadJSON toJSON(); }; dictionary DOMQuadJSON { - DOMPoint p1; - DOMPoint p2; - DOMPoint p3; - DOMPoint p4; + DOMPoint p1; + DOMPoint p2; + DOMPoint p3; + DOMPoint p4; }; dictionary DOMQuadInit { - DOMPointInit p1; - DOMPointInit p2; - DOMPointInit p3; - DOMPointInit p4; + DOMPointInit p1; + DOMPointInit p2; + DOMPointInit p3; + DOMPointInit p4; }; diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl index 51cc122d482c..b9261eccb35f 100644 --- a/dom/webidl/DOMRect.webidl +++ b/dom/webidl/DOMRect.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -14,31 +13,31 @@ [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRect : DOMRectReadOnly { - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double width; - inherit attribute unrestricted double height; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double width; + inherit attribute unrestricted double height; }; [ProbablyShortLivingWrapper, Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRectReadOnly { - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double width; - readonly attribute unrestricted double height; - readonly attribute unrestricted double top; - readonly attribute unrestricted double right; - readonly attribute unrestricted double bottom; - readonly attribute unrestricted double left; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double width; + readonly attribute unrestricted double height; + readonly attribute unrestricted double top; + readonly attribute unrestricted double right; + readonly attribute unrestricted double bottom; + readonly attribute unrestricted double left; - [Default] object toJSON(); + [Default] object toJSON(); }; dictionary DOMRectInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double width = 0; - unrestricted double height = 0; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double width = 0; + unrestricted double height = 0; }; diff --git a/dom/webidl/DOMRectList.webidl b/dom/webidl/DOMRectList.webidl index fc3083dea05e..74332bfc1608 100644 --- a/dom/webidl/DOMRectList.webidl +++ b/dom/webidl/DOMRectList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMRequest.webidl b/dom/webidl/DOMRequest.webidl index e1381c135483..2e25fc192734 100644 --- a/dom/webidl/DOMRequest.webidl +++ b/dom/webidl/DOMRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/DOMStringList.webidl b/dom/webidl/DOMStringList.webidl index 94e68fae7192..56c5836ffec7 100644 --- a/dom/webidl/DOMStringList.webidl +++ b/dom/webidl/DOMStringList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMStringMap.webidl b/dom/webidl/DOMStringMap.webidl index 474c9ecdade1..e86e37a378be 100644 --- a/dom/webidl/DOMStringMap.webidl +++ b/dom/webidl/DOMStringMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DOMTokenList.webidl b/dom/webidl/DOMTokenList.webidl index 4390f44c4e35..a662300d83dd 100644 --- a/dom/webidl/DOMTokenList.webidl +++ b/dom/webidl/DOMTokenList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransfer.webidl b/dom/webidl/DataTransfer.webidl index 724dd9c81428..d880cdfbb5d3 100644 --- a/dom/webidl/DataTransfer.webidl +++ b/dom/webidl/DataTransfer.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransferItem.webidl b/dom/webidl/DataTransferItem.webidl index 4c754a566053..449498104de8 100644 --- a/dom/webidl/DataTransferItem.webidl +++ b/dom/webidl/DataTransferItem.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DataTransferItemList.webidl b/dom/webidl/DataTransferItemList.webidl index 37d464f6f69e..079afdd14811 100644 --- a/dom/webidl/DataTransferItemList.webidl +++ b/dom/webidl/DataTransferItemList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DecoderDoctorNotification.webidl b/dom/webidl/DecoderDoctorNotification.webidl index 48ee165d01e5..c994918bf4fb 100644 --- a/dom/webidl/DecoderDoctorNotification.webidl +++ b/dom/webidl/DecoderDoctorNotification.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DedicatedWorkerGlobalScope.webidl b/dom/webidl/DedicatedWorkerGlobalScope.webidl index 5eea422085ea..57b48839f70d 100644 --- a/dom/webidl/DedicatedWorkerGlobalScope.webidl +++ b/dom/webidl/DedicatedWorkerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DelayNode.webidl b/dom/webidl/DelayNode.webidl index 6186ccea2983..02575bc5878a 100644 --- a/dom/webidl/DelayNode.webidl +++ b/dom/webidl/DelayNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceLightEvent.webidl b/dom/webidl/DeviceLightEvent.webidl index 901d22f4415b..8b44d2f0157e 100644 --- a/dom/webidl/DeviceLightEvent.webidl +++ b/dom/webidl/DeviceLightEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceMotionEvent.webidl b/dom/webidl/DeviceMotionEvent.webidl index ecb2ec7fe5f5..851b913ef15e 100644 --- a/dom/webidl/DeviceMotionEvent.webidl +++ b/dom/webidl/DeviceMotionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceOrientationEvent.webidl b/dom/webidl/DeviceOrientationEvent.webidl index ee2b99c7b7a0..511add55dbdc 100644 --- a/dom/webidl/DeviceOrientationEvent.webidl +++ b/dom/webidl/DeviceOrientationEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DeviceProximityEvent.webidl b/dom/webidl/DeviceProximityEvent.webidl index 57725b805059..70ee70b3364f 100644 --- a/dom/webidl/DeviceProximityEvent.webidl +++ b/dom/webidl/DeviceProximityEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Directory.webidl b/dom/webidl/Directory.webidl index e4a3b6ba91f8..942d50c7cba7 100644 --- a/dom/webidl/Directory.webidl +++ b/dom/webidl/Directory.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl index a6bc5cf19acf..b7290dd84c44 100644 --- a/dom/webidl/Document.webidl +++ b/dom/webidl/Document.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentFragment.webidl b/dom/webidl/DocumentFragment.webidl index 5374018eca04..0f814666fb64 100644 --- a/dom/webidl/DocumentFragment.webidl +++ b/dom/webidl/DocumentFragment.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentOrShadowRoot.webidl b/dom/webidl/DocumentOrShadowRoot.webidl index 7fc0f5f6225e..8a288f6151cc 100644 --- a/dom/webidl/DocumentOrShadowRoot.webidl +++ b/dom/webidl/DocumentOrShadowRoot.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentTimeline.webidl b/dom/webidl/DocumentTimeline.webidl index d604e219e15f..4837bd2ec79c 100644 --- a/dom/webidl/DocumentTimeline.webidl +++ b/dom/webidl/DocumentTimeline.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DocumentType.webidl b/dom/webidl/DocumentType.webidl index 04f648699ba2..89190266fdeb 100644 --- a/dom/webidl/DocumentType.webidl +++ b/dom/webidl/DocumentType.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DragEvent.webidl b/dom/webidl/DragEvent.webidl index 5b5d754af019..806177790c57 100644 --- a/dom/webidl/DragEvent.webidl +++ b/dom/webidl/DragEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/DynamicsCompressorNode.webidl b/dom/webidl/DynamicsCompressorNode.webidl index 44c8631e8f61..78170756ad19 100644 --- a/dom/webidl/DynamicsCompressorNode.webidl +++ b/dom/webidl/DynamicsCompressorNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl index 662b18be77a6..8cc484419fd3 100644 --- a/dom/webidl/Element.webidl +++ b/dom/webidl/Element.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ErrorEvent.webidl b/dom/webidl/ErrorEvent.webidl index 61b1978ac0bc..cb858dffdbe6 100644 --- a/dom/webidl/ErrorEvent.webidl +++ b/dom/webidl/ErrorEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Event.webidl b/dom/webidl/Event.webidl index 7aabaa1bea09..2d02ff7ef468 100644 --- a/dom/webidl/Event.webidl +++ b/dom/webidl/Event.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventHandler.webidl b/dom/webidl/EventHandler.webidl index 7f9e18684ba0..bbddbd50bbf0 100644 --- a/dom/webidl/EventHandler.webidl +++ b/dom/webidl/EventHandler.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventListener.webidl b/dom/webidl/EventListener.webidl index 4c93ffac9996..46aa748d6917 100644 --- a/dom/webidl/EventListener.webidl +++ b/dom/webidl/EventListener.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventSource.webidl b/dom/webidl/EventSource.webidl index ce352431dfc7..f6d54c3bd97e 100644 --- a/dom/webidl/EventSource.webidl +++ b/dom/webidl/EventSource.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/EventTarget.webidl b/dom/webidl/EventTarget.webidl index 38a4aaa41324..72475a4a3194 100644 --- a/dom/webidl/EventTarget.webidl +++ b/dom/webidl/EventTarget.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ExtendableEvent.webidl b/dom/webidl/ExtendableEvent.webidl index 04a36127551f..01dc545efd4e 100644 --- a/dom/webidl/ExtendableEvent.webidl +++ b/dom/webidl/ExtendableEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ExtendableMessageEvent.webidl b/dom/webidl/ExtendableMessageEvent.webidl index 5d3cee460679..b2bdf6792ac9 100644 --- a/dom/webidl/ExtendableMessageEvent.webidl +++ b/dom/webidl/ExtendableMessageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/External.webidl b/dom/webidl/External.webidl index 269ed00b63ea..91be6163f74a 100644 --- a/dom/webidl/External.webidl +++ b/dom/webidl/External.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FakePluginTagInit.webidl b/dom/webidl/FakePluginTagInit.webidl index e98880ba658f..714be875092c 100644 --- a/dom/webidl/FakePluginTagInit.webidl +++ b/dom/webidl/FakePluginTagInit.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Fetch.webidl b/dom/webidl/Fetch.webidl index 23d19862c72c..bbb1faf7f7d7 100644 --- a/dom/webidl/Fetch.webidl +++ b/dom/webidl/Fetch.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FetchEvent.webidl b/dom/webidl/FetchEvent.webidl index 992bc23d0570..148433f356b9 100644 --- a/dom/webidl/FetchEvent.webidl +++ b/dom/webidl/FetchEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FetchObserver.webidl b/dom/webidl/FetchObserver.webidl index bfefc5b0e63b..78c2824e9769 100644 --- a/dom/webidl/FetchObserver.webidl +++ b/dom/webidl/FetchObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/File.webidl b/dom/webidl/File.webidl index 96feb4fe7a52..6cc5d8b0026b 100644 --- a/dom/webidl/File.webidl +++ b/dom/webidl/File.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileList.webidl b/dom/webidl/FileList.webidl index 0809f75f5c9d..5e4590347b47 100644 --- a/dom/webidl/FileList.webidl +++ b/dom/webidl/FileList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileMode.webidl b/dom/webidl/FileMode.webidl index 7f438ee3867a..788c2c9bf0ee 100644 --- a/dom/webidl/FileMode.webidl +++ b/dom/webidl/FileMode.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/FileReader.webidl b/dom/webidl/FileReader.webidl index d7b31cd6c325..1e79ba09fd9d 100644 --- a/dom/webidl/FileReader.webidl +++ b/dom/webidl/FileReader.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileReaderSync.webidl b/dom/webidl/FileReaderSync.webidl index dc54390d9e7f..6628794f2432 100644 --- a/dom/webidl/FileReaderSync.webidl +++ b/dom/webidl/FileReaderSync.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystem.webidl b/dom/webidl/FileSystem.webidl index 06c06a5b527b..06b88c5ce91a 100644 --- a/dom/webidl/FileSystem.webidl +++ b/dom/webidl/FileSystem.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemDirectoryEntry.webidl b/dom/webidl/FileSystemDirectoryEntry.webidl index 9fab959de0d2..f972d216fc3f 100644 --- a/dom/webidl/FileSystemDirectoryEntry.webidl +++ b/dom/webidl/FileSystemDirectoryEntry.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemDirectoryReader.webidl b/dom/webidl/FileSystemDirectoryReader.webidl index e7cdf65db6f9..3be94830c993 100644 --- a/dom/webidl/FileSystemDirectoryReader.webidl +++ b/dom/webidl/FileSystemDirectoryReader.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemEntry.webidl b/dom/webidl/FileSystemEntry.webidl index e25e5b9ad61d..af112282d2b0 100644 --- a/dom/webidl/FileSystemEntry.webidl +++ b/dom/webidl/FileSystemEntry.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FileSystemFileEntry.webidl b/dom/webidl/FileSystemFileEntry.webidl index fe86d6687f3b..3f141e54afd5 100644 --- a/dom/webidl/FileSystemFileEntry.webidl +++ b/dom/webidl/FileSystemFileEntry.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Flex.webidl b/dom/webidl/Flex.webidl index 9c3d6a1901fa..58c713630bee 100644 --- a/dom/webidl/Flex.webidl +++ b/dom/webidl/Flex.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FocusEvent.webidl b/dom/webidl/FocusEvent.webidl index 50cf54d8f70b..52a2f1fde895 100644 --- a/dom/webidl/FocusEvent.webidl +++ b/dom/webidl/FocusEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFace.webidl b/dom/webidl/FontFace.webidl index 337b96b7eae0..5705f5d8debd 100644 --- a/dom/webidl/FontFace.webidl +++ b/dom/webidl/FontFace.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSet.webidl b/dom/webidl/FontFaceSet.webidl index 823319377231..7f58fbe5e407 100644 --- a/dom/webidl/FontFaceSet.webidl +++ b/dom/webidl/FontFaceSet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSetLoadEvent.webidl b/dom/webidl/FontFaceSetLoadEvent.webidl index 0290ba6261ec..fee0f306810e 100644 --- a/dom/webidl/FontFaceSetLoadEvent.webidl +++ b/dom/webidl/FontFaceSetLoadEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FontFaceSource.webidl b/dom/webidl/FontFaceSource.webidl index ecc69186a932..96e1c6d76da0 100644 --- a/dom/webidl/FontFaceSource.webidl +++ b/dom/webidl/FontFaceSource.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FormData.webidl b/dom/webidl/FormData.webidl index 52b5807731b7..16f780d5dc22 100644 --- a/dom/webidl/FormData.webidl +++ b/dom/webidl/FormData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FrameLoader.webidl b/dom/webidl/FrameLoader.webidl index 09fd318c9d3b..44584502dede 100644 --- a/dom/webidl/FrameLoader.webidl +++ b/dom/webidl/FrameLoader.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Function.webidl b/dom/webidl/Function.webidl index 8633a837c5cd..a873a871b270 100644 --- a/dom/webidl/Function.webidl +++ b/dom/webidl/Function.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/FuzzingFunctions.webidl b/dom/webidl/FuzzingFunctions.webidl index 9762041b14c2..268db55436a2 100644 --- a/dom/webidl/FuzzingFunctions.webidl +++ b/dom/webidl/FuzzingFunctions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GainNode.webidl b/dom/webidl/GainNode.webidl index 8713c43308e5..04bba87cb352 100644 --- a/dom/webidl/GainNode.webidl +++ b/dom/webidl/GainNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Gamepad.webidl b/dom/webidl/Gamepad.webidl index 47b9ba127ab2..480f94696630 100644 --- a/dom/webidl/Gamepad.webidl +++ b/dom/webidl/Gamepad.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadAxisMoveEvent.webidl b/dom/webidl/GamepadAxisMoveEvent.webidl index 25582a435538..7699674b453f 100644 --- a/dom/webidl/GamepadAxisMoveEvent.webidl +++ b/dom/webidl/GamepadAxisMoveEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadButtonEvent.webidl b/dom/webidl/GamepadButtonEvent.webidl index ff85b81da49f..b8a9e086bfc7 100644 --- a/dom/webidl/GamepadButtonEvent.webidl +++ b/dom/webidl/GamepadButtonEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadEvent.webidl b/dom/webidl/GamepadEvent.webidl index e14cb18470ef..f4c3092ac1b2 100644 --- a/dom/webidl/GamepadEvent.webidl +++ b/dom/webidl/GamepadEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadHapticActuator.webidl b/dom/webidl/GamepadHapticActuator.webidl index 2b510619e6b2..9255debe34bf 100644 --- a/dom/webidl/GamepadHapticActuator.webidl +++ b/dom/webidl/GamepadHapticActuator.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadPose.webidl b/dom/webidl/GamepadPose.webidl index 90028bbea143..4bc2086984ec 100644 --- a/dom/webidl/GamepadPose.webidl +++ b/dom/webidl/GamepadPose.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GamepadServiceTest.webidl b/dom/webidl/GamepadServiceTest.webidl index 71233f99e762..4831ae3ccbf5 100644 --- a/dom/webidl/GamepadServiceTest.webidl +++ b/dom/webidl/GamepadServiceTest.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Geolocation.webidl b/dom/webidl/Geolocation.webidl index fa284fa2dbd9..79324005969b 100644 --- a/dom/webidl/Geolocation.webidl +++ b/dom/webidl/Geolocation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GeometryUtils.webidl b/dom/webidl/GeometryUtils.webidl index a7cdd66748c0..53a24a789d32 100644 --- a/dom/webidl/GeometryUtils.webidl +++ b/dom/webidl/GeometryUtils.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GetUserMediaRequest.webidl b/dom/webidl/GetUserMediaRequest.webidl index 0d4fb1d90093..7ccbcc9f4187 100644 --- a/dom/webidl/GetUserMediaRequest.webidl +++ b/dom/webidl/GetUserMediaRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Grid.webidl b/dom/webidl/Grid.webidl index ac8b0bd6556a..0b5dbf23991d 100644 --- a/dom/webidl/Grid.webidl +++ b/dom/webidl/Grid.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/GroupedHistoryEvent.webidl b/dom/webidl/GroupedHistoryEvent.webidl index 9e95dae6464a..d999a1ec9770 100644 --- a/dom/webidl/GroupedHistoryEvent.webidl +++ b/dom/webidl/GroupedHistoryEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAllCollection.webidl b/dom/webidl/HTMLAllCollection.webidl index 466e84e4874d..b3521388883b 100644 --- a/dom/webidl/HTMLAllCollection.webidl +++ b/dom/webidl/HTMLAllCollection.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/HTMLAnchorElement.webidl b/dom/webidl/HTMLAnchorElement.webidl index cbb4cd4846c8..fe1c1a71c226 100644 --- a/dom/webidl/HTMLAnchorElement.webidl +++ b/dom/webidl/HTMLAnchorElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAreaElement.webidl b/dom/webidl/HTMLAreaElement.webidl index 8efc381f62ce..997535a90248 100644 --- a/dom/webidl/HTMLAreaElement.webidl +++ b/dom/webidl/HTMLAreaElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLAudioElement.webidl b/dom/webidl/HTMLAudioElement.webidl index 2478b0e2bb9f..72566983945a 100644 --- a/dom/webidl/HTMLAudioElement.webidl +++ b/dom/webidl/HTMLAudioElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBRElement.webidl b/dom/webidl/HTMLBRElement.webidl index 0b47e6b4d5f6..b0b0f80ede99 100644 --- a/dom/webidl/HTMLBRElement.webidl +++ b/dom/webidl/HTMLBRElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBaseElement.webidl b/dom/webidl/HTMLBaseElement.webidl index b893fcc39e7e..ed86f8c77d90 100644 --- a/dom/webidl/HTMLBaseElement.webidl +++ b/dom/webidl/HTMLBaseElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLBodyElement.webidl b/dom/webidl/HTMLBodyElement.webidl index d0081da7053b..f89c287d72f7 100644 --- a/dom/webidl/HTMLBodyElement.webidl +++ b/dom/webidl/HTMLBodyElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLButtonElement.webidl b/dom/webidl/HTMLButtonElement.webidl index 214428073d6e..9ea7d9082f7f 100644 --- a/dom/webidl/HTMLButtonElement.webidl +++ b/dom/webidl/HTMLButtonElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLCanvasElement.webidl b/dom/webidl/HTMLCanvasElement.webidl index 003ca9a67bf0..b92a5314bd33 100644 --- a/dom/webidl/HTMLCanvasElement.webidl +++ b/dom/webidl/HTMLCanvasElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLCollection.webidl b/dom/webidl/HTMLCollection.webidl index d93848e3aa3d..f7f020c0ff1f 100644 --- a/dom/webidl/HTMLCollection.webidl +++ b/dom/webidl/HTMLCollection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDListElement.webidl b/dom/webidl/HTMLDListElement.webidl index 24e9c6682666..4cf1c218310f 100644 --- a/dom/webidl/HTMLDListElement.webidl +++ b/dom/webidl/HTMLDListElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDataElement.webidl b/dom/webidl/HTMLDataElement.webidl index 4bc4c4e569f7..d24537871423 100644 --- a/dom/webidl/HTMLDataElement.webidl +++ b/dom/webidl/HTMLDataElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDataListElement.webidl b/dom/webidl/HTMLDataListElement.webidl index 3a7debdedd57..4c38fddf375f 100644 --- a/dom/webidl/HTMLDataListElement.webidl +++ b/dom/webidl/HTMLDataListElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDetailsElement.webidl b/dom/webidl/HTMLDetailsElement.webidl index e52a4b30f330..04df82e30fae 100644 --- a/dom/webidl/HTMLDetailsElement.webidl +++ b/dom/webidl/HTMLDetailsElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDialogElement.webidl b/dom/webidl/HTMLDialogElement.webidl index 069cc1045e4c..e9117c9c9cc3 100644 --- a/dom/webidl/HTMLDialogElement.webidl +++ b/dom/webidl/HTMLDialogElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDirectoryElement.webidl b/dom/webidl/HTMLDirectoryElement.webidl index d123e3b6b371..65becbb60509 100644 --- a/dom/webidl/HTMLDirectoryElement.webidl +++ b/dom/webidl/HTMLDirectoryElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDivElement.webidl b/dom/webidl/HTMLDivElement.webidl index c770b710bdbe..2b762c6faa8b 100644 --- a/dom/webidl/HTMLDivElement.webidl +++ b/dom/webidl/HTMLDivElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLDocument.webidl b/dom/webidl/HTMLDocument.webidl index be7aa77beb23..e587170ff6f7 100644 --- a/dom/webidl/HTMLDocument.webidl +++ b/dom/webidl/HTMLDocument.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLElement.webidl b/dom/webidl/HTMLElement.webidl index 68c327d9ba4d..09742a32a2d4 100644 --- a/dom/webidl/HTMLElement.webidl +++ b/dom/webidl/HTMLElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLEmbedElement.webidl b/dom/webidl/HTMLEmbedElement.webidl index d3f193cbaf4d..bb6b5c0ea019 100644 --- a/dom/webidl/HTMLEmbedElement.webidl +++ b/dom/webidl/HTMLEmbedElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFieldSetElement.webidl b/dom/webidl/HTMLFieldSetElement.webidl index f11c77f0ffe9..23f14e91b4a3 100644 --- a/dom/webidl/HTMLFieldSetElement.webidl +++ b/dom/webidl/HTMLFieldSetElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFontElement.webidl b/dom/webidl/HTMLFontElement.webidl index fa4da74c37cb..8db6d3246630 100644 --- a/dom/webidl/HTMLFontElement.webidl +++ b/dom/webidl/HTMLFontElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFormControlsCollection.webidl b/dom/webidl/HTMLFormControlsCollection.webidl index ebb1f0cc87f6..eb2d83d4219c 100644 --- a/dom/webidl/HTMLFormControlsCollection.webidl +++ b/dom/webidl/HTMLFormControlsCollection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFormElement.webidl b/dom/webidl/HTMLFormElement.webidl index db2e25b38317..86b6c2438d41 100644 --- a/dom/webidl/HTMLFormElement.webidl +++ b/dom/webidl/HTMLFormElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFrameElement.webidl b/dom/webidl/HTMLFrameElement.webidl index d741e3ba3882..2d712caf8e76 100644 --- a/dom/webidl/HTMLFrameElement.webidl +++ b/dom/webidl/HTMLFrameElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLFrameSetElement.webidl b/dom/webidl/HTMLFrameSetElement.webidl index 1a5f12eae996..afc4465d1820 100644 --- a/dom/webidl/HTMLFrameSetElement.webidl +++ b/dom/webidl/HTMLFrameSetElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHRElement.webidl b/dom/webidl/HTMLHRElement.webidl index c8b4092992ca..24ba3112aa94 100644 --- a/dom/webidl/HTMLHRElement.webidl +++ b/dom/webidl/HTMLHRElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHeadElement.webidl b/dom/webidl/HTMLHeadElement.webidl index ced58edb022a..b649712a6b1c 100644 --- a/dom/webidl/HTMLHeadElement.webidl +++ b/dom/webidl/HTMLHeadElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHeadingElement.webidl b/dom/webidl/HTMLHeadingElement.webidl index 45bd6fa93691..a39e24cfba3b 100644 --- a/dom/webidl/HTMLHeadingElement.webidl +++ b/dom/webidl/HTMLHeadingElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHtmlElement.webidl b/dom/webidl/HTMLHtmlElement.webidl index b96b8860a5d9..5b2a9a926d77 100644 --- a/dom/webidl/HTMLHtmlElement.webidl +++ b/dom/webidl/HTMLHtmlElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLHyperlinkElementUtils.webidl b/dom/webidl/HTMLHyperlinkElementUtils.webidl index 51072f7b2501..ae53fd75e23a 100644 --- a/dom/webidl/HTMLHyperlinkElementUtils.webidl +++ b/dom/webidl/HTMLHyperlinkElementUtils.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLIFrameElement.webidl b/dom/webidl/HTMLIFrameElement.webidl index 0c8e54a321ea..5801de76457a 100644 --- a/dom/webidl/HTMLIFrameElement.webidl +++ b/dom/webidl/HTMLIFrameElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLImageElement.webidl b/dom/webidl/HTMLImageElement.webidl index 0dbbb33fd6e3..ae91af091c57 100644 --- a/dom/webidl/HTMLImageElement.webidl +++ b/dom/webidl/HTMLImageElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLInputElement.webidl b/dom/webidl/HTMLInputElement.webidl index 2b9acaba88ba..c5f4ab8a533e 100644 --- a/dom/webidl/HTMLInputElement.webidl +++ b/dom/webidl/HTMLInputElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLIElement.webidl b/dom/webidl/HTMLLIElement.webidl index 0611f48d8eb6..3f104d09e07f 100644 --- a/dom/webidl/HTMLLIElement.webidl +++ b/dom/webidl/HTMLLIElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLabelElement.webidl b/dom/webidl/HTMLLabelElement.webidl index ec1ca9b206c8..4b624dfafa49 100644 --- a/dom/webidl/HTMLLabelElement.webidl +++ b/dom/webidl/HTMLLabelElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLegendElement.webidl b/dom/webidl/HTMLLegendElement.webidl index f41d1c1f8999..6f03ecf1b6ab 100644 --- a/dom/webidl/HTMLLegendElement.webidl +++ b/dom/webidl/HTMLLegendElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLLinkElement.webidl b/dom/webidl/HTMLLinkElement.webidl index a043ce3eb284..0fc7890d6eaa 100644 --- a/dom/webidl/HTMLLinkElement.webidl +++ b/dom/webidl/HTMLLinkElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMapElement.webidl b/dom/webidl/HTMLMapElement.webidl index cab4de6b6cce..199c70876ab4 100644 --- a/dom/webidl/HTMLMapElement.webidl +++ b/dom/webidl/HTMLMapElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMediaElement.webidl b/dom/webidl/HTMLMediaElement.webidl index 4685c0d4d374..7c33165fc590 100644 --- a/dom/webidl/HTMLMediaElement.webidl +++ b/dom/webidl/HTMLMediaElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMenuElement.webidl b/dom/webidl/HTMLMenuElement.webidl index 4e7fab2ef2b8..1194226c5b3d 100644 --- a/dom/webidl/HTMLMenuElement.webidl +++ b/dom/webidl/HTMLMenuElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMenuItemElement.webidl b/dom/webidl/HTMLMenuItemElement.webidl index a51fc7a814c6..648188e2c833 100644 --- a/dom/webidl/HTMLMenuItemElement.webidl +++ b/dom/webidl/HTMLMenuItemElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMetaElement.webidl b/dom/webidl/HTMLMetaElement.webidl index 70b4ba101f7c..30014a955663 100644 --- a/dom/webidl/HTMLMetaElement.webidl +++ b/dom/webidl/HTMLMetaElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLMeterElement.webidl b/dom/webidl/HTMLMeterElement.webidl index 1033406dae72..5db5b66045ee 100644 --- a/dom/webidl/HTMLMeterElement.webidl +++ b/dom/webidl/HTMLMeterElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLModElement.webidl b/dom/webidl/HTMLModElement.webidl index 06e11321c74d..8ed8b994b58f 100644 --- a/dom/webidl/HTMLModElement.webidl +++ b/dom/webidl/HTMLModElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOListElement.webidl b/dom/webidl/HTMLOListElement.webidl index a78d667fd0eb..93084c227d13 100644 --- a/dom/webidl/HTMLOListElement.webidl +++ b/dom/webidl/HTMLOListElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLObjectElement.webidl b/dom/webidl/HTMLObjectElement.webidl index 5ed6e2f8cf42..b5bcddc816e6 100644 --- a/dom/webidl/HTMLObjectElement.webidl +++ b/dom/webidl/HTMLObjectElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptGroupElement.webidl b/dom/webidl/HTMLOptGroupElement.webidl index 5860c15d46fc..d46fb869d111 100644 --- a/dom/webidl/HTMLOptGroupElement.webidl +++ b/dom/webidl/HTMLOptGroupElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptionElement.webidl b/dom/webidl/HTMLOptionElement.webidl index c65149684380..415f6fdd4a04 100644 --- a/dom/webidl/HTMLOptionElement.webidl +++ b/dom/webidl/HTMLOptionElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOptionsCollection.webidl b/dom/webidl/HTMLOptionsCollection.webidl index 83e059a9f3ab..9e2cc06a7775 100644 --- a/dom/webidl/HTMLOptionsCollection.webidl +++ b/dom/webidl/HTMLOptionsCollection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLOutputElement.webidl b/dom/webidl/HTMLOutputElement.webidl index 88dd5d8c3ee6..61590153536d 100644 --- a/dom/webidl/HTMLOutputElement.webidl +++ b/dom/webidl/HTMLOutputElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLParagraphElement.webidl b/dom/webidl/HTMLParagraphElement.webidl index 8b86d5239eab..289af4c9fdde 100644 --- a/dom/webidl/HTMLParagraphElement.webidl +++ b/dom/webidl/HTMLParagraphElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLParamElement.webidl b/dom/webidl/HTMLParamElement.webidl index b77bba202951..cf6b5a35a7be 100644 --- a/dom/webidl/HTMLParamElement.webidl +++ b/dom/webidl/HTMLParamElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLPictureElement.webidl b/dom/webidl/HTMLPictureElement.webidl index 78565cd55cbd..387eee78ddcd 100644 --- a/dom/webidl/HTMLPictureElement.webidl +++ b/dom/webidl/HTMLPictureElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLPreElement.webidl b/dom/webidl/HTMLPreElement.webidl index db1475e86088..6929cd533ad3 100644 --- a/dom/webidl/HTMLPreElement.webidl +++ b/dom/webidl/HTMLPreElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLProgressElement.webidl b/dom/webidl/HTMLProgressElement.webidl index bde207e65ded..564b9f2a4f7e 100644 --- a/dom/webidl/HTMLProgressElement.webidl +++ b/dom/webidl/HTMLProgressElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLQuoteElement.webidl b/dom/webidl/HTMLQuoteElement.webidl index 07ba8b3cc473..c999b14786bb 100644 --- a/dom/webidl/HTMLQuoteElement.webidl +++ b/dom/webidl/HTMLQuoteElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLScriptElement.webidl b/dom/webidl/HTMLScriptElement.webidl index 83ad31e022d0..8a23ec613125 100644 --- a/dom/webidl/HTMLScriptElement.webidl +++ b/dom/webidl/HTMLScriptElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSelectElement.webidl b/dom/webidl/HTMLSelectElement.webidl index 4a961e42d2ea..115b305ecdad 100644 --- a/dom/webidl/HTMLSelectElement.webidl +++ b/dom/webidl/HTMLSelectElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSlotElement.webidl b/dom/webidl/HTMLSlotElement.webidl index e6392da4258d..c4a4f6b13d6e 100644 --- a/dom/webidl/HTMLSlotElement.webidl +++ b/dom/webidl/HTMLSlotElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSourceElement.webidl b/dom/webidl/HTMLSourceElement.webidl index 9a9734bc501d..8cd2ed0781b6 100644 --- a/dom/webidl/HTMLSourceElement.webidl +++ b/dom/webidl/HTMLSourceElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLSpanElement.webidl b/dom/webidl/HTMLSpanElement.webidl index 4b6480aff073..6f65cdfb383d 100644 --- a/dom/webidl/HTMLSpanElement.webidl +++ b/dom/webidl/HTMLSpanElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLStyleElement.webidl b/dom/webidl/HTMLStyleElement.webidl index 2d080dc6b607..c0c8b985b0da 100644 --- a/dom/webidl/HTMLStyleElement.webidl +++ b/dom/webidl/HTMLStyleElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableCaptionElement.webidl b/dom/webidl/HTMLTableCaptionElement.webidl index ce8c453c899e..48c9d354a6d3 100644 --- a/dom/webidl/HTMLTableCaptionElement.webidl +++ b/dom/webidl/HTMLTableCaptionElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableCellElement.webidl b/dom/webidl/HTMLTableCellElement.webidl index ca0e105ed8e4..aff94914f120 100644 --- a/dom/webidl/HTMLTableCellElement.webidl +++ b/dom/webidl/HTMLTableCellElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableColElement.webidl b/dom/webidl/HTMLTableColElement.webidl index 900d7202c8d0..02be4590a108 100644 --- a/dom/webidl/HTMLTableColElement.webidl +++ b/dom/webidl/HTMLTableColElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableElement.webidl b/dom/webidl/HTMLTableElement.webidl index 21c1f82006e5..f81e00041844 100644 --- a/dom/webidl/HTMLTableElement.webidl +++ b/dom/webidl/HTMLTableElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableRowElement.webidl b/dom/webidl/HTMLTableRowElement.webidl index c807b096a7b6..9a204f9a9bd1 100644 --- a/dom/webidl/HTMLTableRowElement.webidl +++ b/dom/webidl/HTMLTableRowElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTableSectionElement.webidl b/dom/webidl/HTMLTableSectionElement.webidl index 0104a9584c2d..a71682fc15d1 100644 --- a/dom/webidl/HTMLTableSectionElement.webidl +++ b/dom/webidl/HTMLTableSectionElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTemplateElement.webidl b/dom/webidl/HTMLTemplateElement.webidl index e17f7f0c352c..f77eeaa42906 100644 --- a/dom/webidl/HTMLTemplateElement.webidl +++ b/dom/webidl/HTMLTemplateElement.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTextAreaElement.webidl b/dom/webidl/HTMLTextAreaElement.webidl index e0bbf7acad68..026007e1c0ca 100644 --- a/dom/webidl/HTMLTextAreaElement.webidl +++ b/dom/webidl/HTMLTextAreaElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTimeElement.webidl b/dom/webidl/HTMLTimeElement.webidl index e8ab88fe1568..35c06fef3181 100644 --- a/dom/webidl/HTMLTimeElement.webidl +++ b/dom/webidl/HTMLTimeElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTitleElement.webidl b/dom/webidl/HTMLTitleElement.webidl index ba0d02bde202..bbce70bb2a61 100644 --- a/dom/webidl/HTMLTitleElement.webidl +++ b/dom/webidl/HTMLTitleElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLTrackElement.webidl b/dom/webidl/HTMLTrackElement.webidl index 4092ab0cb29a..cbb70db2a3bf 100644 --- a/dom/webidl/HTMLTrackElement.webidl +++ b/dom/webidl/HTMLTrackElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLUListElement.webidl b/dom/webidl/HTMLUListElement.webidl index bb76a3401e86..725437494a58 100644 --- a/dom/webidl/HTMLUListElement.webidl +++ b/dom/webidl/HTMLUListElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HTMLVideoElement.webidl b/dom/webidl/HTMLVideoElement.webidl index d185983fe502..9c9a0e437862 100644 --- a/dom/webidl/HTMLVideoElement.webidl +++ b/dom/webidl/HTMLVideoElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HashChangeEvent.webidl b/dom/webidl/HashChangeEvent.webidl index f61ce22485a8..6e8be455c4a1 100644 --- a/dom/webidl/HashChangeEvent.webidl +++ b/dom/webidl/HashChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/HiddenPluginEvent.webidl b/dom/webidl/HiddenPluginEvent.webidl index 1311fb9023e9..1ba09acb69ef 100644 --- a/dom/webidl/HiddenPluginEvent.webidl +++ b/dom/webidl/HiddenPluginEvent.webidl @@ -1,18 +1,12 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -interface PluginTag; - -[Constructor(DOMString type, optional HiddenPluginEventInit eventInit), ChromeOnly] -interface HiddenPluginEvent : Event -{ - readonly attribute PluginTag? tag; -}; - -dictionary HiddenPluginEventInit : EventInit -{ - PluginTag? tag = null; -}; +interface PluginTag; + +[Constructor(DOMString type, optional HiddenPluginEventInit eventInit), ChromeOnly] +interface HiddenPluginEvent : Event +{ + readonly attribute PluginTag? tag; +}; + +dictionary HiddenPluginEventInit : EventInit +{ + PluginTag? tag = null; +}; diff --git a/dom/webidl/History.webidl b/dom/webidl/History.webidl index a472de093a99..fef868018295 100644 --- a/dom/webidl/History.webidl +++ b/dom/webidl/History.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBCursor.webidl b/dom/webidl/IDBCursor.webidl index 59bdf963805e..159f9ba87ec5 100644 --- a/dom/webidl/IDBCursor.webidl +++ b/dom/webidl/IDBCursor.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,42 +8,42 @@ */ enum IDBCursorDirection { - "next", - "nextunique", - "prev", - "prevunique" + "next", + "nextunique", + "prev", + "prevunique" }; [Exposed=(Window,Worker,System)] interface IDBCursor { - readonly attribute (IDBObjectStore or IDBIndex) source; + readonly attribute (IDBObjectStore or IDBIndex) source; - readonly attribute IDBCursorDirection direction; + readonly attribute IDBCursorDirection direction; - [Throws] - readonly attribute any key; + [Throws] + readonly attribute any key; - [Throws] - readonly attribute any primaryKey; + [Throws] + readonly attribute any primaryKey; - [Throws] - IDBRequest update (any value); + [Throws] + IDBRequest update (any value); - [Throws] - void advance ([EnforceRange] unsigned long count); + [Throws] + void advance ([EnforceRange] unsigned long count); - [Throws] - void continue (optional any key); + [Throws] + void continue (optional any key); - [Throws] - void continuePrimaryKey(any key, any primaryKey); + [Throws] + void continuePrimaryKey(any key, any primaryKey); - [Throws] - IDBRequest delete (); + [Throws] + IDBRequest delete (); }; [Exposed=(Window,Worker,System)] interface IDBCursorWithValue : IDBCursor { - [Throws] - readonly attribute any value; + [Throws] + readonly attribute any value; }; diff --git a/dom/webidl/IDBDatabase.webidl b/dom/webidl/IDBDatabase.webidl index 4d4620f0f70d..19ecaa41b3cf 100644 --- a/dom/webidl/IDBDatabase.webidl +++ b/dom/webidl/IDBDatabase.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -13,37 +12,37 @@ [Exposed=(Window,Worker,System)] interface IDBDatabase : EventTarget { - readonly attribute DOMString name; - readonly attribute unsigned long long version; + readonly attribute DOMString name; + readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; - [Throws] - IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); + [Throws] + IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); - [Throws] - void deleteObjectStore (DOMString name); + [Throws] + void deleteObjectStore (DOMString name); - [Throws] - IDBTransaction transaction ((DOMString or sequence) storeNames, - optional IDBTransactionMode mode = "readonly"); + [Throws] + IDBTransaction transaction ((DOMString or sequence) storeNames, + optional IDBTransactionMode mode = "readonly"); - void close (); + void close (); - attribute EventHandler onabort; - attribute EventHandler onclose; - attribute EventHandler onerror; - attribute EventHandler onversionchange; + attribute EventHandler onabort; + attribute EventHandler onclose; + attribute EventHandler onerror; + attribute EventHandler onversionchange; }; partial interface IDBDatabase { - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute StorageType storage; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute StorageType storage; - [Exposed=Window, Throws, UseCounter] - IDBRequest createMutableFile (DOMString name, optional DOMString type); + [Exposed=Window, Throws, UseCounter] + IDBRequest createMutableFile (DOMString name, optional DOMString type); - // this is deprecated due to renaming in the spec - [Exposed=Window, Throws, UseCounter] - IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile + // this is deprecated due to renaming in the spec + [Exposed=Window, Throws, UseCounter] + IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile }; diff --git a/dom/webidl/IDBFactory.webidl b/dom/webidl/IDBFactory.webidl index 469dfe941eae..0599af5e6805 100644 --- a/dom/webidl/IDBFactory.webidl +++ b/dom/webidl/IDBFactory.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBFileHandle.webidl b/dom/webidl/IDBFileHandle.webidl index b04ee8529240..e312742c640f 100644 --- a/dom/webidl/IDBFileHandle.webidl +++ b/dom/webidl/IDBFileHandle.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtaone at http://mozilla.org/MPL/2.0/. */ diff --git a/dom/webidl/IDBFileRequest.webidl b/dom/webidl/IDBFileRequest.webidl index a2aeb5b3d113..fc3a8c5b67eb 100644 --- a/dom/webidl/IDBFileRequest.webidl +++ b/dom/webidl/IDBFileRequest.webidl @@ -1,5 +1,5 @@ /* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBIndex.webidl b/dom/webidl/IDBIndex.webidl index da5ffd239fd0..0e436650a47e 100644 --- a/dom/webidl/IDBIndex.webidl +++ b/dom/webidl/IDBIndex.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,64 +8,64 @@ */ dictionary IDBIndexParameters { - boolean unique = false; - boolean multiEntry = false; - // : Not locale-aware, uses normal JS sorting. - // : Always sorted based on the rules of the specified - // locale (e.g. "en-US", etc.). - // "auto": Sorted by the platform default, may change based on - // user agent options. - DOMString? locale = null; + boolean unique = false; + boolean multiEntry = false; + // : Not locale-aware, uses normal JS sorting. + // : Always sorted based on the rules of the specified + // locale (e.g. "en-US", etc.). + // "auto": Sorted by the platform default, may change based on + // user agent options. + DOMString? locale = null; }; [Exposed=(Window,Worker,System)] interface IDBIndex { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - readonly attribute IDBObjectStore objectStore; + readonly attribute IDBObjectStore objectStore; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute boolean multiEntry; - readonly attribute boolean unique; + readonly attribute boolean multiEntry; + readonly attribute boolean unique; - // : Not locale-aware, uses normal JS sorting. - // : Sorted based on the rules of the specified locale. - // Note: never returns "auto", only the current locale. - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute DOMString? locale; + // : Not locale-aware, uses normal JS sorting. + // : Sorted based on the rules of the specified locale. + // Note: never returns "auto", only the current locale. + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute DOMString? locale; - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute boolean isAutoLocale; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute boolean isAutoLocale; - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBIndex { - [Throws] - IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); }; diff --git a/dom/webidl/IDBKeyRange.webidl b/dom/webidl/IDBKeyRange.webidl index 81fcb482fb44..1caba7618568 100644 --- a/dom/webidl/IDBKeyRange.webidl +++ b/dom/webidl/IDBKeyRange.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBMutableFile.webidl b/dom/webidl/IDBMutableFile.webidl index f92cb2c29d17..4883cb22037e 100644 --- a/dom/webidl/IDBMutableFile.webidl +++ b/dom/webidl/IDBMutableFile.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IDBObjectStore.webidl b/dom/webidl/IDBObjectStore.webidl index c9d1a42a3fbb..a06ac8897beb 100644 --- a/dom/webidl/IDBObjectStore.webidl +++ b/dom/webidl/IDBObjectStore.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -15,48 +14,48 @@ dictionary IDBObjectStoreParameters { [Exposed=(Window,Worker,System)] interface IDBObjectStore { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; - readonly attribute IDBTransaction transaction; - readonly attribute boolean autoIncrement; + readonly attribute DOMStringList indexNames; + readonly attribute IDBTransaction transaction; + readonly attribute boolean autoIncrement; - [Throws] - IDBRequest put (any value, optional any key); + [Throws] + IDBRequest put (any value, optional any key); - [Throws] - IDBRequest add (any value, optional any key); + [Throws] + IDBRequest add (any value, optional any key); - [Throws] - IDBRequest delete (any key); + [Throws] + IDBRequest delete (any key); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest clear (); + [Throws] + IDBRequest clear (); - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); + [Throws] + IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); - [Throws] - IDBIndex index (DOMString name); + [Throws] + IDBIndex index (DOMString name); - [Throws] - void deleteIndex (DOMString indexName); + [Throws] + void deleteIndex (DOMString indexName); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBObjectStore { diff --git a/dom/webidl/IDBOpenDBRequest.webidl b/dom/webidl/IDBOpenDBRequest.webidl index a3fc51e42a46..ba0ebf837cb3 100644 --- a/dom/webidl/IDBOpenDBRequest.webidl +++ b/dom/webidl/IDBOpenDBRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBRequest.webidl b/dom/webidl/IDBRequest.webidl index 6e10b07fda05..c23bf9fe709c 100644 --- a/dom/webidl/IDBRequest.webidl +++ b/dom/webidl/IDBRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IDBTransaction.webidl b/dom/webidl/IDBTransaction.webidl index 081ed102a120..336eaf2b8db7 100644 --- a/dom/webidl/IDBTransaction.webidl +++ b/dom/webidl/IDBTransaction.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -10,36 +9,36 @@ */ enum IDBTransactionMode { - "readonly", - "readwrite", - // The "readwriteflush" mode is only available when the - // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns - // true. This mode is not yet part of the standard. - "readwriteflush", - "cleanup", - "versionchange" + "readonly", + "readwrite", + // The "readwriteflush" mode is only available when the + // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns + // true. This mode is not yet part of the standard. + "readwriteflush", + "cleanup", + "versionchange" }; [Exposed=(Window,Worker,System)] interface IDBTransaction : EventTarget { - [Throws] - readonly attribute IDBTransactionMode mode; - readonly attribute IDBDatabase db; + [Throws] + readonly attribute IDBTransactionMode mode; + readonly attribute IDBDatabase db; - readonly attribute DOMException? error; + readonly attribute DOMException? error; - [Throws] - IDBObjectStore objectStore (DOMString name); + [Throws] + IDBObjectStore objectStore (DOMString name); - [Throws] - void abort(); + [Throws] + void abort(); - attribute EventHandler onabort; - attribute EventHandler oncomplete; - attribute EventHandler onerror; + attribute EventHandler onabort; + attribute EventHandler oncomplete; + attribute EventHandler onerror; }; // This seems to be custom partial interface IDBTransaction { - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; }; diff --git a/dom/webidl/IDBVersionChangeEvent.webidl b/dom/webidl/IDBVersionChangeEvent.webidl index b2e762dc925a..1c93850047d1 100644 --- a/dom/webidl/IDBVersionChangeEvent.webidl +++ b/dom/webidl/IDBVersionChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IIRFilterNode.webidl b/dom/webidl/IIRFilterNode.webidl index c13f3fa0b7a3..8a0057944bee 100644 --- a/dom/webidl/IIRFilterNode.webidl +++ b/dom/webidl/IIRFilterNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IdleDeadline.webidl b/dom/webidl/IdleDeadline.webidl index 1caa66148afa..903122ab8921 100644 --- a/dom/webidl/IdleDeadline.webidl +++ b/dom/webidl/IdleDeadline.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageBitmap.webidl b/dom/webidl/ImageBitmap.webidl index 1a069b98bd31..abc800e21d89 100644 --- a/dom/webidl/ImageBitmap.webidl +++ b/dom/webidl/ImageBitmap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageBitmapRenderingContext.webidl b/dom/webidl/ImageBitmapRenderingContext.webidl index 304087d3c055..b94447cd96db 100644 --- a/dom/webidl/ImageBitmapRenderingContext.webidl +++ b/dom/webidl/ImageBitmapRenderingContext.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageCapture.webidl b/dom/webidl/ImageCapture.webidl index eedd636fe1ea..22f330335cc8 100644 --- a/dom/webidl/ImageCapture.webidl +++ b/dom/webidl/ImageCapture.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageCaptureErrorEvent.webidl b/dom/webidl/ImageCaptureErrorEvent.webidl index 646ffcdcf873..b7300aa30c1a 100644 --- a/dom/webidl/ImageCaptureErrorEvent.webidl +++ b/dom/webidl/ImageCaptureErrorEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageData.webidl b/dom/webidl/ImageData.webidl index a1912bdad70e..f6000bd0595f 100644 --- a/dom/webidl/ImageData.webidl +++ b/dom/webidl/ImageData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ImageDocument.webidl b/dom/webidl/ImageDocument.webidl index 2c24e4c7bfb6..571e345ddebe 100644 --- a/dom/webidl/ImageDocument.webidl +++ b/dom/webidl/ImageDocument.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/InputEvent.webidl b/dom/webidl/InputEvent.webidl index c515ddffc0f2..805b0510cd20 100644 --- a/dom/webidl/InputEvent.webidl +++ b/dom/webidl/InputEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/InstallTrigger.webidl b/dom/webidl/InstallTrigger.webidl index 438300689a44..68f48ddc61ef 100644 --- a/dom/webidl/InstallTrigger.webidl +++ b/dom/webidl/InstallTrigger.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IntersectionObserver.webidl b/dom/webidl/IntersectionObserver.webidl index 740d8e132eb5..8c66394b5d66 100644 --- a/dom/webidl/IntersectionObserver.webidl +++ b/dom/webidl/IntersectionObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/IntlUtils.webidl b/dom/webidl/IntlUtils.webidl index da452fdf48d2..c70e0f955c82 100644 --- a/dom/webidl/IntlUtils.webidl +++ b/dom/webidl/IntlUtils.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/IterableIterator.webidl b/dom/webidl/IterableIterator.webidl index 651f63d9b7ba..633b67b1edb5 100644 --- a/dom/webidl/IterableIterator.webidl +++ b/dom/webidl/IterableIterator.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyAlgorithm.webidl b/dom/webidl/KeyAlgorithm.webidl index 1a1cf06f7cc5..260b1e624b26 100644 --- a/dom/webidl/KeyAlgorithm.webidl +++ b/dom/webidl/KeyAlgorithm.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyEvent.webidl b/dom/webidl/KeyEvent.webidl index 60186ce877b1..6fd66afc21d9 100644 --- a/dom/webidl/KeyEvent.webidl +++ b/dom/webidl/KeyEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyIdsInitData.webidl b/dom/webidl/KeyIdsInitData.webidl index 06b8e3e3bb83..108a5572e86f 100644 --- a/dom/webidl/KeyIdsInitData.webidl +++ b/dom/webidl/KeyIdsInitData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyboardEvent.webidl b/dom/webidl/KeyboardEvent.webidl index 635c8ce13b79..28e35c74eccf 100644 --- a/dom/webidl/KeyboardEvent.webidl +++ b/dom/webidl/KeyboardEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyframeAnimationOptions.webidl b/dom/webidl/KeyframeAnimationOptions.webidl index fb43399f4655..047f46ed1aad 100644 --- a/dom/webidl/KeyframeAnimationOptions.webidl +++ b/dom/webidl/KeyframeAnimationOptions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/KeyframeEffect.webidl b/dom/webidl/KeyframeEffect.webidl index 1ed1b42eeb03..4d7e1ba632f9 100644 --- a/dom/webidl/KeyframeEffect.webidl +++ b/dom/webidl/KeyframeEffect.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/L10nUtils.webidl b/dom/webidl/L10nUtils.webidl index 1aed971dfba3..9e3e2f59eb85 100644 --- a/dom/webidl/L10nUtils.webidl +++ b/dom/webidl/L10nUtils.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LegacyQueryInterface.webidl b/dom/webidl/LegacyQueryInterface.webidl index 00cbd3b172c2..f6a4634aef7d 100644 --- a/dom/webidl/LegacyQueryInterface.webidl +++ b/dom/webidl/LegacyQueryInterface.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LinkStyle.webidl b/dom/webidl/LinkStyle.webidl index 497a2ebe3554..db0bc031adde 100644 --- a/dom/webidl/LinkStyle.webidl +++ b/dom/webidl/LinkStyle.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/LocalMediaStream.webidl b/dom/webidl/LocalMediaStream.webidl index ee790b2a3720..1ef7474a26dd 100644 --- a/dom/webidl/LocalMediaStream.webidl +++ b/dom/webidl/LocalMediaStream.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Location.webidl b/dom/webidl/Location.webidl index 4b9131086164..7381f6d1c434 100644 --- a/dom/webidl/Location.webidl +++ b/dom/webidl/Location.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIAccess.webidl b/dom/webidl/MIDIAccess.webidl index c6bdd0ac0954..97c8be42ce55 100644 --- a/dom/webidl/MIDIAccess.webidl +++ b/dom/webidl/MIDIAccess.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIConnectionEvent.webidl b/dom/webidl/MIDIConnectionEvent.webidl index 781a885f5434..482319576906 100644 --- a/dom/webidl/MIDIConnectionEvent.webidl +++ b/dom/webidl/MIDIConnectionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIInput.webidl b/dom/webidl/MIDIInput.webidl index 727811b1dcca..9cfc4fea1c45 100644 --- a/dom/webidl/MIDIInput.webidl +++ b/dom/webidl/MIDIInput.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIInputMap.webidl b/dom/webidl/MIDIInputMap.webidl index ed4c9ce4031b..19154ed8b44d 100644 --- a/dom/webidl/MIDIInputMap.webidl +++ b/dom/webidl/MIDIInputMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIMessageEvent.webidl b/dom/webidl/MIDIMessageEvent.webidl index 23f66461d806..f9d55dbab883 100644 --- a/dom/webidl/MIDIMessageEvent.webidl +++ b/dom/webidl/MIDIMessageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOptions.webidl b/dom/webidl/MIDIOptions.webidl index 6c56f641f07f..314ebec535fd 100644 --- a/dom/webidl/MIDIOptions.webidl +++ b/dom/webidl/MIDIOptions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOutput.webidl b/dom/webidl/MIDIOutput.webidl index 7d0ab8d1a5e1..d3c5a46b2cc4 100644 --- a/dom/webidl/MIDIOutput.webidl +++ b/dom/webidl/MIDIOutput.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIOutputMap.webidl b/dom/webidl/MIDIOutputMap.webidl index aa880bd3a825..64ac6da333cd 100644 --- a/dom/webidl/MIDIOutputMap.webidl +++ b/dom/webidl/MIDIOutputMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MIDIPort.webidl b/dom/webidl/MIDIPort.webidl index 3296c37ea8bd..65274ebbffb1 100644 --- a/dom/webidl/MIDIPort.webidl +++ b/dom/webidl/MIDIPort.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaCapabilities.webidl b/dom/webidl/MediaCapabilities.webidl index cc2281690319..636f5605ac85 100644 --- a/dom/webidl/MediaCapabilities.webidl +++ b/dom/webidl/MediaCapabilities.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaDeviceInfo.webidl b/dom/webidl/MediaDeviceInfo.webidl index e099c3ca7c09..023cd82f2afa 100644 --- a/dom/webidl/MediaDeviceInfo.webidl +++ b/dom/webidl/MediaDeviceInfo.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaDevices.webidl b/dom/webidl/MediaDevices.webidl index c369a0157ac7..a71aa05c1a37 100644 --- a/dom/webidl/MediaDevices.webidl +++ b/dom/webidl/MediaDevices.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaElementAudioSourceNode.webidl b/dom/webidl/MediaElementAudioSourceNode.webidl index 3caea11e82d2..37de32536d24 100644 --- a/dom/webidl/MediaElementAudioSourceNode.webidl +++ b/dom/webidl/MediaElementAudioSourceNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaEncryptedEvent.webidl b/dom/webidl/MediaEncryptedEvent.webidl index c38de0b339a4..113d3e629ab4 100644 --- a/dom/webidl/MediaEncryptedEvent.webidl +++ b/dom/webidl/MediaEncryptedEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaError.webidl b/dom/webidl/MediaError.webidl index 4d353a2a4755..bd1ed4e3f67c 100644 --- a/dom/webidl/MediaError.webidl +++ b/dom/webidl/MediaError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyError.webidl b/dom/webidl/MediaKeyError.webidl index 41c693bf63c1..e9fcd2d7ee31 100644 --- a/dom/webidl/MediaKeyError.webidl +++ b/dom/webidl/MediaKeyError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyMessageEvent.webidl b/dom/webidl/MediaKeyMessageEvent.webidl index 10eb2817c167..eabef221fea0 100644 --- a/dom/webidl/MediaKeyMessageEvent.webidl +++ b/dom/webidl/MediaKeyMessageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeySession.webidl b/dom/webidl/MediaKeySession.webidl index 359363a9d833..342483fb1390 100644 --- a/dom/webidl/MediaKeySession.webidl +++ b/dom/webidl/MediaKeySession.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeyStatusMap.webidl b/dom/webidl/MediaKeyStatusMap.webidl index cc834759cbfc..648adaf40189 100644 --- a/dom/webidl/MediaKeyStatusMap.webidl +++ b/dom/webidl/MediaKeyStatusMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeySystemAccess.webidl b/dom/webidl/MediaKeySystemAccess.webidl index 1672d54de38f..38bcd578c03b 100644 --- a/dom/webidl/MediaKeySystemAccess.webidl +++ b/dom/webidl/MediaKeySystemAccess.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeys.webidl b/dom/webidl/MediaKeys.webidl index 93fc7ca72a9e..aab679eece97 100644 --- a/dom/webidl/MediaKeys.webidl +++ b/dom/webidl/MediaKeys.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaKeysRequestStatus.webidl b/dom/webidl/MediaKeysRequestStatus.webidl index 30737240f255..737372f664a6 100644 --- a/dom/webidl/MediaKeysRequestStatus.webidl +++ b/dom/webidl/MediaKeysRequestStatus.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaList.webidl b/dom/webidl/MediaList.webidl index 27bf6151165b..89f2f0f95647 100644 --- a/dom/webidl/MediaList.webidl +++ b/dom/webidl/MediaList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/MediaQueryList.webidl b/dom/webidl/MediaQueryList.webidl index 664411eead98..120c96e385c3 100644 --- a/dom/webidl/MediaQueryList.webidl +++ b/dom/webidl/MediaQueryList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaQueryListEvent.webidl b/dom/webidl/MediaQueryListEvent.webidl index f27d6914d31e..5e53e9734fec 100644 --- a/dom/webidl/MediaQueryListEvent.webidl +++ b/dom/webidl/MediaQueryListEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaRecorder.webidl b/dom/webidl/MediaRecorder.webidl index a22dda68fc33..65d1893e9eff 100644 --- a/dom/webidl/MediaRecorder.webidl +++ b/dom/webidl/MediaRecorder.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaRecorderErrorEvent.webidl b/dom/webidl/MediaRecorderErrorEvent.webidl index 414993e66677..619329728f4e 100644 --- a/dom/webidl/MediaRecorderErrorEvent.webidl +++ b/dom/webidl/MediaRecorderErrorEvent.webidl @@ -1,22 +1,21 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. - * - * The origin of this IDL file is - * https://w3c.github.io/mediacapture-record/ - * - * Copyright © 2017 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark - * and document use rules apply. - */ - -dictionary MediaRecorderErrorEventInit : EventInit { - required DOMException error; -}; - -[Exposed=Window, - Constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict)] -interface MediaRecorderErrorEvent : Event { - [SameObject] readonly attribute DOMException error; -}; +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * 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/. + * + * The origin of this IDL file is + * https://w3c.github.io/mediacapture-record/ + * + * Copyright © 2017 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark + * and document use rules apply. + */ + +dictionary MediaRecorderErrorEventInit : EventInit { + required DOMException error; +}; + +[Exposed=Window, + Constructor(DOMString type, MediaRecorderErrorEventInit eventInitDict)] +interface MediaRecorderErrorEvent : Event { + [SameObject] readonly attribute DOMException error; +}; \ No newline at end of file diff --git a/dom/webidl/MediaSource.webidl b/dom/webidl/MediaSource.webidl index 33f0447764e8..63691e090d7a 100644 --- a/dom/webidl/MediaSource.webidl +++ b/dom/webidl/MediaSource.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStream.webidl b/dom/webidl/MediaStream.webidl index 912d49290352..71d24527e3aa 100644 --- a/dom/webidl/MediaStream.webidl +++ b/dom/webidl/MediaStream.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -15,13 +14,13 @@ // MediaTrackConstraints* counterparts due to a webidl compiler limitation. dictionary MediaStreamConstraints { - (boolean or MediaTrackConstraints) audio = false; - (boolean or MediaTrackConstraints) video = false; - boolean picture = false; // Mozilla legacy - boolean fake; // For testing purpose. Generates frames of solid - // colors if video is enabled, and sound of 1Khz sine - // wave if audio is enabled. - DOMString? peerIdentity = null; + (boolean or MediaTrackConstraints) audio = false; + (boolean or MediaTrackConstraints) video = false; + boolean picture = false; // Mozilla legacy + boolean fake; // For testing purpose. Generates frames of solid + // colors if video is enabled, and sound of 1Khz sine + // wave if audio is enabled. + DOMString? peerIdentity = null; }; [Exposed=Window, @@ -29,24 +28,24 @@ dictionary MediaStreamConstraints { Constructor (MediaStream stream), Constructor (sequence tracks)] interface MediaStream : EventTarget { - readonly attribute DOMString id; - sequence getAudioTracks (); - sequence getVideoTracks (); - sequence getTracks (); - MediaStreamTrack? getTrackById (DOMString trackId); - void addTrack (MediaStreamTrack track); - void removeTrack (MediaStreamTrack track); - MediaStream clone (); - readonly attribute boolean active; - attribute EventHandler onaddtrack; - attribute EventHandler onremovetrack; - readonly attribute double currentTime; + readonly attribute DOMString id; + sequence getAudioTracks (); + sequence getVideoTracks (); + sequence getTracks (); + MediaStreamTrack? getTrackById (DOMString trackId); + void addTrack (MediaStreamTrack track); + void removeTrack (MediaStreamTrack track); + MediaStream clone (); + readonly attribute boolean active; + attribute EventHandler onaddtrack; + attribute EventHandler onremovetrack; + readonly attribute double currentTime; - [ChromeOnly, Throws] - static Promise countUnderlyingStreams(); + [ChromeOnly, Throws] + static Promise countUnderlyingStreams(); - // Webrtc allows the remote side to name a stream whatever it wants, and we - // need to surface this to content. - [ChromeOnly] - void assignId(DOMString id); + // Webrtc allows the remote side to name a stream whatever it wants, and we + // need to surface this to content. + [ChromeOnly] + void assignId(DOMString id); }; diff --git a/dom/webidl/MediaStreamAudioDestinationNode.webidl b/dom/webidl/MediaStreamAudioDestinationNode.webidl index 9964e4695488..9776ab994f64 100644 --- a/dom/webidl/MediaStreamAudioDestinationNode.webidl +++ b/dom/webidl/MediaStreamAudioDestinationNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamAudioSourceNode.webidl b/dom/webidl/MediaStreamAudioSourceNode.webidl index 409a52a1c216..06727a5dadd2 100644 --- a/dom/webidl/MediaStreamAudioSourceNode.webidl +++ b/dom/webidl/MediaStreamAudioSourceNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamError.webidl b/dom/webidl/MediaStreamError.webidl index 860fcc79227e..54c8f5792b7b 100644 --- a/dom/webidl/MediaStreamError.webidl +++ b/dom/webidl/MediaStreamError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamEvent.webidl b/dom/webidl/MediaStreamEvent.webidl index e0e135211a8c..56bac3a866d7 100644 --- a/dom/webidl/MediaStreamEvent.webidl +++ b/dom/webidl/MediaStreamEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaStreamTrack.webidl b/dom/webidl/MediaStreamTrack.webidl index fa9d0f90598d..09f28d848b86 100644 --- a/dom/webidl/MediaStreamTrack.webidl +++ b/dom/webidl/MediaStreamTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -16,22 +15,22 @@ // Their binding code is used in the implementation. enum VideoFacingModeEnum { - "user", - "environment", - "left", - "right" + "user", + "environment", + "left", + "right" }; enum MediaSourceEnum { - "camera", - "screen", - "application", - "window", - "browser", - "microphone", - "audioCapture", - "other" - // If values are added, adjust n_values in Histograms.json (2 places) + "camera", + "screen", + "application", + "window", + "browser", + "microphone", + "audioCapture", + "other" + // If values are added, adjust n_values in Histograms.json (2 places) }; typedef (long or ConstrainLongRange) ConstrainLong; @@ -43,60 +42,60 @@ typedef (DOMString or sequence or ConstrainDOMStringParameters) Const // function in MediaManager.cpp to make OverconstrainedError's constraint work! dictionary MediaTrackConstraintSet { - ConstrainLong width; - ConstrainLong height; - ConstrainDouble frameRate; - ConstrainDOMString facingMode; - DOMString mediaSource = "camera"; - long long browserWindow; - boolean scrollWithPage; - ConstrainDOMString deviceId; - ConstrainLong viewportOffsetX; - ConstrainLong viewportOffsetY; - ConstrainLong viewportWidth; - ConstrainLong viewportHeight; - ConstrainBoolean echoCancellation; - ConstrainBoolean noiseSuppression; - ConstrainBoolean autoGainControl; - ConstrainLong channelCount; + ConstrainLong width; + ConstrainLong height; + ConstrainDouble frameRate; + ConstrainDOMString facingMode; + DOMString mediaSource = "camera"; + long long browserWindow; + boolean scrollWithPage; + ConstrainDOMString deviceId; + ConstrainLong viewportOffsetX; + ConstrainLong viewportOffsetY; + ConstrainLong viewportWidth; + ConstrainLong viewportHeight; + ConstrainBoolean echoCancellation; + ConstrainBoolean noiseSuppression; + ConstrainBoolean autoGainControl; + ConstrainLong channelCount; - // Deprecated with warnings: - ConstrainBoolean mozNoiseSuppression; - ConstrainBoolean mozAutoGainControl; + // Deprecated with warnings: + ConstrainBoolean mozNoiseSuppression; + ConstrainBoolean mozAutoGainControl; }; dictionary MediaTrackConstraints : MediaTrackConstraintSet { - sequence advanced; + sequence advanced; }; enum MediaStreamTrackState { - "live", - "ended" + "live", + "ended" }; [Exposed=Window] interface MediaStreamTrack : EventTarget { - readonly attribute DOMString kind; - readonly attribute DOMString id; - [NeedsCallerType] - readonly attribute DOMString label; - attribute boolean enabled; - readonly attribute boolean muted; - attribute EventHandler onmute; - attribute EventHandler onunmute; - readonly attribute MediaStreamTrackState readyState; - attribute EventHandler onended; - MediaStreamTrack clone (); - void stop (); -//MediaTrackCapabilities getCapabilities (); - MediaTrackConstraints getConstraints (); - [NeedsCallerType] - MediaTrackSettings getSettings (); + readonly attribute DOMString kind; + readonly attribute DOMString id; + [NeedsCallerType] + readonly attribute DOMString label; + attribute boolean enabled; + readonly attribute boolean muted; + attribute EventHandler onmute; + attribute EventHandler onunmute; + readonly attribute MediaStreamTrackState readyState; + attribute EventHandler onended; + MediaStreamTrack clone (); + void stop (); +// MediaTrackCapabilities getCapabilities (); + MediaTrackConstraints getConstraints (); + [NeedsCallerType] + MediaTrackSettings getSettings (); - [Throws, NeedsCallerType] - Promise applyConstraints (optional MediaTrackConstraints constraints); -// attribute EventHandler onoverconstrained; + [Throws, NeedsCallerType] + Promise applyConstraints (optional MediaTrackConstraints constraints); +// attribute EventHandler onoverconstrained; - [ChromeOnly] - void mutedChanged(boolean muted); + [ChromeOnly] + void mutedChanged(boolean muted); }; diff --git a/dom/webidl/MediaStreamTrackEvent.webidl b/dom/webidl/MediaStreamTrackEvent.webidl index 296fe472144c..538adf2f9306 100644 --- a/dom/webidl/MediaStreamTrackEvent.webidl +++ b/dom/webidl/MediaStreamTrackEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaTrackConstraintSet.webidl b/dom/webidl/MediaTrackConstraintSet.webidl index e91998a84045..63bc6bac5da8 100644 --- a/dom/webidl/MediaTrackConstraintSet.webidl +++ b/dom/webidl/MediaTrackConstraintSet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MediaTrackSettings.webidl b/dom/webidl/MediaTrackSettings.webidl index 48dbbe5541f1..977e0f01dc3b 100644 --- a/dom/webidl/MediaTrackSettings.webidl +++ b/dom/webidl/MediaTrackSettings.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,30 +8,30 @@ */ dictionary MediaTrackSettings { - long width; - long height; - double frameRate; - DOMString facingMode; - DOMString deviceId; - boolean echoCancellation; - boolean noiseSuppression; - boolean autoGainControl; - long channelCount; + long width; + long height; + double frameRate; + DOMString facingMode; + DOMString deviceId; + boolean echoCancellation; + boolean noiseSuppression; + boolean autoGainControl; + long channelCount; - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - DOMString mediaSource; + DOMString mediaSource; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - long long browserWindow; - boolean scrollWithPage; - long viewportOffsetX; - long viewportOffsetY; - long viewportWidth; - long viewportHeight; + long long browserWindow; + boolean scrollWithPage; + long viewportOffsetX; + long viewportOffsetY; + long viewportWidth; + long viewportHeight; }; diff --git a/dom/webidl/MediaTrackSupportedConstraints.webidl b/dom/webidl/MediaTrackSupportedConstraints.webidl index 5f6a91526217..ac2d4b837e55 100644 --- a/dom/webidl/MediaTrackSupportedConstraints.webidl +++ b/dom/webidl/MediaTrackSupportedConstraints.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,36 +8,36 @@ */ dictionary MediaTrackSupportedConstraints { - boolean width = true; - boolean height = true; - boolean aspectRatio; // to be supported - boolean frameRate = true; - boolean facingMode = true; - boolean volume; // to be supported - boolean sampleRate; // to be supported - boolean sampleSize; // to be supported - boolean echoCancellation = true; - boolean noiseSuppression = true; - boolean autoGainControl = true; - boolean latency; // to be supported - boolean channelCount = true; - boolean deviceId = true; - boolean groupId; // to be supported + boolean width = true; + boolean height = true; + boolean aspectRatio; // to be supported + boolean frameRate = true; + boolean facingMode = true; + boolean volume; // to be supported + boolean sampleRate; // to be supported + boolean sampleSize; // to be supported + boolean echoCancellation = true; + boolean noiseSuppression = true; + boolean autoGainControl = true; + boolean latency; // to be supported + boolean channelCount = true; + boolean deviceId = true; + boolean groupId; // to be supported - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - boolean mediaSource = true; + boolean mediaSource = true; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - boolean browserWindow = true; - boolean scrollWithPage = true; - boolean viewportOffsetX = true; - boolean viewportOffsetY = true; - boolean viewportWidth = true; - boolean viewportHeight = true; + boolean browserWindow = true; + boolean scrollWithPage = true; + boolean viewportOffsetX = true; + boolean viewportOffsetY = true; + boolean viewportWidth = true; + boolean viewportHeight = true; }; diff --git a/dom/webidl/MenuBoxObject.webidl b/dom/webidl/MenuBoxObject.webidl index 82acf91b4a49..449cadc5967b 100644 --- a/dom/webidl/MenuBoxObject.webidl +++ b/dom/webidl/MenuBoxObject.webidl @@ -1,5 +1,5 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessageChannel.webidl b/dom/webidl/MessageChannel.webidl index a9b56cf349e0..1e2ca4a19803 100644 --- a/dom/webidl/MessageChannel.webidl +++ b/dom/webidl/MessageChannel.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessageEvent.webidl b/dom/webidl/MessageEvent.webidl index 1d8dd83bfef0..7d78c20e05b9 100644 --- a/dom/webidl/MessageEvent.webidl +++ b/dom/webidl/MessageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MessagePort.webidl b/dom/webidl/MessagePort.webidl index 027b03383e03..f8b3de622cd2 100644 --- a/dom/webidl/MessagePort.webidl +++ b/dom/webidl/MessagePort.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MimeType.webidl b/dom/webidl/MimeType.webidl index 8d964c0d9fa1..a33d31640d02 100644 --- a/dom/webidl/MimeType.webidl +++ b/dom/webidl/MimeType.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MimeTypeArray.webidl b/dom/webidl/MimeTypeArray.webidl index 21f490ddd3ec..ca553552a6a8 100644 --- a/dom/webidl/MimeTypeArray.webidl +++ b/dom/webidl/MimeTypeArray.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MouseEvent.webidl b/dom/webidl/MouseEvent.webidl index 4ba8ec67d59e..712e0b90d3e7 100644 --- a/dom/webidl/MouseEvent.webidl +++ b/dom/webidl/MouseEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MouseScrollEvent.webidl b/dom/webidl/MouseScrollEvent.webidl index fc116cb85875..c1e52bd8ce0b 100644 --- a/dom/webidl/MouseScrollEvent.webidl +++ b/dom/webidl/MouseScrollEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MozApplicationEvent.webidl b/dom/webidl/MozApplicationEvent.webidl index 5b90a8de2b8c..e46fdca06b82 100644 --- a/dom/webidl/MozApplicationEvent.webidl +++ b/dom/webidl/MozApplicationEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MozFrameLoaderOwner.webidl b/dom/webidl/MozFrameLoaderOwner.webidl index b74ab4e44202..871cf0ccdba9 100644 --- a/dom/webidl/MozFrameLoaderOwner.webidl +++ b/dom/webidl/MozFrameLoaderOwner.webidl @@ -1,9 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - // And the things from nsIFrameLoaderOwner [NoInterfaceObject] interface MozFrameLoaderOwner { diff --git a/dom/webidl/MutationEvent.webidl b/dom/webidl/MutationEvent.webidl index 77986aaec695..85ad597f74a3 100644 --- a/dom/webidl/MutationEvent.webidl +++ b/dom/webidl/MutationEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/MutationObserver.webidl b/dom/webidl/MutationObserver.webidl index 1c1c7951876e..c179a64509a5 100644 --- a/dom/webidl/MutationObserver.webidl +++ b/dom/webidl/MutationObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NamedNodeMap.webidl b/dom/webidl/NamedNodeMap.webidl index 4cc1d97533f2..88e2ff51fe51 100644 --- a/dom/webidl/NamedNodeMap.webidl +++ b/dom/webidl/NamedNodeMap.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/NativeOSFileInternals.webidl b/dom/webidl/NativeOSFileInternals.webidl index a579fef57c85..934b6ae11805 100644 --- a/dom/webidl/NativeOSFileInternals.webidl +++ b/dom/webidl/NativeOSFileInternals.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtaone at http://mozilla.org/MPL/2.0/. */ diff --git a/dom/webidl/Navigator.webidl b/dom/webidl/Navigator.webidl index 4ee6962b9672..13d91fecda4e 100644 --- a/dom/webidl/Navigator.webidl +++ b/dom/webidl/Navigator.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NetDashboard.webidl b/dom/webidl/NetDashboard.webidl index 767c4c91ad3a..0d9128a6d390 100644 --- a/dom/webidl/NetDashboard.webidl +++ b/dom/webidl/NetDashboard.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/NetworkInformation.webidl b/dom/webidl/NetworkInformation.webidl index 2ab7401cc7f7..08fe6e7e4966 100644 --- a/dom/webidl/NetworkInformation.webidl +++ b/dom/webidl/NetworkInformation.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NetworkOptions.webidl b/dom/webidl/NetworkOptions.webidl index 22e93df21ac0..b313c932ddb4 100644 --- a/dom/webidl/NetworkOptions.webidl +++ b/dom/webidl/NetworkOptions.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Node.webidl b/dom/webidl/Node.webidl index e43e2db9963e..176ab1ae8e4f 100644 --- a/dom/webidl/Node.webidl +++ b/dom/webidl/Node.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeFilter.webidl b/dom/webidl/NodeFilter.webidl index 90844138bba9..6da959dc930a 100644 --- a/dom/webidl/NodeFilter.webidl +++ b/dom/webidl/NodeFilter.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeIterator.webidl b/dom/webidl/NodeIterator.webidl index 20ff741f33a7..201b382a0d9e 100644 --- a/dom/webidl/NodeIterator.webidl +++ b/dom/webidl/NodeIterator.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NodeList.webidl b/dom/webidl/NodeList.webidl index 43bed4c694b0..7e794e7676e4 100644 --- a/dom/webidl/NodeList.webidl +++ b/dom/webidl/NodeList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Notification.webidl b/dom/webidl/Notification.webidl index 3ce3831153da..3c9dba876f11 100644 --- a/dom/webidl/Notification.webidl +++ b/dom/webidl/Notification.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NotificationEvent.webidl b/dom/webidl/NotificationEvent.webidl index 5e13d394f34e..47a30349cd66 100644 --- a/dom/webidl/NotificationEvent.webidl +++ b/dom/webidl/NotificationEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/NotifyPaintEvent.webidl b/dom/webidl/NotifyPaintEvent.webidl index cab7f3e9ec06..0560b8bd59ca 100644 --- a/dom/webidl/NotifyPaintEvent.webidl +++ b/dom/webidl/NotifyPaintEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineAudioCompletionEvent.webidl b/dom/webidl/OfflineAudioCompletionEvent.webidl index 1c2b60c05a3b..03c58b96ef00 100644 --- a/dom/webidl/OfflineAudioCompletionEvent.webidl +++ b/dom/webidl/OfflineAudioCompletionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineAudioContext.webidl b/dom/webidl/OfflineAudioContext.webidl index 2aed44a5f4c6..a2498d6e56a8 100644 --- a/dom/webidl/OfflineAudioContext.webidl +++ b/dom/webidl/OfflineAudioContext.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OfflineResourceList.webidl b/dom/webidl/OfflineResourceList.webidl index 369ded271250..a1561e8552a6 100644 --- a/dom/webidl/OfflineResourceList.webidl +++ b/dom/webidl/OfflineResourceList.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/OffscreenCanvas.webidl b/dom/webidl/OffscreenCanvas.webidl index cc25e72e5ab8..682fc7ce3101 100644 --- a/dom/webidl/OffscreenCanvas.webidl +++ b/dom/webidl/OffscreenCanvas.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/OscillatorNode.webidl b/dom/webidl/OscillatorNode.webidl index 8967e75fd2ef..acf75a81812e 100644 --- a/dom/webidl/OscillatorNode.webidl +++ b/dom/webidl/OscillatorNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PageTransitionEvent.webidl b/dom/webidl/PageTransitionEvent.webidl index 505be2f7f346..a0749e7f50f6 100644 --- a/dom/webidl/PageTransitionEvent.webidl +++ b/dom/webidl/PageTransitionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaintRequest.webidl b/dom/webidl/PaintRequest.webidl index 84247753e2c0..065be0866341 100644 --- a/dom/webidl/PaintRequest.webidl +++ b/dom/webidl/PaintRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/PaintRequestList.webidl b/dom/webidl/PaintRequestList.webidl index b30c8f9ff480..d14f18a733c4 100644 --- a/dom/webidl/PaintRequestList.webidl +++ b/dom/webidl/PaintRequestList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaintWorkletGlobalScope.webidl b/dom/webidl/PaintWorkletGlobalScope.webidl index 5498d8cda86f..19a1fdd42c6b 100644 --- a/dom/webidl/PaintWorkletGlobalScope.webidl +++ b/dom/webidl/PaintWorkletGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PannerNode.webidl b/dom/webidl/PannerNode.webidl index 486148e60536..684ab5835e9a 100644 --- a/dom/webidl/PannerNode.webidl +++ b/dom/webidl/PannerNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -23,57 +22,57 @@ enum DistanceModelType { }; dictionary PannerOptions : AudioNodeOptions { - PanningModelType panningModel = "equalpower"; - DistanceModelType distanceModel = "inverse"; - float positionX = 0; - float positionY = 0; - float positionZ = 0; - float orientationX = 1; - float orientationY = 0; - float orientationZ = 0; - double refDistance = 1; - double maxDistance = 10000; - double rolloffFactor = 1; - double coneInnerAngle = 360; - double coneOuterAngle = 360; - double coneOuterGain = 0; + PanningModelType panningModel = "equalpower"; + DistanceModelType distanceModel = "inverse"; + float positionX = 0; + float positionY = 0; + float positionZ = 0; + float orientationX = 1; + float orientationY = 0; + float orientationZ = 0; + double refDistance = 1; + double maxDistance = 10000; + double rolloffFactor = 1; + double coneInnerAngle = 360; + double coneOuterAngle = 360; + double coneOuterGain = 0; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional PannerOptions options)] interface PannerNode : AudioNode { - // Default for stereo is equalpower - attribute PanningModelType panningModel; + // Default for stereo is equalpower + attribute PanningModelType panningModel; - // Uses a 3D cartesian coordinate system - void setPosition(double x, double y, double z); - void setOrientation(double x, double y, double z); + // Uses a 3D cartesian coordinate system + void setPosition(double x, double y, double z); + void setOrientation(double x, double y, double z); - // Cartesian coordinate for position - readonly attribute AudioParam positionX; - readonly attribute AudioParam positionY; - readonly attribute AudioParam positionZ; + // Cartesian coordinate for position + readonly attribute AudioParam positionX; + readonly attribute AudioParam positionY; + readonly attribute AudioParam positionZ; - // Cartesian coordinate for orientation - readonly attribute AudioParam orientationX; - readonly attribute AudioParam orientationY; - readonly attribute AudioParam orientationZ; + // Cartesian coordinate for orientation + readonly attribute AudioParam orientationX; + readonly attribute AudioParam orientationY; + readonly attribute AudioParam orientationZ; - // Distance model and attributes - attribute DistanceModelType distanceModel; - [SetterThrows] - attribute double refDistance; - [SetterThrows] - attribute double maxDistance; - [SetterThrows] - attribute double rolloffFactor; + // Distance model and attributes + attribute DistanceModelType distanceModel; + [SetterThrows] + attribute double refDistance; + [SetterThrows] + attribute double maxDistance; + [SetterThrows] + attribute double rolloffFactor; - // Directional sound cone - attribute double coneInnerAngle; - attribute double coneOuterAngle; - [SetterThrows] - attribute double coneOuterGain; + // Directional sound cone + attribute double coneInnerAngle; + attribute double coneOuterAngle; + [SetterThrows] + attribute double coneOuterGain; }; diff --git a/dom/webidl/ParentNode.webidl b/dom/webidl/ParentNode.webidl index 8eea0de68d58..87754b96987e 100644 --- a/dom/webidl/ParentNode.webidl +++ b/dom/webidl/ParentNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ParentSHistory.webidl b/dom/webidl/ParentSHistory.webidl index 6646f15a9f1b..f892172da0ed 100644 --- a/dom/webidl/ParentSHistory.webidl +++ b/dom/webidl/ParentSHistory.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentAddress.webidl b/dom/webidl/PaymentAddress.webidl index 8f1d0d54049d..ed7de30aabfa 100644 --- a/dom/webidl/PaymentAddress.webidl +++ b/dom/webidl/PaymentAddress.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentMethodChangeEvent.webidl b/dom/webidl/PaymentMethodChangeEvent.webidl index 59cd6c33820d..0d80dbf49900 100644 --- a/dom/webidl/PaymentMethodChangeEvent.webidl +++ b/dom/webidl/PaymentMethodChangeEvent.webidl @@ -1,9 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - [Constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict), SecureContext, Exposed=Window, diff --git a/dom/webidl/PaymentRequest.webidl b/dom/webidl/PaymentRequest.webidl index ff9b67e9fd39..a88ba9d1d739 100644 --- a/dom/webidl/PaymentRequest.webidl +++ b/dom/webidl/PaymentRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentRequestUpdateEvent.webidl b/dom/webidl/PaymentRequestUpdateEvent.webidl index 268d4d429fa4..15e7f64eb5bb 100644 --- a/dom/webidl/PaymentRequestUpdateEvent.webidl +++ b/dom/webidl/PaymentRequestUpdateEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PaymentResponse.webidl b/dom/webidl/PaymentResponse.webidl index 0f10bcecb5a2..f45e7131f212 100644 --- a/dom/webidl/PaymentResponse.webidl +++ b/dom/webidl/PaymentResponse.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionImpl.webidl b/dom/webidl/PeerConnectionImpl.webidl index d60703404e89..bbef2175a579 100644 --- a/dom/webidl/PeerConnectionImpl.webidl +++ b/dom/webidl/PeerConnectionImpl.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionImplEnums.webidl b/dom/webidl/PeerConnectionImplEnums.webidl index df2719de8215..0add53f06426 100644 --- a/dom/webidl/PeerConnectionImplEnums.webidl +++ b/dom/webidl/PeerConnectionImplEnums.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionObserver.webidl b/dom/webidl/PeerConnectionObserver.webidl index f9dff9cfee10..ff5f711327b2 100644 --- a/dom/webidl/PeerConnectionObserver.webidl +++ b/dom/webidl/PeerConnectionObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeerConnectionObserverEnums.webidl b/dom/webidl/PeerConnectionObserverEnums.webidl index ec5ffb207912..abe0e0768bab 100644 --- a/dom/webidl/PeerConnectionObserverEnums.webidl +++ b/dom/webidl/PeerConnectionObserverEnums.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Performance.webidl b/dom/webidl/Performance.webidl index ee4e4d8b4914..0d467ba6c93e 100644 --- a/dom/webidl/Performance.webidl +++ b/dom/webidl/Performance.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceEntry.webidl b/dom/webidl/PerformanceEntry.webidl index 9c2f5384bb35..459a20a6701e 100644 --- a/dom/webidl/PerformanceEntry.webidl +++ b/dom/webidl/PerformanceEntry.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceEntryEvent.webidl b/dom/webidl/PerformanceEntryEvent.webidl index b6830543a121..2cf75c5e4437 100644 --- a/dom/webidl/PerformanceEntryEvent.webidl +++ b/dom/webidl/PerformanceEntryEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceMark.webidl b/dom/webidl/PerformanceMark.webidl index 961b2b191247..20e9e92c022b 100644 --- a/dom/webidl/PerformanceMark.webidl +++ b/dom/webidl/PerformanceMark.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceMeasure.webidl b/dom/webidl/PerformanceMeasure.webidl index bd3204614e99..aa4e8cd256bc 100644 --- a/dom/webidl/PerformanceMeasure.webidl +++ b/dom/webidl/PerformanceMeasure.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceNavigation.webidl b/dom/webidl/PerformanceNavigation.webidl index 92d32ab5ec57..b7157bd09ed9 100644 --- a/dom/webidl/PerformanceNavigation.webidl +++ b/dom/webidl/PerformanceNavigation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceNavigationTiming.webidl b/dom/webidl/PerformanceNavigationTiming.webidl index 8c9a06f70efd..fa7da1721d89 100644 --- a/dom/webidl/PerformanceNavigationTiming.webidl +++ b/dom/webidl/PerformanceNavigationTiming.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceObserver.webidl b/dom/webidl/PerformanceObserver.webidl index 0766918e22ad..e4b3c88dc477 100644 --- a/dom/webidl/PerformanceObserver.webidl +++ b/dom/webidl/PerformanceObserver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceObserverEntryList.webidl b/dom/webidl/PerformanceObserverEntryList.webidl index bd8ec779c5f8..25d926868d1f 100644 --- a/dom/webidl/PerformanceObserverEntryList.webidl +++ b/dom/webidl/PerformanceObserverEntryList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceResourceTiming.webidl b/dom/webidl/PerformanceResourceTiming.webidl index 9e4e859b32ce..746718c035f3 100644 --- a/dom/webidl/PerformanceResourceTiming.webidl +++ b/dom/webidl/PerformanceResourceTiming.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceServerTiming.webidl b/dom/webidl/PerformanceServerTiming.webidl index 3ca7b5c9d6f9..a31f2da71dc5 100644 --- a/dom/webidl/PerformanceServerTiming.webidl +++ b/dom/webidl/PerformanceServerTiming.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PerformanceTiming.webidl b/dom/webidl/PerformanceTiming.webidl index 96ae00dc5e9b..85a8211c0008 100644 --- a/dom/webidl/PerformanceTiming.webidl +++ b/dom/webidl/PerformanceTiming.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PeriodicWave.webidl b/dom/webidl/PeriodicWave.webidl index d136849b3123..ff00ccb92292 100644 --- a/dom/webidl/PeriodicWave.webidl +++ b/dom/webidl/PeriodicWave.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PermissionStatus.webidl b/dom/webidl/PermissionStatus.webidl index 7d988ee396f4..3abfd66f4076 100644 --- a/dom/webidl/PermissionStatus.webidl +++ b/dom/webidl/PermissionStatus.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Permissions.webidl b/dom/webidl/Permissions.webidl index 3c5ec41479ff..cf2a59b4795d 100644 --- a/dom/webidl/Permissions.webidl +++ b/dom/webidl/Permissions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Plugin.webidl b/dom/webidl/Plugin.webidl index a3bf45f21c71..2799a2055ef8 100644 --- a/dom/webidl/Plugin.webidl +++ b/dom/webidl/Plugin.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PluginArray.webidl b/dom/webidl/PluginArray.webidl index fb7e08ae7f45..2ff862bd4b48 100644 --- a/dom/webidl/PluginArray.webidl +++ b/dom/webidl/PluginArray.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PluginCrashedEvent.webidl b/dom/webidl/PluginCrashedEvent.webidl index 4bef0399baaf..8eed7244e519 100644 --- a/dom/webidl/PluginCrashedEvent.webidl +++ b/dom/webidl/PluginCrashedEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PointerEvent.webidl b/dom/webidl/PointerEvent.webidl index ec09ccf10cd5..652451efa44e 100644 --- a/dom/webidl/PointerEvent.webidl +++ b/dom/webidl/PointerEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PopStateEvent.webidl b/dom/webidl/PopStateEvent.webidl index fe5c0cdd12f0..428ab9c8498c 100644 --- a/dom/webidl/PopStateEvent.webidl +++ b/dom/webidl/PopStateEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PopupBlockedEvent.webidl b/dom/webidl/PopupBlockedEvent.webidl index 2d004d55f441..bf338d56b263 100644 --- a/dom/webidl/PopupBlockedEvent.webidl +++ b/dom/webidl/PopupBlockedEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Position.webidl b/dom/webidl/Position.webidl index a09a2666c65a..93812a379148 100644 --- a/dom/webidl/Position.webidl +++ b/dom/webidl/Position.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PositionError.webidl b/dom/webidl/PositionError.webidl index d2164a3aa013..d644cbe483e7 100644 --- a/dom/webidl/PositionError.webidl +++ b/dom/webidl/PositionError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Presentation.webidl b/dom/webidl/Presentation.webidl index 6fc3ab93a328..d5b331616320 100644 --- a/dom/webidl/Presentation.webidl +++ b/dom/webidl/Presentation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationAvailability.webidl b/dom/webidl/PresentationAvailability.webidl index 7c9870cba393..f72b88565d55 100644 --- a/dom/webidl/PresentationAvailability.webidl +++ b/dom/webidl/PresentationAvailability.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnection.webidl b/dom/webidl/PresentationConnection.webidl index fb73d6113cd2..9676d20692af 100644 --- a/dom/webidl/PresentationConnection.webidl +++ b/dom/webidl/PresentationConnection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionAvailableEvent.webidl b/dom/webidl/PresentationConnectionAvailableEvent.webidl index 94281db48262..9efecb7d6275 100644 --- a/dom/webidl/PresentationConnectionAvailableEvent.webidl +++ b/dom/webidl/PresentationConnectionAvailableEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionCloseEvent.webidl b/dom/webidl/PresentationConnectionCloseEvent.webidl index 67155f04c5d3..da6c25545ef8 100644 --- a/dom/webidl/PresentationConnectionCloseEvent.webidl +++ b/dom/webidl/PresentationConnectionCloseEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationConnectionList.webidl b/dom/webidl/PresentationConnectionList.webidl index 41929c690ea3..2c90ce9de4f0 100644 --- a/dom/webidl/PresentationConnectionList.webidl +++ b/dom/webidl/PresentationConnectionList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationReceiver.webidl b/dom/webidl/PresentationReceiver.webidl index dfa93e041675..0fa51c151a28 100644 --- a/dom/webidl/PresentationReceiver.webidl +++ b/dom/webidl/PresentationReceiver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PresentationRequest.webidl b/dom/webidl/PresentationRequest.webidl index 88435b329479..c0c5fb8a6e3b 100644 --- a/dom/webidl/PresentationRequest.webidl +++ b/dom/webidl/PresentationRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProcessingInstruction.webidl b/dom/webidl/ProcessingInstruction.webidl index 2906d65e62f7..40b001aed144 100644 --- a/dom/webidl/ProcessingInstruction.webidl +++ b/dom/webidl/ProcessingInstruction.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProfileTimelineMarker.webidl b/dom/webidl/ProfileTimelineMarker.webidl index 337a2cb59db3..24f3f9e0089d 100644 --- a/dom/webidl/ProfileTimelineMarker.webidl +++ b/dom/webidl/ProfileTimelineMarker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ProgressEvent.webidl b/dom/webidl/ProgressEvent.webidl index 438a0290ac36..c2ecf579379e 100644 --- a/dom/webidl/ProgressEvent.webidl +++ b/dom/webidl/ProgressEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Promise.webidl b/dom/webidl/Promise.webidl index 8c27092cd1be..a296553dfa00 100644 --- a/dom/webidl/Promise.webidl +++ b/dom/webidl/Promise.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PromiseRejectionEvent.webidl b/dom/webidl/PromiseRejectionEvent.webidl index b6cbd287f1b9..c03f3ae0310e 100644 --- a/dom/webidl/PromiseRejectionEvent.webidl +++ b/dom/webidl/PromiseRejectionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushEvent.webidl b/dom/webidl/PushEvent.webidl index 3645113f76c9..325576ff94a2 100644 --- a/dom/webidl/PushEvent.webidl +++ b/dom/webidl/PushEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushManager.webidl b/dom/webidl/PushManager.webidl index f5b4e9b411ee..4cda66135d1f 100644 --- a/dom/webidl/PushManager.webidl +++ b/dom/webidl/PushManager.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushMessageData.webidl b/dom/webidl/PushMessageData.webidl index b4b30a575f7d..151287307df6 100644 --- a/dom/webidl/PushMessageData.webidl +++ b/dom/webidl/PushMessageData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushSubscription.webidl b/dom/webidl/PushSubscription.webidl index 3c03e443edc8..abdec07b57f7 100644 --- a/dom/webidl/PushSubscription.webidl +++ b/dom/webidl/PushSubscription.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/PushSubscriptionOptions.webidl b/dom/webidl/PushSubscriptionOptions.webidl index 3e0d1576240e..064cd94735ec 100644 --- a/dom/webidl/PushSubscriptionOptions.webidl +++ b/dom/webidl/PushSubscriptionOptions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCCertificate.webidl b/dom/webidl/RTCCertificate.webidl index 3a52be661185..405859518517 100644 --- a/dom/webidl/RTCCertificate.webidl +++ b/dom/webidl/RTCCertificate.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCConfiguration.webidl b/dom/webidl/RTCConfiguration.webidl index ce99e04a749f..2c4052b8a5a2 100644 --- a/dom/webidl/RTCConfiguration.webidl +++ b/dom/webidl/RTCConfiguration.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,33 +8,33 @@ */ enum RTCIceCredentialType { - "password", - "token" + "password", + "token" }; dictionary RTCIceServer { - (DOMString or sequence) urls; - DOMString url; //deprecated - DOMString username; - DOMString credential; - RTCIceCredentialType credentialType = "password"; + (DOMString or sequence) urls; + DOMString url; //deprecated + DOMString username; + DOMString credential; + RTCIceCredentialType credentialType = "password"; }; enum RTCIceTransportPolicy { - "relay", - "all" + "relay", + "all" }; enum RTCBundlePolicy { - "balanced", - "max-compat", - "max-bundle" + "balanced", + "max-compat", + "max-bundle" }; dictionary RTCConfiguration { - sequence iceServers; - RTCIceTransportPolicy iceTransportPolicy = "all"; - RTCBundlePolicy bundlePolicy = "balanced"; - DOMString? peerIdentity = null; - sequence certificates; + sequence iceServers; + RTCIceTransportPolicy iceTransportPolicy = "all"; + RTCBundlePolicy bundlePolicy = "balanced"; + DOMString? peerIdentity = null; + sequence certificates; }; diff --git a/dom/webidl/RTCDTMFSender.webidl b/dom/webidl/RTCDTMFSender.webidl index 4dba7b7f3dd4..bf601a1222d7 100644 --- a/dom/webidl/RTCDTMFSender.webidl +++ b/dom/webidl/RTCDTMFSender.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCDTMFToneChangeEvent.webidl b/dom/webidl/RTCDTMFToneChangeEvent.webidl index 42e6f87faebf..8cdae1592d43 100644 --- a/dom/webidl/RTCDTMFToneChangeEvent.webidl +++ b/dom/webidl/RTCDTMFToneChangeEvent.webidl @@ -1,9 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - [Constructor(DOMString type, optional RTCDTMFToneChangeEventInit eventInitDict)] interface RTCDTMFToneChangeEvent : Event { readonly attribute DOMString tone; diff --git a/dom/webidl/RTCDataChannel.webidl b/dom/webidl/RTCDataChannel.webidl index 8c50dba2f905..2ded0ce4590a 100644 --- a/dom/webidl/RTCDataChannel.webidl +++ b/dom/webidl/RTCDataChannel.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/RTCDataChannelEvent.webidl b/dom/webidl/RTCDataChannelEvent.webidl index c95f1a672d50..9eba382439de 100644 --- a/dom/webidl/RTCDataChannelEvent.webidl +++ b/dom/webidl/RTCDataChannelEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIceCandidate.webidl b/dom/webidl/RTCIceCandidate.webidl index ea4719217735..2e425f3930b2 100644 --- a/dom/webidl/RTCIceCandidate.webidl +++ b/dom/webidl/RTCIceCandidate.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIdentityAssertion.webidl b/dom/webidl/RTCIdentityAssertion.webidl index 57b1fdcb09e6..621b21fed9fb 100644 --- a/dom/webidl/RTCIdentityAssertion.webidl +++ b/dom/webidl/RTCIdentityAssertion.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCIdentityProvider.webidl b/dom/webidl/RTCIdentityProvider.webidl index cc55d4c43da3..8717ea2588fd 100644 --- a/dom/webidl/RTCIdentityProvider.webidl +++ b/dom/webidl/RTCIdentityProvider.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnection.webidl b/dom/webidl/RTCPeerConnection.webidl index 4344f4006e2b..ab935f1a31c2 100644 --- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnectionIceEvent.webidl b/dom/webidl/RTCPeerConnectionIceEvent.webidl index c47e0a7bc773..5ec47f4705be 100644 --- a/dom/webidl/RTCPeerConnectionIceEvent.webidl +++ b/dom/webidl/RTCPeerConnectionIceEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCPeerConnectionStatic.webidl b/dom/webidl/RTCPeerConnectionStatic.webidl index e5e595fc0419..5b21ee6e65c2 100644 --- a/dom/webidl/RTCPeerConnectionStatic.webidl +++ b/dom/webidl/RTCPeerConnectionStatic.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpReceiver.webidl b/dom/webidl/RTCRtpReceiver.webidl index 0227ae04ea77..38cc3394617e 100644 --- a/dom/webidl/RTCRtpReceiver.webidl +++ b/dom/webidl/RTCRtpReceiver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpSender.webidl b/dom/webidl/RTCRtpSender.webidl index f8a64c36e140..49193896b5c7 100644 --- a/dom/webidl/RTCRtpSender.webidl +++ b/dom/webidl/RTCRtpSender.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpSources.webidl b/dom/webidl/RTCRtpSources.webidl index 3680d3a97c43..460d700ccc97 100644 --- a/dom/webidl/RTCRtpSources.webidl +++ b/dom/webidl/RTCRtpSources.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCRtpTransceiver.webidl b/dom/webidl/RTCRtpTransceiver.webidl index 47727b09e60c..5e4e81fcdbf6 100644 --- a/dom/webidl/RTCRtpTransceiver.webidl +++ b/dom/webidl/RTCRtpTransceiver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -9,71 +8,71 @@ */ enum RTCRtpTransceiverDirection { - "sendrecv", - "sendonly", - "recvonly", - "inactive" + "sendrecv", + "sendonly", + "recvonly", + "inactive" }; dictionary RTCRtpTransceiverInit { - RTCRtpTransceiverDirection direction = "sendrecv"; - sequence streams = []; - // TODO: bug 1396918 - // sequence sendEncodings; + RTCRtpTransceiverDirection direction = "sendrecv"; + sequence streams = []; + // TODO: bug 1396918 + // sequence sendEncodings; }; [Pref="media.peerconnection.enabled", JSImplementation="@mozilla.org/dom/rtptransceiver;1"] interface RTCRtpTransceiver { - readonly attribute DOMString? mid; - [SameObject] - readonly attribute RTCRtpSender sender; - [SameObject] - readonly attribute RTCRtpReceiver receiver; - readonly attribute boolean stopped; - attribute RTCRtpTransceiverDirection direction; - readonly attribute RTCRtpTransceiverDirection? currentDirection; + readonly attribute DOMString? mid; + [SameObject] + readonly attribute RTCRtpSender sender; + [SameObject] + readonly attribute RTCRtpReceiver receiver; + readonly attribute boolean stopped; + attribute RTCRtpTransceiverDirection direction; + readonly attribute RTCRtpTransceiverDirection? currentDirection; - void stop(); - // TODO: bug 1396922 - // void setCodecPreferences(sequence codecs); + void stop(); + // TODO: bug 1396922 + // void setCodecPreferences(sequence codecs); - [ChromeOnly] - void setRemoteTrackId(DOMString trackId); - [ChromeOnly] - boolean remoteTrackIdIs(DOMString trackId); + [ChromeOnly] + void setRemoteTrackId(DOMString trackId); + [ChromeOnly] + boolean remoteTrackIdIs(DOMString trackId); - // Mostly for testing - [Pref="media.peerconnection.remoteTrackId.enabled"] - DOMString getRemoteTrackId(); + // Mostly for testing + [Pref="media.peerconnection.remoteTrackId.enabled"] + DOMString getRemoteTrackId(); - [ChromeOnly] - void setAddTrackMagic(); - [ChromeOnly] - readonly attribute boolean addTrackMagic; - [ChromeOnly] - attribute boolean shouldRemove; - [ChromeOnly] - void setCurrentDirection(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setDirectionInternal(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setMid(DOMString mid); - [ChromeOnly] - void unsetMid(); - [ChromeOnly] - void setStopped(); + [ChromeOnly] + void setAddTrackMagic(); + [ChromeOnly] + readonly attribute boolean addTrackMagic; + [ChromeOnly] + attribute boolean shouldRemove; + [ChromeOnly] + void setCurrentDirection(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setDirectionInternal(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setMid(DOMString mid); + [ChromeOnly] + void unsetMid(); + [ChromeOnly] + void setStopped(); - [ChromeOnly] - DOMString getKind(); - [ChromeOnly] - boolean hasBeenUsedToSend(); - [ChromeOnly] - void sync(); + [ChromeOnly] + DOMString getKind(); + [ChromeOnly] + boolean hasBeenUsedToSend(); + [ChromeOnly] + void sync(); - [ChromeOnly] - void insertDTMF(DOMString tones, - optional unsigned long duration = 100, - optional unsigned long interToneGap = 70); + [ChromeOnly] + void insertDTMF(DOMString tones, + optional unsigned long duration = 100, + optional unsigned long interToneGap = 70); }; diff --git a/dom/webidl/RTCSessionDescription.webidl b/dom/webidl/RTCSessionDescription.webidl index d8a482c02d70..6da3525e48c6 100644 --- a/dom/webidl/RTCSessionDescription.webidl +++ b/dom/webidl/RTCSessionDescription.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCStatsReport.webidl b/dom/webidl/RTCStatsReport.webidl index 1c67ce4aff3d..9cc42a078f9d 100644 --- a/dom/webidl/RTCStatsReport.webidl +++ b/dom/webidl/RTCStatsReport.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RTCTrackEvent.webidl b/dom/webidl/RTCTrackEvent.webidl index 0229763a9393..27da47c6855a 100644 --- a/dom/webidl/RTCTrackEvent.webidl +++ b/dom/webidl/RTCTrackEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/RadioNodeList.webidl b/dom/webidl/RadioNodeList.webidl index 63d7df862330..f37e1cca36c9 100644 --- a/dom/webidl/RadioNodeList.webidl +++ b/dom/webidl/RadioNodeList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Range.webidl b/dom/webidl/Range.webidl index 7d48e40b1d63..1313eb90ff60 100644 --- a/dom/webidl/Range.webidl +++ b/dom/webidl/Range.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Request.webidl b/dom/webidl/Request.webidl index 53b123af9710..070b2e29a2c0 100644 --- a/dom/webidl/Request.webidl +++ b/dom/webidl/Request.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 1; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Response.webidl b/dom/webidl/Response.webidl index 4f5f002e83e0..afcb3fa823a4 100644 --- a/dom/webidl/Response.webidl +++ b/dom/webidl/Response.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAElement.webidl b/dom/webidl/SVGAElement.webidl index 46349c8bf61b..05b0cb1137ae 100644 --- a/dom/webidl/SVGAElement.webidl +++ b/dom/webidl/SVGAElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAngle.webidl b/dom/webidl/SVGAngle.webidl index 63f29e413c3f..f17b8836cc61 100644 --- a/dom/webidl/SVGAngle.webidl +++ b/dom/webidl/SVGAngle.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateElement.webidl b/dom/webidl/SVGAnimateElement.webidl index 6d5edd6cad5b..c9841f2a84d7 100644 --- a/dom/webidl/SVGAnimateElement.webidl +++ b/dom/webidl/SVGAnimateElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateMotionElement.webidl b/dom/webidl/SVGAnimateMotionElement.webidl index 2ef3ce3b97f1..38993d761959 100644 --- a/dom/webidl/SVGAnimateMotionElement.webidl +++ b/dom/webidl/SVGAnimateMotionElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimateTransformElement.webidl b/dom/webidl/SVGAnimateTransformElement.webidl index 1e657d2fe579..38701e61ce34 100644 --- a/dom/webidl/SVGAnimateTransformElement.webidl +++ b/dom/webidl/SVGAnimateTransformElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedAngle.webidl b/dom/webidl/SVGAnimatedAngle.webidl index 4abd05086812..5b01c8c35ec4 100644 --- a/dom/webidl/SVGAnimatedAngle.webidl +++ b/dom/webidl/SVGAnimatedAngle.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedBoolean.webidl b/dom/webidl/SVGAnimatedBoolean.webidl index 97fc9faf1d1b..990bbc7dee3c 100644 --- a/dom/webidl/SVGAnimatedBoolean.webidl +++ b/dom/webidl/SVGAnimatedBoolean.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedEnumeration.webidl b/dom/webidl/SVGAnimatedEnumeration.webidl index 1eec9906c512..80591c2f1b14 100644 --- a/dom/webidl/SVGAnimatedEnumeration.webidl +++ b/dom/webidl/SVGAnimatedEnumeration.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedInteger.webidl b/dom/webidl/SVGAnimatedInteger.webidl index 11d7332196a2..61b43b3517ba 100644 --- a/dom/webidl/SVGAnimatedInteger.webidl +++ b/dom/webidl/SVGAnimatedInteger.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedLength.webidl b/dom/webidl/SVGAnimatedLength.webidl index 1134b8635749..f7fac144d3c6 100644 --- a/dom/webidl/SVGAnimatedLength.webidl +++ b/dom/webidl/SVGAnimatedLength.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedLengthList.webidl b/dom/webidl/SVGAnimatedLengthList.webidl index e424abb40ddd..0d85e1616b3a 100644 --- a/dom/webidl/SVGAnimatedLengthList.webidl +++ b/dom/webidl/SVGAnimatedLengthList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedNumber.webidl b/dom/webidl/SVGAnimatedNumber.webidl index ded957f2d77c..5908f0f868ea 100644 --- a/dom/webidl/SVGAnimatedNumber.webidl +++ b/dom/webidl/SVGAnimatedNumber.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedNumberList.webidl b/dom/webidl/SVGAnimatedNumberList.webidl index 75908631fdfc..81fba2e062ea 100644 --- a/dom/webidl/SVGAnimatedNumberList.webidl +++ b/dom/webidl/SVGAnimatedNumberList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPathData.webidl b/dom/webidl/SVGAnimatedPathData.webidl index f5b60f5171f9..08f10f7217cf 100644 --- a/dom/webidl/SVGAnimatedPathData.webidl +++ b/dom/webidl/SVGAnimatedPathData.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPoints.webidl b/dom/webidl/SVGAnimatedPoints.webidl index 512ba6be22b0..891ca4bc0fdb 100644 --- a/dom/webidl/SVGAnimatedPoints.webidl +++ b/dom/webidl/SVGAnimatedPoints.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl b/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl index b0c7138615be..07506a5bf812 100644 --- a/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl +++ b/dom/webidl/SVGAnimatedPreserveAspectRatio.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedRect.webidl b/dom/webidl/SVGAnimatedRect.webidl index e19a08008d8f..fffebbe88d78 100644 --- a/dom/webidl/SVGAnimatedRect.webidl +++ b/dom/webidl/SVGAnimatedRect.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedString.webidl b/dom/webidl/SVGAnimatedString.webidl index 91f5b0abae0d..eaf3773d0e2a 100644 --- a/dom/webidl/SVGAnimatedString.webidl +++ b/dom/webidl/SVGAnimatedString.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimatedTransformList.webidl b/dom/webidl/SVGAnimatedTransformList.webidl index 73afb468c9d7..3ea39d130a07 100644 --- a/dom/webidl/SVGAnimatedTransformList.webidl +++ b/dom/webidl/SVGAnimatedTransformList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGAnimationElement.webidl b/dom/webidl/SVGAnimationElement.webidl index f8ea1625f856..4f9a95fe3b8a 100644 --- a/dom/webidl/SVGAnimationElement.webidl +++ b/dom/webidl/SVGAnimationElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGCircleElement.webidl b/dom/webidl/SVGCircleElement.webidl index e2d26fdd47cd..021b5be242fc 100644 --- a/dom/webidl/SVGCircleElement.webidl +++ b/dom/webidl/SVGCircleElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGClipPathElement.webidl b/dom/webidl/SVGClipPathElement.webidl index f70a3a6cc291..e1421430d61c 100644 --- a/dom/webidl/SVGClipPathElement.webidl +++ b/dom/webidl/SVGClipPathElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGComponentTransferFunctionElement.webidl b/dom/webidl/SVGComponentTransferFunctionElement.webidl index 9c73e0678af3..1842fe6f5617 100644 --- a/dom/webidl/SVGComponentTransferFunctionElement.webidl +++ b/dom/webidl/SVGComponentTransferFunctionElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGDefsElement.webidl b/dom/webidl/SVGDefsElement.webidl index e23adf59cf87..0b37978b47bc 100644 --- a/dom/webidl/SVGDefsElement.webidl +++ b/dom/webidl/SVGDefsElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGDescElement.webidl b/dom/webidl/SVGDescElement.webidl index bb077035dfc9..1841ff54585d 100644 --- a/dom/webidl/SVGDescElement.webidl +++ b/dom/webidl/SVGDescElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGElement.webidl b/dom/webidl/SVGElement.webidl index d8246b53f31e..a01be3788591 100644 --- a/dom/webidl/SVGElement.webidl +++ b/dom/webidl/SVGElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGEllipseElement.webidl b/dom/webidl/SVGEllipseElement.webidl index 80bff4de917a..cb509f03190f 100644 --- a/dom/webidl/SVGEllipseElement.webidl +++ b/dom/webidl/SVGEllipseElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEBlendElement.webidl b/dom/webidl/SVGFEBlendElement.webidl index 875c8af31b32..5cd469bd5ab6 100644 --- a/dom/webidl/SVGFEBlendElement.webidl +++ b/dom/webidl/SVGFEBlendElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEColorMatrixElement.webidl b/dom/webidl/SVGFEColorMatrixElement.webidl index 854aa7e1fc15..61d91040d5d0 100644 --- a/dom/webidl/SVGFEColorMatrixElement.webidl +++ b/dom/webidl/SVGFEColorMatrixElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEComponentTransferElement.webidl b/dom/webidl/SVGFEComponentTransferElement.webidl index deb1bd7f99e2..6cf6f6d65df3 100644 --- a/dom/webidl/SVGFEComponentTransferElement.webidl +++ b/dom/webidl/SVGFEComponentTransferElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFECompositeElement.webidl b/dom/webidl/SVGFECompositeElement.webidl index b135a345ca30..3ab983fe0d8b 100644 --- a/dom/webidl/SVGFECompositeElement.webidl +++ b/dom/webidl/SVGFECompositeElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEConvolveMatrixElement.webidl b/dom/webidl/SVGFEConvolveMatrixElement.webidl index 12765eda9fca..27d8e80e764c 100644 --- a/dom/webidl/SVGFEConvolveMatrixElement.webidl +++ b/dom/webidl/SVGFEConvolveMatrixElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDiffuseLightingElement.webidl b/dom/webidl/SVGFEDiffuseLightingElement.webidl index 8a794e936d68..fb89721d8475 100644 --- a/dom/webidl/SVGFEDiffuseLightingElement.webidl +++ b/dom/webidl/SVGFEDiffuseLightingElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDisplacementMapElement.webidl b/dom/webidl/SVGFEDisplacementMapElement.webidl index 697ae342ce0a..461faff91974 100644 --- a/dom/webidl/SVGFEDisplacementMapElement.webidl +++ b/dom/webidl/SVGFEDisplacementMapElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDistantLightElement.webidl b/dom/webidl/SVGFEDistantLightElement.webidl index ed21012bc79e..933befc936ae 100644 --- a/dom/webidl/SVGFEDistantLightElement.webidl +++ b/dom/webidl/SVGFEDistantLightElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEDropShadowElement.webidl b/dom/webidl/SVGFEDropShadowElement.webidl index 87de66a585b1..b858fc91cd65 100644 --- a/dom/webidl/SVGFEDropShadowElement.webidl +++ b/dom/webidl/SVGFEDropShadowElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFloodElement.webidl b/dom/webidl/SVGFEFloodElement.webidl index 28d38c2685a8..51d9539ff3ec 100644 --- a/dom/webidl/SVGFEFloodElement.webidl +++ b/dom/webidl/SVGFEFloodElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncAElement.webidl b/dom/webidl/SVGFEFuncAElement.webidl index 8ab69cf1a07f..97282cd19550 100644 --- a/dom/webidl/SVGFEFuncAElement.webidl +++ b/dom/webidl/SVGFEFuncAElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncBElement.webidl b/dom/webidl/SVGFEFuncBElement.webidl index 3477dfb4611a..8b5c2b9255ab 100644 --- a/dom/webidl/SVGFEFuncBElement.webidl +++ b/dom/webidl/SVGFEFuncBElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncGElement.webidl b/dom/webidl/SVGFEFuncGElement.webidl index 4c1a83fe1460..39d2f3059070 100644 --- a/dom/webidl/SVGFEFuncGElement.webidl +++ b/dom/webidl/SVGFEFuncGElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEFuncRElement.webidl b/dom/webidl/SVGFEFuncRElement.webidl index a368dd6586ef..78e492be431a 100644 --- a/dom/webidl/SVGFEFuncRElement.webidl +++ b/dom/webidl/SVGFEFuncRElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEGaussianBlurElement.webidl b/dom/webidl/SVGFEGaussianBlurElement.webidl index ee353b02e5de..db2101b53516 100644 --- a/dom/webidl/SVGFEGaussianBlurElement.webidl +++ b/dom/webidl/SVGFEGaussianBlurElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEImageElement.webidl b/dom/webidl/SVGFEImageElement.webidl index ba1022b91231..3262c0d8a2fd 100644 --- a/dom/webidl/SVGFEImageElement.webidl +++ b/dom/webidl/SVGFEImageElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMergeElement.webidl b/dom/webidl/SVGFEMergeElement.webidl index f900dbf9d02e..adafbba9a6e7 100644 --- a/dom/webidl/SVGFEMergeElement.webidl +++ b/dom/webidl/SVGFEMergeElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMergeNodeElement.webidl b/dom/webidl/SVGFEMergeNodeElement.webidl index 158ce07695b4..4ff217ba77a0 100644 --- a/dom/webidl/SVGFEMergeNodeElement.webidl +++ b/dom/webidl/SVGFEMergeNodeElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEMorphologyElement.webidl b/dom/webidl/SVGFEMorphologyElement.webidl index dad595564901..82910a6faa05 100644 --- a/dom/webidl/SVGFEMorphologyElement.webidl +++ b/dom/webidl/SVGFEMorphologyElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEOffsetElement.webidl b/dom/webidl/SVGFEOffsetElement.webidl index 927ee587e7ba..90132d528800 100644 --- a/dom/webidl/SVGFEOffsetElement.webidl +++ b/dom/webidl/SVGFEOffsetElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFEPointLightElement.webidl b/dom/webidl/SVGFEPointLightElement.webidl index afe5e6ad234d..232edc45d056 100644 --- a/dom/webidl/SVGFEPointLightElement.webidl +++ b/dom/webidl/SVGFEPointLightElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFESpecularLightingElement.webidl b/dom/webidl/SVGFESpecularLightingElement.webidl index 95e21ac1f990..42b6b0e9c8d4 100644 --- a/dom/webidl/SVGFESpecularLightingElement.webidl +++ b/dom/webidl/SVGFESpecularLightingElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFESpotLightElement.webidl b/dom/webidl/SVGFESpotLightElement.webidl index 4382624f73bd..281d20c8c0bf 100644 --- a/dom/webidl/SVGFESpotLightElement.webidl +++ b/dom/webidl/SVGFESpotLightElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFETileElement.webidl b/dom/webidl/SVGFETileElement.webidl index 3eed676c01d4..38cad60409fc 100644 --- a/dom/webidl/SVGFETileElement.webidl +++ b/dom/webidl/SVGFETileElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFETurbulenceElement.webidl b/dom/webidl/SVGFETurbulenceElement.webidl index 211e52f6d139..45c9d468b2e2 100644 --- a/dom/webidl/SVGFETurbulenceElement.webidl +++ b/dom/webidl/SVGFETurbulenceElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFilterElement.webidl b/dom/webidl/SVGFilterElement.webidl index 179da6696120..bbea6841f7a5 100644 --- a/dom/webidl/SVGFilterElement.webidl +++ b/dom/webidl/SVGFilterElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl b/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl index a688e9a304d8..3319505866af 100644 --- a/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl +++ b/dom/webidl/SVGFilterPrimitiveStandardAttributes.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGFitToViewBox.webidl b/dom/webidl/SVGFitToViewBox.webidl index ba2088560afd..881e658d21d1 100644 --- a/dom/webidl/SVGFitToViewBox.webidl +++ b/dom/webidl/SVGFitToViewBox.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGForeignObjectElement.webidl b/dom/webidl/SVGForeignObjectElement.webidl index dddb98238027..6829f4501f79 100644 --- a/dom/webidl/SVGForeignObjectElement.webidl +++ b/dom/webidl/SVGForeignObjectElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGElement.webidl b/dom/webidl/SVGGElement.webidl index 8f8feb286bfd..8d690677e5e4 100644 --- a/dom/webidl/SVGGElement.webidl +++ b/dom/webidl/SVGGElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGeometryElement.webidl b/dom/webidl/SVGGeometryElement.webidl index c95d89002ffe..28029794c673 100644 --- a/dom/webidl/SVGGeometryElement.webidl +++ b/dom/webidl/SVGGeometryElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGradientElement.webidl b/dom/webidl/SVGGradientElement.webidl index 25ecdaf4cbce..8eb75b107141 100644 --- a/dom/webidl/SVGGradientElement.webidl +++ b/dom/webidl/SVGGradientElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGGraphicsElement.webidl b/dom/webidl/SVGGraphicsElement.webidl index bf09fc2332f5..74af1f6738ea 100644 --- a/dom/webidl/SVGGraphicsElement.webidl +++ b/dom/webidl/SVGGraphicsElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGImageElement.webidl b/dom/webidl/SVGImageElement.webidl index 02d753bd37aa..4ba236bed470 100644 --- a/dom/webidl/SVGImageElement.webidl +++ b/dom/webidl/SVGImageElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLength.webidl b/dom/webidl/SVGLength.webidl index 9e7c2f3a032a..6d56132db084 100644 --- a/dom/webidl/SVGLength.webidl +++ b/dom/webidl/SVGLength.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLengthList.webidl b/dom/webidl/SVGLengthList.webidl index e75f85870f43..c4fab44e4b7f 100644 --- a/dom/webidl/SVGLengthList.webidl +++ b/dom/webidl/SVGLengthList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLineElement.webidl b/dom/webidl/SVGLineElement.webidl index 59c2c951cc8d..3ec4ba1016b6 100644 --- a/dom/webidl/SVGLineElement.webidl +++ b/dom/webidl/SVGLineElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGLinearGradientElement.webidl b/dom/webidl/SVGLinearGradientElement.webidl index 1c14e0a9b3d9..200bc47e67ed 100644 --- a/dom/webidl/SVGLinearGradientElement.webidl +++ b/dom/webidl/SVGLinearGradientElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMPathElement.webidl b/dom/webidl/SVGMPathElement.webidl index ed959b24bbb5..7165b6cf7459 100644 --- a/dom/webidl/SVGMPathElement.webidl +++ b/dom/webidl/SVGMPathElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMarkerElement.webidl b/dom/webidl/SVGMarkerElement.webidl index f25690cf8d88..a4f819b2d09c 100644 --- a/dom/webidl/SVGMarkerElement.webidl +++ b/dom/webidl/SVGMarkerElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMaskElement.webidl b/dom/webidl/SVGMaskElement.webidl index c0498db7cb71..ad5096b69003 100644 --- a/dom/webidl/SVGMaskElement.webidl +++ b/dom/webidl/SVGMaskElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMatrix.webidl b/dom/webidl/SVGMatrix.webidl index 77af638ea91b..3ede75cc727a 100644 --- a/dom/webidl/SVGMatrix.webidl +++ b/dom/webidl/SVGMatrix.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGMetadataElement.webidl b/dom/webidl/SVGMetadataElement.webidl index 21bded60eaa4..1c404f91f2d0 100644 --- a/dom/webidl/SVGMetadataElement.webidl +++ b/dom/webidl/SVGMetadataElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGNumber.webidl b/dom/webidl/SVGNumber.webidl index e8a7d3ed910d..8e1bb58c1031 100644 --- a/dom/webidl/SVGNumber.webidl +++ b/dom/webidl/SVGNumber.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGNumberList.webidl b/dom/webidl/SVGNumberList.webidl index 869cc67689ca..b4247d33746a 100644 --- a/dom/webidl/SVGNumberList.webidl +++ b/dom/webidl/SVGNumberList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathElement.webidl b/dom/webidl/SVGPathElement.webidl index 184863aa78a3..a811a8ff20d0 100644 --- a/dom/webidl/SVGPathElement.webidl +++ b/dom/webidl/SVGPathElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathSeg.webidl b/dom/webidl/SVGPathSeg.webidl index e62f71102df1..5895a8c963f6 100644 --- a/dom/webidl/SVGPathSeg.webidl +++ b/dom/webidl/SVGPathSeg.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPathSegList.webidl b/dom/webidl/SVGPathSegList.webidl index a2ddd3a038ba..dc8c9a436fa1 100644 --- a/dom/webidl/SVGPathSegList.webidl +++ b/dom/webidl/SVGPathSegList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPatternElement.webidl b/dom/webidl/SVGPatternElement.webidl index 60a359825dc8..c1d9af9b7d61 100644 --- a/dom/webidl/SVGPatternElement.webidl +++ b/dom/webidl/SVGPatternElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPoint.webidl b/dom/webidl/SVGPoint.webidl index b91180e634cd..c8113d40b75e 100644 --- a/dom/webidl/SVGPoint.webidl +++ b/dom/webidl/SVGPoint.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPointList.webidl b/dom/webidl/SVGPointList.webidl index f4548e8e2740..2bc553855f9c 100644 --- a/dom/webidl/SVGPointList.webidl +++ b/dom/webidl/SVGPointList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPolygonElement.webidl b/dom/webidl/SVGPolygonElement.webidl index 5b22f31ece9c..338f9766a6a2 100644 --- a/dom/webidl/SVGPolygonElement.webidl +++ b/dom/webidl/SVGPolygonElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPolylineElement.webidl b/dom/webidl/SVGPolylineElement.webidl index 93e6c96903da..0508d009fa91 100644 --- a/dom/webidl/SVGPolylineElement.webidl +++ b/dom/webidl/SVGPolylineElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGPreserveAspectRatio.webidl b/dom/webidl/SVGPreserveAspectRatio.webidl index 9681cbdba335..2a9db63f583e 100644 --- a/dom/webidl/SVGPreserveAspectRatio.webidl +++ b/dom/webidl/SVGPreserveAspectRatio.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRadialGradientElement.webidl b/dom/webidl/SVGRadialGradientElement.webidl index f1ca2156664e..8d7ce901681d 100644 --- a/dom/webidl/SVGRadialGradientElement.webidl +++ b/dom/webidl/SVGRadialGradientElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRect.webidl b/dom/webidl/SVGRect.webidl index 3358a8477ec3..0edda0640fb9 100644 --- a/dom/webidl/SVGRect.webidl +++ b/dom/webidl/SVGRect.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGRectElement.webidl b/dom/webidl/SVGRectElement.webidl index 7f408849b4f0..9dddd83bbbf3 100644 --- a/dom/webidl/SVGRectElement.webidl +++ b/dom/webidl/SVGRectElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSVGElement.webidl b/dom/webidl/SVGSVGElement.webidl index 178a12faa2fb..98ca7d6dc780 100644 --- a/dom/webidl/SVGSVGElement.webidl +++ b/dom/webidl/SVGSVGElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGScriptElement.webidl b/dom/webidl/SVGScriptElement.webidl index e21849bef7bb..41bbe065b67a 100644 --- a/dom/webidl/SVGScriptElement.webidl +++ b/dom/webidl/SVGScriptElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSetElement.webidl b/dom/webidl/SVGSetElement.webidl index 71b67fa716d1..8b816fa75914 100644 --- a/dom/webidl/SVGSetElement.webidl +++ b/dom/webidl/SVGSetElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStopElement.webidl b/dom/webidl/SVGStopElement.webidl index f5258afe7929..d75e52b73399 100644 --- a/dom/webidl/SVGStopElement.webidl +++ b/dom/webidl/SVGStopElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStringList.webidl b/dom/webidl/SVGStringList.webidl index dfd3098dc10e..ad7288fe1c09 100644 --- a/dom/webidl/SVGStringList.webidl +++ b/dom/webidl/SVGStringList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGStyleElement.webidl b/dom/webidl/SVGStyleElement.webidl index d7dc9e31211f..dcdbb8c2c27e 100644 --- a/dom/webidl/SVGStyleElement.webidl +++ b/dom/webidl/SVGStyleElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSwitchElement.webidl b/dom/webidl/SVGSwitchElement.webidl index 0e6c5f178981..43cdb6861a89 100644 --- a/dom/webidl/SVGSwitchElement.webidl +++ b/dom/webidl/SVGSwitchElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGSymbolElement.webidl b/dom/webidl/SVGSymbolElement.webidl index 357c4b586b1d..ece2c5a3f046 100644 --- a/dom/webidl/SVGSymbolElement.webidl +++ b/dom/webidl/SVGSymbolElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTSpanElement.webidl b/dom/webidl/SVGTSpanElement.webidl index 9b19238c7d16..a6d944450cbc 100644 --- a/dom/webidl/SVGTSpanElement.webidl +++ b/dom/webidl/SVGTSpanElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTests.webidl b/dom/webidl/SVGTests.webidl index a49f19d0a327..e3c38242b38e 100644 --- a/dom/webidl/SVGTests.webidl +++ b/dom/webidl/SVGTests.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextContentElement.webidl b/dom/webidl/SVGTextContentElement.webidl index ed380a89a395..15ec9637309e 100644 --- a/dom/webidl/SVGTextContentElement.webidl +++ b/dom/webidl/SVGTextContentElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextElement.webidl b/dom/webidl/SVGTextElement.webidl index db85964c12ec..042326de2ee3 100644 --- a/dom/webidl/SVGTextElement.webidl +++ b/dom/webidl/SVGTextElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextPathElement.webidl b/dom/webidl/SVGTextPathElement.webidl index 152197678dd7..73a50f3ff47d 100644 --- a/dom/webidl/SVGTextPathElement.webidl +++ b/dom/webidl/SVGTextPathElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTextPositioningElement.webidl b/dom/webidl/SVGTextPositioningElement.webidl index 6c358eae48e0..80b8b94fac9f 100644 --- a/dom/webidl/SVGTextPositioningElement.webidl +++ b/dom/webidl/SVGTextPositioningElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTitleElement.webidl b/dom/webidl/SVGTitleElement.webidl index 694295e86a33..d40c63373ea7 100644 --- a/dom/webidl/SVGTitleElement.webidl +++ b/dom/webidl/SVGTitleElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTransform.webidl b/dom/webidl/SVGTransform.webidl index bfb9745ae3d0..488fb8d07880 100644 --- a/dom/webidl/SVGTransform.webidl +++ b/dom/webidl/SVGTransform.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGTransformList.webidl b/dom/webidl/SVGTransformList.webidl index b308c14de1c6..c9763aa26c97 100644 --- a/dom/webidl/SVGTransformList.webidl +++ b/dom/webidl/SVGTransformList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGURIReference.webidl b/dom/webidl/SVGURIReference.webidl index 84c32f167f96..11f94c1917fb 100644 --- a/dom/webidl/SVGURIReference.webidl +++ b/dom/webidl/SVGURIReference.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGUnitTypes.webidl b/dom/webidl/SVGUnitTypes.webidl index 41c68009c6e3..d02e7019bcd4 100644 --- a/dom/webidl/SVGUnitTypes.webidl +++ b/dom/webidl/SVGUnitTypes.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGUseElement.webidl b/dom/webidl/SVGUseElement.webidl index 376d5e1c327a..8e7a6fd8cf4c 100644 --- a/dom/webidl/SVGUseElement.webidl +++ b/dom/webidl/SVGUseElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGViewElement.webidl b/dom/webidl/SVGViewElement.webidl index 074f0e97684b..b4be87645de7 100644 --- a/dom/webidl/SVGViewElement.webidl +++ b/dom/webidl/SVGViewElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGZoomAndPan.webidl b/dom/webidl/SVGZoomAndPan.webidl index 79bf5671f953..bb5ee780ac09 100644 --- a/dom/webidl/SVGZoomAndPan.webidl +++ b/dom/webidl/SVGZoomAndPan.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SVGZoomAndPanValues.webidl b/dom/webidl/SVGZoomAndPanValues.webidl index 7e0ebc010503..a09653f0bea3 100644 --- a/dom/webidl/SVGZoomAndPanValues.webidl +++ b/dom/webidl/SVGZoomAndPanValues.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Screen.webidl b/dom/webidl/Screen.webidl index e382d1bd5e21..59d6ca31e400 100644 --- a/dom/webidl/Screen.webidl +++ b/dom/webidl/Screen.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/ScreenOrientation.webidl b/dom/webidl/ScreenOrientation.webidl index 4c8dcdf4cb88..0f0b6736e4b6 100644 --- a/dom/webidl/ScreenOrientation.webidl +++ b/dom/webidl/ScreenOrientation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScriptProcessorNode.webidl b/dom/webidl/ScriptProcessorNode.webidl index 25923f9bc57a..81c02443f170 100644 --- a/dom/webidl/ScriptProcessorNode.webidl +++ b/dom/webidl/ScriptProcessorNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScrollAreaEvent.webidl b/dom/webidl/ScrollAreaEvent.webidl index ca324eaa1e24..f24b7c0ad040 100644 --- a/dom/webidl/ScrollAreaEvent.webidl +++ b/dom/webidl/ScrollAreaEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ScrollViewChangeEvent.webidl b/dom/webidl/ScrollViewChangeEvent.webidl index d2cec242fdbf..a3e92139a2cc 100644 --- a/dom/webidl/ScrollViewChangeEvent.webidl +++ b/dom/webidl/ScrollViewChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SecurityPolicyViolationEvent.webidl b/dom/webidl/SecurityPolicyViolationEvent.webidl index db8f4cddc169..d7b691d30459 100644 --- a/dom/webidl/SecurityPolicyViolationEvent.webidl +++ b/dom/webidl/SecurityPolicyViolationEvent.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ @@ -12,32 +10,32 @@ enum SecurityPolicyViolationEventDisposition [Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict)] interface SecurityPolicyViolationEvent : Event { - readonly attribute DOMString documentURI; - readonly attribute DOMString referrer; - readonly attribute DOMString blockedURI; - readonly attribute DOMString violatedDirective; - readonly attribute DOMString effectiveDirective; - readonly attribute DOMString originalPolicy; - readonly attribute DOMString sourceFile; - readonly attribute DOMString sample; - readonly attribute SecurityPolicyViolationEventDisposition disposition; - readonly attribute unsigned short statusCode; - readonly attribute long lineNumber; - readonly attribute long columnNumber; + readonly attribute DOMString documentURI; + readonly attribute DOMString referrer; + readonly attribute DOMString blockedURI; + readonly attribute DOMString violatedDirective; + readonly attribute DOMString effectiveDirective; + readonly attribute DOMString originalPolicy; + readonly attribute DOMString sourceFile; + readonly attribute DOMString sample; + readonly attribute SecurityPolicyViolationEventDisposition disposition; + readonly attribute unsigned short statusCode; + readonly attribute long lineNumber; + readonly attribute long columnNumber; }; dictionary SecurityPolicyViolationEventInit : EventInit { - DOMString documentURI = ""; - DOMString referrer = ""; - DOMString blockedURI = ""; - DOMString violatedDirective = ""; - DOMString effectiveDirective = ""; - DOMString originalPolicy = ""; - DOMString sourceFile = ""; - DOMString sample = ""; - SecurityPolicyViolationEventDisposition disposition = "report"; - unsigned short statusCode = 0; - long lineNumber = 0; - long columnNumber = 0; + DOMString documentURI = ""; + DOMString referrer = ""; + DOMString blockedURI = ""; + DOMString violatedDirective = ""; + DOMString effectiveDirective = ""; + DOMString originalPolicy = ""; + DOMString sourceFile = ""; + DOMString sample = ""; + SecurityPolicyViolationEventDisposition disposition = "report"; + unsigned short statusCode = 0; + long lineNumber = 0; + long columnNumber = 0; }; diff --git a/dom/webidl/Selection.webidl b/dom/webidl/Selection.webidl index 9620871f7158..e15d2a97ce51 100644 --- a/dom/webidl/Selection.webidl +++ b/dom/webidl/Selection.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorker.webidl b/dom/webidl/ServiceWorker.webidl index 624e2bbb1b94..8978cf07a284 100644 --- a/dom/webidl/ServiceWorker.webidl +++ b/dom/webidl/ServiceWorker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerContainer.webidl b/dom/webidl/ServiceWorkerContainer.webidl index 0205c4f4531f..3d0bc34f2616 100644 --- a/dom/webidl/ServiceWorkerContainer.webidl +++ b/dom/webidl/ServiceWorkerContainer.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerGlobalScope.webidl b/dom/webidl/ServiceWorkerGlobalScope.webidl index bda4fdd4ccf4..624a0643d811 100644 --- a/dom/webidl/ServiceWorkerGlobalScope.webidl +++ b/dom/webidl/ServiceWorkerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ServiceWorkerRegistration.webidl b/dom/webidl/ServiceWorkerRegistration.webidl index c54b178d9d13..3c1f710b4938 100644 --- a/dom/webidl/ServiceWorkerRegistration.webidl +++ b/dom/webidl/ServiceWorkerRegistration.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ShadowRoot.webidl b/dom/webidl/ShadowRoot.webidl index 532f0a208812..fe3e93341cbd 100644 --- a/dom/webidl/ShadowRoot.webidl +++ b/dom/webidl/ShadowRoot.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SharedWorker.webidl b/dom/webidl/SharedWorker.webidl index e363e080bdc8..9504f302e065 100644 --- a/dom/webidl/SharedWorker.webidl +++ b/dom/webidl/SharedWorker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SharedWorkerGlobalScope.webidl b/dom/webidl/SharedWorkerGlobalScope.webidl index 77ab1e2710ed..7c9483bf6aaa 100644 --- a/dom/webidl/SharedWorkerGlobalScope.webidl +++ b/dom/webidl/SharedWorkerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SimpleGestureEvent.webidl b/dom/webidl/SimpleGestureEvent.webidl index fd3213bb81bf..ab55c9014165 100644 --- a/dom/webidl/SimpleGestureEvent.webidl +++ b/dom/webidl/SimpleGestureEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SocketCommon.webidl b/dom/webidl/SocketCommon.webidl index e00a23c9ec73..044199ea2bd6 100644 --- a/dom/webidl/SocketCommon.webidl +++ b/dom/webidl/SocketCommon.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SourceBuffer.webidl b/dom/webidl/SourceBuffer.webidl index af2cbf8fe541..0e2eaa58f6ec 100644 --- a/dom/webidl/SourceBuffer.webidl +++ b/dom/webidl/SourceBuffer.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SourceBufferList.webidl b/dom/webidl/SourceBufferList.webidl index 8cc513ed9e2d..15c302622a66 100644 --- a/dom/webidl/SourceBufferList.webidl +++ b/dom/webidl/SourceBufferList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechGrammar.webidl b/dom/webidl/SpeechGrammar.webidl index 49ac1cccecc8..8cc97d2ffc5c 100644 --- a/dom/webidl/SpeechGrammar.webidl +++ b/dom/webidl/SpeechGrammar.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechGrammarList.webidl b/dom/webidl/SpeechGrammarList.webidl index 0b602a8980ca..f1b5775ae0c3 100644 --- a/dom/webidl/SpeechGrammarList.webidl +++ b/dom/webidl/SpeechGrammarList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognition.webidl b/dom/webidl/SpeechRecognition.webidl index b52f6f23cb65..3c32f3769d6f 100644 --- a/dom/webidl/SpeechRecognition.webidl +++ b/dom/webidl/SpeechRecognition.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -15,32 +14,32 @@ Pref="media.webspeech.recognition.enable", Func="SpeechRecognition::IsAuthorized"] interface SpeechRecognition : EventTarget { - // recognition parameters - attribute SpeechGrammarList grammars; - attribute DOMString lang; - [Throws] - attribute boolean continuous; - attribute boolean interimResults; - attribute unsigned long maxAlternatives; - [Throws] - attribute DOMString serviceURI; + // recognition parameters + attribute SpeechGrammarList grammars; + attribute DOMString lang; + [Throws] + attribute boolean continuous; + attribute boolean interimResults; + attribute unsigned long maxAlternatives; + [Throws] + attribute DOMString serviceURI; - // methods to drive the speech interaction - [Throws, NeedsCallerType] - void start(optional MediaStream stream); - void stop(); - void abort(); + // methods to drive the speech interaction + [Throws, NeedsCallerType] + void start(optional MediaStream stream); + void stop(); + void abort(); - // event methods - attribute EventHandler onaudiostart; - attribute EventHandler onsoundstart; - attribute EventHandler onspeechstart; - attribute EventHandler onspeechend; - attribute EventHandler onsoundend; - attribute EventHandler onaudioend; - attribute EventHandler onresult; - attribute EventHandler onnomatch; - attribute EventHandler onerror; - attribute EventHandler onstart; - attribute EventHandler onend; + // event methods + attribute EventHandler onaudiostart; + attribute EventHandler onsoundstart; + attribute EventHandler onspeechstart; + attribute EventHandler onspeechend; + attribute EventHandler onsoundend; + attribute EventHandler onaudioend; + attribute EventHandler onresult; + attribute EventHandler onnomatch; + attribute EventHandler onerror; + attribute EventHandler onstart; + attribute EventHandler onend; }; diff --git a/dom/webidl/SpeechRecognitionAlternative.webidl b/dom/webidl/SpeechRecognitionAlternative.webidl index 0b767a4aa7fc..f2692404d590 100644 --- a/dom/webidl/SpeechRecognitionAlternative.webidl +++ b/dom/webidl/SpeechRecognitionAlternative.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionError.webidl b/dom/webidl/SpeechRecognitionError.webidl index e9d6114882cf..ddc74e88da00 100644 --- a/dom/webidl/SpeechRecognitionError.webidl +++ b/dom/webidl/SpeechRecognitionError.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionEvent.webidl b/dom/webidl/SpeechRecognitionEvent.webidl index bd3703335bf9..7a95323d7752 100644 --- a/dom/webidl/SpeechRecognitionEvent.webidl +++ b/dom/webidl/SpeechRecognitionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionResult.webidl b/dom/webidl/SpeechRecognitionResult.webidl index 848b5e00701a..c66bb9ca2f06 100644 --- a/dom/webidl/SpeechRecognitionResult.webidl +++ b/dom/webidl/SpeechRecognitionResult.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechRecognitionResultList.webidl b/dom/webidl/SpeechRecognitionResultList.webidl index 99a628f0a23f..ec182c1def48 100644 --- a/dom/webidl/SpeechRecognitionResultList.webidl +++ b/dom/webidl/SpeechRecognitionResultList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesis.webidl b/dom/webidl/SpeechSynthesis.webidl index eacd09d2f1c9..f57a07b8bb50 100644 --- a/dom/webidl/SpeechSynthesis.webidl +++ b/dom/webidl/SpeechSynthesis.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisErrorEvent.webidl b/dom/webidl/SpeechSynthesisErrorEvent.webidl index dcaf1e84155c..1388755d3139 100644 --- a/dom/webidl/SpeechSynthesisErrorEvent.webidl +++ b/dom/webidl/SpeechSynthesisErrorEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisEvent.webidl b/dom/webidl/SpeechSynthesisEvent.webidl index 5c035bbc645f..310ad6867d11 100644 --- a/dom/webidl/SpeechSynthesisEvent.webidl +++ b/dom/webidl/SpeechSynthesisEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisUtterance.webidl b/dom/webidl/SpeechSynthesisUtterance.webidl index 88f390d8eac7..14f6e9fde4e8 100644 --- a/dom/webidl/SpeechSynthesisUtterance.webidl +++ b/dom/webidl/SpeechSynthesisUtterance.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/SpeechSynthesisVoice.webidl b/dom/webidl/SpeechSynthesisVoice.webidl index 2c311c4a9bef..39ea6964d0fc 100644 --- a/dom/webidl/SpeechSynthesisVoice.webidl +++ b/dom/webidl/SpeechSynthesisVoice.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StereoPannerNode.webidl b/dom/webidl/StereoPannerNode.webidl index 9e1b65a1d43a..9b8b3e2f841a 100644 --- a/dom/webidl/StereoPannerNode.webidl +++ b/dom/webidl/StereoPannerNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Storage.webidl b/dom/webidl/Storage.webidl index 44bf75b21074..b64974a287b2 100644 --- a/dom/webidl/Storage.webidl +++ b/dom/webidl/Storage.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageEvent.webidl b/dom/webidl/StorageEvent.webidl index b1735667026a..e03f8232cc58 100644 --- a/dom/webidl/StorageEvent.webidl +++ b/dom/webidl/StorageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageManager.webidl b/dom/webidl/StorageManager.webidl index 679d0adc5c98..4247607ff4de 100644 --- a/dom/webidl/StorageManager.webidl +++ b/dom/webidl/StorageManager.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StorageType.webidl b/dom/webidl/StorageType.webidl index 7ec4c5e05c00..cb0702d2a8b8 100644 --- a/dom/webidl/StorageType.webidl +++ b/dom/webidl/StorageType.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StreamFilter.webidl b/dom/webidl/StreamFilter.webidl index a494f8f89893..3a100c4a3404 100644 --- a/dom/webidl/StreamFilter.webidl +++ b/dom/webidl/StreamFilter.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StreamFilterDataEvent.webidl b/dom/webidl/StreamFilterDataEvent.webidl index 55c89ceb1470..961c453dcff6 100644 --- a/dom/webidl/StreamFilterDataEvent.webidl +++ b/dom/webidl/StreamFilterDataEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/StyleRuleChangeEvent.webidl b/dom/webidl/StyleRuleChangeEvent.webidl index 8edc2680fbc0..ef35bae6486c 100644 --- a/dom/webidl/StyleRuleChangeEvent.webidl +++ b/dom/webidl/StyleRuleChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheet.webidl b/dom/webidl/StyleSheet.webidl index 23e7bbcb3044..049f3d9d0791 100644 --- a/dom/webidl/StyleSheet.webidl +++ b/dom/webidl/StyleSheet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl b/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl index 4f5cbce90b36..cb196569f54e 100644 --- a/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl +++ b/dom/webidl/StyleSheetApplicableStateChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetChangeEvent.webidl b/dom/webidl/StyleSheetChangeEvent.webidl index 7a74782109aa..9d04f67cce5c 100644 --- a/dom/webidl/StyleSheetChangeEvent.webidl +++ b/dom/webidl/StyleSheetChangeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/StyleSheetList.webidl b/dom/webidl/StyleSheetList.webidl index 98b69cc14502..e6091ac296eb 100644 --- a/dom/webidl/StyleSheetList.webidl +++ b/dom/webidl/StyleSheetList.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/SubtleCrypto.webidl b/dom/webidl/SubtleCrypto.webidl index b8ec366e3697..328447ee7b09 100644 --- a/dom/webidl/SubtleCrypto.webidl +++ b/dom/webidl/SubtleCrypto.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TCPServerSocket.webidl b/dom/webidl/TCPServerSocket.webidl index 14163ea1d06a..06d6689d2d00 100644 --- a/dom/webidl/TCPServerSocket.webidl +++ b/dom/webidl/TCPServerSocket.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPServerSocketEvent.webidl b/dom/webidl/TCPServerSocketEvent.webidl index d710b9f2ef55..f133ae7812f8 100644 --- a/dom/webidl/TCPServerSocketEvent.webidl +++ b/dom/webidl/TCPServerSocketEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocket.webidl b/dom/webidl/TCPSocket.webidl index c007021f0307..42c6c2f7388c 100644 --- a/dom/webidl/TCPSocket.webidl +++ b/dom/webidl/TCPSocket.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocketErrorEvent.webidl b/dom/webidl/TCPSocketErrorEvent.webidl index c247c1d21e00..22db1b768c90 100644 --- a/dom/webidl/TCPSocketErrorEvent.webidl +++ b/dom/webidl/TCPSocketErrorEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TCPSocketEvent.webidl b/dom/webidl/TCPSocketEvent.webidl index 709d3a2c1d9f..6a3d6851df4d 100644 --- a/dom/webidl/TCPSocketEvent.webidl +++ b/dom/webidl/TCPSocketEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TestFunctions.webidl b/dom/webidl/TestFunctions.webidl index 2f53fdb3f541..9c72392c3701 100644 --- a/dom/webidl/TestFunctions.webidl +++ b/dom/webidl/TestFunctions.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJS.webidl b/dom/webidl/TestInterfaceJS.webidl index b5480ef584ee..835f4ae29fd1 100644 --- a/dom/webidl/TestInterfaceJS.webidl +++ b/dom/webidl/TestInterfaceJS.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJSDictionaries.webidl b/dom/webidl/TestInterfaceJSDictionaries.webidl index 55dcd4328b1c..366864a8d4f8 100644 --- a/dom/webidl/TestInterfaceJSDictionaries.webidl +++ b/dom/webidl/TestInterfaceJSDictionaries.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl b/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl index d1f4461be292..9a953784cf98 100644 --- a/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl +++ b/dom/webidl/TestInterfaceJSMaplikeSetlikeIterable.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Text.webidl b/dom/webidl/Text.webidl index 50ecd0e6c27b..3b79d6d3725b 100644 --- a/dom/webidl/Text.webidl +++ b/dom/webidl/Text.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextClause.webidl b/dom/webidl/TextClause.webidl index a70da13d4c4a..2baeeb2d7856 100644 --- a/dom/webidl/TextClause.webidl +++ b/dom/webidl/TextClause.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextDecoder.webidl b/dom/webidl/TextDecoder.webidl index 90f5ff34a4cb..9246c2a3207d 100644 --- a/dom/webidl/TextDecoder.webidl +++ b/dom/webidl/TextDecoder.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextEncoder.webidl b/dom/webidl/TextEncoder.webidl index 461f490777dd..27f6e03d2cec 100644 --- a/dom/webidl/TextEncoder.webidl +++ b/dom/webidl/TextEncoder.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrack.webidl b/dom/webidl/TextTrack.webidl index d7d3f39f3263..442a1667f199 100644 --- a/dom/webidl/TextTrack.webidl +++ b/dom/webidl/TextTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackCue.webidl b/dom/webidl/TextTrackCue.webidl index 6597638f3ead..2dc242dd1670 100644 --- a/dom/webidl/TextTrackCue.webidl +++ b/dom/webidl/TextTrackCue.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackCueList.webidl b/dom/webidl/TextTrackCueList.webidl index 0e3e691e591e..0854004bdb86 100644 --- a/dom/webidl/TextTrackCueList.webidl +++ b/dom/webidl/TextTrackCueList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TextTrackList.webidl b/dom/webidl/TextTrackList.webidl index 02db6c236384..1150871e3a76 100644 --- a/dom/webidl/TextTrackList.webidl +++ b/dom/webidl/TextTrackList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TimeEvent.webidl b/dom/webidl/TimeEvent.webidl index 10046b0a77e0..8bbe4db53fa1 100644 --- a/dom/webidl/TimeEvent.webidl +++ b/dom/webidl/TimeEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TimeRanges.webidl b/dom/webidl/TimeRanges.webidl index 4317bdfeac93..9f9b5270b1bb 100644 --- a/dom/webidl/TimeRanges.webidl +++ b/dom/webidl/TimeRanges.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Touch.webidl b/dom/webidl/Touch.webidl index 98e017f841df..d00e46654520 100644 --- a/dom/webidl/Touch.webidl +++ b/dom/webidl/Touch.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TouchEvent.webidl b/dom/webidl/TouchEvent.webidl index 18783d55a2dd..fd677787ab31 100644 --- a/dom/webidl/TouchEvent.webidl +++ b/dom/webidl/TouchEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TouchList.webidl b/dom/webidl/TouchList.webidl index 5bbaf5439cad..562a7fb4fcb3 100644 --- a/dom/webidl/TouchList.webidl +++ b/dom/webidl/TouchList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TrackEvent.webidl b/dom/webidl/TrackEvent.webidl index db588aa9d545..2daa2f457502 100644 --- a/dom/webidl/TrackEvent.webidl +++ b/dom/webidl/TrackEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TransceiverImpl.webidl b/dom/webidl/TransceiverImpl.webidl index dd7e085495ad..0883ea343f0d 100644 --- a/dom/webidl/TransceiverImpl.webidl +++ b/dom/webidl/TransceiverImpl.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TransitionEvent.webidl b/dom/webidl/TransitionEvent.webidl index b6c315be09e1..d4476dffaf3a 100644 --- a/dom/webidl/TransitionEvent.webidl +++ b/dom/webidl/TransitionEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TreeBoxObject.webidl b/dom/webidl/TreeBoxObject.webidl index 579fd716d93a..125361fbf734 100644 --- a/dom/webidl/TreeBoxObject.webidl +++ b/dom/webidl/TreeBoxObject.webidl @@ -1,5 +1,5 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ + +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/TreeColumn.webidl b/dom/webidl/TreeColumn.webidl index 05cda8f9bc66..c65f73c949a7 100644 --- a/dom/webidl/TreeColumn.webidl +++ b/dom/webidl/TreeColumn.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeColumns.webidl b/dom/webidl/TreeColumns.webidl index c07da92f1b5a..5958d1235229 100644 --- a/dom/webidl/TreeColumns.webidl +++ b/dom/webidl/TreeColumns.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeContentView.webidl b/dom/webidl/TreeContentView.webidl index 3859cff50256..954a826860d7 100644 --- a/dom/webidl/TreeContentView.webidl +++ b/dom/webidl/TreeContentView.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeView.webidl b/dom/webidl/TreeView.webidl index 09d7498d0715..523cb9335655 100644 --- a/dom/webidl/TreeView.webidl +++ b/dom/webidl/TreeView.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/TreeWalker.webidl b/dom/webidl/TreeWalker.webidl index 4bb0d98d39bf..2cd302f00789 100644 --- a/dom/webidl/TreeWalker.webidl +++ b/dom/webidl/TreeWalker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/U2F.webidl b/dom/webidl/U2F.webidl index a954bc24ca9c..29bed6f3ac54 100644 --- a/dom/webidl/U2F.webidl +++ b/dom/webidl/U2F.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -20,49 +19,49 @@ typedef unsigned short ErrorCode; typedef sequence Transports; enum Transport { - "bt", - "ble", - "nfc", - "usb" + "bt", + "ble", + "nfc", + "usb" }; dictionary U2FClientData { - DOMString typ; // Spelling is from the specification - DOMString challenge; - DOMString origin; - // cid_pubkey for Token Binding is not implemented + DOMString typ; // Spelling is from the specification + DOMString challenge; + DOMString origin; + // cid_pubkey for Token Binding is not implemented }; dictionary RegisterRequest { - DOMString version; - DOMString challenge; + DOMString version; + DOMString challenge; }; dictionary RegisterResponse { - DOMString version; - DOMString registrationData; - DOMString clientData; + DOMString version; + DOMString registrationData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; dictionary RegisteredKey { - DOMString version; - DOMString keyHandle; - Transports? transports; - DOMString? appId; + DOMString version; + DOMString keyHandle; + Transports? transports; + DOMString? appId; }; dictionary SignResponse { - DOMString keyHandle; - DOMString signatureData; - DOMString clientData; + DOMString keyHandle; + DOMString signatureData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; callback U2FRegisterCallback = void(RegisterResponse response); diff --git a/dom/webidl/UDPMessageEvent.webidl b/dom/webidl/UDPMessageEvent.webidl index 4fd3a0bf34bf..862f719d087e 100644 --- a/dom/webidl/UDPMessageEvent.webidl +++ b/dom/webidl/UDPMessageEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UDPSocket.webidl b/dom/webidl/UDPSocket.webidl index ef9c2cac92e0..74cede28c8ff 100644 --- a/dom/webidl/UDPSocket.webidl +++ b/dom/webidl/UDPSocket.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -10,32 +9,32 @@ */ dictionary UDPOptions { - DOMString localAddress; - unsigned short localPort; - DOMString remoteAddress; - unsigned short remotePort; - boolean addressReuse = true; - boolean loopback = false; + DOMString localAddress; + unsigned short localPort; + DOMString remoteAddress; + unsigned short remotePort; + boolean addressReuse = true; + boolean loopback = false; }; [Constructor (optional UDPOptions options), Pref="dom.udpsocket.enabled", ChromeOnly] interface UDPSocket : EventTarget { - readonly attribute DOMString? localAddress; - readonly attribute unsigned short? localPort; - readonly attribute DOMString? remoteAddress; - readonly attribute unsigned short? remotePort; - readonly attribute boolean addressReuse; - readonly attribute boolean loopback; - readonly attribute SocketReadyState readyState; - readonly attribute Promise opened; - readonly attribute Promise closed; -// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready -// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready + readonly attribute DOMString? localAddress; + readonly attribute unsigned short? localPort; + readonly attribute DOMString? remoteAddress; + readonly attribute unsigned short? remotePort; + readonly attribute boolean addressReuse; + readonly attribute boolean loopback; + readonly attribute SocketReadyState readyState; + readonly attribute Promise opened; + readonly attribute Promise closed; +// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready +// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready attribute EventHandler onmessage; //Bug 1056444: use event interface before Stream API is ready - Promise close (); - [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); - [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); - [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready + Promise close (); + [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); + [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); + [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready }; diff --git a/dom/webidl/UIEvent.webidl b/dom/webidl/UIEvent.webidl index bf37669efb1c..0f137796c006 100644 --- a/dom/webidl/UIEvent.webidl +++ b/dom/webidl/UIEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/URL.webidl b/dom/webidl/URL.webidl index d87b87d98688..b04e8f58e7b4 100644 --- a/dom/webidl/URL.webidl +++ b/dom/webidl/URL.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/URLSearchParams.webidl b/dom/webidl/URLSearchParams.webidl index 8faeea4aff1b..2828d81ddd46 100644 --- a/dom/webidl/URLSearchParams.webidl +++ b/dom/webidl/URLSearchParams.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/UserProximityEvent.webidl b/dom/webidl/UserProximityEvent.webidl index bf6182001405..671fc4625685 100644 --- a/dom/webidl/UserProximityEvent.webidl +++ b/dom/webidl/UserProximityEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VRDisplay.webidl b/dom/webidl/VRDisplay.webidl index 6cf46cd3d234..43bcd3e00ebc 100644 --- a/dom/webidl/VRDisplay.webidl +++ b/dom/webidl/VRDisplay.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/VRDisplayEvent.webidl b/dom/webidl/VRDisplayEvent.webidl index 8efd994af253..83d39e7cb73d 100644 --- a/dom/webidl/VRDisplayEvent.webidl +++ b/dom/webidl/VRDisplayEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/VRServiceTest.webidl b/dom/webidl/VRServiceTest.webidl index 0e4e19cc02e8..fbca7df0badc 100644 --- a/dom/webidl/VRServiceTest.webidl +++ b/dom/webidl/VRServiceTest.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VTTCue.webidl b/dom/webidl/VTTCue.webidl index 13b8bdc148b8..4f8214c21d96 100644 --- a/dom/webidl/VTTCue.webidl +++ b/dom/webidl/VTTCue.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VTTRegion.webidl b/dom/webidl/VTTRegion.webidl index 8e0f255d06da..d665cfea4c83 100644 --- a/dom/webidl/VTTRegion.webidl +++ b/dom/webidl/VTTRegion.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/ValidityState.webidl b/dom/webidl/ValidityState.webidl index 5be610f150b5..7e99870e9ec3 100644 --- a/dom/webidl/ValidityState.webidl +++ b/dom/webidl/ValidityState.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoPlaybackQuality.webidl b/dom/webidl/VideoPlaybackQuality.webidl index 8fc4faeebd74..abbe8d19a680 100644 --- a/dom/webidl/VideoPlaybackQuality.webidl +++ b/dom/webidl/VideoPlaybackQuality.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoStreamTrack.webidl b/dom/webidl/VideoStreamTrack.webidl index badae090e3b5..b194d5c9fae1 100644 --- a/dom/webidl/VideoStreamTrack.webidl +++ b/dom/webidl/VideoStreamTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoTrack.webidl b/dom/webidl/VideoTrack.webidl index 22ed1f5048e7..7f5974f21204 100644 --- a/dom/webidl/VideoTrack.webidl +++ b/dom/webidl/VideoTrack.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VideoTrackList.webidl b/dom/webidl/VideoTrackList.webidl index c111c41b3d10..144120226c4c 100644 --- a/dom/webidl/VideoTrackList.webidl +++ b/dom/webidl/VideoTrackList.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/VisualViewport.webidl b/dom/webidl/VisualViewport.webidl index 289e78a7310c..25c25cd1897c 100644 --- a/dom/webidl/VisualViewport.webidl +++ b/dom/webidl/VisualViewport.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WaveShaperNode.webidl b/dom/webidl/WaveShaperNode.webidl index ac07214dd0f3..0bea44c8ca77 100644 --- a/dom/webidl/WaveShaperNode.webidl +++ b/dom/webidl/WaveShaperNode.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebAuthentication.webidl b/dom/webidl/WebAuthentication.webidl index 7e18c2a367d4..f9a6df415754 100644 --- a/dom/webidl/WebAuthentication.webidl +++ b/dom/webidl/WebAuthentication.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -12,138 +11,138 @@ [SecureContext, Pref="security.webauth.webauthn"] interface PublicKeyCredential : Credential { - [SameObject] readonly attribute ArrayBuffer rawId; - [SameObject] readonly attribute AuthenticatorResponse response; - AuthenticationExtensionsClientOutputs getClientExtensionResults(); + [SameObject] readonly attribute ArrayBuffer rawId; + [SameObject] readonly attribute AuthenticatorResponse response; + AuthenticationExtensionsClientOutputs getClientExtensionResults(); }; [SecureContext] partial interface PublicKeyCredential { - static Promise isUserVerifyingPlatformAuthenticatorAvailable(); + static Promise isUserVerifyingPlatformAuthenticatorAvailable(); }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer clientDataJSON; + [SameObject] readonly attribute ArrayBuffer clientDataJSON; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAttestationResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer attestationObject; + [SameObject] readonly attribute ArrayBuffer attestationObject; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAssertionResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer authenticatorData; - [SameObject] readonly attribute ArrayBuffer signature; - [SameObject] readonly attribute ArrayBuffer? userHandle; + [SameObject] readonly attribute ArrayBuffer authenticatorData; + [SameObject] readonly attribute ArrayBuffer signature; + [SameObject] readonly attribute ArrayBuffer? userHandle; }; dictionary PublicKeyCredentialParameters { - required PublicKeyCredentialType type; - required COSEAlgorithmIdentifier alg; + required PublicKeyCredentialType type; + required COSEAlgorithmIdentifier alg; }; dictionary PublicKeyCredentialCreationOptions { - required PublicKeyCredentialRpEntity rp; - required PublicKeyCredentialUserEntity user; + required PublicKeyCredentialRpEntity rp; + required PublicKeyCredentialUserEntity user; - required BufferSource challenge; - required sequence pubKeyCredParams; + required BufferSource challenge; + required sequence pubKeyCredParams; - unsigned long timeout; - sequence excludeCredentials = []; - AuthenticatorSelectionCriteria authenticatorSelection; - AttestationConveyancePreference attestation = "none"; - AuthenticationExtensionsClientInputs extensions; + unsigned long timeout; + sequence excludeCredentials = []; + AuthenticatorSelectionCriteria authenticatorSelection; + AttestationConveyancePreference attestation = "none"; + AuthenticationExtensionsClientInputs extensions; }; dictionary PublicKeyCredentialEntity { - required DOMString name; - USVString icon; + required DOMString name; + USVString icon; }; dictionary PublicKeyCredentialRpEntity : PublicKeyCredentialEntity { - DOMString id; + DOMString id; }; dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity { - required BufferSource id; - required DOMString displayName; + required BufferSource id; + required DOMString displayName; }; dictionary AuthenticatorSelectionCriteria { - AuthenticatorAttachment authenticatorAttachment; - boolean requireResidentKey = false; - UserVerificationRequirement userVerification = "preferred"; + AuthenticatorAttachment authenticatorAttachment; + boolean requireResidentKey = false; + UserVerificationRequirement userVerification = "preferred"; }; enum AuthenticatorAttachment { - "platform", // Platform attachment - "cross-platform" // Cross-platform attachment + "platform", // Platform attachment + "cross-platform" // Cross-platform attachment }; enum AttestationConveyancePreference { - "none", - "indirect", - "direct" + "none", + "indirect", + "direct" }; enum UserVerificationRequirement { - "required", - "preferred", - "discouraged" + "required", + "preferred", + "discouraged" }; dictionary PublicKeyCredentialRequestOptions { - required BufferSource challenge; - unsigned long timeout; - USVString rpId; - sequence allowCredentials = []; - UserVerificationRequirement userVerification = "preferred"; - AuthenticationExtensionsClientInputs extensions; + required BufferSource challenge; + unsigned long timeout; + USVString rpId; + sequence allowCredentials = []; + UserVerificationRequirement userVerification = "preferred"; + AuthenticationExtensionsClientInputs extensions; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientInputs { - // FIDO AppID Extension (appid) - // - USVString appid; + // FIDO AppID Extension (appid) + // + USVString appid; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientOutputs { - // FIDO AppID Extension (appid) - // - boolean appid; + // FIDO AppID Extension (appid) + // + boolean appid; }; typedef record AuthenticationExtensionsAuthenticatorInputs; dictionary CollectedClientData { - required DOMString type; - required DOMString challenge; - required DOMString origin; - required DOMString hashAlgorithm; - DOMString tokenBindingId; - AuthenticationExtensionsClientInputs clientExtensions; - AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; + required DOMString type; + required DOMString challenge; + required DOMString origin; + required DOMString hashAlgorithm; + DOMString tokenBindingId; + AuthenticationExtensionsClientInputs clientExtensions; + AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; }; enum PublicKeyCredentialType { - "public-key" + "public-key" }; dictionary PublicKeyCredentialDescriptor { - required PublicKeyCredentialType type; - required BufferSource id; - sequence transports; + required PublicKeyCredentialType type; + required BufferSource id; + sequence transports; }; enum AuthenticatorTransport { - "usb", - "nfc", - "ble" + "usb", + "nfc", + "ble" }; typedef long COSEAlgorithmIdentifier; @@ -156,7 +155,7 @@ typedef BufferSource AAGUID; // FIDO AppID Extension (appid) // partial dictionary AuthenticationExtensionsClientInputs { - USVString appid; + USVString appid; }; // FIDO AppID Extension (appid) diff --git a/dom/webidl/WebComponents.webidl b/dom/webidl/WebComponents.webidl index 9e946aa99594..23343fd8d932 100644 --- a/dom/webidl/WebComponents.webidl +++ b/dom/webidl/WebComponents.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebGLContextEvent.webidl b/dom/webidl/WebGLContextEvent.webidl index ec89af14181e..8b227da72964 100644 --- a/dom/webidl/WebGLContextEvent.webidl +++ b/dom/webidl/WebGLContextEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebGPUExtras.webidl b/dom/webidl/WebGPUExtras.webidl index 32831567fc3f..ad38d509b893 100644 --- a/dom/webidl/WebGPUExtras.webidl +++ b/dom/webidl/WebGPUExtras.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebKitCSSMatrix.webidl b/dom/webidl/WebKitCSSMatrix.webidl index 3b576287cfd8..8115711a3398 100644 --- a/dom/webidl/WebKitCSSMatrix.webidl +++ b/dom/webidl/WebKitCSSMatrix.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. @@ -14,27 +13,27 @@ Exposed=Window, Func="mozilla::dom::WebKitCSSMatrix::FeatureEnabled"] interface WebKitCSSMatrix : DOMMatrix { - // Mutable transform methods - [Throws] - WebKitCSSMatrix setMatrixValue(DOMString transformList); + // Mutable transform methods + [Throws] + WebKitCSSMatrix setMatrixValue(DOMString transformList); - // Immutable transform methods - WebKitCSSMatrix multiply(WebKitCSSMatrix other); - [Throws] - WebKitCSSMatrix inverse(); - WebKitCSSMatrix translate(optional unrestricted double tx = 0, - optional unrestricted double ty = 0, - optional unrestricted double tz = 0); - WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, - optional unrestricted double scaleY, - optional unrestricted double scaleZ = 1); - WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, - optional unrestricted double rotY, - optional unrestricted double rotZ); - WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, - optional unrestricted double y = 0, - optional unrestricted double z = 0, - optional unrestricted double angle = 0); - WebKitCSSMatrix skewX(optional unrestricted double sx = 0); - WebKitCSSMatrix skewY(optional unrestricted double sy = 0); + // Immutable transform methods + WebKitCSSMatrix multiply(WebKitCSSMatrix other); + [Throws] + WebKitCSSMatrix inverse(); + WebKitCSSMatrix translate(optional unrestricted double tx = 0, + optional unrestricted double ty = 0, + optional unrestricted double tz = 0); + WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, + optional unrestricted double scaleY, + optional unrestricted double scaleZ = 1); + WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, + optional unrestricted double rotY, + optional unrestricted double rotZ); + WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, + optional unrestricted double y = 0, + optional unrestricted double z = 0, + optional unrestricted double angle = 0); + WebKitCSSMatrix skewX(optional unrestricted double sx = 0); + WebKitCSSMatrix skewY(optional unrestricted double sy = 0); }; diff --git a/dom/webidl/WebSocket.webidl b/dom/webidl/WebSocket.webidl index 11d6e132e00c..d656baf7fb09 100644 --- a/dom/webidl/WebSocket.webidl +++ b/dom/webidl/WebSocket.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebrtcDeprecated.webidl b/dom/webidl/WebrtcDeprecated.webidl index a1d9d226494e..bd939ba8ceec 100644 --- a/dom/webidl/WebrtcDeprecated.webidl +++ b/dom/webidl/WebrtcDeprecated.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WebrtcGlobalInformation.webidl b/dom/webidl/WebrtcGlobalInformation.webidl index f730f9c34cb2..cdda0993d101 100644 --- a/dom/webidl/WebrtcGlobalInformation.webidl +++ b/dom/webidl/WebrtcGlobalInformation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WheelEvent.webidl b/dom/webidl/WheelEvent.webidl index 36b06eb6a786..0c89bc73eee0 100644 --- a/dom/webidl/WheelEvent.webidl +++ b/dom/webidl/WheelEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WidevineCDMManifest.webidl b/dom/webidl/WidevineCDMManifest.webidl index 5b4a7dad9228..83e14e0b0b69 100644 --- a/dom/webidl/WidevineCDMManifest.webidl +++ b/dom/webidl/WidevineCDMManifest.webidl @@ -1,15 +1,15 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -dictionary WidevineCDMManifest { - required DOMString name; - required DOMString description; - required DOMString version; - required DOMString x-cdm-module-versions; - required DOMString x-cdm-interface-versions; - required DOMString x-cdm-host-versions; - required DOMString x-cdm-codecs; -}; +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * 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/. + */ + +dictionary WidevineCDMManifest { + required DOMString name; + required DOMString description; + required DOMString version; + required DOMString x-cdm-module-versions; + required DOMString x-cdm-interface-versions; + required DOMString x-cdm-host-versions; + required DOMString x-cdm-codecs; +}; diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl index 79896b35e211..6ca2c8e2ab28 100644 --- a/dom/webidl/Window.webidl +++ b/dom/webidl/Window.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WindowOrWorkerGlobalScope.webidl b/dom/webidl/WindowOrWorkerGlobalScope.webidl index cabbde09d036..32e9966553de 100644 --- a/dom/webidl/WindowOrWorkerGlobalScope.webidl +++ b/dom/webidl/WindowOrWorkerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WindowRoot.webidl b/dom/webidl/WindowRoot.webidl index 826581fe73f0..0ddb1a9fb685 100644 --- a/dom/webidl/WindowRoot.webidl +++ b/dom/webidl/WindowRoot.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/Worker.webidl b/dom/webidl/Worker.webidl index 12be666310ad..b4ce05003fc7 100644 --- a/dom/webidl/Worker.webidl +++ b/dom/webidl/Worker.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerDebuggerGlobalScope.webidl b/dom/webidl/WorkerDebuggerGlobalScope.webidl index 352345d6f7a1..16850589a61c 100644 --- a/dom/webidl/WorkerDebuggerGlobalScope.webidl +++ b/dom/webidl/WorkerDebuggerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/WorkerGlobalScope.webidl b/dom/webidl/WorkerGlobalScope.webidl index 72a6750f2a66..9b4342ed8aec 100644 --- a/dom/webidl/WorkerGlobalScope.webidl +++ b/dom/webidl/WorkerGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerLocation.webidl b/dom/webidl/WorkerLocation.webidl index 1ac648d63732..23fc478d8060 100644 --- a/dom/webidl/WorkerLocation.webidl +++ b/dom/webidl/WorkerLocation.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkerNavigator.webidl b/dom/webidl/WorkerNavigator.webidl index 6211e1dd0b34..5cfa2eec3791 100644 --- a/dom/webidl/WorkerNavigator.webidl +++ b/dom/webidl/WorkerNavigator.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ diff --git a/dom/webidl/Worklet.webidl b/dom/webidl/Worklet.webidl index 402926eda86a..7b22874e48f8 100644 --- a/dom/webidl/Worklet.webidl +++ b/dom/webidl/Worklet.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/WorkletGlobalScope.webidl b/dom/webidl/WorkletGlobalScope.webidl index 48a11f92625c..c4b684d20685 100644 --- a/dom/webidl/WorkletGlobalScope.webidl +++ b/dom/webidl/WorkletGlobalScope.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLDocument.webidl b/dom/webidl/XMLDocument.webidl index 889d4cfcd3cb..1db8952ad554 100644 --- a/dom/webidl/XMLDocument.webidl +++ b/dom/webidl/XMLDocument.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequest.webidl b/dom/webidl/XMLHttpRequest.webidl index 7681d08ea3b8..2814e57789fe 100644 --- a/dom/webidl/XMLHttpRequest.webidl +++ b/dom/webidl/XMLHttpRequest.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequestEventTarget.webidl b/dom/webidl/XMLHttpRequestEventTarget.webidl index 96afd86d9add..035da04ccd0f 100644 --- a/dom/webidl/XMLHttpRequestEventTarget.webidl +++ b/dom/webidl/XMLHttpRequestEventTarget.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLHttpRequestUpload.webidl b/dom/webidl/XMLHttpRequestUpload.webidl index 65cd306aeada..cbb8728b7a4a 100644 --- a/dom/webidl/XMLHttpRequestUpload.webidl +++ b/dom/webidl/XMLHttpRequestUpload.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XMLSerializer.webidl b/dom/webidl/XMLSerializer.webidl index 63dcfca12071..c337ba45113c 100644 --- a/dom/webidl/XMLSerializer.webidl +++ b/dom/webidl/XMLSerializer.webidl @@ -1,5 +1,3 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathEvaluator.webidl b/dom/webidl/XPathEvaluator.webidl index da8e842b12b5..636048757bbc 100644 --- a/dom/webidl/XPathEvaluator.webidl +++ b/dom/webidl/XPathEvaluator.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathExpression.webidl b/dom/webidl/XPathExpression.webidl index f0c2ad1968e6..90bc603f82e1 100644 --- a/dom/webidl/XPathExpression.webidl +++ b/dom/webidl/XPathExpression.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathNSResolver.webidl b/dom/webidl/XPathNSResolver.webidl index 62ed6369bace..6309ff38c1c6 100644 --- a/dom/webidl/XPathNSResolver.webidl +++ b/dom/webidl/XPathNSResolver.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XPathResult.webidl b/dom/webidl/XPathResult.webidl index a3667bb0b72a..d50063771d62 100644 --- a/dom/webidl/XPathResult.webidl +++ b/dom/webidl/XPathResult.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XSLTProcessor.webidl b/dom/webidl/XSLTProcessor.webidl index 82d74bf9947b..278ca94b5aba 100644 --- a/dom/webidl/XSLTProcessor.webidl +++ b/dom/webidl/XSLTProcessor.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ @@ -8,103 +7,103 @@ interface nsIVariant; [Constructor] interface XSLTProcessor { - /** - * Import the stylesheet into this XSLTProcessor for transformations. - * - * @param style The root-node of a XSLT stylesheet. This can be either - * a document node or an element node. If a document node - * then the document can contain either a XSLT stylesheet - * or a LRE stylesheet. - * If the argument is an element node it must be the - * xsl:stylesheet (or xsl:transform) element of an XSLT - * stylesheet. - */ - [Throws] - void importStylesheet(Node style); + /** + * Import the stylesheet into this XSLTProcessor for transformations. + * + * @param style The root-node of a XSLT stylesheet. This can be either + * a document node or an element node. If a document node + * then the document can contain either a XSLT stylesheet + * or a LRE stylesheet. + * If the argument is an element node it must be the + * xsl:stylesheet (or xsl:transform) element of an XSLT + * stylesheet. + */ + [Throws] + void importStylesheet(Node style); - /** - * Transforms the node source applying the stylesheet given by - * the importStylesheet() function. The owner document of the output node - * owns the returned document fragment. - * - * @param source The node to be transformed - * @param output This document is used to generate the output - * @return DocumentFragment The result of the transformation - */ - [CEReactions, Throws] - DocumentFragment transformToFragment(Node source, - Document output); + /** + * Transforms the node source applying the stylesheet given by + * the importStylesheet() function. The owner document of the output node + * owns the returned document fragment. + * + * @param source The node to be transformed + * @param output This document is used to generate the output + * @return DocumentFragment The result of the transformation + */ + [CEReactions, Throws] + DocumentFragment transformToFragment(Node source, + Document output); - /** - * Transforms the node source applying the stylesheet given by the - * importStylesheet() function. - * - * @param source The node to be transformed - * @return Document The result of the transformation - */ - [CEReactions, Throws] - Document transformToDocument(Node source); + /** + * Transforms the node source applying the stylesheet given by the + * importStylesheet() function. + * + * @param source The node to be transformed + * @return Document The result of the transformation + */ + [CEReactions, Throws] + Document transformToDocument(Node source); - /** - * Sets a parameter to be used in subsequent transformations with this - * XSLTProcessor. If the parameter doesn't exist in the stylesheet the - * parameter will be ignored. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @param value The new value of the XSLT parameter - */ - [Throws] - void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName, - any value); + /** + * Sets a parameter to be used in subsequent transformations with this + * XSLTProcessor. If the parameter doesn't exist in the stylesheet the + * parameter will be ignored. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @param value The new value of the XSLT parameter + */ + [Throws] + void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName, + any value); - /** - * Gets a parameter if previously set by setParameter. Returns null - * otherwise. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @return nsIVariant The value of the XSLT parameter - */ - [Throws] - nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); - /** - * Removes a parameter, if set. This will make the processor use the - * default-value for the parameter as specified in the stylesheet. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - */ - [Throws] - void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); + /** + * Gets a parameter if previously set by setParameter. Returns null + * otherwise. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @return nsIVariant The value of the XSLT parameter + */ + [Throws] + nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); + /** + * Removes a parameter, if set. This will make the processor use the + * default-value for the parameter as specified in the stylesheet. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + */ + [Throws] + void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); - /** - * Removes all set parameters from this XSLTProcessor. This will make - * the processor use the default-value for all parameters as specified in - * the stylesheet. - */ - void clearParameters(); + /** + * Removes all set parameters from this XSLTProcessor. This will make + * the processor use the default-value for all parameters as specified in + * the stylesheet. + */ + void clearParameters(); - /** - * Remove all parameters and stylesheets from this XSLTProcessor. - */ - void reset(); + /** + * Remove all parameters and stylesheets from this XSLTProcessor. + */ + void reset(); - /** + /** * Disables all loading of external documents, such as from * and document() * Defaults to off and is *not* reset by calls to reset() */ - [ChromeOnly] - const unsigned long DISABLE_ALL_LOADS = 1; + [ChromeOnly] + const unsigned long DISABLE_ALL_LOADS = 1; - /** + /** * Flags for this processor. Defaults to 0. See individual flags above * for documentation for effect of reset() */ - [ChromeOnly, NeedsCallerType] - attribute unsigned long flags; + [ChromeOnly, NeedsCallerType] + attribute unsigned long flags; }; diff --git a/dom/webidl/XULCommandEvent.webidl b/dom/webidl/XULCommandEvent.webidl index 48614f112470..898f221ade82 100644 --- a/dom/webidl/XULCommandEvent.webidl +++ b/dom/webidl/XULCommandEvent.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULDocument.webidl b/dom/webidl/XULDocument.webidl index e40fe4220dd4..523d4a18fa8a 100644 --- a/dom/webidl/XULDocument.webidl +++ b/dom/webidl/XULDocument.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULElement.webidl b/dom/webidl/XULElement.webidl index d3f7cf61f306..3841c447ad96 100644 --- a/dom/webidl/XULElement.webidl +++ b/dom/webidl/XULElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. diff --git a/dom/webidl/XULPopupElement.webidl b/dom/webidl/XULPopupElement.webidl index 7933b103111a..a6e5b7b2dcff 100644 --- a/dom/webidl/XULPopupElement.webidl +++ b/dom/webidl/XULPopupElement.webidl @@ -1,5 +1,4 @@ -/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */ From c4f0d026243e3c36b6e76125424d081466a74498 Mon Sep 17 00:00:00 2001 From: Rob Wood Date: Thu, 13 Sep 2018 19:17:10 +0000 Subject: [PATCH 15/40] Bug 1478775 - Mark raptor test failed if any one test page times out r=jmaher Differential Revision: https://phabricator.services.mozilla.com/D5463 --HG-- extra : moz-landing-system : lando --- testing/raptor/raptor/control_server.py | 4 ++++ testing/raptor/raptor/raptor.py | 15 ++++++++++++++- testing/raptor/raptor/results.py | 4 ++++ testing/raptor/raptor/tests/raptor-gdocs.ini | 2 +- testing/raptor/webext/raptor/runner.js | 7 +++---- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/testing/raptor/raptor/control_server.py b/testing/raptor/raptor/control_server.py index 135cf2fe489c..1a637f5de9aa 100644 --- a/testing/raptor/raptor/control_server.py +++ b/testing/raptor/raptor/control_server.py @@ -62,6 +62,10 @@ def MakeCustomHandlerClass(results_handler, shutdown_browser): LOG.info("received " + data['type'] + ": " + str(data['data'])) if data['type'] == 'webext_results': self.results_handler.add(data['data']) + elif data['type'] == "webext_raptor-page-timeout": + # pageload test has timed out; record it as a failure + self.results_handler.add_page_timeout(str(data['data'][0]), + str(data['data'][1])) elif data['data'] == "__raptor_shutdownBrowser": # webext is telling us it's done, and time to shutdown the browser self.shutdown_browser() diff --git a/testing/raptor/raptor/raptor.py b/testing/raptor/raptor/raptor.py index 052276e82816..642c79b60ce4 100644 --- a/testing/raptor/raptor/raptor.py +++ b/testing/raptor/raptor/raptor.py @@ -270,6 +270,9 @@ class Raptor(object): self.config['raptor_json_path'] = raptor_json_path return self.results_handler.summarize_and_output(self.config) + def get_page_timeout_list(self): + return self.results_handler.page_timeout_list + def clean_up(self): self.control_server.stop() if self.config['app'] != "geckoview": @@ -319,7 +322,17 @@ def main(args=sys.argv[1:]): if not success: # didn't get test results; test timed out or crashed, etc. we want job to fail - LOG.critical("error: no raptor test results were found") + LOG.critical("TEST-UNEXPECTED-FAIL: no raptor test results were found") + os.sys.exit(1) + + # if we have results but one test page timed out (i.e. one tp6 test page didn't load + # but others did) we still dumped PERFHERDER_DATA for the successfull pages but we + # want the overall test job to marked as a failure + pages_that_timed_out = raptor.get_page_timeout_list() + if len(pages_that_timed_out) > 0: + for _page in pages_that_timed_out: + LOG.critical("TEST-UNEXPECTED-FAIL: test '%s' timed out loading test page: %s" + % (_page['test_name'], _page['url'])) os.sys.exit(1) diff --git a/testing/raptor/raptor/results.py b/testing/raptor/raptor/results.py index 0ed8f6aaa626..eac4517efeaf 100644 --- a/testing/raptor/raptor/results.py +++ b/testing/raptor/raptor/results.py @@ -18,6 +18,7 @@ class RaptorResultsHandler(): def __init__(self): self.results = [] + self.page_timeout_list = [] def add(self, new_result_json): # add to results @@ -25,6 +26,9 @@ class RaptorResultsHandler(): new_result = RaptorTestResult(new_result_json) self.results.append(new_result) + def add_page_timeout(self, test_name, page_url): + self.page_timeout_list.append({'test_name': test_name, 'url': page_url}) + def summarize_and_output(self, test_config): # summarize the result data, write to file and output PERFHERDER_DATA LOG.info("summarizing raptor test results") diff --git a/testing/raptor/raptor/tests/raptor-gdocs.ini b/testing/raptor/raptor/tests/raptor-gdocs.ini index 661c38636829..5615083b6eb7 100644 --- a/testing/raptor/raptor/tests/raptor-gdocs.ini +++ b/testing/raptor/raptor/tests/raptor-gdocs.ini @@ -14,7 +14,7 @@ page_cycles = 25 unit = ms lower_is_better = true alert_threshold = 2.0 -page_timeout = 30000 +page_timeout = 60000 [raptor-google-docs-firefox] apps = firefox diff --git a/testing/raptor/webext/raptor/runner.js b/testing/raptor/webext/raptor/runner.js index aa96e7b08977..d852ee7c335f 100644 --- a/testing/raptor/webext/raptor/runner.js +++ b/testing/raptor/webext/raptor/runner.js @@ -226,10 +226,9 @@ function nextCycle() { } } -function timeoutAlarmListener(alarm) { - var text = alarm.name; - console.error(text); - postToControlServer("status", text); +function timeoutAlarmListener() { + console.error("raptor-page-timeout on %s" % testURL); + postToControlServer("raptor-page-timeout", [testName, testURL]); // call clean-up to shutdown gracefully cleanUp(); } From dbe377ea8bbfb813ad3c0e73e1dbcd321a509c95 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Thu, 13 Sep 2018 20:13:23 +0000 Subject: [PATCH 16/40] Bug 1478419 - Handle optional 'm' symbol in breakpad symbols. r=mstange MozReview-Commit-ID: JwQJY75tQ4s Differential Revision: https://phabricator.services.mozilla.com/D5492 --HG-- extra : moz-landing-system : lando --- testing/talos/talos/profiler/symFileManager.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/testing/talos/talos/profiler/symFileManager.py b/testing/talos/talos/profiler/symFileManager.py index 4c0a82906a66..048de6fd28a8 100755 --- a/testing/talos/talos/profiler/symFileManager.py +++ b/testing/talos/talos/profiler/symFileManager.py @@ -130,8 +130,12 @@ class SymFileManager: if len(fields) < 4: LogTrace("Line " + str(lineNum) + " is messed") continue - address = int(fields[1], 16) - symbolMap[address] = " ".join(fields[3:]) + if fields[1] == "m": + address = int(fields[2], 16) + symbolMap[address] = " ".join(fields[4:]) + else: + address = int(fields[1], 16) + symbolMap[address] = " ".join(fields[3:]) publicCount += 1 elif line[0:5] == "FUNC ": line = line.rstrip() @@ -139,8 +143,12 @@ class SymFileManager: if len(fields) < 5: LogTrace("Line " + str(lineNum) + " is messed") continue - address = int(fields[1], 16) - symbolMap[address] = " ".join(fields[4:]) + if fields[1] == "m": + address = int(fields[2], 16) + symbolMap[address] = " ".join(fields[5:]) + else: + address = int(fields[1], 16) + symbolMap[address] = " ".join(fields[4:]) funcCount += 1 elif path.endswith(".nmsym"): addressLength = 0 From b88a6c78c3c99456562ca003c977fd6578b11071 Mon Sep 17 00:00:00 2001 From: "Nils Ohlmeier [:drno]" Date: Thu, 13 Sep 2018 03:53:33 +0000 Subject: [PATCH 17/40] Bug 1479665 - Summary: fix srtp updater script r=bwc Differential Revision: https://phabricator.services.mozilla.com/D2748 --HG-- extra : moz-landing-system : lando --- netwerk/srtp/update_srtp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/srtp/update_srtp.sh b/netwerk/srtp/update_srtp.sh index 9a45bfb38c07..61fa7c4518cd 100644 --- a/netwerk/srtp/update_srtp.sh +++ b/netwerk/srtp/update_srtp.sh @@ -16,7 +16,7 @@ if [ "$1" ] ; then DATE=`date` REVISION=`(cd $1; git log --pretty=oneline | head -1 | cut -c 1-40)` - cp -rf $1/srtp $1/crypto $1/include $1/test $1/VERSION $1/LICENSE $1/README.md netwerk/srtp/src + cp -rf $1/srtp $1/crypto $1/include $1/test $1/LICENSE $1/README.md netwerk/srtp/src hg addremove netwerk/srtp/src --include "netwerk/srtp/src/VERSION" --include "netwerk/srtp/src/LICENSE" --include "netwerk/srtp/src/README.md" --include "**.c" --include "**.h" --similarity 90 From 77d354dda194ed5af780c0bd597fdeaece679e2b Mon Sep 17 00:00:00 2001 From: "Nils Ohlmeier [:drno]" Date: Thu, 13 Sep 2018 17:38:50 +0000 Subject: [PATCH 18/40] Bug 1479665: add GCM ciphers to SrtpFlow. r=bwc add GCM ciphers to SrtpFlow Differential Revision: https://phabricator.services.mozilla.com/D5731 --HG-- extra : moz-landing-system : lando --- media/mtransport/SrtpFlow.cpp | 25 +++++++++++- media/mtransport/SrtpFlow.h | 14 +++++-- media/mtransport/test/transport_unittests.cpp | 20 +++++++++- media/mtransport/transportlayersrtp.cpp | 38 +++++++++---------- .../gtest/mediapipeline_unittest.cpp | 2 +- .../peerconnection/PeerConnectionMedia.cpp | 2 + 6 files changed, 76 insertions(+), 25 deletions(-) diff --git a/media/mtransport/SrtpFlow.cpp b/media/mtransport/SrtpFlow.cpp index 466e553ce3ab..60670ea5fc74 100644 --- a/media/mtransport/SrtpFlow.cpp +++ b/media/mtransport/SrtpFlow.cpp @@ -26,6 +26,16 @@ SrtpFlow::~SrtpFlow() { } } +unsigned int SrtpFlow::KeySize(int cipher_suite) { + srtp_profile_t profile = static_cast(cipher_suite); + return srtp_profile_get_master_key_length(profile); +} + +unsigned int SrtpFlow::SaltSize(int cipher_suite) { + srtp_profile_t profile = static_cast(cipher_suite); + return srtp_profile_get_master_salt_length(profile); +} + RefPtr SrtpFlow::Create(int cipher_suite, bool inbound, const void *key, @@ -41,7 +51,8 @@ RefPtr SrtpFlow::Create(int cipher_suite, return nullptr; } - if (key_len != SRTP_TOTAL_KEY_LENGTH) { + if ((key_len > SRTP_MAX_KEY_LENGTH) || + (key_len < SRTP_MIN_KEY_LENGTH)) { MOZ_MTLOG(ML_ERROR, "Invalid SRTP key length"); return nullptr; } @@ -52,6 +63,18 @@ RefPtr SrtpFlow::Create(int cipher_suite, // Note that we set the same cipher suite for RTP and RTCP // since any flow can only have one cipher suite with DTLS-SRTP switch (cipher_suite) { + case kDtlsSrtpAeadAes256Gcm: + MOZ_MTLOG(ML_DEBUG, + "Setting SRTP cipher suite SRTP_AEAD_AES_256_GCM"); + srtp_crypto_policy_set_aes_gcm_256_16_auth(&policy.rtp); + srtp_crypto_policy_set_aes_gcm_256_16_auth(&policy.rtcp); + break; + case kDtlsSrtpAeadAes128Gcm: + MOZ_MTLOG(ML_DEBUG, + "Setting SRTP cipher suite SRTP_AEAD_AES_128_GCM"); + srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy.rtp); + srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy.rtcp); + break; case kDtlsSrtpAes128CmHmacSha1_80: MOZ_MTLOG(ML_DEBUG, "Setting SRTP cipher suite SRTP_AES128_CM_HMAC_SHA1_80"); diff --git a/media/mtransport/SrtpFlow.h b/media/mtransport/SrtpFlow.h index 72b184004930..c6ea395a43c3 100644 --- a/media/mtransport/SrtpFlow.h +++ b/media/mtransport/SrtpFlow.h @@ -13,9 +13,15 @@ namespace mozilla { -#define SRTP_MASTER_KEY_LENGTH 16 -#define SRTP_MASTER_SALT_LENGTH 14 -#define SRTP_TOTAL_KEY_LENGTH (SRTP_MASTER_KEY_LENGTH + SRTP_MASTER_SALT_LENGTH) +#define SRTP_ICM_MASTER_KEY_LENGTH 16 +#define SRTP_ICM_MASTER_SALT_LENGTH 14 +#define SRTP_ICM_MAX_MASTER_LEGNTH (SRTP_ICM_MASTER_KEY_LENGTH + SRTP_ICM_MASTER_SALT_LENGTH) +#define SRTP_GCM_MASTER_KEY_LENGTH 32 +#define SRTP_GCM_MASTER_SALT_LENGTH 12 +#define SRTP_GCM_MAX_MASTER_LEGNTH (SRTP_GCM_MASTER_KEY_LENGTH + SRTP_GCM_MASTER_SALT_LENGTH) + +#define SRTP_MIN_KEY_LENGTH SRTP_ICM_MAX_MASTER_LEGNTH +#define SRTP_MAX_KEY_LENGTH SRTP_GCM_MAX_MASTER_LEGNTH // SRTCP requires an auth tag *plus* a 4-byte index-plus-'E'-bit value (see // RFC 3711) @@ -26,6 +32,8 @@ class SrtpFlow { ~SrtpFlow(); public: + static unsigned int KeySize(int cipher_suite); + static unsigned int SaltSize(int cipher_suite); static RefPtr Create(int cipher_suite, bool inbound, diff --git a/media/mtransport/test/transport_unittests.cpp b/media/mtransport/test/transport_unittests.cpp index 1fdeb01ee097..1c0f9a73a7b2 100644 --- a/media/mtransport/test/transport_unittests.cpp +++ b/media/mtransport/test/transport_unittests.cpp @@ -537,6 +537,8 @@ class TransportTestPeer : public sigslot::has_slots<> { void SetupSrtp() { // this mimics the setup we do elsewhere std::vector srtp_ciphers; + srtp_ciphers.push_back(kDtlsSrtpAeadAes256Gcm); + srtp_ciphers.push_back(kDtlsSrtpAeadAes128Gcm); srtp_ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); srtp_ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_32); @@ -1017,7 +1019,7 @@ TEST_F(TransportTest, TestConnectSrtp) { ASSERT_EQ(TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, p1_->cipherSuite()); // SRTP is on - ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); + ASSERT_EQ(kDtlsSrtpAeadAes256Gcm, p1_->srtpCipher()); } @@ -1409,6 +1411,22 @@ TEST_F(TransportTest, OnlyClientSendsSrtpXtn) { TransportLayer::TS_ERROR); } +TEST_F(TransportTest, TestSrtpFallback) { + std::vector setA; + setA.push_back(kDtlsSrtpAeadAes256Gcm); + setA.push_back(kDtlsSrtpAes128CmHmacSha1_80); + std::vector setB; + setB.push_back(kDtlsSrtpAes128CmHmacSha1_80); + + p1_->SetSrtpCiphers(setA); + p2_->SetSrtpCiphers(setB); + SetDtlsPeer(); + ConnectSocket(); + + ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); + ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); +} + // NSS doesn't support DHE suites on the server end. // This checks to see if we barf when that's the only option available. TEST_F(TransportTest, TestDheOnlyFails) { diff --git a/media/mtransport/transportlayersrtp.cpp b/media/mtransport/transportlayersrtp.cpp index 1dcdb8fe6f2a..d89a291bff8c 100644 --- a/media/mtransport/transportlayersrtp.cpp +++ b/media/mtransport/transportlayersrtp.cpp @@ -159,8 +159,13 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) return; } + unsigned int key_size = SrtpFlow::KeySize(cipher_suite); + unsigned int salt_size = SrtpFlow::SaltSize(cipher_suite); + unsigned int master_key_size = key_size + salt_size; + MOZ_ASSERT(master_key_size <= SRTP_MAX_KEY_LENGTH); + // SRTP Key Exporter as per RFC 5764 S 4.2 - unsigned char srtp_block[SRTP_TOTAL_KEY_LENGTH * 2]; + unsigned char srtp_block[SRTP_MAX_KEY_LENGTH * 2]; res = dtls->ExportKeyingMaterial( kDTLSExporterLabel, false, "", srtp_block, sizeof(srtp_block)); if (NS_FAILED(res)) { @@ -170,22 +175,17 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) } // Slice and dice as per RFC 5764 S 4.2 - unsigned char client_write_key[SRTP_TOTAL_KEY_LENGTH]; - unsigned char server_write_key[SRTP_TOTAL_KEY_LENGTH]; - int offset = 0; - memcpy(client_write_key, srtp_block + offset, SRTP_MASTER_KEY_LENGTH); - offset += SRTP_MASTER_KEY_LENGTH; - memcpy(server_write_key, srtp_block + offset, SRTP_MASTER_KEY_LENGTH); - offset += SRTP_MASTER_KEY_LENGTH; - memcpy(client_write_key + SRTP_MASTER_KEY_LENGTH, - srtp_block + offset, - SRTP_MASTER_SALT_LENGTH); - offset += SRTP_MASTER_SALT_LENGTH; - memcpy(server_write_key + SRTP_MASTER_KEY_LENGTH, - srtp_block + offset, - SRTP_MASTER_SALT_LENGTH); - offset += SRTP_MASTER_SALT_LENGTH; - MOZ_ASSERT(offset == sizeof(srtp_block)); + unsigned char client_write_key[SRTP_MAX_KEY_LENGTH]; + unsigned char server_write_key[SRTP_MAX_KEY_LENGTH]; + unsigned int offset = 0; + memcpy(client_write_key, srtp_block + offset, key_size); + offset += key_size; + memcpy(server_write_key, srtp_block + offset, key_size); + offset += key_size; + memcpy(client_write_key + key_size, srtp_block + offset, salt_size); + offset += salt_size; + memcpy(server_write_key + key_size, srtp_block + offset, salt_size); + MOZ_ASSERT((offset + salt_size) == (2 * master_key_size)); unsigned char* write_key; unsigned char* read_key; @@ -200,9 +200,9 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) MOZ_ASSERT(!mSendSrtp && !mRecvSrtp); mSendSrtp = - SrtpFlow::Create(cipher_suite, false, write_key, SRTP_TOTAL_KEY_LENGTH); + SrtpFlow::Create(cipher_suite, false, write_key, master_key_size); mRecvSrtp = - SrtpFlow::Create(cipher_suite, true, read_key, SRTP_TOTAL_KEY_LENGTH); + SrtpFlow::Create(cipher_suite, true, read_key, master_key_size); if (!mSendSrtp || !mRecvSrtp) { MOZ_MTLOG(ML_ERROR, "Couldn't create SRTP flow."); TL_SET_STATE(TS_ERROR); diff --git a/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp b/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp index eef0204d1d3b..4dfa997c9316 100644 --- a/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp +++ b/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp @@ -183,7 +183,7 @@ class TransportInfo { UniquePtr srtp(new TransportLayerSrtp(*dtls)); std::vector ciphers; - ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); + ciphers.push_back(kDtlsSrtpAeadAes256Gcm); dtls->SetSrtpCiphers(ciphers); dtls->SetIdentity(DtlsIdentity::Generate()); dtls->SetRole(client ? TransportLayerDtls::CLIENT : diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp index 441178979947..bd2082c35c96 100644 --- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp +++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp @@ -625,6 +625,8 @@ PeerConnectionMedia::UpdateTransportFlow(bool aIsRtcp, } std::vector srtpCiphers; + srtpCiphers.push_back(kDtlsSrtpAeadAes256Gcm); + srtpCiphers.push_back(kDtlsSrtpAeadAes128Gcm); srtpCiphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); srtpCiphers.push_back(kDtlsSrtpAes128CmHmacSha1_32); From 88b946bb6bccb3dc7ffa5d3d3253598738dc32ee Mon Sep 17 00:00:00 2001 From: "Nils Ohlmeier [:drno]" Date: Thu, 13 Sep 2018 14:39:31 +0000 Subject: [PATCH 19/40] Bug 1479665: update libsrtp to bb0412ee84ebe3d2916b45b19de72fabb183d9db. r=bwc update libsrtp to bb0412ee84ebe3d2916b45b19de72fabb183d9db Differential Revision: https://phabricator.services.mozilla.com/D5732 --HG-- extra : moz-landing-system : lando --- netwerk/srtp/src/crypto/Makefile.in | 119 ++++ netwerk/srtp/src/crypto/cipher/aes_gcm_nss.c | 596 ++++++++++++++++++ netwerk/srtp/src/crypto/cipher/aes_gcm_ossl.c | 582 +++++++++++++++++ netwerk/srtp/src/crypto/cipher/aes_icm.c | 1 + netwerk/srtp/src/crypto/cipher/aes_icm_nss.c | 550 ++++++++++++++++ netwerk/srtp/src/crypto/cipher/aes_icm_ossl.c | 540 ++++++++++++++++ netwerk/srtp/src/crypto/hash/hmac_ossl.c | 273 ++++++++ netwerk/srtp/src/crypto/include/aes_gcm.h | 87 +++ netwerk/srtp/src/crypto/include/aes_icm_ext.h | 81 +++ .../srtp/src/crypto/include/cipher_types.h | 35 +- netwerk/srtp/src/crypto/include/sha1.h | 2 +- netwerk/srtp/src/crypto/kernel/alloc.c | 12 +- .../srtp/src/crypto/kernel/crypto_kernel.c | 12 +- netwerk/srtp/src/crypto/math/datatypes.c | 8 +- netwerk/srtp/src/crypto/math/stat.c | 22 +- netwerk/srtp/src/crypto/test/cipher_driver.c | 52 +- .../srtp/src/crypto/test/datatypes_driver.c | 26 + netwerk/srtp/src/crypto/test/stat_driver.c | 12 +- netwerk/srtp/src/moz.build | 9 +- netwerk/srtp/src/srtp/ekt.c | 2 +- netwerk/srtp/src/srtp/srtp.c | 561 ++++++++--------- netwerk/srtp/src/test/getopt_s.c | 3 +- netwerk/srtp/src/test/rdbx_driver.c | 3 + netwerk/srtp/src/test/roc_driver.c | 2 +- netwerk/srtp/src/test/rtpw.c | 7 +- netwerk/srtp/src/test/rtpw_test.sh | 7 +- netwerk/srtp/src/test/rtpw_test_gcm.sh | 7 +- netwerk/srtp/src/test/srtp_driver.c | 58 +- netwerk/srtp/src/test/util.c | 5 +- netwerk/srtp/srtp_update.log | 1 + 30 files changed, 3265 insertions(+), 410 deletions(-) create mode 100644 netwerk/srtp/src/crypto/Makefile.in create mode 100644 netwerk/srtp/src/crypto/cipher/aes_gcm_nss.c create mode 100644 netwerk/srtp/src/crypto/cipher/aes_gcm_ossl.c create mode 100644 netwerk/srtp/src/crypto/cipher/aes_icm_nss.c create mode 100644 netwerk/srtp/src/crypto/cipher/aes_icm_ossl.c create mode 100644 netwerk/srtp/src/crypto/hash/hmac_ossl.c create mode 100644 netwerk/srtp/src/crypto/include/aes_gcm.h create mode 100644 netwerk/srtp/src/crypto/include/aes_icm_ext.h diff --git a/netwerk/srtp/src/crypto/Makefile.in b/netwerk/srtp/src/crypto/Makefile.in new file mode 100644 index 000000000000..44f29ad2cf1e --- /dev/null +++ b/netwerk/srtp/src/crypto/Makefile.in @@ -0,0 +1,119 @@ +# Makefile for crypto test suite +# +# David A. McGrew +# Cisco Systems, Inc. + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = @top_builddir@ +VPATH = @srcdir@ + +CC = @CC@ +INCDIR = -Iinclude -I$(srcdir)/include -I$(top_srcdir)/include +DEFS = @DEFS@ +CPPFLAGS= @CPPFLAGS@ +CFLAGS = @CFLAGS@ +LIBS = @LIBS@ +LDFLAGS = @LDFLAGS@ -L. -L.. +COMPILE = $(CC) $(DEFS) $(INCDIR) $(CPPFLAGS) $(CFLAGS) +CRYPTOLIB = -lsrtp2 +CRYPTO_LIBDIR = @CRYPTO_LIBDIR@ + +RANLIB = @RANLIB@ + +# Specify how tests should find shared libraries on macOS and Linux +# +# macOS purges DYLD_LIBRARY_PATH when spawning subprocesses, so it's +# not possible to pass this in from the outside; we have to specify +# it for any subprocesses we call. No support for dynamic linked +# tests on Windows. +ifneq ($(strip $(CRYPTO_LIBDIR)),) + ifneq ($(OS),Windows_NT) + UNAME_S = $(shell uname -s) + ifeq ($(UNAME_S),Linux) + FIND_LIBRARIES = LD_LIBRARY_PATH=$(CRYPTO_LIBDIR) + endif + ifeq ($(UNAME_S),Darwin) + FIND_LIBRARIES = DYLD_LIBRARY_PATH=$(CRYPTO_LIBDIR) + endif + endif +endif + +# EXE defines the suffix on executables - it's .exe for cygwin, and +# null on linux, bsd, and OS X and other OSes. we define this so that +# `make clean` will work on the cygwin platform +EXE = @EXE@ +# Random source. +USE_EXTERNAL_CRYPTO = @USE_EXTERNAL_CRYPTO@ + +ifdef ARCH + DEFS += -D$(ARCH)=1 +endif + +ifdef sysname + DEFS += -D$(sysname)=1 +endif + +.PHONY: dummy all runtest clean superclean + +dummy : all runtest + +# test applications +ifneq (1, $(USE_EXTERNAL_CRYPTO)) +AES_CALC = test/aes_calc$(EXE) +endif + +testapp = test/cipher_driver$(EXE) test/datatypes_driver$(EXE) \ + test/stat_driver$(EXE) test/sha1_driver$(EXE) \ + test/kernel_driver$(EXE) $(AES_CALC) \ + test/env$(EXE) + +# data values used to test the aes_calc application for AES-128 +k128=000102030405060708090a0b0c0d0e0f +p128=00112233445566778899aabbccddeeff +c128=69c4e0d86a7b0430d8cdb78070b4c55a + + +# data values used to test the aes_calc application for AES-256 +k256=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f +p256=00112233445566778899aabbccddeeff +c256=8ea2b7ca516745bfeafc49904b496089 + + +runtest: $(testapp) + $(FIND_LIBRARIES) test/env$(EXE) # print out information on the build environment + @echo "running crypto test applications..." +ifneq (1, $(USE_EXTERNAL_CRYPTO)) + $(FIND_LIBRARIES) test `test/aes_calc $(k128) $(p128)` = $(c128) + $(FIND_LIBRARIES) test `test/aes_calc $(k256) $(p256)` = $(c256) +endif + $(FIND_LIBRARIES) test/cipher_driver$(EXE) -v >/dev/null + $(FIND_LIBRARIES) test/datatypes_driver$(EXE) -v >/dev/null + $(FIND_LIBRARIES) test/stat_driver$(EXE) >/dev/null + $(FIND_LIBRARIES) test/sha1_driver$(EXE) -v >/dev/null + $(FIND_LIBRARIES) test/kernel_driver$(EXE) -v >/dev/null + @echo "crypto test applications passed." + + +# the rule for making object files and test apps + +%.o: %.c + $(COMPILE) -c $< -o $@ + +%$(EXE): %.c $(srcdir)/../test/getopt_s.c + $(COMPILE) $(LDFLAGS) $< $(srcdir)/../test/getopt_s.c -o $@ $(CRYPTOLIB) $(LIBS) + +all: $(testapp) + +# housekeeping functions + +clean: + rm -f $(testapp) *.o */*.o + for a in * .* */*; do if [ -f "$$a~" ] ; then rm $$a~; fi; done; + rm -f `find . -name "*.[ch]~*~"` + rm -rf latex + +superclean: clean + rm -f *core TAGS ktrace.out + +# EOF diff --git a/netwerk/srtp/src/crypto/cipher/aes_gcm_nss.c b/netwerk/srtp/src/crypto/cipher/aes_gcm_nss.c new file mode 100644 index 000000000000..e1fdbe36fbf8 --- /dev/null +++ b/netwerk/srtp/src/crypto/cipher/aes_gcm_nss.c @@ -0,0 +1,596 @@ +/* + * aes_gcm_nss.c + * + * AES Galois Counter Mode + * + * Richard L. Barnes + * Cisco Systems, Inc. + * + */ + +/* + * + * Copyright (c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "aes_gcm.h" +#include "alloc.h" +#include "err.h" /* for srtp_debug */ +#include "crypto_types.h" +#include "cipher_types.h" +#include +#include +#include + +srtp_debug_module_t srtp_mod_aes_gcm = { + 0, /* debugging is off by default */ + "aes gcm nss" /* printable module name */ +}; + +/* + * For now we only support 8 and 16 octet tags. The spec allows for + * optional 12 byte tag, which may be supported in the future. + */ +#define GCM_IV_LEN 12 +#define GCM_AUTH_TAG_LEN 16 +#define GCM_AUTH_TAG_LEN_8 8 + +/* + * This function allocates a new instance of this crypto engine. + * The key_len parameter should be one of 28 or 44 for + * AES-128-GCM or AES-256-GCM respectively. Note that the + * key length includes the 14 byte salt value that is used when + * initializing the KDF. + */ +static srtp_err_status_t srtp_aes_gcm_nss_alloc(srtp_cipher_t **c, + int key_len, + int tlen) +{ + srtp_aes_gcm_ctx_t *gcm; + + debug_print(srtp_mod_aes_gcm, "allocating cipher with key length %d", + key_len); + debug_print(srtp_mod_aes_gcm, "allocating cipher with tag length %d", tlen); + + /* + * Verify the key_len is valid for one of: AES-128/256 + */ + if (key_len != SRTP_AES_GCM_128_KEY_LEN_WSALT && + key_len != SRTP_AES_GCM_256_KEY_LEN_WSALT) { + return (srtp_err_status_bad_param); + } + + if (tlen != GCM_AUTH_TAG_LEN && tlen != GCM_AUTH_TAG_LEN_8) { + return (srtp_err_status_bad_param); + } + + /* Initialize NSS */ + if (!NSS_IsInitialized() && NSS_NoDB_Init(NULL) != SECSuccess) { + return (srtp_err_status_cipher_fail); + } + + /* allocate memory a cipher of type aes_gcm */ + *c = (srtp_cipher_t *)srtp_crypto_alloc(sizeof(srtp_cipher_t)); + if (*c == NULL) { + return (srtp_err_status_alloc_fail); + } + + gcm = (srtp_aes_gcm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_gcm_ctx_t)); + if (gcm == NULL) { + srtp_crypto_free(*c); + *c = NULL; + return (srtp_err_status_alloc_fail); + } + + /* set pointers */ + (*c)->state = gcm; + + /* setup cipher attributes */ + switch (key_len) { + case SRTP_AES_GCM_128_KEY_LEN_WSALT: + (*c)->type = &srtp_aes_gcm_128; + (*c)->algorithm = SRTP_AES_GCM_128; + gcm->key_size = SRTP_AES_128_KEY_LEN; + gcm->tag_size = tlen; + gcm->params.ulTagBits = 8 * tlen; + break; + case SRTP_AES_GCM_256_KEY_LEN_WSALT: + (*c)->type = &srtp_aes_gcm_256; + (*c)->algorithm = SRTP_AES_GCM_256; + gcm->key_size = SRTP_AES_256_KEY_LEN; + gcm->tag_size = tlen; + gcm->params.ulTagBits = 8 * tlen; + break; + default: + /* this should never hit, but to be sure... */ + return (srtp_err_status_bad_param); + } + + /* set key size and tag size*/ + (*c)->key_len = key_len; + + return (srtp_err_status_ok); +} + +/* + * This function deallocates a GCM session + */ +static srtp_err_status_t srtp_aes_gcm_nss_dealloc(srtp_cipher_t *c) +{ + srtp_aes_gcm_ctx_t *ctx; + + ctx = (srtp_aes_gcm_ctx_t *)c->state; + if (ctx) { + /* release NSS resources */ + if (ctx->key) { + PK11_FreeSymKey(ctx->key); + } + + /* zeroize the key material */ + octet_string_set_to_zero(ctx, sizeof(srtp_aes_gcm_ctx_t)); + srtp_crypto_free(ctx); + } + + /* free memory */ + srtp_crypto_free(c); + + return (srtp_err_status_ok); +} + +/* + * aes_gcm_nss_context_init(...) initializes the aes_gcm_context + * using the value in key[]. + * + * the key is the secret key + */ +static srtp_err_status_t srtp_aes_gcm_nss_context_init(void *cv, + const uint8_t *key) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + c->dir = srtp_direction_any; + + debug_print(srtp_mod_aes_gcm, "key: %s", + srtp_octet_string_hex_string(key, c->key_size)); + + if (c->key) { + PK11_FreeSymKey(c->key); + c->key = NULL; + } + + PK11SlotInfo *slot = PK11_GetBestSlot(CKM_AES_GCM, NULL); + if (!slot) { + return (srtp_err_status_cipher_fail); + } + + SECItem key_item = { siBuffer, (unsigned char *)key, c->key_size }; + c->key = PK11_ImportSymKey(slot, CKM_AES_GCM, PK11_OriginUnwrap, + CKA_ENCRYPT, &key_item, NULL); + PK11_FreeSlot(slot); + + if (!c->key) { + return (srtp_err_status_cipher_fail); + } + + return (srtp_err_status_ok); +} + +/* + * aes_gcm_nss_set_iv(c, iv) sets the counter value to the exor of iv with + * the offset + */ +static srtp_err_status_t srtp_aes_gcm_nss_set_iv( + void *cv, + uint8_t *iv, + srtp_cipher_direction_t direction) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + if (direction != srtp_direction_encrypt && + direction != srtp_direction_decrypt) { + return (srtp_err_status_bad_param); + } + c->dir = direction; + + debug_print(srtp_mod_aes_gcm, "setting iv: %s", + srtp_octet_string_hex_string(iv, GCM_IV_LEN)); + + memcpy(c->iv, iv, GCM_IV_LEN); + + return (srtp_err_status_ok); +} + +/* + * This function processes the AAD + * + * Parameters: + * c Crypto context + * aad Additional data to process for AEAD cipher suites + * aad_len length of aad buffer + */ +static srtp_err_status_t srtp_aes_gcm_nss_set_aad(void *cv, + const uint8_t *aad, + uint32_t aad_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + debug_print(srtp_mod_aes_gcm, "setting AAD: %s", + srtp_octet_string_hex_string(aad, aad_len)); + + if (aad_len + c->aad_size > MAX_AD_SIZE) { + return srtp_err_status_bad_param; + } + + memcpy(c->aad + c->aad_size, aad, aad_len); + c->aad_size += aad_len; + + return (srtp_err_status_ok); +} + +static srtp_err_status_t srtp_aes_gcm_nss_do_crypto(void *cv, + int encrypt, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + c->params.pIv = c->iv; + c->params.ulIvLen = GCM_IV_LEN; + c->params.pAAD = c->aad; + c->params.ulAADLen = c->aad_size; + + // Reset AAD + c->aad_size = 0; + + int rv; + SECItem param = { siBuffer, (unsigned char *)&c->params, + sizeof(CK_GCM_PARAMS) }; + if (encrypt) { + rv = PK11_Encrypt(c->key, CKM_AES_GCM, ¶m, buf, enc_len, + *enc_len + 16, buf, *enc_len); + } else { + rv = PK11_Decrypt(c->key, CKM_AES_GCM, ¶m, buf, enc_len, *enc_len, + buf, *enc_len); + } + + srtp_err_status_t status = (srtp_err_status_ok); + if (rv != SECSuccess) { + status = (srtp_err_status_cipher_fail); + } + + return status; +} + +/* + * This function encrypts a buffer using AES GCM mode + * + * XXX(rlb@ipv.sx): We're required to break off and cache the tag + * here, because the get_tag() method is separate and the tests expect + * encrypt() not to change the size of the plaintext. It might be + * good to update the calling API so that this is cleaner. + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_nss_encrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + // When we get a non-NULL buffer, we know that the caller is + // prepared to also take the tag. When we get a NULL buffer, + // even though there's no data, we need to give NSS a buffer + // where it can write the tag. We can't just use c->tag because + // memcpy has undefined behavior on overlapping ranges. + unsigned char tagbuf[16]; + unsigned char *non_null_buf = buf; + if (!non_null_buf && (*enc_len == 0)) { + non_null_buf = tagbuf; + } else if (!non_null_buf) { + return srtp_err_status_bad_param; + } + + srtp_err_status_t status = + srtp_aes_gcm_nss_do_crypto(cv, 1, non_null_buf, enc_len); + if (status != srtp_err_status_ok) { + return status; + } + + memcpy(c->tag, non_null_buf + (*enc_len - c->tag_size), c->tag_size); + *enc_len -= c->tag_size; + return srtp_err_status_ok; +} + +/* + * This function calculates and returns the GCM tag for a given context. + * This should be called after encrypting the data. The *len value + * is increased by the tag size. The caller must ensure that *buf has + * enough room to accept the appended tag. + * + * Parameters: + * c Crypto context + * buf data to encrypt + * len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_nss_get_tag(void *cv, + uint8_t *buf, + uint32_t *len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + *len = c->tag_size; + memcpy(buf, c->tag, c->tag_size); + return (srtp_err_status_ok); +} + +/* + * This function decrypts a buffer using AES GCM mode + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_nss_decrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_err_status_t status = srtp_aes_gcm_nss_do_crypto(cv, 0, buf, enc_len); + if (status != srtp_err_status_ok) { + int err = PR_GetError(); + if (err == SEC_ERROR_BAD_DATA) { + status = srtp_err_status_auth_fail; + } + } + + return status; +} + +/* + * Name of this crypto engine + */ +static const char srtp_aes_gcm_128_nss_description[] = "AES-128 GCM using NSS"; +static const char srtp_aes_gcm_256_nss_description[] = "AES-256 GCM using NSS"; + +/* + * KAT values for AES self-test. These + * values we're derived from independent test code + * using OpenSSL. + */ +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_key[SRTP_AES_GCM_128_KEY_LEN_WSALT] = { + 0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c, + 0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08, + 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, + 0x09, 0x0a, 0x0b, 0x0c, +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_gcm_test_case_0_iv[12] = { + 0xca, 0xfe, 0xba, 0xbe, 0xfa, 0xce, 0xdb, 0xad, + 0xde, 0xca, 0xf8, 0x88 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_plaintext[60] = { + 0xd9, 0x31, 0x32, 0x25, 0xf8, 0x84, 0x06, 0xe5, + 0xa5, 0x59, 0x09, 0xc5, 0xaf, 0xf5, 0x26, 0x9a, + 0x86, 0xa7, 0xa9, 0x53, 0x15, 0x34, 0xf7, 0xda, + 0x2e, 0x4c, 0x30, 0x3d, 0x8a, 0x31, 0x8a, 0x72, + 0x1c, 0x3c, 0x0c, 0x95, 0x95, 0x68, 0x09, 0x53, + 0x2f, 0xcf, 0x0e, 0x24, 0x49, 0xa6, 0xb5, 0x25, + 0xb1, 0x6a, 0xed, 0xf5, 0xaa, 0x0d, 0xe6, 0x57, + 0xba, 0x63, 0x7b, 0x39 +}; + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_aad[20] = { + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xab, 0xad, 0xda, 0xd2 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_ciphertext[76] = { + 0x42, 0x83, 0x1e, 0xc2, 0x21, 0x77, 0x74, 0x24, + 0x4b, 0x72, 0x21, 0xb7, 0x84, 0xd0, 0xd4, 0x9c, + 0xe3, 0xaa, 0x21, 0x2f, 0x2c, 0x02, 0xa4, 0xe0, + 0x35, 0xc1, 0x7e, 0x23, 0x29, 0xac, 0xa1, 0x2e, + 0x21, 0xd5, 0x14, 0xb2, 0x54, 0x66, 0x93, 0x1c, + 0x7d, 0x8f, 0x6a, 0x5a, 0xac, 0x84, 0xaa, 0x05, + 0x1b, 0xa3, 0x0b, 0x39, 0x6a, 0x0a, 0xac, 0x97, + 0x3d, 0x58, 0xe0, 0x91, + /* the last 16 bytes are the tag */ + 0x5b, 0xc9, 0x4f, 0xbc, 0x32, 0x21, 0xa5, 0xdb, + 0x94, 0xfa, 0xe9, 0x5a, 0xe7, 0x12, 0x1a, 0x47, +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_0a = { + SRTP_AES_GCM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_0_key, /* key */ + srtp_aes_gcm_test_case_0_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_0_plaintext, /* plaintext */ + 68, /* octets in ciphertext */ + srtp_aes_gcm_test_case_0_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_0_aad, /* AAD */ + GCM_AUTH_TAG_LEN_8, /* */ + NULL /* pointer to next testcase */ +}; + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_0 = { + SRTP_AES_GCM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_0_key, /* key */ + srtp_aes_gcm_test_case_0_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_0_plaintext, /* plaintext */ + 76, /* octets in ciphertext */ + srtp_aes_gcm_test_case_0_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_0_aad, /* AAD */ + GCM_AUTH_TAG_LEN, /* */ + &srtp_aes_gcm_test_case_0a /* pointer to next testcase */ +}; + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_key[SRTP_AES_GCM_256_KEY_LEN_WSALT] = { + 0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c, + 0xa5, 0x59, 0x09, 0xc5, 0x54, 0x66, 0x93, 0x1c, + 0xaf, 0xf5, 0x26, 0x9a, 0x21, 0xd5, 0x14, 0xb2, + 0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08, + 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, + 0x09, 0x0a, 0x0b, 0x0c, +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_gcm_test_case_1_iv[12] = { + 0xca, 0xfe, 0xba, 0xbe, 0xfa, 0xce, 0xdb, 0xad, + 0xde, 0xca, 0xf8, 0x88 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_plaintext[60] = { + 0xd9, 0x31, 0x32, 0x25, 0xf8, 0x84, 0x06, 0xe5, + 0xa5, 0x59, 0x09, 0xc5, 0xaf, 0xf5, 0x26, 0x9a, + 0x86, 0xa7, 0xa9, 0x53, 0x15, 0x34, 0xf7, 0xda, + 0x2e, 0x4c, 0x30, 0x3d, 0x8a, 0x31, 0x8a, 0x72, + 0x1c, 0x3c, 0x0c, 0x95, 0x95, 0x68, 0x09, 0x53, + 0x2f, 0xcf, 0x0e, 0x24, 0x49, 0xa6, 0xb5, 0x25, + 0xb1, 0x6a, 0xed, 0xf5, 0xaa, 0x0d, 0xe6, 0x57, + 0xba, 0x63, 0x7b, 0x39 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_aad[20] = { + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xab, 0xad, 0xda, 0xd2 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_ciphertext[76] = { + 0x0b, 0x11, 0xcf, 0xaf, 0x68, 0x4d, 0xae, 0x46, + 0xc7, 0x90, 0xb8, 0x8e, 0xb7, 0x6a, 0x76, 0x2a, + 0x94, 0x82, 0xca, 0xab, 0x3e, 0x39, 0xd7, 0x86, + 0x1b, 0xc7, 0x93, 0xed, 0x75, 0x7f, 0x23, 0x5a, + 0xda, 0xfd, 0xd3, 0xe2, 0x0e, 0x80, 0x87, 0xa9, + 0x6d, 0xd7, 0xe2, 0x6a, 0x7d, 0x5f, 0xb4, 0x80, + 0xef, 0xef, 0xc5, 0x29, 0x12, 0xd1, 0xaa, 0x10, + 0x09, 0xc9, 0x86, 0xc1, + /* the last 16 bytes are the tag */ + 0x45, 0xbc, 0x03, 0xe6, 0xe1, 0xac, 0x0a, 0x9f, + 0x81, 0xcb, 0x8e, 0x5b, 0x46, 0x65, 0x63, 0x1d, +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_1a = { + SRTP_AES_GCM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_1_key, /* key */ + srtp_aes_gcm_test_case_1_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_1_plaintext, /* plaintext */ + 68, /* octets in ciphertext */ + srtp_aes_gcm_test_case_1_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_1_aad, /* AAD */ + GCM_AUTH_TAG_LEN_8, /* */ + NULL /* pointer to next testcase */ +}; + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_1 = { + SRTP_AES_GCM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_1_key, /* key */ + srtp_aes_gcm_test_case_1_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_1_plaintext, /* plaintext */ + 76, /* octets in ciphertext */ + srtp_aes_gcm_test_case_1_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_1_aad, /* AAD */ + GCM_AUTH_TAG_LEN, /* */ + &srtp_aes_gcm_test_case_1a /* pointer to next testcase */ +}; + +/* + * This is the vector function table for this crypto engine. + */ +/* clang-format off */ +const srtp_cipher_type_t srtp_aes_gcm_128 = { + srtp_aes_gcm_nss_alloc, + srtp_aes_gcm_nss_dealloc, + srtp_aes_gcm_nss_context_init, + srtp_aes_gcm_nss_set_aad, + srtp_aes_gcm_nss_encrypt, + srtp_aes_gcm_nss_decrypt, + srtp_aes_gcm_nss_set_iv, + srtp_aes_gcm_nss_get_tag, + srtp_aes_gcm_128_nss_description, + &srtp_aes_gcm_test_case_0, + SRTP_AES_GCM_128 +}; +/* clang-format on */ + +/* + * This is the vector function table for this crypto engine. + */ +/* clang-format off */ +const srtp_cipher_type_t srtp_aes_gcm_256 = { + srtp_aes_gcm_nss_alloc, + srtp_aes_gcm_nss_dealloc, + srtp_aes_gcm_nss_context_init, + srtp_aes_gcm_nss_set_aad, + srtp_aes_gcm_nss_encrypt, + srtp_aes_gcm_nss_decrypt, + srtp_aes_gcm_nss_set_iv, + srtp_aes_gcm_nss_get_tag, + srtp_aes_gcm_256_nss_description, + &srtp_aes_gcm_test_case_1, + SRTP_AES_GCM_256 +}; +/* clang-format on */ diff --git a/netwerk/srtp/src/crypto/cipher/aes_gcm_ossl.c b/netwerk/srtp/src/crypto/cipher/aes_gcm_ossl.c new file mode 100644 index 000000000000..578cad5ee953 --- /dev/null +++ b/netwerk/srtp/src/crypto/cipher/aes_gcm_ossl.c @@ -0,0 +1,582 @@ +/* + * aes_gcm_ossl.c + * + * AES Galois Counter Mode + * + * John A. Foley + * Cisco Systems, Inc. + * + */ + +/* + * + * Copyright (c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include "aes_gcm.h" +#include "alloc.h" +#include "err.h" /* for srtp_debug */ +#include "crypto_types.h" +#include "cipher_types.h" + +srtp_debug_module_t srtp_mod_aes_gcm = { + 0, /* debugging is off by default */ + "aes gcm" /* printable module name */ +}; + +/* + * For now we only support 8 and 16 octet tags. The spec allows for + * optional 12 byte tag, which may be supported in the future. + */ +#define GCM_AUTH_TAG_LEN 16 +#define GCM_AUTH_TAG_LEN_8 8 + +/* + * This function allocates a new instance of this crypto engine. + * The key_len parameter should be one of 28 or 44 for + * AES-128-GCM or AES-256-GCM respectively. Note that the + * key length includes the 14 byte salt value that is used when + * initializing the KDF. + */ +static srtp_err_status_t srtp_aes_gcm_openssl_alloc(srtp_cipher_t **c, + int key_len, + int tlen) +{ + srtp_aes_gcm_ctx_t *gcm; + + debug_print(srtp_mod_aes_gcm, "allocating cipher with key length %d", + key_len); + debug_print(srtp_mod_aes_gcm, "allocating cipher with tag length %d", tlen); + + /* + * Verify the key_len is valid for one of: AES-128/256 + */ + if (key_len != SRTP_AES_GCM_128_KEY_LEN_WSALT && + key_len != SRTP_AES_GCM_256_KEY_LEN_WSALT) { + return (srtp_err_status_bad_param); + } + + if (tlen != GCM_AUTH_TAG_LEN && tlen != GCM_AUTH_TAG_LEN_8) { + return (srtp_err_status_bad_param); + } + + /* allocate memory a cipher of type aes_gcm */ + *c = (srtp_cipher_t *)srtp_crypto_alloc(sizeof(srtp_cipher_t)); + if (*c == NULL) { + return (srtp_err_status_alloc_fail); + } + + gcm = (srtp_aes_gcm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_gcm_ctx_t)); + if (gcm == NULL) { + srtp_crypto_free(*c); + *c = NULL; + return (srtp_err_status_alloc_fail); + } + + gcm->ctx = EVP_CIPHER_CTX_new(); + if (gcm->ctx == NULL) { + srtp_crypto_free(gcm); + srtp_crypto_free(*c); + *c = NULL; + return srtp_err_status_alloc_fail; + } + + /* set pointers */ + (*c)->state = gcm; + + /* setup cipher attributes */ + switch (key_len) { + case SRTP_AES_GCM_128_KEY_LEN_WSALT: + (*c)->type = &srtp_aes_gcm_128; + (*c)->algorithm = SRTP_AES_GCM_128; + gcm->key_size = SRTP_AES_128_KEY_LEN; + gcm->tag_len = tlen; + break; + case SRTP_AES_GCM_256_KEY_LEN_WSALT: + (*c)->type = &srtp_aes_gcm_256; + (*c)->algorithm = SRTP_AES_GCM_256; + gcm->key_size = SRTP_AES_256_KEY_LEN; + gcm->tag_len = tlen; + break; + } + + /* set key size */ + (*c)->key_len = key_len; + + return (srtp_err_status_ok); +} + +/* + * This function deallocates a GCM session + */ +static srtp_err_status_t srtp_aes_gcm_openssl_dealloc(srtp_cipher_t *c) +{ + srtp_aes_gcm_ctx_t *ctx; + + ctx = (srtp_aes_gcm_ctx_t *)c->state; + if (ctx) { + EVP_CIPHER_CTX_free(ctx->ctx); + /* zeroize the key material */ + octet_string_set_to_zero(ctx, sizeof(srtp_aes_gcm_ctx_t)); + srtp_crypto_free(ctx); + } + + /* free memory */ + srtp_crypto_free(c); + + return (srtp_err_status_ok); +} + +/* + * aes_gcm_openssl_context_init(...) initializes the aes_gcm_context + * using the value in key[]. + * + * the key is the secret key + */ +static srtp_err_status_t srtp_aes_gcm_openssl_context_init(void *cv, + const uint8_t *key) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + const EVP_CIPHER *evp; + + c->dir = srtp_direction_any; + + debug_print(srtp_mod_aes_gcm, "key: %s", + srtp_octet_string_hex_string(key, c->key_size)); + + switch (c->key_size) { + case SRTP_AES_256_KEY_LEN: + evp = EVP_aes_256_gcm(); + break; + case SRTP_AES_128_KEY_LEN: + evp = EVP_aes_128_gcm(); + break; + default: + return (srtp_err_status_bad_param); + break; + } + + if (!EVP_CipherInit_ex(c->ctx, evp, NULL, key, NULL, 0)) { + return (srtp_err_status_init_fail); + } + + return (srtp_err_status_ok); +} + +/* + * aes_gcm_openssl_set_iv(c, iv) sets the counter value to the exor of iv with + * the offset + */ +static srtp_err_status_t srtp_aes_gcm_openssl_set_iv( + void *cv, + uint8_t *iv, + srtp_cipher_direction_t direction) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + + if (direction != srtp_direction_encrypt && + direction != srtp_direction_decrypt) { + return (srtp_err_status_bad_param); + } + c->dir = direction; + + debug_print(srtp_mod_aes_gcm, "setting iv: %s", + srtp_octet_string_hex_string(iv, 12)); + + if (!EVP_CIPHER_CTX_ctrl(c->ctx, EVP_CTRL_GCM_SET_IVLEN, 12, 0)) { + return (srtp_err_status_init_fail); + } + + if (!EVP_CipherInit_ex(c->ctx, NULL, NULL, NULL, iv, + (c->dir == srtp_direction_encrypt ? 1 : 0))) { + return (srtp_err_status_init_fail); + } + + return (srtp_err_status_ok); +} + +/* + * This function processes the AAD + * + * Parameters: + * c Crypto context + * aad Additional data to process for AEAD cipher suites + * aad_len length of aad buffer + */ +static srtp_err_status_t srtp_aes_gcm_openssl_set_aad(void *cv, + const uint8_t *aad, + uint32_t aad_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + int rv; + + debug_print(srtp_mod_aes_gcm, "setting AAD: %s", + srtp_octet_string_hex_string(aad, aad_len)); + + /* + * Set dummy tag, OpenSSL requires the Tag to be set before + * processing AAD + */ + + /* + * OpenSSL never write to address pointed by the last parameter of + * EVP_CIPHER_CTX_ctrl while EVP_CTRL_GCM_SET_TAG (in reality, + * OpenSSL copy its content to the context), so we can make + * aad read-only in this function and all its wrappers. + */ + unsigned char dummy_tag[GCM_AUTH_TAG_LEN]; + memset(dummy_tag, 0x0, GCM_AUTH_TAG_LEN); + EVP_CIPHER_CTX_ctrl(c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, &dummy_tag); + + rv = EVP_Cipher(c->ctx, NULL, aad, aad_len); + if (rv != aad_len) { + return (srtp_err_status_algo_fail); + } else { + return (srtp_err_status_ok); + } +} + +/* + * This function encrypts a buffer using AES GCM mode + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_openssl_encrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + if (c->dir != srtp_direction_encrypt && c->dir != srtp_direction_decrypt) { + return (srtp_err_status_bad_param); + } + + /* + * Encrypt the data + */ + EVP_Cipher(c->ctx, buf, buf, *enc_len); + + return (srtp_err_status_ok); +} + +/* + * This function calculates and returns the GCM tag for a given context. + * This should be called after encrypting the data. The *len value + * is increased by the tag size. The caller must ensure that *buf has + * enough room to accept the appended tag. + * + * Parameters: + * c Crypto context + * buf data to encrypt + * len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_openssl_get_tag(void *cv, + uint8_t *buf, + uint32_t *len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + /* + * Calculate the tag + */ + EVP_Cipher(c->ctx, NULL, NULL, 0); + + /* + * Retreive the tag + */ + EVP_CIPHER_CTX_ctrl(c->ctx, EVP_CTRL_GCM_GET_TAG, c->tag_len, buf); + + /* + * Increase encryption length by desired tag size + */ + *len = c->tag_len; + + return (srtp_err_status_ok); +} + +/* + * This function decrypts a buffer using AES GCM mode + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_gcm_openssl_decrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; + if (c->dir != srtp_direction_encrypt && c->dir != srtp_direction_decrypt) { + return (srtp_err_status_bad_param); + } + + /* + * Set the tag before decrypting + */ + EVP_CIPHER_CTX_ctrl(c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, + buf + (*enc_len - c->tag_len)); + EVP_Cipher(c->ctx, buf, buf, *enc_len - c->tag_len); + + /* + * Check the tag + */ + if (EVP_Cipher(c->ctx, NULL, NULL, 0)) { + return (srtp_err_status_auth_fail); + } + + /* + * Reduce the buffer size by the tag length since the tag + * is not part of the original payload + */ + *enc_len -= c->tag_len; + + return (srtp_err_status_ok); +} + +/* + * Name of this crypto engine + */ +static const char srtp_aes_gcm_128_openssl_description[] = + "AES-128 GCM using openssl"; +static const char srtp_aes_gcm_256_openssl_description[] = + "AES-256 GCM using openssl"; + +/* + * KAT values for AES self-test. These + * values we're derived from independent test code + * using OpenSSL. + */ +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_key[SRTP_AES_GCM_128_KEY_LEN_WSALT] = { + 0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c, + 0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08, + 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, + 0x09, 0x0a, 0x0b, 0x0c, +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_gcm_test_case_0_iv[12] = { + 0xca, 0xfe, 0xba, 0xbe, 0xfa, 0xce, 0xdb, 0xad, + 0xde, 0xca, 0xf8, 0x88 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_plaintext[60] = { + 0xd9, 0x31, 0x32, 0x25, 0xf8, 0x84, 0x06, 0xe5, + 0xa5, 0x59, 0x09, 0xc5, 0xaf, 0xf5, 0x26, 0x9a, + 0x86, 0xa7, 0xa9, 0x53, 0x15, 0x34, 0xf7, 0xda, + 0x2e, 0x4c, 0x30, 0x3d, 0x8a, 0x31, 0x8a, 0x72, + 0x1c, 0x3c, 0x0c, 0x95, 0x95, 0x68, 0x09, 0x53, + 0x2f, 0xcf, 0x0e, 0x24, 0x49, 0xa6, 0xb5, 0x25, + 0xb1, 0x6a, 0xed, 0xf5, 0xaa, 0x0d, 0xe6, 0x57, + 0xba, 0x63, 0x7b, 0x39 +}; + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_aad[20] = { + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xab, 0xad, 0xda, 0xd2 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_0_ciphertext[76] = { + 0x42, 0x83, 0x1e, 0xc2, 0x21, 0x77, 0x74, 0x24, + 0x4b, 0x72, 0x21, 0xb7, 0x84, 0xd0, 0xd4, 0x9c, + 0xe3, 0xaa, 0x21, 0x2f, 0x2c, 0x02, 0xa4, 0xe0, + 0x35, 0xc1, 0x7e, 0x23, 0x29, 0xac, 0xa1, 0x2e, + 0x21, 0xd5, 0x14, 0xb2, 0x54, 0x66, 0x93, 0x1c, + 0x7d, 0x8f, 0x6a, 0x5a, 0xac, 0x84, 0xaa, 0x05, + 0x1b, 0xa3, 0x0b, 0x39, 0x6a, 0x0a, 0xac, 0x97, + 0x3d, 0x58, 0xe0, 0x91, + /* the last 16 bytes are the tag */ + 0x5b, 0xc9, 0x4f, 0xbc, 0x32, 0x21, 0xa5, 0xdb, + 0x94, 0xfa, 0xe9, 0x5a, 0xe7, 0x12, 0x1a, 0x47, +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_0a = { + SRTP_AES_GCM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_0_key, /* key */ + srtp_aes_gcm_test_case_0_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_0_plaintext, /* plaintext */ + 68, /* octets in ciphertext */ + srtp_aes_gcm_test_case_0_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_0_aad, /* AAD */ + GCM_AUTH_TAG_LEN_8, /* */ + NULL /* pointer to next testcase */ +}; + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_0 = { + SRTP_AES_GCM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_0_key, /* key */ + srtp_aes_gcm_test_case_0_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_0_plaintext, /* plaintext */ + 76, /* octets in ciphertext */ + srtp_aes_gcm_test_case_0_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_0_aad, /* AAD */ + GCM_AUTH_TAG_LEN, /* */ + &srtp_aes_gcm_test_case_0a /* pointer to next testcase */ +}; + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_key[SRTP_AES_GCM_256_KEY_LEN_WSALT] = { + 0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c, + 0xa5, 0x59, 0x09, 0xc5, 0x54, 0x66, 0x93, 0x1c, + 0xaf, 0xf5, 0x26, 0x9a, 0x21, 0xd5, 0x14, 0xb2, + 0x6d, 0x6a, 0x8f, 0x94, 0x67, 0x30, 0x83, 0x08, + 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, + 0x09, 0x0a, 0x0b, 0x0c, +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_gcm_test_case_1_iv[12] = { + 0xca, 0xfe, 0xba, 0xbe, 0xfa, 0xce, 0xdb, 0xad, + 0xde, 0xca, 0xf8, 0x88 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_plaintext[60] = { + 0xd9, 0x31, 0x32, 0x25, 0xf8, 0x84, 0x06, 0xe5, + 0xa5, 0x59, 0x09, 0xc5, 0xaf, 0xf5, 0x26, 0x9a, + 0x86, 0xa7, 0xa9, 0x53, 0x15, 0x34, 0xf7, 0xda, + 0x2e, 0x4c, 0x30, 0x3d, 0x8a, 0x31, 0x8a, 0x72, + 0x1c, 0x3c, 0x0c, 0x95, 0x95, 0x68, 0x09, 0x53, + 0x2f, 0xcf, 0x0e, 0x24, 0x49, 0xa6, 0xb5, 0x25, + 0xb1, 0x6a, 0xed, 0xf5, 0xaa, 0x0d, 0xe6, 0x57, + 0xba, 0x63, 0x7b, 0x39 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_aad[20] = { + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef, + 0xab, 0xad, 0xda, 0xd2 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_gcm_test_case_1_ciphertext[76] = { + 0x0b, 0x11, 0xcf, 0xaf, 0x68, 0x4d, 0xae, 0x46, + 0xc7, 0x90, 0xb8, 0x8e, 0xb7, 0x6a, 0x76, 0x2a, + 0x94, 0x82, 0xca, 0xab, 0x3e, 0x39, 0xd7, 0x86, + 0x1b, 0xc7, 0x93, 0xed, 0x75, 0x7f, 0x23, 0x5a, + 0xda, 0xfd, 0xd3, 0xe2, 0x0e, 0x80, 0x87, 0xa9, + 0x6d, 0xd7, 0xe2, 0x6a, 0x7d, 0x5f, 0xb4, 0x80, + 0xef, 0xef, 0xc5, 0x29, 0x12, 0xd1, 0xaa, 0x10, + 0x09, 0xc9, 0x86, 0xc1, + /* the last 16 bytes are the tag */ + 0x45, 0xbc, 0x03, 0xe6, 0xe1, 0xac, 0x0a, 0x9f, + 0x81, 0xcb, 0x8e, 0x5b, 0x46, 0x65, 0x63, 0x1d, +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_1a = { + SRTP_AES_GCM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_1_key, /* key */ + srtp_aes_gcm_test_case_1_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_1_plaintext, /* plaintext */ + 68, /* octets in ciphertext */ + srtp_aes_gcm_test_case_1_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_1_aad, /* AAD */ + GCM_AUTH_TAG_LEN_8, /* */ + NULL /* pointer to next testcase */ +}; + +static const srtp_cipher_test_case_t srtp_aes_gcm_test_case_1 = { + SRTP_AES_GCM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_gcm_test_case_1_key, /* key */ + srtp_aes_gcm_test_case_1_iv, /* packet index */ + 60, /* octets in plaintext */ + srtp_aes_gcm_test_case_1_plaintext, /* plaintext */ + 76, /* octets in ciphertext */ + srtp_aes_gcm_test_case_1_ciphertext, /* ciphertext + tag */ + 20, /* octets in AAD */ + srtp_aes_gcm_test_case_1_aad, /* AAD */ + GCM_AUTH_TAG_LEN, /* */ + &srtp_aes_gcm_test_case_1a /* pointer to next testcase */ +}; + +/* + * This is the vector function table for this crypto engine. + */ +const srtp_cipher_type_t srtp_aes_gcm_128 = { + srtp_aes_gcm_openssl_alloc, + srtp_aes_gcm_openssl_dealloc, + srtp_aes_gcm_openssl_context_init, + srtp_aes_gcm_openssl_set_aad, + srtp_aes_gcm_openssl_encrypt, + srtp_aes_gcm_openssl_decrypt, + srtp_aes_gcm_openssl_set_iv, + srtp_aes_gcm_openssl_get_tag, + srtp_aes_gcm_128_openssl_description, + &srtp_aes_gcm_test_case_0, + SRTP_AES_GCM_128 +}; + +/* + * This is the vector function table for this crypto engine. + */ +const srtp_cipher_type_t srtp_aes_gcm_256 = { + srtp_aes_gcm_openssl_alloc, + srtp_aes_gcm_openssl_dealloc, + srtp_aes_gcm_openssl_context_init, + srtp_aes_gcm_openssl_set_aad, + srtp_aes_gcm_openssl_encrypt, + srtp_aes_gcm_openssl_decrypt, + srtp_aes_gcm_openssl_set_iv, + srtp_aes_gcm_openssl_get_tag, + srtp_aes_gcm_256_openssl_description, + &srtp_aes_gcm_test_case_1, + SRTP_AES_GCM_256 +}; diff --git a/netwerk/srtp/src/crypto/cipher/aes_icm.c b/netwerk/srtp/src/crypto/cipher/aes_icm.c index c9c14116da61..7551c75148f9 100644 --- a/netwerk/srtp/src/crypto/cipher/aes_icm.c +++ b/netwerk/srtp/src/crypto/cipher/aes_icm.c @@ -121,6 +121,7 @@ static srtp_err_status_t srtp_aes_icm_alloc(srtp_cipher_t **c, icm = (srtp_aes_icm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_icm_ctx_t)); if (icm == NULL) { srtp_crypto_free(*c); + *c = NULL; return srtp_err_status_alloc_fail; } diff --git a/netwerk/srtp/src/crypto/cipher/aes_icm_nss.c b/netwerk/srtp/src/crypto/cipher/aes_icm_nss.c new file mode 100644 index 000000000000..c64335f41600 --- /dev/null +++ b/netwerk/srtp/src/crypto/cipher/aes_icm_nss.c @@ -0,0 +1,550 @@ +/* + * aes_icm_nss.c + * + * AES Integer Counter Mode + * + * Richard L. Barnes + * Cisco Systems, Inc. + */ + +/* + * + * Copyright (c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "aes_icm_ext.h" +#include "crypto_types.h" +#include "err.h" /* for srtp_debug */ +#include "alloc.h" +#include "cipher_types.h" +#include + +srtp_debug_module_t srtp_mod_aes_icm = { + 0, /* debugging is off by default */ + "aes icm nss" /* printable module name */ +}; + +/* + * integer counter mode works as follows: + * + * 16 bits + * <-----> + * +------+------+------+------+------+------+------+------+ + * | nonce | packet index | ctr |---+ + * +------+------+------+------+------+------+------+------+ | + * | + * +------+------+------+------+------+------+------+------+ v + * | salt |000000|->(+) + * +------+------+------+------+------+------+------+------+ | + * | + * +---------+ + * | encrypt | + * +---------+ + * | + * +------+------+------+------+------+------+------+------+ | + * | keystream block |<--+ + * +------+------+------+------+------+------+------+------+ + * + * All fields are big-endian + * + * ctr is the block counter, which increments from zero for + * each packet (16 bits wide) + * + * packet index is distinct for each packet (48 bits wide) + * + * nonce can be distinct across many uses of the same key, or + * can be a fixed value per key, or can be per-packet randomness + * (64 bits) + * + */ + +/* + * This function allocates a new instance of this crypto engine. + * The key_len parameter should be one of 30, 38, or 46 for + * AES-128, AES-192, and AES-256 respectively. Note, this key_len + * value is inflated, as it also accounts for the 112 bit salt + * value. The tlen argument is for the AEAD tag length, which + * isn't used in counter mode. + */ +static srtp_err_status_t srtp_aes_icm_nss_alloc(srtp_cipher_t **c, + int key_len, + int tlen) +{ + srtp_aes_icm_ctx_t *icm; + + debug_print(srtp_mod_aes_icm, "allocating cipher with key length %d", + key_len); + + /* + * Verify the key_len is valid for one of: AES-128/192/256 + */ + if (key_len != SRTP_AES_ICM_128_KEY_LEN_WSALT && + key_len != SRTP_AES_ICM_192_KEY_LEN_WSALT && + key_len != SRTP_AES_ICM_256_KEY_LEN_WSALT) { + return srtp_err_status_bad_param; + } + + /* Initialize NSS */ + if (!NSS_IsInitialized() && NSS_NoDB_Init(NULL) != SECSuccess) { + return (srtp_err_status_cipher_fail); + } + + /* allocate memory a cipher of type aes_icm */ + *c = (srtp_cipher_t *)srtp_crypto_alloc(sizeof(srtp_cipher_t)); + if (*c == NULL) { + return srtp_err_status_alloc_fail; + } + + icm = (srtp_aes_icm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_icm_ctx_t)); + if (icm == NULL) { + srtp_crypto_free(*c); + *c = NULL; + return srtp_err_status_alloc_fail; + } + + icm->key = NULL; + icm->ctx = NULL; + + /* set pointers */ + (*c)->state = icm; + + /* setup cipher parameters */ + switch (key_len) { + case SRTP_AES_ICM_128_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_128; + (*c)->type = &srtp_aes_icm_128; + icm->key_size = SRTP_AES_128_KEY_LEN; + break; + case SRTP_AES_ICM_192_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_192; + (*c)->type = &srtp_aes_icm_192; + icm->key_size = SRTP_AES_192_KEY_LEN; + break; + case SRTP_AES_ICM_256_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_256; + (*c)->type = &srtp_aes_icm_256; + icm->key_size = SRTP_AES_256_KEY_LEN; + break; + } + + /* set key size */ + (*c)->key_len = key_len; + + return srtp_err_status_ok; +} + +/* + * This function deallocates an instance of this engine + */ +static srtp_err_status_t srtp_aes_icm_nss_dealloc(srtp_cipher_t *c) +{ + srtp_aes_icm_ctx_t *ctx; + + ctx = (srtp_aes_icm_ctx_t *)c->state; + if (ctx) { + /* free any PK11 values that have been created */ + if (ctx->key) { + PK11_FreeSymKey(ctx->key); + ctx->key = NULL; + } + + if (ctx->ctx) { + PK11_DestroyContext(ctx->ctx, PR_TRUE); + ctx->ctx = NULL; + } + + /* zeroize everything */ + octet_string_set_to_zero(ctx, sizeof(srtp_aes_icm_ctx_t)); + srtp_crypto_free(ctx); + } + + /* free memory */ + srtp_crypto_free(c); + + return (srtp_err_status_ok); +} + +/* + * aes_icm_nss_context_init(...) initializes the aes_icm_context + * using the value in key[]. + * + * the key is the secret key + * + * the salt is unpredictable (but not necessarily secret) data which + * randomizes the starting point in the keystream + */ +static srtp_err_status_t srtp_aes_icm_nss_context_init(void *cv, + const uint8_t *key) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + + /* + * set counter and initial values to 'offset' value, being careful not to + * go past the end of the key buffer + */ + v128_set_to_zero(&c->counter); + v128_set_to_zero(&c->offset); + memcpy(&c->counter, key + c->key_size, SRTP_SALT_LEN); + memcpy(&c->offset, key + c->key_size, SRTP_SALT_LEN); + + /* force last two octets of the offset to zero (for srtp compatibility) */ + c->offset.v8[SRTP_SALT_LEN] = c->offset.v8[SRTP_SALT_LEN + 1] = 0; + c->counter.v8[SRTP_SALT_LEN] = c->counter.v8[SRTP_SALT_LEN + 1] = 0; + + debug_print(srtp_mod_aes_icm, "key: %s", + srtp_octet_string_hex_string(key, c->key_size)); + debug_print(srtp_mod_aes_icm, "offset: %s", v128_hex_string(&c->offset)); + + if (c->key) { + PK11_FreeSymKey(c->key); + c->key = NULL; + } + + PK11SlotInfo *slot = PK11_GetBestSlot(CKM_AES_CTR, NULL); + if (!slot) { + return srtp_err_status_bad_param; + } + + SECItem keyItem = { siBuffer, (unsigned char *)key, c->key_size }; + c->key = PK11_ImportSymKey(slot, CKM_AES_CTR, PK11_OriginUnwrap, + CKA_ENCRYPT, &keyItem, NULL); + PK11_FreeSlot(slot); + + if (!c->key) { + return srtp_err_status_cipher_fail; + } + + return (srtp_err_status_ok); +} + +/* + * aes_icm_set_iv(c, iv) sets the counter value to the exor of iv with + * the offset + */ +static srtp_err_status_t srtp_aes_icm_nss_set_iv(void *cv, + uint8_t *iv, + srtp_cipher_direction_t dir) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + v128_t nonce; + + /* set nonce (for alignment) */ + v128_copy_octet_string(&nonce, iv); + + debug_print(srtp_mod_aes_icm, "setting iv: %s", v128_hex_string(&nonce)); + + v128_xor(&c->counter, &c->offset, &nonce); + + debug_print(srtp_mod_aes_icm, "set_counter: %s", + v128_hex_string(&c->counter)); + + /* set up the PK11 context now that we have all the info */ + CK_AES_CTR_PARAMS param; + param.ulCounterBits = 16; + memcpy(param.cb, &c->counter, 16); + + if (!c->key) { + return srtp_err_status_bad_param; + } + + if (c->ctx) { + PK11_DestroyContext(c->ctx, PR_TRUE); + } + + SECItem paramItem = { siBuffer, (unsigned char *)¶m, + sizeof(CK_AES_CTR_PARAMS) }; + c->ctx = PK11_CreateContextBySymKey(CKM_AES_CTR, CKA_ENCRYPT, c->key, + ¶mItem); + if (!c->ctx) { + return srtp_err_status_cipher_fail; + } + + return srtp_err_status_ok; +} + +/* + * This function encrypts a buffer using AES CTR mode + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_icm_nss_encrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + + if (!c->ctx) { + return srtp_err_status_bad_param; + } + + int rv = + PK11_CipherOp(c->ctx, buf, (int *)enc_len, *enc_len, buf, *enc_len); + + srtp_err_status_t status = (srtp_err_status_ok); + if (rv != SECSuccess) { + status = (srtp_err_status_cipher_fail); + } + + return status; +} + +/* + * Name of this crypto engine + */ +static const char srtp_aes_icm_128_nss_description[] = + "AES-128 counter mode using NSS"; +static const char srtp_aes_icm_192_nss_description[] = + "AES-192 counter mode using NSS"; +static const char srtp_aes_icm_256_nss_description[] = + "AES-256 counter mode using NSS"; + +/* + * KAT values for AES self-test. These + * values came from the legacy libsrtp code. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_key[SRTP_AES_ICM_128_KEY_LEN_WSALT] = { + 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, + 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_128_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_ciphertext[32] = { + 0xe0, 0x3e, 0xad, 0x09, 0x35, 0xc9, 0x5e, 0x80, + 0xe1, 0x66, 0xb1, 0x6d, 0xd9, 0x2b, 0x4e, 0xb4, + 0xd2, 0x35, 0x13, 0x16, 0x2b, 0x02, 0xd0, 0xf7, + 0x2a, 0x43, 0xa2, 0xfe, 0x4a, 0x5f, 0x97, 0xab +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_128_test_case_0 = { + SRTP_AES_ICM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_128_test_case_0_key, /* key */ + srtp_aes_icm_128_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_128_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_128_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * KAT values for AES-192-CTR self-test. These + * values came from section 7 of RFC 6188. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_key[SRTP_AES_ICM_192_KEY_LEN_WSALT] = { + 0xea, 0xb2, 0x34, 0x76, 0x4e, 0x51, 0x7b, 0x2d, + 0x3d, 0x16, 0x0d, 0x58, 0x7d, 0x8c, 0x86, 0x21, + 0x97, 0x40, 0xf6, 0x5f, 0x99, 0xb6, 0xbc, 0xf7, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_192_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_ciphertext[32] = { + 0x35, 0x09, 0x6c, 0xba, 0x46, 0x10, 0x02, 0x8d, + 0xc1, 0xb5, 0x75, 0x03, 0x80, 0x4c, 0xe3, 0x7c, + 0x5d, 0xe9, 0x86, 0x29, 0x1d, 0xcc, 0xe1, 0x61, + 0xd5, 0x16, 0x5e, 0xc4, 0x56, 0x8f, 0x5c, 0x9a +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_192_test_case_0 = { + SRTP_AES_ICM_192_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_192_test_case_0_key, /* key */ + srtp_aes_icm_192_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_192_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_192_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * KAT values for AES-256-CTR self-test. These + * values came from section 7 of RFC 6188. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_key[SRTP_AES_ICM_256_KEY_LEN_WSALT] = { + 0x57, 0xf8, 0x2f, 0xe3, 0x61, 0x3f, 0xd1, 0x70, + 0xa8, 0x5e, 0xc9, 0x3c, 0x40, 0xb1, 0xf0, 0x92, + 0x2e, 0xc4, 0xcb, 0x0d, 0xc0, 0x25, 0xb5, 0x82, + 0x72, 0x14, 0x7c, 0xc4, 0x38, 0x94, 0x4a, 0x98, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_256_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_ciphertext[32] = { + 0x92, 0xbd, 0xd2, 0x8a, 0x93, 0xc3, 0xf5, 0x25, + 0x11, 0xc6, 0x77, 0xd0, 0x8b, 0x55, 0x15, 0xa4, + 0x9d, 0xa7, 0x1b, 0x23, 0x78, 0xa8, 0x54, 0xf6, + 0x70, 0x50, 0x75, 0x6d, 0xed, 0x16, 0x5b, 0xac +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_256_test_case_0 = { + SRTP_AES_ICM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_256_test_case_0_key, /* key */ + srtp_aes_icm_256_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_256_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_256_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_128 = { + srtp_aes_icm_nss_alloc, /* */ + srtp_aes_icm_nss_dealloc, /* */ + srtp_aes_icm_nss_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_128_nss_description, /* */ + &srtp_aes_icm_128_test_case_0, /* */ + SRTP_AES_ICM_128 /* */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_192 = { + srtp_aes_icm_nss_alloc, /* */ + srtp_aes_icm_nss_dealloc, /* */ + srtp_aes_icm_nss_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_192_nss_description, /* */ + &srtp_aes_icm_192_test_case_0, /* */ + SRTP_AES_ICM_192 /* */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_256 = { + srtp_aes_icm_nss_alloc, /* */ + srtp_aes_icm_nss_dealloc, /* */ + srtp_aes_icm_nss_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_encrypt, /* */ + srtp_aes_icm_nss_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_256_nss_description, /* */ + &srtp_aes_icm_256_test_case_0, /* */ + SRTP_AES_ICM_256 /* */ +}; diff --git a/netwerk/srtp/src/crypto/cipher/aes_icm_ossl.c b/netwerk/srtp/src/crypto/cipher/aes_icm_ossl.c new file mode 100644 index 000000000000..a9b14d3972ab --- /dev/null +++ b/netwerk/srtp/src/crypto/cipher/aes_icm_ossl.c @@ -0,0 +1,540 @@ +/* + * aes_icm_ossl.c + * + * AES Integer Counter Mode + * + * John A. Foley + * Cisco Systems, Inc. + * + * 2/24/2012: This module was modified to use CiscoSSL for AES counter + * mode. Eddy Lem contributed the code to allow this. + * + * 12/20/2012: Added support for AES-192 and AES-256. + */ + +/* + * + * Copyright (c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include "aes_icm_ext.h" +#include "crypto_types.h" +#include "err.h" /* for srtp_debug */ +#include "alloc.h" +#include "cipher_types.h" + +srtp_debug_module_t srtp_mod_aes_icm = { + 0, /* debugging is off by default */ + "aes icm ossl" /* printable module name */ +}; + +/* + * integer counter mode works as follows: + * + * 16 bits + * <-----> + * +------+------+------+------+------+------+------+------+ + * | nonce | packet index | ctr |---+ + * +------+------+------+------+------+------+------+------+ | + * | + * +------+------+------+------+------+------+------+------+ v + * | salt |000000|->(+) + * +------+------+------+------+------+------+------+------+ | + * | + * +---------+ + * | encrypt | + * +---------+ + * | + * +------+------+------+------+------+------+------+------+ | + * | keystream block |<--+ + * +------+------+------+------+------+------+------+------+ + * + * All fields are big-endian + * + * ctr is the block counter, which increments from zero for + * each packet (16 bits wide) + * + * packet index is distinct for each packet (48 bits wide) + * + * nonce can be distinct across many uses of the same key, or + * can be a fixed value per key, or can be per-packet randomness + * (64 bits) + * + */ + +/* + * This function allocates a new instance of this crypto engine. + * The key_len parameter should be one of 30, 38, or 46 for + * AES-128, AES-192, and AES-256 respectively. Note, this key_len + * value is inflated, as it also accounts for the 112 bit salt + * value. The tlen argument is for the AEAD tag length, which + * isn't used in counter mode. + */ +static srtp_err_status_t srtp_aes_icm_openssl_alloc(srtp_cipher_t **c, + int key_len, + int tlen) +{ + srtp_aes_icm_ctx_t *icm; + + debug_print(srtp_mod_aes_icm, "allocating cipher with key length %d", + key_len); + + /* + * Verify the key_len is valid for one of: AES-128/192/256 + */ + if (key_len != SRTP_AES_ICM_128_KEY_LEN_WSALT && + key_len != SRTP_AES_ICM_192_KEY_LEN_WSALT && + key_len != SRTP_AES_ICM_256_KEY_LEN_WSALT) { + return srtp_err_status_bad_param; + } + + /* allocate memory a cipher of type aes_icm */ + *c = (srtp_cipher_t *)srtp_crypto_alloc(sizeof(srtp_cipher_t)); + if (*c == NULL) { + return srtp_err_status_alloc_fail; + } + + icm = (srtp_aes_icm_ctx_t *)srtp_crypto_alloc(sizeof(srtp_aes_icm_ctx_t)); + if (icm == NULL) { + srtp_crypto_free(*c); + *c = NULL; + return srtp_err_status_alloc_fail; + } + + icm->ctx = EVP_CIPHER_CTX_new(); + if (icm->ctx == NULL) { + srtp_crypto_free(icm); + srtp_crypto_free(*c); + *c = NULL; + return srtp_err_status_alloc_fail; + } + + /* set pointers */ + (*c)->state = icm; + + /* setup cipher parameters */ + switch (key_len) { + case SRTP_AES_ICM_128_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_128; + (*c)->type = &srtp_aes_icm_128; + icm->key_size = SRTP_AES_128_KEY_LEN; + break; + case SRTP_AES_ICM_192_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_192; + (*c)->type = &srtp_aes_icm_192; + icm->key_size = SRTP_AES_192_KEY_LEN; + break; + case SRTP_AES_ICM_256_KEY_LEN_WSALT: + (*c)->algorithm = SRTP_AES_ICM_256; + (*c)->type = &srtp_aes_icm_256; + icm->key_size = SRTP_AES_256_KEY_LEN; + break; + } + + /* set key size */ + (*c)->key_len = key_len; + + return srtp_err_status_ok; +} + +/* + * This function deallocates an instance of this engine + */ +static srtp_err_status_t srtp_aes_icm_openssl_dealloc(srtp_cipher_t *c) +{ + srtp_aes_icm_ctx_t *ctx; + + if (c == NULL) { + return srtp_err_status_bad_param; + } + + /* + * Free the EVP context + */ + ctx = (srtp_aes_icm_ctx_t *)c->state; + if (ctx != NULL) { + EVP_CIPHER_CTX_free(ctx->ctx); + /* zeroize the key material */ + octet_string_set_to_zero(ctx, sizeof(srtp_aes_icm_ctx_t)); + srtp_crypto_free(ctx); + } + + /* free memory */ + srtp_crypto_free(c); + + return srtp_err_status_ok; +} + +/* + * aes_icm_openssl_context_init(...) initializes the aes_icm_context + * using the value in key[]. + * + * the key is the secret key + * + * the salt is unpredictable (but not necessarily secret) data which + * randomizes the starting point in the keystream + */ +static srtp_err_status_t srtp_aes_icm_openssl_context_init(void *cv, + const uint8_t *key) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + const EVP_CIPHER *evp; + + /* + * set counter and initial values to 'offset' value, being careful not to + * go past the end of the key buffer + */ + v128_set_to_zero(&c->counter); + v128_set_to_zero(&c->offset); + memcpy(&c->counter, key + c->key_size, SRTP_SALT_LEN); + memcpy(&c->offset, key + c->key_size, SRTP_SALT_LEN); + + /* force last two octets of the offset to zero (for srtp compatibility) */ + c->offset.v8[SRTP_SALT_LEN] = c->offset.v8[SRTP_SALT_LEN + 1] = 0; + c->counter.v8[SRTP_SALT_LEN] = c->counter.v8[SRTP_SALT_LEN + 1] = 0; + + debug_print(srtp_mod_aes_icm, "key: %s", + srtp_octet_string_hex_string(key, c->key_size)); + debug_print(srtp_mod_aes_icm, "offset: %s", v128_hex_string(&c->offset)); + + switch (c->key_size) { + case SRTP_AES_256_KEY_LEN: + evp = EVP_aes_256_ctr(); + break; + case SRTP_AES_192_KEY_LEN: + evp = EVP_aes_192_ctr(); + break; + case SRTP_AES_128_KEY_LEN: + evp = EVP_aes_128_ctr(); + break; + default: + return srtp_err_status_bad_param; + break; + } + + if (!EVP_EncryptInit_ex(c->ctx, evp, NULL, key, NULL)) { + return srtp_err_status_fail; + } else { + return srtp_err_status_ok; + } + + return srtp_err_status_ok; +} + +/* + * aes_icm_set_iv(c, iv) sets the counter value to the exor of iv with + * the offset + */ +static srtp_err_status_t srtp_aes_icm_openssl_set_iv( + void *cv, + uint8_t *iv, + srtp_cipher_direction_t dir) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + v128_t nonce; + + /* set nonce (for alignment) */ + v128_copy_octet_string(&nonce, iv); + + debug_print(srtp_mod_aes_icm, "setting iv: %s", v128_hex_string(&nonce)); + + v128_xor(&c->counter, &c->offset, &nonce); + + debug_print(srtp_mod_aes_icm, "set_counter: %s", + v128_hex_string(&c->counter)); + + if (!EVP_EncryptInit_ex(c->ctx, NULL, NULL, NULL, c->counter.v8)) { + return srtp_err_status_fail; + } else { + return srtp_err_status_ok; + } +} + +/* + * This function encrypts a buffer using AES CTR mode + * + * Parameters: + * c Crypto context + * buf data to encrypt + * enc_len length of encrypt buffer + */ +static srtp_err_status_t srtp_aes_icm_openssl_encrypt(void *cv, + unsigned char *buf, + unsigned int *enc_len) +{ + srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv; + int len = 0; + + debug_print(srtp_mod_aes_icm, "rs0: %s", v128_hex_string(&c->counter)); + + if (!EVP_EncryptUpdate(c->ctx, buf, &len, buf, *enc_len)) { + return srtp_err_status_cipher_fail; + } + *enc_len = len; + + if (!EVP_EncryptFinal_ex(c->ctx, buf, &len)) { + return srtp_err_status_cipher_fail; + } + *enc_len += len; + + return srtp_err_status_ok; +} + +/* + * Name of this crypto engine + */ +static const char srtp_aes_icm_128_openssl_description[] = + "AES-128 counter mode using openssl"; +static const char srtp_aes_icm_192_openssl_description[] = + "AES-192 counter mode using openssl"; +static const char srtp_aes_icm_256_openssl_description[] = + "AES-256 counter mode using openssl"; + +/* + * KAT values for AES self-test. These + * values came from the legacy libsrtp code. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_key[SRTP_AES_ICM_128_KEY_LEN_WSALT] = { + 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, + 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_128_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_128_test_case_0_ciphertext[32] = { + 0xe0, 0x3e, 0xad, 0x09, 0x35, 0xc9, 0x5e, 0x80, + 0xe1, 0x66, 0xb1, 0x6d, 0xd9, 0x2b, 0x4e, 0xb4, + 0xd2, 0x35, 0x13, 0x16, 0x2b, 0x02, 0xd0, 0xf7, + 0x2a, 0x43, 0xa2, 0xfe, 0x4a, 0x5f, 0x97, 0xab +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_128_test_case_0 = { + SRTP_AES_ICM_128_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_128_test_case_0_key, /* key */ + srtp_aes_icm_128_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_128_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_128_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * KAT values for AES-192-CTR self-test. These + * values came from section 7 of RFC 6188. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_key[SRTP_AES_ICM_192_KEY_LEN_WSALT] = { + 0xea, 0xb2, 0x34, 0x76, 0x4e, 0x51, 0x7b, 0x2d, + 0x3d, 0x16, 0x0d, 0x58, 0x7d, 0x8c, 0x86, 0x21, + 0x97, 0x40, 0xf6, 0x5f, 0x99, 0xb6, 0xbc, 0xf7, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_192_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_192_test_case_0_ciphertext[32] = { + 0x35, 0x09, 0x6c, 0xba, 0x46, 0x10, 0x02, 0x8d, + 0xc1, 0xb5, 0x75, 0x03, 0x80, 0x4c, 0xe3, 0x7c, + 0x5d, 0xe9, 0x86, 0x29, 0x1d, 0xcc, 0xe1, 0x61, + 0xd5, 0x16, 0x5e, 0xc4, 0x56, 0x8f, 0x5c, 0x9a +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_192_test_case_0 = { + SRTP_AES_ICM_192_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_192_test_case_0_key, /* key */ + srtp_aes_icm_192_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_192_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_192_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * KAT values for AES-256-CTR self-test. These + * values came from section 7 of RFC 6188. + */ +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_key[SRTP_AES_ICM_256_KEY_LEN_WSALT] = { + 0x57, 0xf8, 0x2f, 0xe3, 0x61, 0x3f, 0xd1, 0x70, + 0xa8, 0x5e, 0xc9, 0x3c, 0x40, 0xb1, 0xf0, 0x92, + 0x2e, 0xc4, 0xcb, 0x0d, 0xc0, 0x25, 0xb5, 0x82, + 0x72, 0x14, 0x7c, 0xc4, 0x38, 0x94, 0x4a, 0x98, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd +}; +/* clang-format on */ + +/* clang-format off */ +static uint8_t srtp_aes_icm_256_test_case_0_nonce[16] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_plaintext[32] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_aes_icm_256_test_case_0_ciphertext[32] = { + 0x92, 0xbd, 0xd2, 0x8a, 0x93, 0xc3, 0xf5, 0x25, + 0x11, 0xc6, 0x77, 0xd0, 0x8b, 0x55, 0x15, 0xa4, + 0x9d, 0xa7, 0x1b, 0x23, 0x78, 0xa8, 0x54, 0xf6, + 0x70, 0x50, 0x75, 0x6d, 0xed, 0x16, 0x5b, 0xac +}; +/* clang-format on */ + +static const srtp_cipher_test_case_t srtp_aes_icm_256_test_case_0 = { + SRTP_AES_ICM_256_KEY_LEN_WSALT, /* octets in key */ + srtp_aes_icm_256_test_case_0_key, /* key */ + srtp_aes_icm_256_test_case_0_nonce, /* packet index */ + 32, /* octets in plaintext */ + srtp_aes_icm_256_test_case_0_plaintext, /* plaintext */ + 32, /* octets in ciphertext */ + srtp_aes_icm_256_test_case_0_ciphertext, /* ciphertext */ + 0, /* */ + NULL, /* */ + 0, /* */ + NULL /* pointer to next testcase */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_128 = { + srtp_aes_icm_openssl_alloc, /* */ + srtp_aes_icm_openssl_dealloc, /* */ + srtp_aes_icm_openssl_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_128_openssl_description, /* */ + &srtp_aes_icm_128_test_case_0, /* */ + SRTP_AES_ICM_128 /* */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_192 = { + srtp_aes_icm_openssl_alloc, /* */ + srtp_aes_icm_openssl_dealloc, /* */ + srtp_aes_icm_openssl_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_192_openssl_description, /* */ + &srtp_aes_icm_192_test_case_0, /* */ + SRTP_AES_ICM_192 /* */ +}; + +/* + * This is the function table for this crypto engine. + * note: the encrypt function is identical to the decrypt function + */ +const srtp_cipher_type_t srtp_aes_icm_256 = { + srtp_aes_icm_openssl_alloc, /* */ + srtp_aes_icm_openssl_dealloc, /* */ + srtp_aes_icm_openssl_context_init, /* */ + 0, /* set_aad */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_encrypt, /* */ + srtp_aes_icm_openssl_set_iv, /* */ + 0, /* get_tag */ + srtp_aes_icm_256_openssl_description, /* */ + &srtp_aes_icm_256_test_case_0, /* */ + SRTP_AES_ICM_256 /* */ +}; diff --git a/netwerk/srtp/src/crypto/hash/hmac_ossl.c b/netwerk/srtp/src/crypto/hash/hmac_ossl.c new file mode 100644 index 000000000000..8146438b051b --- /dev/null +++ b/netwerk/srtp/src/crypto/hash/hmac_ossl.c @@ -0,0 +1,273 @@ +/* + * hmac_ossl.c + * + * Implementation of hmac srtp_auth_type_t that leverages OpenSSL + * + * John A. Foley + * Cisco Systems, Inc. + */ +/* + * + * Copyright(c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "auth.h" +#include "alloc.h" +#include "err.h" /* for srtp_debug */ +#include +#include + +#define SHA1_DIGEST_SIZE 20 + +/* the debug module for authentiation */ + +srtp_debug_module_t srtp_mod_hmac = { + 0, /* debugging is off by default */ + "hmac sha-1 openssl" /* printable name for module */ +}; + +static srtp_err_status_t srtp_hmac_alloc(srtp_auth_t **a, + int key_len, + int out_len) +{ + extern const srtp_auth_type_t srtp_hmac; + + debug_print(srtp_mod_hmac, "allocating auth func with key length %d", + key_len); + debug_print(srtp_mod_hmac, " tag length %d", + out_len); + + /* check output length - should be less than 20 bytes */ + if (out_len > SHA1_DIGEST_SIZE) { + return srtp_err_status_bad_param; + } + +/* OpenSSL 1.1.0 made HMAC_CTX an opaque structure, which must be allocated + using HMAC_CTX_new. But this function doesn't exist in OpenSSL 1.0.x. */ +#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER + { + /* allocate memory for auth and HMAC_CTX structures */ + uint8_t *pointer; + HMAC_CTX *new_hmac_ctx; + pointer = (uint8_t *)srtp_crypto_alloc(sizeof(HMAC_CTX) + + sizeof(srtp_auth_t)); + if (pointer == NULL) { + return srtp_err_status_alloc_fail; + } + *a = (srtp_auth_t *)pointer; + (*a)->state = pointer + sizeof(srtp_auth_t); + new_hmac_ctx = (HMAC_CTX *)((*a)->state); + + HMAC_CTX_init(new_hmac_ctx); + } + +#else + *a = (srtp_auth_t *)srtp_crypto_alloc(sizeof(srtp_auth_t)); + if (*a == NULL) { + return srtp_err_status_alloc_fail; + } + + (*a)->state = HMAC_CTX_new(); + if ((*a)->state == NULL) { + srtp_crypto_free(*a); + *a = NULL; + return srtp_err_status_alloc_fail; + } +#endif + + /* set pointers */ + (*a)->type = &srtp_hmac; + (*a)->out_len = out_len; + (*a)->key_len = key_len; + (*a)->prefix_len = 0; + + return srtp_err_status_ok; +} + +static srtp_err_status_t srtp_hmac_dealloc(srtp_auth_t *a) +{ + HMAC_CTX *hmac_ctx; + + hmac_ctx = (HMAC_CTX *)a->state; + +#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER + HMAC_CTX_cleanup(hmac_ctx); + + /* zeroize entire state*/ + octet_string_set_to_zero(a, sizeof(HMAC_CTX) + sizeof(srtp_auth_t)); + +#else + HMAC_CTX_free(hmac_ctx); + + /* zeroize entire state*/ + octet_string_set_to_zero(a, sizeof(srtp_auth_t)); +#endif + + /* free memory */ + srtp_crypto_free(a); + + return srtp_err_status_ok; +} + +static srtp_err_status_t srtp_hmac_start(void *statev) +{ + HMAC_CTX *state = (HMAC_CTX *)statev; + + if (HMAC_Init_ex(state, NULL, 0, NULL, NULL) == 0) + return srtp_err_status_auth_fail; + + return srtp_err_status_ok; +} + +static srtp_err_status_t srtp_hmac_init(void *statev, + const uint8_t *key, + int key_len) +{ + HMAC_CTX *state = (HMAC_CTX *)statev; + + if (HMAC_Init_ex(state, key, key_len, EVP_sha1(), NULL) == 0) + return srtp_err_status_auth_fail; + + return srtp_err_status_ok; +} + +static srtp_err_status_t srtp_hmac_update(void *statev, + const uint8_t *message, + int msg_octets) +{ + HMAC_CTX *state = (HMAC_CTX *)statev; + + debug_print(srtp_mod_hmac, "input: %s", + srtp_octet_string_hex_string(message, msg_octets)); + + if (HMAC_Update(state, message, msg_octets) == 0) + return srtp_err_status_auth_fail; + + return srtp_err_status_ok; +} + +static srtp_err_status_t srtp_hmac_compute(void *statev, + const uint8_t *message, + int msg_octets, + int tag_len, + uint8_t *result) +{ + HMAC_CTX *state = (HMAC_CTX *)statev; + uint8_t hash_value[SHA1_DIGEST_SIZE]; + int i; + unsigned int len; + + /* check tag length, return error if we can't provide the value expected */ + if (tag_len > SHA1_DIGEST_SIZE) { + return srtp_err_status_bad_param; + } + + /* hash message, copy output into H */ + if (HMAC_Update(state, message, msg_octets) == 0) + return srtp_err_status_auth_fail; + + if (HMAC_Final(state, hash_value, &len) == 0) + return srtp_err_status_auth_fail; + + if (len < tag_len) + return srtp_err_status_auth_fail; + + /* copy hash_value to *result */ + for (i = 0; i < tag_len; i++) { + result[i] = hash_value[i]; + } + + debug_print(srtp_mod_hmac, "output: %s", + srtp_octet_string_hex_string(hash_value, tag_len)); + + return srtp_err_status_ok; +} + +/* begin test case 0 */ +/* clang-format off */ +static const uint8_t srtp_hmac_test_case_0_key[SHA1_DIGEST_SIZE] = { + 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, + 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, + 0x0b, 0x0b, 0x0b, 0x0b +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_hmac_test_case_0_data[8] = { + 0x48, 0x69, 0x20, 0x54, 0x68, 0x65, 0x72, 0x65 /* "Hi There" */ +}; +/* clang-format on */ + +/* clang-format off */ +static const uint8_t srtp_hmac_test_case_0_tag[SHA1_DIGEST_SIZE] = { + 0xb6, 0x17, 0x31, 0x86, 0x55, 0x05, 0x72, 0x64, + 0xe2, 0x8b, 0xc0, 0xb6, 0xfb, 0x37, 0x8c, 0x8e, + 0xf1, 0x46, 0xbe, 0x00 +}; +/* clang-format on */ + +static const srtp_auth_test_case_t srtp_hmac_test_case_0 = { + sizeof(srtp_hmac_test_case_0_key), /* octets in key */ + srtp_hmac_test_case_0_key, /* key */ + sizeof(srtp_hmac_test_case_0_data), /* octets in data */ + srtp_hmac_test_case_0_data, /* data */ + sizeof(srtp_hmac_test_case_0_tag), /* octets in tag */ + srtp_hmac_test_case_0_tag, /* tag */ + NULL /* pointer to next testcase */ +}; + +/* end test case 0 */ + +static const char srtp_hmac_description[] = + "hmac sha-1 authentication function"; + +/* + * srtp_auth_type_t hmac is the hmac metaobject + */ + +const srtp_auth_type_t srtp_hmac = { + srtp_hmac_alloc, /* */ + srtp_hmac_dealloc, /* */ + srtp_hmac_init, /* */ + srtp_hmac_compute, /* */ + srtp_hmac_update, /* */ + srtp_hmac_start, /* */ + srtp_hmac_description, /* */ + &srtp_hmac_test_case_0, /* */ + SRTP_HMAC_SHA1 /* */ +}; diff --git a/netwerk/srtp/src/crypto/include/aes_gcm.h b/netwerk/srtp/src/crypto/include/aes_gcm.h new file mode 100644 index 000000000000..f59d04dbca58 --- /dev/null +++ b/netwerk/srtp/src/crypto/include/aes_gcm.h @@ -0,0 +1,87 @@ +/* + * aes_gcm.h + * + * Header for AES Galois Counter Mode. + * + * John A. Foley + * Cisco Systems, Inc. + * + */ +/* + * + * Copyright (c) 2013-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifndef AES_GCM_H +#define AES_GCM_H + +#include "cipher.h" +#include "srtp.h" +#include "datatypes.h" + +#ifdef OPENSSL + +#include +#include + +typedef struct { + int key_size; + int tag_len; + EVP_CIPHER_CTX *ctx; + srtp_cipher_direction_t dir; +} srtp_aes_gcm_ctx_t; + +#endif /* OPENSSL */ + +#ifdef NSS + +#include + +#define MAX_AD_SIZE 2048 + +typedef struct { + int key_size; + int tag_size; + srtp_cipher_direction_t dir; + PK11SymKey *key; + uint8_t iv[12]; + uint8_t aad[MAX_AD_SIZE]; + int aad_size; + CK_GCM_PARAMS params; + uint8_t tag[16]; +} srtp_aes_gcm_ctx_t; + +#endif /* NSS */ + +#endif /* AES_GCM_H */ diff --git a/netwerk/srtp/src/crypto/include/aes_icm_ext.h b/netwerk/srtp/src/crypto/include/aes_icm_ext.h new file mode 100644 index 000000000000..6518d40b06b3 --- /dev/null +++ b/netwerk/srtp/src/crypto/include/aes_icm_ext.h @@ -0,0 +1,81 @@ +/* + * aes_icm.h + * + * Header for AES Integer Counter Mode. + * + * David A. McGrew + * Cisco Systems, Inc. + * + */ +/* + * + * Copyright (c) 2001-2017, Cisco Systems, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * Neither the name of the Cisco Systems, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#ifndef AES_ICM_H +#define AES_ICM_H + +#include "cipher.h" +#include "datatypes.h" + +#ifdef OPENSSL + +#include +#include + +typedef struct { + v128_t counter; /* holds the counter value */ + v128_t offset; /* initial offset value */ + int key_size; + EVP_CIPHER_CTX *ctx; +} srtp_aes_icm_ctx_t; + +#endif /* OPENSSL */ + +#ifdef NSS + +#include + +typedef struct { + v128_t counter; + v128_t offset; + int key_size; + uint8_t iv[16]; + PK11SymKey *key; + PK11Context *ctx; +} srtp_aes_icm_ctx_t; + +#endif /* NSS */ + +#endif /* AES_ICM_H */ diff --git a/netwerk/srtp/src/crypto/include/cipher_types.h b/netwerk/srtp/src/crypto/include/cipher_types.h index 7e548d4288f4..18f0328fbb6c 100644 --- a/netwerk/srtp/src/crypto/include/cipher_types.h +++ b/netwerk/srtp/src/crypto/include/cipher_types.h @@ -44,38 +44,41 @@ * cipher types that can be included in the kernel */ -const srtp_cipher_type_t srtp_null_cipher; -const srtp_cipher_type_t srtp_aes_icm_128; -const srtp_cipher_type_t srtp_aes_icm_256; -#ifdef OPENSSL -const srtp_cipher_type_t srtp_aes_icm_192; -const srtp_cipher_type_t srtp_aes_gcm_128_openssl; -const srtp_cipher_type_t srtp_aes_gcm_256_openssl; +extern const srtp_cipher_type_t srtp_null_cipher; +extern const srtp_cipher_type_t srtp_aes_icm_128; +extern const srtp_cipher_type_t srtp_aes_icm_256; +#ifdef GCM +extern const srtp_cipher_type_t srtp_aes_icm_192; +extern const srtp_cipher_type_t srtp_aes_gcm_128; +extern const srtp_cipher_type_t srtp_aes_gcm_256; #endif /* * auth func types that can be included in the kernel */ -const srtp_auth_type_t srtp_null_auth; -const srtp_auth_type_t srtp_hmac; +extern const srtp_auth_type_t srtp_null_auth; +extern const srtp_auth_type_t srtp_hmac; /* * other generic debug modules that can be included in the kernel */ -srtp_debug_module_t srtp_mod_auth; -srtp_debug_module_t srtp_mod_cipher; -srtp_debug_module_t mod_stat; -srtp_debug_module_t mod_alloc; +extern srtp_debug_module_t srtp_mod_auth; +extern srtp_debug_module_t srtp_mod_cipher; +extern srtp_debug_module_t srtp_mod_stat; +extern srtp_debug_module_t srtp_mod_alloc; /* debug modules for cipher types */ -srtp_debug_module_t srtp_mod_aes_icm; +extern srtp_debug_module_t srtp_mod_aes_icm; #ifdef OPENSSL -srtp_debug_module_t srtp_mod_aes_gcm; +extern srtp_debug_module_t srtp_mod_aes_gcm; +#endif +#ifdef NSS +extern srtp_debug_module_t srtp_mod_aes_gcm; #endif /* debug modules for auth types */ -srtp_debug_module_t srtp_mod_hmac; +extern srtp_debug_module_t srtp_mod_hmac; #endif diff --git a/netwerk/srtp/src/crypto/include/sha1.h b/netwerk/srtp/src/crypto/include/sha1.h index 2ee04dcbe069..933c1466a3cf 100644 --- a/netwerk/srtp/src/crypto/include/sha1.h +++ b/netwerk/srtp/src/crypto/include/sha1.h @@ -81,7 +81,7 @@ extern "C" { /* OpenSSL 1.1.0 made EVP_MD_CTX an opaque structure, which must be allocated using EVP_MD_CTX_new. But this function doesn't exist in OpenSSL 1.0.x. */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER typedef EVP_MD_CTX srtp_sha1_ctx_t; diff --git a/netwerk/srtp/src/crypto/kernel/alloc.c b/netwerk/srtp/src/crypto/kernel/alloc.c index cd0555644e7c..dbe58266f43a 100644 --- a/netwerk/srtp/src/crypto/kernel/alloc.c +++ b/netwerk/srtp/src/crypto/kernel/alloc.c @@ -51,7 +51,7 @@ /* the debug module for memory allocation */ -srtp_debug_module_t mod_alloc = { +srtp_debug_module_t srtp_mod_alloc = { 0, /* debugging is off by default */ "alloc" /* printable name for module */ }; @@ -71,12 +71,16 @@ void *srtp_crypto_alloc(size_t size) { void *ptr; + if (!size) { + return NULL; + } + ptr = calloc(1, size); if (ptr) { - debug_print(mod_alloc, "(location: %p) allocated", ptr); + debug_print(srtp_mod_alloc, "(location: %p) allocated", ptr); } else { - debug_print(mod_alloc, "allocation failed (asked for %d bytes)\n", + debug_print(srtp_mod_alloc, "allocation failed (asked for %d bytes)\n", size); } @@ -85,7 +89,7 @@ void *srtp_crypto_alloc(size_t size) void srtp_crypto_free(void *ptr) { - debug_print(mod_alloc, "(location: %p) freed", ptr); + debug_print(srtp_mod_alloc, "(location: %p) freed", ptr); free(ptr); } diff --git a/netwerk/srtp/src/crypto/kernel/crypto_kernel.c b/netwerk/srtp/src/crypto/kernel/crypto_kernel.c index bd420dd705d0..df6af7da889f 100644 --- a/netwerk/srtp/src/crypto/kernel/crypto_kernel.c +++ b/netwerk/srtp/src/crypto/kernel/crypto_kernel.c @@ -101,11 +101,11 @@ srtp_err_status_t srtp_crypto_kernel_init() if (status) { return status; } - status = srtp_crypto_kernel_load_debug_module(&mod_stat); + status = srtp_crypto_kernel_load_debug_module(&srtp_mod_stat); if (status) { return status; } - status = srtp_crypto_kernel_load_debug_module(&mod_alloc); + status = srtp_crypto_kernel_load_debug_module(&srtp_mod_alloc); if (status) { return status; } @@ -130,18 +130,18 @@ srtp_err_status_t srtp_crypto_kernel_init() if (status) { return status; } -#ifdef OPENSSL +#ifdef GCM status = srtp_crypto_kernel_load_cipher_type(&srtp_aes_icm_192, SRTP_AES_ICM_192); if (status) { return status; } - status = srtp_crypto_kernel_load_cipher_type(&srtp_aes_gcm_128_openssl, + status = srtp_crypto_kernel_load_cipher_type(&srtp_aes_gcm_128, SRTP_AES_GCM_128); if (status) { return status; } - status = srtp_crypto_kernel_load_cipher_type(&srtp_aes_gcm_256_openssl, + status = srtp_crypto_kernel_load_cipher_type(&srtp_aes_gcm_256, SRTP_AES_GCM_256); if (status) { return status; @@ -512,7 +512,7 @@ srtp_err_status_t srtp_crypto_kernel_load_debug_module( srtp_kernel_debug_module_t *kdm, *new; /* defensive coding */ - if (new_dm == NULL) { + if (new_dm == NULL || new_dm->name == NULL) { return srtp_err_status_bad_param; } diff --git a/netwerk/srtp/src/crypto/math/datatypes.c b/netwerk/srtp/src/crypto/math/datatypes.c index d35789ac634b..85c1cbf29265 100644 --- a/netwerk/srtp/src/crypto/math/datatypes.c +++ b/netwerk/srtp/src/crypto/math/datatypes.c @@ -328,9 +328,11 @@ int bitvector_alloc(bitvector_t *v, unsigned long length) l = length / bits_per_word * bytes_per_word; /* allocate memory, then set parameters */ - if (l == 0) + if (l == 0) { v->word = NULL; - else { + v->length = 0; + return -1; + } else { v->word = (uint32_t *)srtp_crypto_alloc(l); if (v->word == NULL) { v->length = 0; @@ -434,7 +436,7 @@ void srtp_cleanse(void *s, size_t len) void octet_string_set_to_zero(void *s, size_t len) { -#ifdef OPENSSL +#if defined(OPENSSL) && !defined(OPENSSL_CLEANSE_BROKEN) OPENSSL_cleanse(s, len); #else srtp_cleanse(s, len); diff --git a/netwerk/srtp/src/crypto/math/stat.c b/netwerk/srtp/src/crypto/math/stat.c index 00ca10134294..6dd332b0cf53 100644 --- a/netwerk/srtp/src/crypto/math/stat.c +++ b/netwerk/srtp/src/crypto/math/stat.c @@ -49,7 +49,7 @@ #include "stat.h" -srtp_debug_module_t mod_stat = { +srtp_debug_module_t srtp_mod_stat = { 0, /* debugging is off by default */ (char *)"stat test" /* printable module name */ }; @@ -72,7 +72,7 @@ srtp_err_status_t stat_test_monobit(uint8_t *data) data++; } - debug_print(mod_stat, "bit count: %d", ones_count); + debug_print(srtp_mod_stat, "bit count: %d", ones_count); if ((ones_count < 9725) || (ones_count > 10275)) return srtp_err_status_algo_fail; @@ -100,7 +100,7 @@ srtp_err_status_t stat_test_poker(uint8_t *data) poker *= (16.0 / 5000.0); poker -= 5000.0; - debug_print(mod_stat, "poker test: %f\n", poker); + debug_print(srtp_mod_stat, "poker test: %f\n", poker); if ((poker < 2.16) || (poker > 46.17)) return srtp_err_status_algo_fail; @@ -139,14 +139,14 @@ srtp_err_status_t stat_test_runs(uint8_t *data) /* check for long runs */ if (state > 25) { - debug_print(mod_stat, ">25 runs: %d", state); + debug_print(srtp_mod_stat, ">25 runs: %d", state); return srtp_err_status_algo_fail; } } else if (state < 0) { /* prefix is a gap */ if (state < -25) { - debug_print(mod_stat, ">25 gaps: %d", state); + debug_print(srtp_mod_stat, ">25 gaps: %d", state); return srtp_err_status_algo_fail; /* long-runs test failed */ } @@ -164,7 +164,7 @@ srtp_err_status_t stat_test_runs(uint8_t *data) if (state > 0) { /* prefix is a run */ if (state > 25) { - debug_print(mod_stat, ">25 runs (2): %d", state); + debug_print(srtp_mod_stat, ">25 runs (2): %d", state); return srtp_err_status_algo_fail; /* long-runs test failed */ } @@ -180,7 +180,7 @@ srtp_err_status_t stat_test_runs(uint8_t *data) /* check for long gaps */ if (state < -25) { - debug_print(mod_stat, ">25 gaps (2): %d", state); + debug_print(srtp_mod_stat, ">25 gaps (2): %d", state); return srtp_err_status_algo_fail; } @@ -195,12 +195,12 @@ srtp_err_status_t stat_test_runs(uint8_t *data) data++; } - if (mod_stat.on) { - debug_print(mod_stat, "runs test", NULL); + if (srtp_mod_stat.on) { + debug_print(srtp_mod_stat, "runs test", NULL); for (i = 0; i < 6; i++) - debug_print(mod_stat, " runs[]: %d", runs[i]); + debug_print(srtp_mod_stat, " runs[]: %d", runs[i]); for (i = 0; i < 6; i++) - debug_print(mod_stat, " gaps[]: %d", gaps[i]); + debug_print(srtp_mod_stat, " gaps[]: %d", gaps[i]); } /* check run and gap counts against the fixed limits */ diff --git a/netwerk/srtp/src/crypto/test/cipher_driver.c b/netwerk/srtp/src/crypto/test/cipher_driver.c index e28f5f264f8d..4959c90c02b8 100644 --- a/netwerk/srtp/src/crypto/test/cipher_driver.c +++ b/netwerk/srtp/src/crypto/test/cipher_driver.c @@ -51,9 +51,9 @@ #include /* for rand() */ #include "getopt_s.h" #include "cipher.h" -#ifdef OPENSSL -#include "aes_icm_ossl.h" -#include "aes_gcm_ossl.h" +#ifdef GCM +#include "aes_icm_ext.h" +#include "aes_gcm.h" #else #include "aes_icm.h" #endif @@ -118,10 +118,10 @@ void check_status(srtp_err_status_t s) extern srtp_cipher_type_t srtp_null_cipher; extern srtp_cipher_type_t srtp_aes_icm_128; extern srtp_cipher_type_t srtp_aes_icm_256; -#ifdef OPENSSL +#ifdef GCM extern srtp_cipher_type_t srtp_aes_icm_192; -extern srtp_cipher_type_t srtp_aes_gcm_128_openssl; -extern srtp_cipher_type_t srtp_aes_gcm_256_openssl; +extern srtp_cipher_type_t srtp_aes_gcm_128; +extern srtp_cipher_type_t srtp_aes_gcm_256; #endif int main(int argc, char *argv[]) @@ -187,21 +187,19 @@ int main(int argc, char *argv[]) cipher_driver_test_array_throughput( &srtp_aes_icm_256, SRTP_AES_ICM_256_KEY_LEN_WSALT, num_cipher); -#ifdef OPENSSL +#ifdef GCM for (num_cipher = 1; num_cipher < max_num_cipher; num_cipher *= 8) cipher_driver_test_array_throughput( &srtp_aes_icm_192, SRTP_AES_ICM_192_KEY_LEN_WSALT, num_cipher); for (num_cipher = 1; num_cipher < max_num_cipher; num_cipher *= 8) { - cipher_driver_test_array_throughput(&srtp_aes_gcm_128_openssl, - SRTP_AES_GCM_128_KEY_LEN_WSALT, - num_cipher); + cipher_driver_test_array_throughput( + &srtp_aes_gcm_128, SRTP_AES_GCM_128_KEY_LEN_WSALT, num_cipher); } for (num_cipher = 1; num_cipher < max_num_cipher; num_cipher *= 8) { - cipher_driver_test_array_throughput(&srtp_aes_gcm_256_openssl, - SRTP_AES_GCM_256_KEY_LEN_WSALT, - num_cipher); + cipher_driver_test_array_throughput( + &srtp_aes_gcm_256, SRTP_AES_GCM_256_KEY_LEN_WSALT, num_cipher); } #endif } @@ -210,10 +208,10 @@ int main(int argc, char *argv[]) cipher_driver_self_test(&srtp_null_cipher); cipher_driver_self_test(&srtp_aes_icm_128); cipher_driver_self_test(&srtp_aes_icm_256); -#ifdef OPENSSL +#ifdef GCM cipher_driver_self_test(&srtp_aes_icm_192); - cipher_driver_self_test(&srtp_aes_gcm_128_openssl); - cipher_driver_self_test(&srtp_aes_gcm_256_openssl); + cipher_driver_self_test(&srtp_aes_gcm_128); + cipher_driver_self_test(&srtp_aes_gcm_256); #endif } @@ -277,9 +275,9 @@ int main(int argc, char *argv[]) status = srtp_cipher_dealloc(c); check_status(status); -#ifdef OPENSSL - /* run the throughput test on the aes_gcm_128_openssl cipher */ - status = srtp_cipher_type_alloc(&srtp_aes_gcm_128_openssl, &c, +#ifdef GCM + /* run the throughput test on the aes_gcm_128 cipher */ + status = srtp_cipher_type_alloc(&srtp_aes_gcm_128, &c, SRTP_AES_GCM_128_KEY_LEN_WSALT, 8); if (status) { fprintf(stderr, "error: can't allocate GCM 128 cipher\n"); @@ -291,15 +289,13 @@ int main(int argc, char *argv[]) cipher_driver_test_throughput(c); } - if (do_validation) { - status = cipher_driver_test_buffering(c); - check_status(status); - } + // GCM ciphers don't do buffering; they're "one shot" + status = srtp_cipher_dealloc(c); check_status(status); - /* run the throughput test on the aes_gcm_256_openssl cipher */ - status = srtp_cipher_type_alloc(&srtp_aes_gcm_256_openssl, &c, + /* run the throughput test on the aes_gcm_256 cipher */ + status = srtp_cipher_type_alloc(&srtp_aes_gcm_256, &c, SRTP_AES_GCM_256_KEY_LEN_WSALT, 16); if (status) { fprintf(stderr, "error: can't allocate GCM 256 cipher\n"); @@ -311,10 +307,8 @@ int main(int argc, char *argv[]) cipher_driver_test_throughput(c); } - if (do_validation) { - status = cipher_driver_test_buffering(c); - check_status(status); - } + // GCM ciphers don't do buffering; they're "one shot" + status = srtp_cipher_dealloc(c); check_status(status); #endif diff --git a/netwerk/srtp/src/crypto/test/datatypes_driver.c b/netwerk/srtp/src/crypto/test/datatypes_driver.c index 2f78903eb8eb..96379befe15d 100644 --- a/netwerk/srtp/src/crypto/test/datatypes_driver.c +++ b/netwerk/srtp/src/crypto/test/datatypes_driver.c @@ -60,6 +60,8 @@ void print_string(char *s); void test_bswap(void); +void test_set_to_zero(void); + int main(void) { /* @@ -135,6 +137,7 @@ int main(void) printf(" } \n"); test_bswap(); + test_set_to_zero(); return 0; } @@ -228,3 +231,26 @@ void test_bswap(void) printf("bswapped octet string: %s\n", octet_string_hex_string((uint8_t *)&y, 8)); } + +void test_set_to_zero(void) +{ +#define BUFFER_SIZE (16) + uint8_t buffer[BUFFER_SIZE]; + size_t i; + + for (i = 0; i < BUFFER_SIZE; i++) { + buffer[i] = i & 0xff; + } + printf("Buffer before: %s\n", octet_string_hex_string(buffer, BUFFER_SIZE)); + octet_string_set_to_zero(buffer, BUFFER_SIZE); + printf("Buffer after: %s\n", octet_string_hex_string(buffer, BUFFER_SIZE)); + for (i = 0; i < BUFFER_SIZE; i++) { + if (buffer[i]) { + fprintf(stderr, + "Buffer contents not zero at position %zu (is %d)\n", i, + buffer[i]); + abort(); + } + } +#undef BUFFER_SIZE +} diff --git a/netwerk/srtp/src/crypto/test/stat_driver.c b/netwerk/srtp/src/crypto/test/stat_driver.c index 4149447f7481..7f835855cec7 100644 --- a/netwerk/srtp/src/crypto/test/stat_driver.c +++ b/netwerk/srtp/src/crypto/test/stat_driver.c @@ -76,9 +76,9 @@ int main(int argc, char *argv[]) int i, j; extern srtp_cipher_type_t srtp_aes_icm_128; extern srtp_cipher_type_t srtp_aes_icm_256; -#ifdef OPENSSL - extern srtp_cipher_type_t srtp_aes_gcm_128_openssl; - extern srtp_cipher_type_t srtp_aes_gcm_256_openssl; +#ifdef GCM + extern srtp_cipher_type_t srtp_aes_gcm_128; + extern srtp_cipher_type_t srtp_aes_gcm_256; #endif srtp_cipher_t *c; /* clang-format off */ @@ -180,14 +180,14 @@ int main(int argc, char *argv[]) } } -#ifdef OPENSSL +#ifdef GCM { printf("running stat_tests on AES-128-GCM, expecting success\n"); /* set buffer to cipher output */ for (i = 0; i < 2500; i++) { buffer[i] = 0; } - err_check(srtp_cipher_type_alloc(&srtp_aes_gcm_128_openssl, &c, + err_check(srtp_cipher_type_alloc(&srtp_aes_gcm_128, &c, SRTP_AES_GCM_128_KEY_LEN_WSALT, 8)); err_check(srtp_cipher_init(c, key)); err_check( @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) for (i = 0; i < 2500; i++) { buffer[i] = 0; } - err_check(srtp_cipher_type_alloc(&srtp_aes_gcm_256_openssl, &c, + err_check(srtp_cipher_type_alloc(&srtp_aes_gcm_256, &c, SRTP_AES_GCM_256_KEY_LEN_WSALT, 16)); err_check(srtp_cipher_init(c, key)); err_check( diff --git a/netwerk/srtp/src/moz.build b/netwerk/srtp/src/moz.build index eb8a85ee44fc..06c838cdf9b2 100644 --- a/netwerk/srtp/src/moz.build +++ b/netwerk/srtp/src/moz.build @@ -5,8 +5,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. UNIFIED_SOURCES += [ - 'crypto/cipher/aes.c', - 'crypto/cipher/aes_icm.c', + 'crypto/cipher/aes_gcm_nss.c', + 'crypto/cipher/aes_icm_nss.c', 'crypto/cipher/cipher.c', 'crypto/cipher/null_cipher.c', 'crypto/hash/auth.c', @@ -50,6 +50,11 @@ for var in ('HAVE_STDLIB_H', 'HAVE_UINT8_T', 'HAVE_UINT16_T', 'HAVE_INT32_T', 'HAVE_UINT32_T', 'HAVE_UINT64_T'): DEFINES[var] = 1 +# Enable AES-GCM cipher suite in libsrtp +DEFINES['GCM'] = 1 +# Let libsrtp use NSS instead of build-in crypto +DEFINES['NSS'] = 1 + # XXX while arm is not a CISC architecture, the code guarded by CPU_RISC makes # (at least) the AES ciphers fail their self-tests on ARM, so for now we're # falling back to the (presumably) slower-on-this-architecture but working diff --git a/netwerk/srtp/src/srtp/ekt.c b/netwerk/srtp/src/srtp/ekt.c index b54ecf64eb44..f09dc5858080 100644 --- a/netwerk/srtp/src/srtp/ekt.c +++ b/netwerk/srtp/src/srtp/ekt.c @@ -151,7 +151,7 @@ srtp_err_status_t srtp_ekt_stream_init_from_policy( void aes_decrypt_with_raw_key(void *ciphertext, const void *key, int key_len) { -#ifndef OPENSSL +#ifndef GCM // FIXME: need to get this working through the crypto module interface srtp_aes_expanded_key_t expanded_key; diff --git a/netwerk/srtp/src/srtp/srtp.c b/netwerk/srtp/src/srtp/srtp.c index 6f17b804015b..5d9da7b2ecf2 100644 --- a/netwerk/srtp/src/srtp/srtp.c +++ b/netwerk/srtp/src/srtp/srtp.c @@ -51,12 +51,13 @@ #include "ekt.h" /* for SRTP Encrypted Key Transport */ #include "alloc.h" /* for srtp_crypto_alloc() */ -#ifdef OPENSSL -#include "aes_gcm_ossl.h" /* for AES GCM mode */ +#ifdef GCM +#include "aes_gcm.h" /* for AES GCM mode */ +#endif + #ifdef OPENSSL_KDF #include -#include "aes_icm_ossl.h" /* for AES GCM mode */ -#endif +#include "aes_icm_ext.h" #endif #include @@ -147,51 +148,136 @@ unsigned int srtp_get_version() return rv; } -/* Release (maybe partially allocated) stream. */ -static void srtp_stream_free(srtp_stream_ctx_t *str) +srtp_err_status_t srtp_stream_dealloc(srtp_stream_ctx_t *stream, + const srtp_stream_ctx_t *stream_template) { + srtp_err_status_t status; unsigned int i = 0; srtp_session_keys_t *session_keys = NULL; + srtp_session_keys_t *template_session_keys = NULL; - for (i = 0; i < str->num_master_keys; i++) { - session_keys = &str->session_keys[i]; + /* + * we use a conservative deallocation strategy - if any deallocation + * fails, then we report that fact without trying to deallocate + * anything else + */ + if (stream->session_keys) { + for (i = 0; i < stream->num_master_keys; i++) { + session_keys = &stream->session_keys[i]; - if (session_keys->rtp_xtn_hdr_cipher) { - srtp_cipher_dealloc(session_keys->rtp_xtn_hdr_cipher); - } - - if (session_keys->rtcp_cipher) { - srtp_cipher_dealloc(session_keys->rtcp_cipher); - } - - if (session_keys->rtcp_auth) { - srtp_auth_dealloc(session_keys->rtcp_auth); - } - - if (session_keys->rtp_cipher) { - srtp_cipher_dealloc(session_keys->rtp_cipher); - } - - if (session_keys->rtp_auth) { - srtp_auth_dealloc(session_keys->rtp_auth); - } - - if (session_keys->mki_id) { - srtp_crypto_free(session_keys->mki_id); - } - - if (session_keys->limit) { - srtp_crypto_free(session_keys->limit); + if (stream_template && + stream->num_master_keys == stream_template->num_master_keys) { + template_session_keys = &stream_template->session_keys[i]; + } else { + template_session_keys = NULL; + } + + /* + * deallocate cipher, if it is not the same as that in template + */ + if (template_session_keys && + session_keys->rtp_cipher == template_session_keys->rtp_cipher) { + /* do nothing */ + } else if (session_keys->rtp_cipher) { + status = srtp_cipher_dealloc(session_keys->rtp_cipher); + if (status) + return status; + } + + /* + * deallocate auth function, if it is not the same as that in + * template + */ + if (template_session_keys && + session_keys->rtp_auth == template_session_keys->rtp_auth) { + /* do nothing */ + } else if (session_keys->rtp_auth) { + status = srtp_auth_dealloc(session_keys->rtp_auth); + if (status) + return status; + } + + if (template_session_keys && + session_keys->rtp_xtn_hdr_cipher == + template_session_keys->rtp_xtn_hdr_cipher) { + /* do nothing */ + } else if (session_keys->rtp_xtn_hdr_cipher) { + status = srtp_cipher_dealloc(session_keys->rtp_xtn_hdr_cipher); + if (status) + return status; + } + + /* + * deallocate rtcp cipher, if it is not the same as that in + * template + */ + if (template_session_keys && + session_keys->rtcp_cipher == + template_session_keys->rtcp_cipher) { + /* do nothing */ + } else if (session_keys->rtcp_cipher) { + status = srtp_cipher_dealloc(session_keys->rtcp_cipher); + if (status) + return status; + } + + /* + * deallocate rtcp auth function, if it is not the same as that in + * template + */ + if (template_session_keys && + session_keys->rtcp_auth == template_session_keys->rtcp_auth) { + /* do nothing */ + } else if (session_keys->rtcp_auth) { + status = srtp_auth_dealloc(session_keys->rtcp_auth); + if (status) + return status; + } + + /* + * zeroize the salt value + */ + octet_string_set_to_zero(session_keys->salt, SRTP_AEAD_SALT_LEN); + octet_string_set_to_zero(session_keys->c_salt, SRTP_AEAD_SALT_LEN); + + if (session_keys->mki_id) { + octet_string_set_to_zero(session_keys->mki_id, + session_keys->mki_size); + srtp_crypto_free(session_keys->mki_id); + session_keys->mki_id = NULL; + } + + /* + * deallocate key usage limit, if it is not the same as that in + * template + */ + if (template_session_keys && + session_keys->limit == template_session_keys->limit) { + /* do nothing */ + } else if (session_keys->limit) { + srtp_crypto_free(session_keys->limit); + } } + srtp_crypto_free(stream->session_keys); } - srtp_crypto_free(str->session_keys); + status = srtp_rdbx_dealloc(&stream->rtp_rdbx); + if (status) + return status; - if (str->enc_xtn_hdr) { - srtp_crypto_free(str->enc_xtn_hdr); + /* DAM - need to deallocate EKT here */ + + if (stream_template && + stream->enc_xtn_hdr == stream_template->enc_xtn_hdr) { + /* do nothing */ + } else if (stream->enc_xtn_hdr) { + srtp_crypto_free(stream->enc_xtn_hdr); } - srtp_crypto_free(str); + /* deallocate srtp stream context */ + srtp_crypto_free(stream); + + return srtp_err_status_ok; } srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, @@ -231,7 +317,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, sizeof(srtp_session_keys_t) * str->num_master_keys); if (str->session_keys == NULL) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return srtp_err_status_alloc_fail; } @@ -243,7 +329,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, p->rtp.cipher_type, &session_keys->rtp_cipher, p->rtp.cipher_key_len, p->rtp.auth_tag_len); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } @@ -252,7 +338,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, p->rtp.auth_type, &session_keys->rtp_auth, p->rtp.auth_key_len, p->rtp.auth_tag_len); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } @@ -264,7 +350,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, p->rtcp.cipher_type, &session_keys->rtcp_cipher, p->rtcp.cipher_key_len, p->rtcp.auth_tag_len); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } @@ -273,7 +359,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, p->rtcp.auth_type, &session_keys->rtcp_auth, p->rtcp.auth_key_len, p->rtcp.auth_tag_len); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } @@ -283,7 +369,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, session_keys->limit = (srtp_key_limit_ctx_t *)srtp_crypto_alloc( sizeof(srtp_key_limit_ctx_t)); if (session_keys->limit == NULL) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return srtp_err_status_alloc_fail; } } @@ -291,7 +377,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, /* allocate ekt data associated with stream */ stat = srtp_ekt_alloc(&str->ekt, p->ekt); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } @@ -302,7 +388,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, str->enc_xtn_hdr = (int *)srtp_crypto_alloc(p->enc_xtn_hdr_count * sizeof(p->enc_xtn_hdr[0])); if (!str->enc_xtn_hdr) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return srtp_err_status_alloc_fail; } memcpy(str->enc_xtn_hdr, p->enc_xtn_hdr, @@ -336,7 +422,7 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, enc_xtn_hdr_cipher_type, &session_keys->rtp_xtn_hdr_cipher, enc_xtn_hdr_cipher_key_len, 0); if (stat) { - srtp_stream_free(str); + srtp_stream_dealloc(str, NULL); return stat; } } @@ -353,138 +439,6 @@ srtp_err_status_t srtp_stream_alloc(srtp_stream_ctx_t **str_ptr, return srtp_err_status_ok; } -srtp_err_status_t srtp_stream_dealloc(srtp_stream_ctx_t *stream, - srtp_stream_ctx_t *stream_template) -{ - srtp_err_status_t status; - unsigned int i = 0; - srtp_session_keys_t *session_keys = NULL; - srtp_session_keys_t *template_session_keys = NULL; - - /* - * we use a conservative deallocation strategy - if any deallocation - * fails, then we report that fact without trying to deallocate - * anything else - */ - for (i = 0; i < stream->num_master_keys; i++) { - session_keys = &stream->session_keys[i]; - - if (stream_template) { - template_session_keys = &stream_template->session_keys[i]; - } else { - template_session_keys = NULL; - } - - /* - * deallocate cipher, if it is not the same as that in template - */ - if (template_session_keys && - session_keys->rtp_cipher == template_session_keys->rtp_cipher) { - /* do nothing */ - } else { - status = srtp_cipher_dealloc(session_keys->rtp_cipher); - if (status) - return status; - } - - /* - * deallocate auth function, if it is not the same as that in template - */ - if (template_session_keys && - session_keys->rtp_auth == template_session_keys->rtp_auth) { - /* do nothing */ - } else { - status = srtp_auth_dealloc(session_keys->rtp_auth); - if (status) - return status; - } - - if (template_session_keys && - session_keys->rtp_xtn_hdr_cipher == - template_session_keys->rtp_xtn_hdr_cipher) { - /* do nothing */ - } else if (session_keys->rtp_xtn_hdr_cipher) { - status = srtp_cipher_dealloc(session_keys->rtp_xtn_hdr_cipher); - if (status) - return status; - } - - /* - * deallocate rtcp cipher, if it is not the same as that in - * template - */ - if (template_session_keys && - session_keys->rtcp_cipher == template_session_keys->rtcp_cipher) { - /* do nothing */ - } else { - status = srtp_cipher_dealloc(session_keys->rtcp_cipher); - if (status) - return status; - } - - /* - * deallocate rtcp auth function, if it is not the same as that in - * template - */ - if (template_session_keys && - session_keys->rtcp_auth == template_session_keys->rtcp_auth) { - /* do nothing */ - } else { - status = srtp_auth_dealloc(session_keys->rtcp_auth); - if (status) - return status; - } - - /* - * zeroize the salt value - */ - octet_string_set_to_zero(session_keys->salt, SRTP_AEAD_SALT_LEN); - octet_string_set_to_zero(session_keys->c_salt, SRTP_AEAD_SALT_LEN); - - if (session_keys->mki_id) { - octet_string_set_to_zero(session_keys->mki_id, - session_keys->mki_size); - srtp_crypto_free(session_keys->mki_id); - session_keys->mki_id = NULL; - } - - /* - * deallocate key usage limit, if it is not the same as that in template - */ - if (template_session_keys && - session_keys->limit == template_session_keys->limit) { - /* do nothing */ - } else { - srtp_crypto_free(session_keys->limit); - } - } - - if (stream_template && - stream->session_keys == stream_template->session_keys) { - /* do nothing */ - } else { - srtp_crypto_free(stream->session_keys); - } - - status = srtp_rdbx_dealloc(&stream->rtp_rdbx); - if (status) - return status; - - /* DAM - need to deallocate EKT here */ - - if (stream_template && - stream->enc_xtn_hdr == stream_template->enc_xtn_hdr) { - /* do nothing */ - } else if (stream->enc_xtn_hdr) { - srtp_crypto_free(stream->enc_xtn_hdr); - } - - /* deallocate srtp stream context */ - srtp_crypto_free(stream); - - return srtp_err_status_ok; -} - /* * srtp_stream_clone(stream_template, new) allocates a new stream and * initializes it using the cipher and auth of the stream_template @@ -516,7 +470,7 @@ srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, sizeof(srtp_session_keys_t) * str->num_master_keys); if (str->session_keys == NULL) { - srtp_stream_free(*str_ptr); + srtp_stream_dealloc(*str_ptr, stream_template); *str_ptr = NULL; return srtp_err_status_alloc_fail; } @@ -541,7 +495,7 @@ srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, srtp_crypto_alloc(template_session_keys->mki_size); if (session_keys->mki_id == NULL) { - srtp_stream_free(*str_ptr); + srtp_stream_dealloc(*str_ptr, stream_template); *str_ptr = NULL; return srtp_err_status_init_fail; } @@ -558,7 +512,7 @@ srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, status = srtp_key_limit_clone(template_session_keys->limit, &session_keys->limit); if (status) { - srtp_stream_free(*str_ptr); + srtp_stream_dealloc(*str_ptr, stream_template); *str_ptr = NULL; return status; } @@ -568,7 +522,7 @@ srtp_err_status_t srtp_stream_clone(const srtp_stream_ctx_t *stream_template, status = srtp_rdbx_init( &str->rtp_rdbx, srtp_rdbx_get_window_size(&stream_template->rtp_rdbx)); if (status) { - srtp_stream_free(*str_ptr); + srtp_stream_dealloc(*str_ptr, stream_template); *str_ptr = NULL; return status; } @@ -847,9 +801,10 @@ srtp_session_keys_t *srtp_get_session_keys_with_mki_index( unsigned int mki_index) { if (use_mki) { - if (mki_index < stream->num_master_keys) { - return &stream->session_keys[mki_index]; + if (mki_index >= stream->num_master_keys) { + return NULL; } + return &stream->session_keys[mki_index]; } return &stream->session_keys[0]; @@ -1604,12 +1559,12 @@ srtp_session_keys_t *srtp_get_session_keys(srtp_stream_ctx_t *stream, base_mki_start_location -= tag_len; for (i = 0; i < stream->num_master_keys; i++) { - if (stream->session_keys[i].mki_size != 0) { + if (stream->session_keys[i].mki_size != 0 && + stream->session_keys[i].mki_size <= base_mki_start_location) { *mki_size = stream->session_keys[i].mki_size; mki_start_location = base_mki_start_location - *mki_size; - if (mki_start_location >= *mki_size && - memcmp(hdr + mki_start_location, stream->session_keys[i].mki_id, + if (memcmp(hdr + mki_start_location, stream->session_keys[i].mki_id, *mki_size) == 0) { return &stream->session_keys[i]; } @@ -2170,6 +2125,9 @@ srtp_err_status_t srtp_protect_mki(srtp_ctx_t *ctx, session_keys = srtp_get_session_keys_with_mki_index(stream, use_mki, mki_index); + if (session_keys == NULL) + return srtp_err_status_bad_mki; + /* * Check if this is an AEAD stream (GCM mode). If so, then dispatch * the request to our AEAD handler. @@ -2889,7 +2847,7 @@ srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy) /* initialize stream */ status = srtp_stream_init(tmp, policy); if (status) { - srtp_stream_free(tmp); + srtp_stream_dealloc(tmp, NULL); return status; } @@ -2904,7 +2862,7 @@ srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy) switch (policy->ssrc.type) { case (ssrc_any_outbound): if (session->stream_template) { - srtp_stream_free(tmp); + srtp_stream_dealloc(tmp, NULL); return srtp_err_status_bad_param; } session->stream_template = tmp; @@ -2912,7 +2870,7 @@ srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy) break; case (ssrc_any_inbound): if (session->stream_template) { - srtp_stream_free(tmp); + srtp_stream_dealloc(tmp, NULL); return srtp_err_status_bad_param; } session->stream_template = tmp; @@ -2924,7 +2882,7 @@ srtp_err_status_t srtp_add_stream(srtp_t session, const srtp_policy_t *policy) break; case (ssrc_undefined): default: - srtp_stream_free(tmp); + srtp_stream_dealloc(tmp, NULL); return srtp_err_status_bad_param; } @@ -3329,7 +3287,7 @@ void srtp_crypto_policy_set_aes_cm_256_null_auth(srtp_crypto_policy_t *p) p->sec_serv = sec_serv_conf; } -#ifdef OPENSSL +#ifdef GCM void srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80(srtp_crypto_policy_t *p) { /* @@ -3540,7 +3498,8 @@ static srtp_err_status_t srtp_protect_rtcp_aead( { srtcp_hdr_t *hdr = (srtcp_hdr_t *)rtcp_hdr; uint32_t *enc_start; /* pointer to start of encrypted portion */ - uint32_t *trailer; /* pointer to start of trailer */ + uint32_t *trailer_p; /* pointer to start of trailer */ + uint32_t trailer; /* trailer value */ unsigned int enc_octet_len = 0; /* number of octets in encrypted portion */ uint8_t *auth_tag = NULL; /* location of auth_tag within packet */ srtp_err_status_t status; @@ -3563,18 +3522,15 @@ static srtp_err_status_t srtp_protect_rtcp_aead( /* NOTE: hdr->length is not usable - it refers to only the first * RTCP report in the compound packet! */ - /* NOTE: trailer is 32-bit aligned because RTCP 'packets' are always - * multiples of 32-bits (RFC 3550 6.1) - */ - trailer = (uint32_t *)((char *)enc_start + enc_octet_len + tag_len); + trailer_p = (uint32_t *)((char *)enc_start + enc_octet_len + tag_len); if (stream->rtcp_services & sec_serv_conf) { - *trailer = htonl(SRTCP_E_BIT); /* set encrypt bit */ + trailer = htonl(SRTCP_E_BIT); /* set encrypt bit */ } else { enc_start = NULL; enc_octet_len = 0; /* 0 is network-order independant */ - *trailer = 0x00000000; /* set encrypt bit */ + trailer = 0x00000000; /* set encrypt bit */ } mki_size = srtp_inject_mki((uint8_t *)hdr + *pkt_octet_len + tag_len + @@ -3598,9 +3554,11 @@ static srtp_err_status_t srtp_protect_rtcp_aead( return status; } seq_num = srtp_rdb_get_value(&stream->rtcp_rdb); - *trailer |= htonl(seq_num); + trailer |= htonl(seq_num); debug_print(mod_srtp, "srtcp index: %x", seq_num); + memcpy(trailer_p, &trailer, sizeof(trailer)); + /* * Calculate and set the IV */ @@ -3642,7 +3600,7 @@ static srtp_err_status_t srtp_protect_rtcp_aead( /* * Process the sequence# as AAD */ - tseq = *trailer; + tseq = trailer; status = srtp_cipher_set_aad(session_keys->rtcp_cipher, (uint8_t *)&tseq, sizeof(srtcp_trailer_t)); if (status) { @@ -3711,7 +3669,8 @@ static srtp_err_status_t srtp_unprotect_rtcp_aead( { srtcp_hdr_t *hdr = (srtcp_hdr_t *)srtcp_hdr; uint32_t *enc_start; /* pointer to start of encrypted portion */ - uint32_t *trailer; /* pointer to start of trailer */ + uint32_t *trailer_p; /* pointer to start of trailer */ + uint32_t trailer; /* trailer value */ unsigned int enc_octet_len = 0; /* number of octets in encrypted portion */ uint8_t *auth_tag = NULL; /* location of auth_tag within packet */ srtp_err_status_t status; @@ -3737,12 +3696,10 @@ static srtp_err_status_t srtp_unprotect_rtcp_aead( */ /* This should point trailer to the word past the end of the normal data. */ /* This would need to be modified for optional mikey data */ - /* - * NOTE: trailer is 32-bit aligned because RTCP 'packets' are always - * multiples of 32-bits (RFC 3550 6.1) - */ - trailer = (uint32_t *)((char *)hdr + *pkt_octet_len - - sizeof(srtcp_trailer_t) - mki_size); + trailer_p = (uint32_t *)((char *)hdr + *pkt_octet_len - + sizeof(srtcp_trailer_t) - mki_size); + memcpy(&trailer, trailer_p, sizeof(trailer)); + /* * We pass the tag down to the cipher when doing GCM mode */ @@ -3751,7 +3708,7 @@ static srtp_err_status_t srtp_unprotect_rtcp_aead( auth_tag = (uint8_t *)hdr + *pkt_octet_len - tag_len - mki_size - sizeof(srtcp_trailer_t); - if (*((unsigned char *)trailer) & SRTCP_E_BYTE_BIT) { + if (*((unsigned char *)trailer_p) & SRTCP_E_BYTE_BIT) { enc_start = (uint32_t *)hdr + uint32s_in_rtcp_header; } else { enc_octet_len = 0; @@ -3762,7 +3719,7 @@ static srtp_err_status_t srtp_unprotect_rtcp_aead( * check the sequence number for replays */ /* this is easier than dealing with bitfield access */ - seq_num = ntohl(*trailer) & SRTCP_INDEX_MASK; + seq_num = ntohl(trailer) & SRTCP_INDEX_MASK; debug_print(mod_srtp, "srtcp index: %x", seq_num); status = srtp_rdb_check(&stream->rtcp_rdb, seq_num); if (status) { @@ -3812,7 +3769,7 @@ static srtp_err_status_t srtp_unprotect_rtcp_aead( /* * Process the sequence# as AAD */ - tseq = *trailer; + tseq = trailer; status = srtp_cipher_set_aad(session_keys->rtcp_cipher, (uint8_t *)&tseq, sizeof(srtcp_trailer_t)); if (status) { @@ -3910,7 +3867,8 @@ srtp_err_status_t srtp_protect_rtcp_mki(srtp_t ctx, srtcp_hdr_t *hdr = (srtcp_hdr_t *)rtcp_hdr; uint32_t *enc_start; /* pointer to start of encrypted portion */ uint32_t *auth_start; /* pointer to start of auth. portion */ - uint32_t *trailer; /* pointer to start of trailer */ + uint32_t *trailer_p; /* pointer to start of trailer */ + uint32_t trailer; /* trailer value */ unsigned int enc_octet_len = 0; /* number of octets in encrypted portion */ uint8_t *auth_tag = NULL; /* location of auth_tag within packet */ srtp_err_status_t status; @@ -3974,6 +3932,9 @@ srtp_err_status_t srtp_protect_rtcp_mki(srtp_t ctx, session_keys = srtp_get_session_keys_with_mki_index(stream, use_mki, mki_index); + if (session_keys == NULL) + return srtp_err_status_bad_mki; + /* * Check if this is an AEAD stream (GCM mode). If so, then dispatch * the request to our AEAD handler. @@ -4000,19 +3961,15 @@ srtp_err_status_t srtp_protect_rtcp_mki(srtp_t ctx, * NOTE: hdr->length is not usable - it refers to only the first RTCP report * in the compound packet! */ - /* - * NOTE: trailer is 32-bit aligned because RTCP 'packets' are always - * multiples of 32-bits (RFC 3550 6.1) - */ - trailer = (uint32_t *)((char *)enc_start + enc_octet_len); + trailer_p = (uint32_t *)((char *)enc_start + enc_octet_len); if (stream->rtcp_services & sec_serv_conf) { - *trailer = htonl(SRTCP_E_BIT); /* set encrypt bit */ + trailer = htonl(SRTCP_E_BIT); /* set encrypt bit */ } else { enc_start = NULL; enc_octet_len = 0; /* 0 is network-order independant */ - *trailer = 0x00000000; /* set encrypt bit */ + trailer = 0x00000000; /* set encrypt bit */ } mki_size = srtp_inject_mki((uint8_t *)hdr + *pkt_octet_len + @@ -4040,9 +3997,11 @@ srtp_err_status_t srtp_protect_rtcp_mki(srtp_t ctx, if (status) return status; seq_num = srtp_rdb_get_value(&stream->rtcp_rdb); - *trailer |= htonl(seq_num); + trailer |= htonl(seq_num); debug_print(mod_srtp, "srtcp index: %x", seq_num); + memcpy(trailer_p, &trailer, sizeof(trailer)); + /* * if we're using rindael counter mode, set nonce and seq */ @@ -4138,7 +4097,8 @@ srtp_err_status_t srtp_unprotect_rtcp_mki(srtp_t ctx, srtcp_hdr_t *hdr = (srtcp_hdr_t *)srtcp_hdr; uint32_t *enc_start; /* pointer to start of encrypted portion */ uint32_t *auth_start; /* pointer to start of auth. portion */ - uint32_t *trailer; /* pointer to start of trailer */ + uint32_t *trailer_p; /* pointer to start of trailer */ + uint32_t trailer; /* trailer value */ unsigned int enc_octet_len = 0; /* number of octets in encrypted portion */ uint8_t *auth_tag = NULL; /* location of auth_tag within packet */ uint8_t tmp_tag[SRTP_MAX_TAG_LEN]; @@ -4256,14 +4216,12 @@ srtp_err_status_t srtp_unprotect_rtcp_mki(srtp_t ctx, */ /* This should point trailer to the word past the end of the normal data. */ /* This would need to be modified for optional mikey data */ - /* - * NOTE: trailer is 32-bit aligned because RTCP 'packets' are always - * multiples of 32-bits (RFC 3550 6.1) - */ - trailer = (uint32_t *)((char *)hdr + *pkt_octet_len - - (tag_len + mki_size + sizeof(srtcp_trailer_t))); + trailer_p = (uint32_t *)((char *)hdr + *pkt_octet_len - + (tag_len + mki_size + sizeof(srtcp_trailer_t))); + memcpy(&trailer, trailer_p, sizeof(trailer)); + e_bit_in_packet = - (*((unsigned char *)trailer) & SRTCP_E_BYTE_BIT) == SRTCP_E_BYTE_BIT; + (*((unsigned char *)trailer_p) & SRTCP_E_BYTE_BIT) == SRTCP_E_BYTE_BIT; if (e_bit_in_packet != sec_serv_confidentiality) { return srtp_err_status_cant_check; } @@ -4307,7 +4265,7 @@ srtp_err_status_t srtp_unprotect_rtcp_mki(srtp_t ctx, * check the sequence number for replays */ /* this is easier than dealing with bitfield access */ - seq_num = ntohl(*trailer) & SRTCP_INDEX_MASK; + seq_num = ntohl(trailer) & SRTCP_INDEX_MASK; debug_print(mod_srtp, "srtcp index: %x", seq_num); status = srtp_rdb_check(&stream->rtcp_rdb, seq_num); if (status) @@ -4478,7 +4436,7 @@ srtp_err_status_t srtp_crypto_policy_set_from_profile_for_rtp( case srtp_profile_null_sha1_80: srtp_crypto_policy_set_null_cipher_hmac_sha1_80(policy); break; -#if defined(OPENSSL) +#ifdef GCM case srtp_profile_aead_aes_128_gcm: srtp_crypto_policy_set_aes_gcm_128_16_auth(policy); break; @@ -4512,7 +4470,7 @@ srtp_err_status_t srtp_crypto_policy_set_from_profile_for_rtcp( case srtp_profile_null_sha1_80: srtp_crypto_policy_set_null_cipher_hmac_sha1_80(policy); break; -#if defined(OPENSSL) +#ifdef GCM case srtp_profile_aead_aes_128_gcm: srtp_crypto_policy_set_aes_gcm_128_16_auth(policy); break; @@ -4587,42 +4545,85 @@ unsigned int srtp_profile_get_master_salt_length(srtp_profile_t profile) } } +srtp_err_status_t stream_get_protect_trailer_length(srtp_stream_ctx_t *stream, + uint32_t is_rtp, + uint32_t use_mki, + uint32_t mki_index, + uint32_t *length) +{ + *length = 0; + + srtp_session_keys_t *session_key; + + if (use_mki) { + if (mki_index >= stream->num_master_keys) { + return srtp_err_status_bad_mki; + } + session_key = &stream->session_keys[mki_index]; + + *length += session_key->mki_size; + + } else { + session_key = &stream->session_keys[0]; + } + if (is_rtp) { + *length += srtp_auth_get_tag_length(session_key->rtp_auth); + } else { + *length += srtp_auth_get_tag_length(session_key->rtcp_auth); + *length += sizeof(srtcp_trailer_t); + } + + return srtp_err_status_ok; +} + +srtp_err_status_t get_protect_trailer_length(srtp_t session, + uint32_t is_rtp, + uint32_t use_mki, + uint32_t mki_index, + uint32_t *length) +{ + srtp_stream_ctx_t *stream; + + if (session == NULL) { + return srtp_err_status_bad_param; + } + + if (session->stream_template == NULL && session->stream_list == NULL) { + return srtp_err_status_bad_param; + } + + *length = 0; + + stream = session->stream_template; + + if (stream != NULL) { + stream_get_protect_trailer_length(stream, is_rtp, use_mki, mki_index, + length); + } + + stream = session->stream_list; + + while (stream != NULL) { + uint32_t temp_length; + if (stream_get_protect_trailer_length(stream, is_rtp, use_mki, + mki_index, &temp_length) == + srtp_err_status_ok) { + if (temp_length > *length) { + *length = temp_length; + } + } + stream = stream->next; + } + + return srtp_err_status_ok; +} + srtp_err_status_t srtp_get_protect_trailer_length(srtp_t session, uint32_t use_mki, uint32_t mki_index, uint32_t *length) { - srtp_stream_ctx_t *stream; - - if (session == NULL) - return srtp_err_status_bad_param; - - *length = 0; - - /* Try obtaining stream from stream_list */ - stream = session->stream_list; - - if (stream == NULL) { - /* Try obtaining the template stream */ - stream = session->stream_template; - } - - if (stream == NULL) { - return srtp_err_status_bad_param; - } - - if (use_mki) { - if (mki_index > stream->num_master_keys) - return srtp_err_status_bad_mki; - - *length += stream->session_keys[mki_index].mki_size; - *length += - srtp_auth_get_tag_length(stream->session_keys[mki_index].rtp_auth); - } else { - *length += srtp_auth_get_tag_length(stream->session_keys[0].rtp_auth); - } - - return srtp_err_status_ok; + return get_protect_trailer_length(session, 1, use_mki, mki_index, length); } srtp_err_status_t srtp_get_protect_rtcp_trailer_length(srtp_t session, @@ -4630,39 +4631,7 @@ srtp_err_status_t srtp_get_protect_rtcp_trailer_length(srtp_t session, uint32_t mki_index, uint32_t *length) { - srtp_stream_ctx_t *stream; - - if (session == NULL) - return srtp_err_status_bad_param; - - *length = 0; - - /* Try obtaining stream from stream_list */ - stream = session->stream_list; - - if (stream == NULL) { - /* Try obtaining the template stream */ - stream = session->stream_template; - } - - if (stream == NULL) { - return srtp_err_status_bad_param; - } - - if (use_mki) { - if (mki_index > stream->num_master_keys) - return srtp_err_status_bad_mki; - - *length += stream->session_keys[mki_index].mki_size; - *length += - srtp_auth_get_tag_length(stream->session_keys[mki_index].rtcp_auth); - } else { - *length += srtp_auth_get_tag_length(stream->session_keys[0].rtcp_auth); - } - - *length += sizeof(srtcp_trailer_t); - - return srtp_err_status_ok; + return get_protect_trailer_length(session, 0, use_mki, mki_index, length); } /* diff --git a/netwerk/srtp/src/test/getopt_s.c b/netwerk/srtp/src/test/getopt_s.c index ab631878a405..e0bd7f77ed73 100644 --- a/netwerk/srtp/src/test/getopt_s.c +++ b/netwerk/srtp/src/test/getopt_s.c @@ -58,8 +58,9 @@ static int getopt_check_character(char c, const char *string) while (*string != 0) { if (max_string_len == 0) { - return '?'; + return GETOPT_NOT_FOUND; } + max_string_len--; if (*string++ == c) { if (*string == ':') { return GETOPT_FOUND_WITH_ARGUMENT; diff --git a/netwerk/srtp/src/test/rdbx_driver.c b/netwerk/srtp/src/test/rdbx_driver.c index 609ce9c8e48a..3da65037193b 100644 --- a/netwerk/srtp/src/test/rdbx_driver.c +++ b/netwerk/srtp/src/test/rdbx_driver.c @@ -348,6 +348,9 @@ double rdbx_check_adds_per_second(int num_trials, unsigned long ws) ++failures; } timer = clock() - timer; + if (timer < 1) { + timer = 1; + } printf("number of failures: %d \n", failures); diff --git a/netwerk/srtp/src/test/roc_driver.c b/netwerk/srtp/src/test/roc_driver.c index d61ba8ef24ea..439862039a46 100644 --- a/netwerk/srtp/src/test/roc_driver.c +++ b/netwerk/srtp/src/test/roc_driver.c @@ -97,7 +97,7 @@ srtp_err_status_t roc_test(int num_trials) printf("\n\ttesting sequential insertion..."); for (i = 0; i < 2048; i++) { - delta = srtp_index_guess(&local, &est, (uint16_t)ref); + srtp_index_guess(&local, &est, (uint16_t)ref); #if ROC_VERBOSE printf("%lld, %lld, %d\n", ref, est, i); #endif diff --git a/netwerk/srtp/src/test/rtpw.c b/netwerk/srtp/src/test/rtpw.c index 6e7416c7f524..901816e46da4 100644 --- a/netwerk/srtp/src/test/rtpw.c +++ b/netwerk/srtp/src/test/rtpw.c @@ -317,6 +317,7 @@ int main(int argc, char *argv[]) exit(1); } + memset(&name, 0, sizeof(struct sockaddr_in)); name.sin_addr = rcvr_addr; name.sin_family = PF_INET; name.sin_port = htons(port); @@ -364,7 +365,7 @@ int main(int argc, char *argv[]) switch (sec_servs) { case sec_serv_conf_and_auth: if (gcm_on) { -#ifdef OPENSSL +#ifdef GCM switch (key_size) { case 128: srtp_crypto_policy_set_aes_gcm_128_8_auth(&policy.rtp); @@ -377,7 +378,7 @@ int main(int argc, char *argv[]) } #else printf("error: GCM mode only supported when using the OpenSSL " - "crypto engine.\n"); + "or NSS crypto engine.\n"); return 0; #endif } else { @@ -413,7 +414,7 @@ int main(int argc, char *argv[]) break; case sec_serv_auth: if (gcm_on) { -#ifdef OPENSSL +#ifdef GCM switch (key_size) { case 128: srtp_crypto_policy_set_aes_gcm_128_8_only_auth(&policy.rtp); diff --git a/netwerk/srtp/src/test/rtpw_test.sh b/netwerk/srtp/src/test/rtpw_test.sh index 238ec93c5d45..158a39312d8d 100755 --- a/netwerk/srtp/src/test/rtpw_test.sh +++ b/netwerk/srtp/src/test/rtpw_test.sh @@ -41,8 +41,13 @@ case $(uname -s) in *CYGWIN*|*MINGW*) EXE=".exe" ;; - *) + *Linux*) EXE="" + export LD_LIBRARY_PATH=$CRYPTO_LIBDIR + ;; + *Darwin*) + EXE="" + export DYLD_LIBRARY_PATH=$CRYPTO_LIBDIR ;; esac diff --git a/netwerk/srtp/src/test/rtpw_test_gcm.sh b/netwerk/srtp/src/test/rtpw_test_gcm.sh index 773400562cd5..644255e1a172 100755 --- a/netwerk/srtp/src/test/rtpw_test_gcm.sh +++ b/netwerk/srtp/src/test/rtpw_test_gcm.sh @@ -41,8 +41,13 @@ case $(uname -s) in *CYGWIN*|*MINGW*) EXE=".exe" ;; - *) + *Linux*) EXE="" + export LD_LIBRARY_PATH=$CRYPTO_LIBDIR + ;; + *Darwin*) + EXE="" + export DYLD_LIBRARY_PATH=$CRYPTO_LIBDIR ;; esac diff --git a/netwerk/srtp/src/test/srtp_driver.c b/netwerk/srtp/src/test/srtp_driver.c index 135b40e55b1f..a7234539f743 100644 --- a/netwerk/srtp/src/test/srtp_driver.c +++ b/netwerk/srtp/src/test/srtp_driver.c @@ -61,13 +61,13 @@ srtp_err_status_t srtp_validate(void); -#ifdef OPENSSL +#ifdef GCM srtp_err_status_t srtp_validate_gcm(void); #endif srtp_err_status_t srtp_validate_encrypted_extensions_headers(void); -#ifdef OPENSSL +#ifdef GCM srtp_err_status_t srtp_validate_encrypted_extensions_headers_gcm(void); #endif @@ -79,7 +79,7 @@ srtp_err_status_t srtp_dealloc_big_policy(srtp_policy_t *list); srtp_err_status_t srtp_test_empty_payload(void); -#ifdef OPENSSL +#ifdef GCM srtp_err_status_t srtp_test_empty_payload_gcm(void); #endif @@ -422,7 +422,7 @@ int main(int argc, char *argv[]) exit(1); } -#ifdef OPENSSL +#ifdef GCM printf("testing srtp_protect and srtp_unprotect against " "reference packet using GCM\n"); if (srtp_validate_gcm() == srtp_err_status_ok) { @@ -442,7 +442,7 @@ int main(int argc, char *argv[]) exit(1); } -#ifdef OPENSSL +#ifdef GCM printf("testing srtp_protect and srtp_unprotect against " "reference packet with encrypted extension headers (GCM)\n"); if (srtp_validate_encrypted_extensions_headers_gcm() == @@ -478,7 +478,7 @@ int main(int argc, char *argv[]) printf("failed\n"); exit(1); } -#ifdef OPENSSL +#ifdef GCM printf("testing srtp_protect and srtp_unprotect against " "packet with empty payload (GCM)\n"); if (srtp_test_empty_payload_gcm() == srtp_err_status_ok) { @@ -1077,8 +1077,8 @@ srtp_err_status_t srtp_test(const srtp_policy_t *policy, * data following the packet is different, then we know that the * protect function is overwriting the end of the packet. */ - srtp_get_protect_trailer_length(srtp_sender, use_mki, mki_index, - &tag_length); + err_check(srtp_get_protect_trailer_length(srtp_sender, use_mki, mki_index, + &tag_length)); pkt_end = (uint8_t *)hdr + msg_len + tag_length; for (i = 0; i < 4; i++) { if (pkt_end[i] != 0xff) { @@ -1341,6 +1341,8 @@ srtp_err_status_t srtcp_test(const srtp_policy_t *policy, int mki_index) */ rcvr_policy = (srtp_policy_t *)malloc(sizeof(srtp_policy_t)); if (rcvr_policy == NULL) { + free(hdr); + free(hdr2); return srtp_err_status_alloc_fail; } memcpy(rcvr_policy, policy, sizeof(srtp_policy_t)); @@ -1606,6 +1608,9 @@ double mips_estimate(int num_trials, int *ignore) sum += i; } t = clock() - t; + if (t < 1) { + t = 1; + } /* printf("%d\n", sum); */ *ignore = sum; @@ -1772,7 +1777,7 @@ srtp_err_status_t srtp_validate() return srtp_err_status_ok; } -#ifdef OPENSSL +#ifdef GCM /* * srtp_validate_gcm() verifies the correctness of libsrtp by comparing * an computed packet against the known ciphertext for the plaintext. @@ -2063,7 +2068,7 @@ srtp_err_status_t srtp_validate_encrypted_extensions_headers() return srtp_err_status_ok; } -#ifdef OPENSSL +#ifdef GCM /* * Headers of test vectors taken from RFC 6904, Appendix A @@ -2424,7 +2429,7 @@ srtp_err_status_t srtp_test_empty_payload() return srtp_err_status_ok; } -#ifdef OPENSSL +#ifdef GCM srtp_err_status_t srtp_test_empty_payload_gcm() { srtp_t srtp_snd, srtp_recv; @@ -2499,7 +2504,7 @@ srtp_err_status_t srtp_test_empty_payload_gcm() return srtp_err_status_ok; } -#endif // OPENSSL +#endif // GCM srtp_err_status_t srtp_test_remove_stream() { @@ -2783,10 +2788,10 @@ srtp_err_status_t srtp_test_setup_protect_trailer_streams( srtp_policy_t policy; srtp_policy_t policy_mki; -#ifdef OPENSSL +#ifdef GCM srtp_policy_t policy_aes_gcm; srtp_policy_t policy_aes_gcm_mki; -#endif // OPENSSL +#endif // GCM memset(&policy, 0, sizeof(policy)); srtp_crypto_policy_set_rtp_default(&policy.rtp); @@ -2810,7 +2815,7 @@ srtp_err_status_t srtp_test_setup_protect_trailer_streams( policy_mki.keys = test_keys; policy_mki.num_master_keys = 2; -#ifdef OPENSSL +#ifdef GCM memset(&policy_aes_gcm, 0, sizeof(policy_aes_gcm)); srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy_aes_gcm.rtp); srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy_aes_gcm.rtcp); @@ -2832,7 +2837,7 @@ srtp_err_status_t srtp_test_setup_protect_trailer_streams( policy_aes_gcm_mki.key = NULL; policy_aes_gcm_mki.keys = test_keys; policy_aes_gcm_mki.num_master_keys = 2; -#endif +#endif // GCM /* create a send ctx with defualt profile and test_key */ status = srtp_create(srtp_send, &policy); @@ -2843,7 +2848,7 @@ srtp_err_status_t srtp_test_setup_protect_trailer_streams( if (status) return status; -#ifdef OPENSSL +#ifdef GCM status = srtp_create(srtp_send_aes_gcm, &policy_aes_gcm); if (status) return status; @@ -2851,7 +2856,7 @@ srtp_err_status_t srtp_test_setup_protect_trailer_streams( status = srtp_create(srtp_send_aes_gcm_mki, &policy_aes_gcm_mki); if (status) return status; -#endif // OPENSSL +#endif // GCM return srtp_err_status_ok; } @@ -2884,7 +2889,7 @@ srtp_err_status_t srtp_test_protect_trailer_length() if (length != 14) return srtp_err_status_fail; -#ifdef OPENSSL +#ifdef GCM status = srtp_get_protect_trailer_length(srtp_send_aes_gcm, 0, 0, &length); if (status) return status; @@ -2901,11 +2906,11 @@ srtp_err_status_t srtp_test_protect_trailer_length() /* TAG Length: 16 bytes + MKI length: 4 bytes*/ if (length != 20) return srtp_err_status_fail; -#endif // OPENSSL +#endif // GCM srtp_dealloc(srtp_send); srtp_dealloc(srtp_send_mki); -#ifdef OPENSSL +#ifdef GCM srtp_dealloc(srtp_send_aes_gcm); srtp_dealloc(srtp_send_aes_gcm_mki); #endif @@ -2941,7 +2946,7 @@ srtp_err_status_t srtp_test_protect_rtcp_trailer_length() if (length != 18) return srtp_err_status_fail; -#ifdef OPENSSL +#ifdef GCM status = srtp_get_protect_rtcp_trailer_length(srtp_send_aes_gcm, 0, 0, &length); if (status) @@ -2959,11 +2964,11 @@ srtp_err_status_t srtp_test_protect_rtcp_trailer_length() /* TAG Length: 16 bytes + SRTCP Trailer 4 bytes + MKI 4 bytes*/ if (length != 24) return srtp_err_status_fail; -#endif // OPENSSL +#endif // GCM srtp_dealloc(srtp_send); srtp_dealloc(srtp_send_mki); -#ifdef OPENSSL +#ifdef GCM srtp_dealloc(srtp_send_aes_gcm); srtp_dealloc(srtp_send_aes_gcm_mki); #endif @@ -3088,6 +3093,7 @@ static srtp_err_status_t test_set_receiver_roc(uint32_t packets, if (status) { return status; } + seq++; ts++; } @@ -3500,7 +3506,7 @@ const srtp_policy_t hmac_only_policy = { NULL }; -#ifdef OPENSSL +#ifdef GCM const srtp_policy_t aes128_gcm_8_policy = { { ssrc_any_outbound, 0 }, /* SSRC */ { @@ -3786,7 +3792,7 @@ const srtp_policy_t *policy_array[] = { &hmac_only_policy, &aes_only_policy, &default_policy, -#ifdef OPENSSL +#ifdef GCM &aes128_gcm_8_policy, &aes128_gcm_8_cauth_policy, &aes256_gcm_8_policy, diff --git a/netwerk/srtp/src/test/util.c b/netwerk/srtp/src/test/util.c index eb203f4c4afe..4465e90ccdfa 100644 --- a/netwerk/srtp/src/test/util.c +++ b/netwerk/srtp/src/test/util.c @@ -47,7 +47,8 @@ #include #include -char bit_string[MAX_PRINT_STRING_LEN]; +/* include space for null terminator */ +char bit_string[MAX_PRINT_STRING_LEN + 1]; static inline int hex_char_to_nibble(uint8_t c) { @@ -151,7 +152,7 @@ char *octet_string_hex_string(const void *s, int length) /* truncate string if it would be too long */ if (length > MAX_PRINT_STRING_LEN) { - length = MAX_PRINT_STRING_LEN - 1; + length = MAX_PRINT_STRING_LEN; } for (i = 0; i < length; i += 2) { diff --git a/netwerk/srtp/srtp_update.log b/netwerk/srtp/srtp_update.log index 28ede43a15e2..3ebbbfcbe15c 100644 --- a/netwerk/srtp/srtp_update.log +++ b/netwerk/srtp/srtp_update.log @@ -1,2 +1,3 @@ srtp updated from CVS on Fri Sep 21 14:51:37 EDT 2012 srtp updated to revision 8f38517394a45678cd4468febf69f75722f35d00 from git on Wed Nov 22 14:15:32 PST 2017 +srtp updated to revision bb0412ee84ebe3d2916b45b19de72fabb183d9db from git on Tue Sep 11 21:51:05 PDT 2018 From 9bcfb295a72a3fb6409cd9c8d1a6cbf89ed9acf8 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Thu, 13 Sep 2018 20:34:38 +0000 Subject: [PATCH 20/40] Bug 1490891. Support toggling paint flashing in blob images r=mstange Differential Revision: https://phabricator.services.mozilla.com/D5730 --HG-- extra : moz-landing-system : lando --- gfx/thebes/gfxPrefs.h | 1 + gfx/webrender_bindings/Moz2DImageRenderer.cpp | 15 ++++++++------- modules/libpref/init/all.js | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index deb06e31fe5f..3a3ef4e99b05 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -523,6 +523,7 @@ private: DECL_GFX_PREF(Once, "gfx.webrender.all.qualified", WebRenderAllQualified, bool, true); DECL_GFX_PREF(Live, "gfx.webrender.blob-images", WebRenderBlobImages, bool, true); DECL_GFX_PREF(Live, "gfx.webrender.blob.invalidation", WebRenderBlobInvalidation, bool, false); + DECL_GFX_PREF(Live, "gfx.webrender.blob.paint-flashing", WebRenderBlobPaintFlashing, bool, false); DECL_GFX_PREF(Live, "gfx.webrender.dl.dump-parent", WebRenderDLDumpParent, bool, false); DECL_GFX_PREF(Live, "gfx.webrender.dl.dump-content", WebRenderDLDumpContent, bool, false); DECL_GFX_PREF(Once, "gfx.webrender.enabled", WebRenderEnabledDoNotUseDirectly, bool, false); diff --git a/gfx/webrender_bindings/Moz2DImageRenderer.cpp b/gfx/webrender_bindings/Moz2DImageRenderer.cpp index 53308d506ae2..44cf6785eeb0 100644 --- a/gfx/webrender_bindings/Moz2DImageRenderer.cpp +++ b/gfx/webrender_bindings/Moz2DImageRenderer.cpp @@ -4,6 +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/. */ +#include "gfxPrefs.h" #include "gfxUtils.h" #include "mozilla/Mutex.h" #include "mozilla/Range.h" @@ -447,13 +448,13 @@ static bool Moz2DRenderCallback(const Range aBlob, offset = extra_end; } -#if 0 - dt->SetTransform(gfx::Matrix()); - float r = float(rand()) / RAND_MAX; - float g = float(rand()) / RAND_MAX; - float b = float(rand()) / RAND_MAX; - dt->FillRect(gfx::Rect(0, 0, aSize.width, aSize.height), gfx::ColorPattern(gfx::Color(r, g, b, 0.5))); -#endif + if (gfxPrefs::WebRenderBlobPaintFlashing()) { + dt->SetTransform(gfx::Matrix()); + float r = float(rand()) / RAND_MAX; + float g = float(rand()) / RAND_MAX; + float b = float(rand()) / RAND_MAX; + dt->FillRect(gfx::Rect(origin.x, origin.y, aSize.width, aSize.height), gfx::ColorPattern(gfx::Color(r, g, b, 0.5))); + } if (aDirtyRect) { dt->PopClip(); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 0cb545d23425..0d96637a9c55 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -906,6 +906,7 @@ pref("gfx.compositor.glcontext.opaque", false); pref("gfx.webrender.highlight-painted-layers", false); pref("gfx.webrender.blob-images", true); pref("gfx.webrender.blob.invalidation", true); +pref("gfx.webrender.blob.paint-flashing", false); // WebRender debugging utilities. pref("gfx.webrender.debug.texture-cache", false); From 984ac63e0f4e922f525c68289a98eba867b5a069 Mon Sep 17 00:00:00 2001 From: Cosmin Sabou Date: Thu, 13 Sep 2018 23:52:48 +0300 Subject: [PATCH 21/40] Backed out changeset 1a7771d373ff (bug 1479665) for causing build bustages. CLOSED TREE --- media/mtransport/SrtpFlow.cpp | 25 +----------- media/mtransport/SrtpFlow.h | 14 ++----- media/mtransport/test/transport_unittests.cpp | 20 +--------- media/mtransport/transportlayersrtp.cpp | 38 +++++++++---------- .../gtest/mediapipeline_unittest.cpp | 2 +- .../peerconnection/PeerConnectionMedia.cpp | 2 - 6 files changed, 25 insertions(+), 76 deletions(-) diff --git a/media/mtransport/SrtpFlow.cpp b/media/mtransport/SrtpFlow.cpp index 60670ea5fc74..466e553ce3ab 100644 --- a/media/mtransport/SrtpFlow.cpp +++ b/media/mtransport/SrtpFlow.cpp @@ -26,16 +26,6 @@ SrtpFlow::~SrtpFlow() { } } -unsigned int SrtpFlow::KeySize(int cipher_suite) { - srtp_profile_t profile = static_cast(cipher_suite); - return srtp_profile_get_master_key_length(profile); -} - -unsigned int SrtpFlow::SaltSize(int cipher_suite) { - srtp_profile_t profile = static_cast(cipher_suite); - return srtp_profile_get_master_salt_length(profile); -} - RefPtr SrtpFlow::Create(int cipher_suite, bool inbound, const void *key, @@ -51,8 +41,7 @@ RefPtr SrtpFlow::Create(int cipher_suite, return nullptr; } - if ((key_len > SRTP_MAX_KEY_LENGTH) || - (key_len < SRTP_MIN_KEY_LENGTH)) { + if (key_len != SRTP_TOTAL_KEY_LENGTH) { MOZ_MTLOG(ML_ERROR, "Invalid SRTP key length"); return nullptr; } @@ -63,18 +52,6 @@ RefPtr SrtpFlow::Create(int cipher_suite, // Note that we set the same cipher suite for RTP and RTCP // since any flow can only have one cipher suite with DTLS-SRTP switch (cipher_suite) { - case kDtlsSrtpAeadAes256Gcm: - MOZ_MTLOG(ML_DEBUG, - "Setting SRTP cipher suite SRTP_AEAD_AES_256_GCM"); - srtp_crypto_policy_set_aes_gcm_256_16_auth(&policy.rtp); - srtp_crypto_policy_set_aes_gcm_256_16_auth(&policy.rtcp); - break; - case kDtlsSrtpAeadAes128Gcm: - MOZ_MTLOG(ML_DEBUG, - "Setting SRTP cipher suite SRTP_AEAD_AES_128_GCM"); - srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy.rtp); - srtp_crypto_policy_set_aes_gcm_128_16_auth(&policy.rtcp); - break; case kDtlsSrtpAes128CmHmacSha1_80: MOZ_MTLOG(ML_DEBUG, "Setting SRTP cipher suite SRTP_AES128_CM_HMAC_SHA1_80"); diff --git a/media/mtransport/SrtpFlow.h b/media/mtransport/SrtpFlow.h index c6ea395a43c3..72b184004930 100644 --- a/media/mtransport/SrtpFlow.h +++ b/media/mtransport/SrtpFlow.h @@ -13,15 +13,9 @@ namespace mozilla { -#define SRTP_ICM_MASTER_KEY_LENGTH 16 -#define SRTP_ICM_MASTER_SALT_LENGTH 14 -#define SRTP_ICM_MAX_MASTER_LEGNTH (SRTP_ICM_MASTER_KEY_LENGTH + SRTP_ICM_MASTER_SALT_LENGTH) -#define SRTP_GCM_MASTER_KEY_LENGTH 32 -#define SRTP_GCM_MASTER_SALT_LENGTH 12 -#define SRTP_GCM_MAX_MASTER_LEGNTH (SRTP_GCM_MASTER_KEY_LENGTH + SRTP_GCM_MASTER_SALT_LENGTH) - -#define SRTP_MIN_KEY_LENGTH SRTP_ICM_MAX_MASTER_LEGNTH -#define SRTP_MAX_KEY_LENGTH SRTP_GCM_MAX_MASTER_LEGNTH +#define SRTP_MASTER_KEY_LENGTH 16 +#define SRTP_MASTER_SALT_LENGTH 14 +#define SRTP_TOTAL_KEY_LENGTH (SRTP_MASTER_KEY_LENGTH + SRTP_MASTER_SALT_LENGTH) // SRTCP requires an auth tag *plus* a 4-byte index-plus-'E'-bit value (see // RFC 3711) @@ -32,8 +26,6 @@ class SrtpFlow { ~SrtpFlow(); public: - static unsigned int KeySize(int cipher_suite); - static unsigned int SaltSize(int cipher_suite); static RefPtr Create(int cipher_suite, bool inbound, diff --git a/media/mtransport/test/transport_unittests.cpp b/media/mtransport/test/transport_unittests.cpp index 1c0f9a73a7b2..1fdeb01ee097 100644 --- a/media/mtransport/test/transport_unittests.cpp +++ b/media/mtransport/test/transport_unittests.cpp @@ -537,8 +537,6 @@ class TransportTestPeer : public sigslot::has_slots<> { void SetupSrtp() { // this mimics the setup we do elsewhere std::vector srtp_ciphers; - srtp_ciphers.push_back(kDtlsSrtpAeadAes256Gcm); - srtp_ciphers.push_back(kDtlsSrtpAeadAes128Gcm); srtp_ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); srtp_ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_32); @@ -1019,7 +1017,7 @@ TEST_F(TransportTest, TestConnectSrtp) { ASSERT_EQ(TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, p1_->cipherSuite()); // SRTP is on - ASSERT_EQ(kDtlsSrtpAeadAes256Gcm, p1_->srtpCipher()); + ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); } @@ -1411,22 +1409,6 @@ TEST_F(TransportTest, OnlyClientSendsSrtpXtn) { TransportLayer::TS_ERROR); } -TEST_F(TransportTest, TestSrtpFallback) { - std::vector setA; - setA.push_back(kDtlsSrtpAeadAes256Gcm); - setA.push_back(kDtlsSrtpAes128CmHmacSha1_80); - std::vector setB; - setB.push_back(kDtlsSrtpAes128CmHmacSha1_80); - - p1_->SetSrtpCiphers(setA); - p2_->SetSrtpCiphers(setB); - SetDtlsPeer(); - ConnectSocket(); - - ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); - ASSERT_EQ(kDtlsSrtpAes128CmHmacSha1_80, p1_->srtpCipher()); -} - // NSS doesn't support DHE suites on the server end. // This checks to see if we barf when that's the only option available. TEST_F(TransportTest, TestDheOnlyFails) { diff --git a/media/mtransport/transportlayersrtp.cpp b/media/mtransport/transportlayersrtp.cpp index d89a291bff8c..1dcdb8fe6f2a 100644 --- a/media/mtransport/transportlayersrtp.cpp +++ b/media/mtransport/transportlayersrtp.cpp @@ -159,13 +159,8 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) return; } - unsigned int key_size = SrtpFlow::KeySize(cipher_suite); - unsigned int salt_size = SrtpFlow::SaltSize(cipher_suite); - unsigned int master_key_size = key_size + salt_size; - MOZ_ASSERT(master_key_size <= SRTP_MAX_KEY_LENGTH); - // SRTP Key Exporter as per RFC 5764 S 4.2 - unsigned char srtp_block[SRTP_MAX_KEY_LENGTH * 2]; + unsigned char srtp_block[SRTP_TOTAL_KEY_LENGTH * 2]; res = dtls->ExportKeyingMaterial( kDTLSExporterLabel, false, "", srtp_block, sizeof(srtp_block)); if (NS_FAILED(res)) { @@ -175,17 +170,22 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) } // Slice and dice as per RFC 5764 S 4.2 - unsigned char client_write_key[SRTP_MAX_KEY_LENGTH]; - unsigned char server_write_key[SRTP_MAX_KEY_LENGTH]; - unsigned int offset = 0; - memcpy(client_write_key, srtp_block + offset, key_size); - offset += key_size; - memcpy(server_write_key, srtp_block + offset, key_size); - offset += key_size; - memcpy(client_write_key + key_size, srtp_block + offset, salt_size); - offset += salt_size; - memcpy(server_write_key + key_size, srtp_block + offset, salt_size); - MOZ_ASSERT((offset + salt_size) == (2 * master_key_size)); + unsigned char client_write_key[SRTP_TOTAL_KEY_LENGTH]; + unsigned char server_write_key[SRTP_TOTAL_KEY_LENGTH]; + int offset = 0; + memcpy(client_write_key, srtp_block + offset, SRTP_MASTER_KEY_LENGTH); + offset += SRTP_MASTER_KEY_LENGTH; + memcpy(server_write_key, srtp_block + offset, SRTP_MASTER_KEY_LENGTH); + offset += SRTP_MASTER_KEY_LENGTH; + memcpy(client_write_key + SRTP_MASTER_KEY_LENGTH, + srtp_block + offset, + SRTP_MASTER_SALT_LENGTH); + offset += SRTP_MASTER_SALT_LENGTH; + memcpy(server_write_key + SRTP_MASTER_KEY_LENGTH, + srtp_block + offset, + SRTP_MASTER_SALT_LENGTH); + offset += SRTP_MASTER_SALT_LENGTH; + MOZ_ASSERT(offset == sizeof(srtp_block)); unsigned char* write_key; unsigned char* read_key; @@ -200,9 +200,9 @@ TransportLayerSrtp::StateChange(TransportLayer* layer, State state) MOZ_ASSERT(!mSendSrtp && !mRecvSrtp); mSendSrtp = - SrtpFlow::Create(cipher_suite, false, write_key, master_key_size); + SrtpFlow::Create(cipher_suite, false, write_key, SRTP_TOTAL_KEY_LENGTH); mRecvSrtp = - SrtpFlow::Create(cipher_suite, true, read_key, master_key_size); + SrtpFlow::Create(cipher_suite, true, read_key, SRTP_TOTAL_KEY_LENGTH); if (!mSendSrtp || !mRecvSrtp) { MOZ_MTLOG(ML_ERROR, "Couldn't create SRTP flow."); TL_SET_STATE(TS_ERROR); diff --git a/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp b/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp index 4dfa997c9316..eef0204d1d3b 100644 --- a/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp +++ b/media/webrtc/signaling/gtest/mediapipeline_unittest.cpp @@ -183,7 +183,7 @@ class TransportInfo { UniquePtr srtp(new TransportLayerSrtp(*dtls)); std::vector ciphers; - ciphers.push_back(kDtlsSrtpAeadAes256Gcm); + ciphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); dtls->SetSrtpCiphers(ciphers); dtls->SetIdentity(DtlsIdentity::Generate()); dtls->SetRole(client ? TransportLayerDtls::CLIENT : diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp index bd2082c35c96..441178979947 100644 --- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp +++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp @@ -625,8 +625,6 @@ PeerConnectionMedia::UpdateTransportFlow(bool aIsRtcp, } std::vector srtpCiphers; - srtpCiphers.push_back(kDtlsSrtpAeadAes256Gcm); - srtpCiphers.push_back(kDtlsSrtpAeadAes128Gcm); srtpCiphers.push_back(kDtlsSrtpAes128CmHmacSha1_80); srtpCiphers.push_back(kDtlsSrtpAes128CmHmacSha1_32); From a4630f70008bf533c1f66a6de7924d75c3790eae Mon Sep 17 00:00:00 2001 From: Brian Grinstead Date: Thu, 13 Sep 2018 18:53:41 +0000 Subject: [PATCH 22/40] Bug 1487568 - Ignore whitespace only text nodes for XBL compatibility hack for unmatched children dropping content;r=smaug For browser.xhtml, we have extra whitespace text nodes that appear inside of mBoundElement, which was causing XBL content to be incorrectly dropped. Differential Revision: https://phabricator.services.mozilla.com/D5546 --HG-- extra : moz-landing-system : lando --- dom/xbl/nsXBLBinding.cpp | 8 +++++--- layout/generic/crashtests/crashtests.list | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dom/xbl/nsXBLBinding.cpp b/dom/xbl/nsXBLBinding.cpp index fd86721fee63..aa72a9f6d1a2 100644 --- a/dom/xbl/nsXBLBinding.cpp +++ b/dom/xbl/nsXBLBinding.cpp @@ -346,9 +346,11 @@ nsXBLBinding::GenerateAnonymousContent() point->AppendInsertedChild(child, false); } else { NodeInfo *ni = child->NodeInfo(); - if (ni->NamespaceID() != kNameSpaceID_XUL || - (!ni->Equals(nsGkAtoms::_template) && - !ni->Equals(nsGkAtoms::observes))) { + if (!child->TextIsOnlyWhitespace() && + (ni->NamespaceID() != kNameSpaceID_XUL || + (!ni->Equals(nsGkAtoms::_template) && + !ni->Equals(nsGkAtoms::observes))) + ) { // Compatibility hack. For some reason the original XBL // implementation dropped the content of a binding if any child of // the bound element didn't match any of the in the diff --git a/layout/generic/crashtests/crashtests.list b/layout/generic/crashtests/crashtests.list index 77222e30d3a2..10ca852d2905 100644 --- a/layout/generic/crashtests/crashtests.list +++ b/layout/generic/crashtests/crashtests.list @@ -115,7 +115,7 @@ load 382199-1.html load 382208-1.xhtml load 382262-1.html load 382396-1.xhtml -load 382745-1.xhtml +asserts(1) load 382745-1.xhtml # Bug 758695 load 383089-1.html load 385265-1.xhtml load 385295-1.xhtml From 4262fca58ddcebe11149d0c166a2967b194caecc Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Wed, 12 Sep 2018 23:43:59 +0000 Subject: [PATCH 23/40] Bug 1458324 - Switch to autograph_mar384 signing. r=aki Basically just s/mar_sha384/autograph_mar384/g. repcakage_signing.py doesn't need a scope adjustment because it simply uses the format name to generate the scopes required. Differential Revision: https://phabricator.services.mozilla.com/D5718 --HG-- extra : moz-landing-system : lando --- taskcluster/taskgraph/transforms/partials_signing.py | 4 ++-- taskcluster/taskgraph/transforms/repackage_signing.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/taskcluster/taskgraph/transforms/partials_signing.py b/taskcluster/taskgraph/transforms/partials_signing.py index 2f355199dd92..efb34eb94510 100644 --- a/taskcluster/taskgraph/transforms/partials_signing.py +++ b/taskcluster/taskgraph/transforms/partials_signing.py @@ -40,7 +40,7 @@ def generate_upstream_artifacts(job, release_history, platform, locale=None): # considered smaller than Firefox 56 if version is None or version >= '56' ], - "formats": ["mar_sha384"], + "formats": ["autograph_mar384"], }] old_mar_upstream_artifacts = { @@ -103,7 +103,7 @@ def make_task_description(config, jobs): build_platform, is_nightly, config ) - scopes = [signing_cert_scope, 'project:releng:signing:format:mar_sha384'] + scopes = [signing_cert_scope, 'project:releng:signing:format:autograph_mar384'] if any("mar" in upstream_details["formats"] for upstream_details in upstream_artifacts): scopes.append('project:releng:signing:format:mar') diff --git a/taskcluster/taskgraph/transforms/repackage_signing.py b/taskcluster/taskgraph/transforms/repackage_signing.py index 7f9c28d6a363..6746c605c0fe 100644 --- a/taskcluster/taskgraph/transforms/repackage_signing.py +++ b/taskcluster/taskgraph/transforms/repackage_signing.py @@ -36,7 +36,7 @@ repackage_signing_description_schema = Schema({ }) SIGNING_FORMATS = { - 'target.complete.mar': ["mar_sha384"], + 'target.complete.mar': ["autograph_mar384"], 'target.bz2.complete.mar': ["mar"], "target.installer.exe": ["sha2signcode"], "target.stub-installer.exe": ["sha2signcodestub"], From 87e37e32a0d3ebcbdb4c1e6084646f09c5993d00 Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Thu, 13 Sep 2018 15:33:12 +0000 Subject: [PATCH 24/40] Bug 1491024 - Rename userScripts manifest property to follow manifest property name conventions. r=mixedpuppy Differential Revision: https://phabricator.services.mozilla.com/D5777 --HG-- extra : source : f1cc448b5137c220962a35f1816f112f931de119 --- toolkit/components/extensions/ExtensionContent.jsm | 2 +- toolkit/components/extensions/schemas/user_scripts.json | 4 ++-- .../extensions/test/xpcshell/test_ext_userScripts.js | 4 ++-- .../test/xpcshell/test_ext_userScripts_telemetry.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/toolkit/components/extensions/ExtensionContent.jsm b/toolkit/components/extensions/ExtensionContent.jsm index 50cae1d0020d..87b99d58c898 100644 --- a/toolkit/components/extensions/ExtensionContent.jsm +++ b/toolkit/components/extensions/ExtensionContent.jsm @@ -536,7 +536,7 @@ class UserScript extends Script { // the particular userScript and it is passed as a parameter to the custom // userScripts APIs defined by the extension. this.scriptMetadata = matcher.userScriptOptions.scriptMetadata; - this.apiScriptURL = extension.manifest.userScripts && extension.manifest.userScripts.apiScript; + this.apiScriptURL = extension.manifest.user_scripts && extension.manifest.user_scripts.api_script; this.promiseAPIScript = null; this.scriptPromises = null; diff --git a/toolkit/components/extensions/schemas/user_scripts.json b/toolkit/components/extensions/schemas/user_scripts.json index b516ff890540..1f5741cef46a 100644 --- a/toolkit/components/extensions/schemas/user_scripts.json +++ b/toolkit/components/extensions/schemas/user_scripts.json @@ -9,11 +9,11 @@ { "$extend": "WebExtensionManifest", "properties": { - "userScripts": { + "user_scripts": { "type": "object", "optional": true, "properties": { - "apiScript": { "$ref": "manifest.ExtensionURL"} + "api_script": { "$ref": "manifest.ExtensionURL"} } } } diff --git a/toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js b/toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js index 01f433eb979c..01e03bb44568 100644 --- a/toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js +++ b/toolkit/components/extensions/test/xpcshell/test_ext_userScripts.js @@ -299,8 +299,8 @@ add_task(async function test_userScripts_exported_APIs() { permissions: [ "http://localhost/*/file_sample.html", ], - userScripts: { - apiScript: "api-script.js", + user_scripts: { + api_script: "api-script.js", }, }, background, diff --git a/toolkit/components/extensions/test/xpcshell/test_ext_userScripts_telemetry.js b/toolkit/components/extensions/test/xpcshell/test_ext_userScripts_telemetry.js index bdda72626f81..680cf4636f16 100644 --- a/toolkit/components/extensions/test/xpcshell/test_ext_userScripts_telemetry.js +++ b/toolkit/components/extensions/test/xpcshell/test_ext_userScripts_telemetry.js @@ -40,8 +40,8 @@ add_task(async function test_userScripts_telemetry() { permissions: [ "http://*/*/file_sample.html", ], - userScripts: { - apiScript: "api-script.js", + user_scripts: { + api_script: "api-script.js", }, }, background, From ac54284832aa697dab4c80af9456a97506b464b2 Mon Sep 17 00:00:00 2001 From: Liang-Heng Chen Date: Thu, 13 Sep 2018 21:27:54 +0000 Subject: [PATCH 25/40] Bug 1477046 - Part 1: Add basic FastBlock automation tests; r=mayhemer Basic parts of FastBlock tests, no iframe/xhr tests in this patch. Differential Revision: https://phabricator.services.mozilla.com/D4655 --HG-- extra : moz-landing-system : lando --- netwerk/protocol/http/nsHttpChannel.cpp | 2 +- .../url-classifier/tests/mochitest/chrome.ini | 2 + .../tests/mochitest/fastblock.html | 18 + .../mochitest/test_fastblock_bug1477046.html | 334 ++++++++++++++++++ 4 files changed, 355 insertions(+), 1 deletion(-) create mode 100644 toolkit/components/url-classifier/tests/mochitest/fastblock.html create mode 100644 toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index 075ad329a168..e3899d27f7cc 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -759,7 +759,7 @@ nsHttpChannel::ConnectOnTailUnblock() if (isTrackingResource && CheckFastBlocked()) { AntiTrackingCommon::NotifyRejection(this, nsIWebProgressListener::STATE_BLOCKED_SLOW_TRACKING_CONTENT); - Unused << AsyncAbort(NS_ERROR_ABORT); + Unused << AsyncAbort(NS_ERROR_TRACKING_ANNOTATION_URI); CloseCacheEntry(false); return NS_OK; } diff --git a/toolkit/components/url-classifier/tests/mochitest/chrome.ini b/toolkit/components/url-classifier/tests/mochitest/chrome.ini index bb411ddcd907..090cacbf327d 100644 --- a/toolkit/components/url-classifier/tests/mochitest/chrome.ini +++ b/toolkit/components/url-classifier/tests/mochitest/chrome.ini @@ -12,6 +12,7 @@ support-files = classifierHelper.js head.js threathit.sjs + fastblock.html !/toolkit/components/url-classifier/tests/mochitest/classifierFrame.html !/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js !/toolkit/components/url-classifier/tests/mochitest/good.js @@ -65,3 +66,4 @@ skip-if = verify [test_advisory_link.html] [test_threathit_report.html] skip-if = verify +[test_fastblock_bug1477046.html] diff --git a/toolkit/components/url-classifier/tests/mochitest/fastblock.html b/toolkit/components/url-classifier/tests/mochitest/fastblock.html new file mode 100644 index 000000000000..a2555ec305d3 --- /dev/null +++ b/toolkit/components/url-classifier/tests/mochitest/fastblock.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html b/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html new file mode 100644 index 000000000000..69403b78e39b --- /dev/null +++ b/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html @@ -0,0 +1,334 @@ + + + + + + Test for Bug 1477046 + + + + + + +

+ +
+
+
+
+
+
+ + From 1259f8d4ca26b773fffcff303cc0010a1ea43fc2 Mon Sep 17 00:00:00 2001 From: Liang-Heng Chen Date: Thu, 13 Sep 2018 21:30:39 +0000 Subject: [PATCH 26/40] Bug 1477046 - Part 2: Add FastBlock iframe tests; r=mayhemer Differential Revision: https://phabricator.services.mozilla.com/D4770 --HG-- extra : moz-landing-system : lando --- .../url-classifier/tests/mochitest/chrome.ini | 1 + .../tests/mochitest/fastblock.html | 3 +- .../tests/mochitest/fastblock_iframe.html | 18 ++ .../mochitest/test_fastblock_bug1477046.html | 224 +++++++++++++++++- 4 files changed, 235 insertions(+), 11 deletions(-) create mode 100644 toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html diff --git a/toolkit/components/url-classifier/tests/mochitest/chrome.ini b/toolkit/components/url-classifier/tests/mochitest/chrome.ini index 090cacbf327d..ca879f7ba1ca 100644 --- a/toolkit/components/url-classifier/tests/mochitest/chrome.ini +++ b/toolkit/components/url-classifier/tests/mochitest/chrome.ini @@ -13,6 +13,7 @@ support-files = head.js threathit.sjs fastblock.html + fastblock_iframe.html !/toolkit/components/url-classifier/tests/mochitest/classifierFrame.html !/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js !/toolkit/components/url-classifier/tests/mochitest/good.js diff --git a/toolkit/components/url-classifier/tests/mochitest/fastblock.html b/toolkit/components/url-classifier/tests/mochitest/fastblock.html index a2555ec305d3..4d7aa0952cfa 100644 --- a/toolkit/components/url-classifier/tests/mochitest/fastblock.html +++ b/toolkit/components/url-classifier/tests/mochitest/fastblock.html @@ -4,6 +4,8 @@ + + @@ -13,6 +15,5 @@ - diff --git a/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html b/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html new file mode 100644 index 000000000000..76ee5467965e --- /dev/null +++ b/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html b/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html index 69403b78e39b..c9495338a58b 100644 --- a/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html +++ b/toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.html @@ -11,6 +11,24 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1477046 | goodScript | No | N/A | | fastScript | Yes | No | | slowScript | Yes | Yes | +-------------------+---------+------------ +| fastIFrame | Yes | No | +-------------------+---------+------------ +| goodIFrameScript | No | N/A | +| fastIFrameScript | Yes | No | +| slowIFrameScript | Yes | Yes | +-------------------+---------+------------ +| badIFrame | Yes | Yes | +-------------------+---------+------------ +| goodIFrameScript | N/A | N/A | +| fastIFrameScript | N/A | N/A | +| slowIFrameScript | N/A | N/A | +-------------------+---------+------------ +| goodIFrame | No | N/A | +-------------------+---------+------------ +| goodIFrameScript | No | N/A | +| fastIFrameScript | Yes | Yes | +| slowIFrameScript | Yes | Yes | ------------------------------------------ --> @@ -40,8 +58,13 @@ ChromeUtils.import("resource://testing-common/UrlClassifierTestUtils.jsm"); const gContentPage = "http://example.com/chrome/toolkit/components/url-classifier/tests/mochitest/fastblock.html"; +const gGoodIFramePage = + "http://example.com/chrome/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html"; +const gBadIFramePage = + "http://itisatracker.org/chrome/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html"; const gSlowTrackers = [ "http://tracking.example.org/tests/toolkit/components/url-classifier/tests/mochitest/trackingRequest.js", + "http://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackingRequest.js", ]; const gInfiniteTimeout = 300000; const gDebug = false; @@ -244,46 +267,225 @@ async function finishTest() { SimpleTest.finish(); } +async function addIFrame(aWindow, aUrl, aId) { + let monitor = new ChannelUnifier(); + monitor.init(); + + let loadIFramePromise = new Promise(resolve => { + let onStopRequest = aSubject => { + let channel = aSubject.QueryInterface(Ci.nsIHttpChannel); + if (channel.name == aUrl) { + try { + is(channel.responseStatus, 200, "the channel is loaded"); + resolve(true); + } catch (e) { + is(e.name, "NS_ERROR_NOT_AVAILABLE", "the channel is canceled"); + resolve(false); + } finally { + SpecialPowers.removeObserver(onStopRequest, "http-on-stop-request"); + } + } + }; + SpecialPowers.addObserver(onStopRequest, "http-on-stop-request"); + }); + + let loadIFrameContentPromise = ContentTask.spawn(aWindow.gBrowser.selectedBrowser, + [aUrl, aId], + async function([url, id]) { + return new Promise((resolve, err) => { + let iframe = content.document.createElement("iframe"); + iframe.id = id; + iframe.src = url; + + // onload/onerror are triggered only when the iframe is not blocked + iframe.dataset.touched = "no"; + iframe.onload = function() { + this.dataset.touched = "yes"; + resolve(); + }; + content.document.body.appendChild(iframe); + }); + }); + + let isIFrameLoaded = await loadIFramePromise; // wait until page load finish + if (isIFrameLoaded) { + // make sure all content are also loaded, this promise will never be resolved + // for the case it's blocked. + await loadIFrameContentPromise; + } + + monitor.close(); + return isIFrameLoaded; +} + async function testFastBlock(aWindow) { let browser = aWindow.gBrowser.selectedBrowser; let results = await ContentTask.spawn(browser, {}, () => { + let iframe = content.document.getElementById("fastIFrame").contentDocument; return { goodScript: content.document.getElementById("goodScript").dataset.touched, fastScript: content.document.getElementById("fastScript").dataset.touched, slowScript: content.document.getElementById("slowScript").dataset.touched, + fastIFrame: content.document.getElementById("fastIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript").dataset.touched, + fastIFrameScript: iframe.getElementById("fastIFrameScript").dataset.touched, + slowIFrameScript: iframe.getElementById("slowIFrameScript").dataset.touched, numTrackersFound: content.document.numTrackersFound, numTrackersBlocked: content.document.numTrackersBlocked, }; }); - let { goodScript, fastScript, slowScript, numTrackersFound, numTrackersBlocked } = results; + let { goodScript, + fastScript, + slowScript, + fastIFrame, + goodIFrameScript, + fastIFrameScript, + slowIFrameScript, + numTrackersFound, + numTrackersBlocked, + } = results; is(goodScript, "yes", "is not a tracker"); - is(fastScript, "yes", "is a tracker before timeout"); + is(fastScript, "yes", "is a fast tracker"); is(slowScript, "no", "is a blocked tracker"); - is(numTrackersFound, 2, "2 trackers found"); - is(numTrackersBlocked, 1, "1 tracker blocked"); + is(fastIFrame, "yes", "fast iframe loaded"); + is(goodIFrameScript, "yes", "is not a tracker"); + is(fastIFrameScript, "yes", "is a fast tracker"); + is(slowIFrameScript, "no", "is a blocked tracker"); + is(numTrackersFound, 5, "5 trackers found"); + is(numTrackersBlocked, 2, "2 tracker blocked"); + + let badIFrameLoaded = await addIFrame(aWindow, gBadIFramePage, "badIFrame"); + ok(!badIFrameLoaded, "tracking iframe is blocked"); + + results = await ContentTask.spawn(browser, {}, () => { + let iframe = content.document.getElementById("badIFrame").contentDocument; + return { + badIFrame: content.document.getElementById("badIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript"), + fastIFrameScript: iframe.getElementById("fastIFrameScript"), + slowIFrameScript: iframe.getElementById("slowIFrameScript"), + numTrackersFound: content.document.numTrackersFound, + numTrackersBlocked: content.document.numTrackersBlocked, + }; + }); + + is(results.badIFrame, "no", "bad iframe blocked"); + ok(!results.goodIFrameScript, "iframe is not loaded"); + ok(!results.fastIFrameScript, "iframe is not loaded"); + ok(!results.slowIFrameScript, "iframe is not loaded"); + + is(results.numTrackersFound, 6, "6 trackers found"); + is(results.numTrackersBlocked, 3, "3 tracker blocked"); + + let goodIFrameLoaded = await addIFrame(aWindow, gGoodIFramePage, "goodIFrame"); + ok(goodIFrameLoaded, "non tracking iframe is loaded"); + + results = await ContentTask.spawn(browser, {}, () => { + let iframe = content.document.getElementById("goodIFrame").contentDocument; + return { + goodIFrame: content.document.getElementById("goodIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript").dataset.touched, + fastIFrameScript: iframe.getElementById("fastIFrameScript").dataset.touched, + slowIFrameScript: iframe.getElementById("slowIFrameScript").dataset.touched, + numTrackersFound: content.document.numTrackersFound, + numTrackersBlocked: content.document.numTrackersBlocked, + }; + }); + + is(results.goodIFrame, "yes", "non tracking iframe is loaded"); + is(results.goodIFrameScript, "yes", "is not a tracker"); + is(results.fastIFrameScript, "no", "is a blocked tracker"); + is(results.slowIFrameScript, "no", "is a blocked tracker"); + + is(results.numTrackersFound, 8, "8 trackers found"); + is(results.numTrackersBlocked, 5, "5 tracker blocked"); } async function testNoFastBlock(aWindow) { let browser = aWindow.gBrowser.selectedBrowser; let results = await ContentTask.spawn(browser, {}, () => { + let iframe = content.document.getElementById("fastIFrame").contentDocument; return { goodScript: content.document.getElementById("goodScript").dataset.touched, fastScript: content.document.getElementById("fastScript").dataset.touched, slowScript: content.document.getElementById("slowScript").dataset.touched, + fastIFrame: content.document.getElementById("fastIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript").dataset.touched, + fastIFrameScript: iframe.getElementById("fastIFrameScript").dataset.touched, + slowIFrameScript: iframe.getElementById("slowIFrameScript").dataset.touched, numTrackersFound: content.document.numTrackersFound, numTrackersBlocked: content.document.numTrackersBlocked, }; }); - let { goodScript, fastScript, slowScript, numTrackersFound, numTrackersBlocked } = results; + let { goodScript, + fastScript, + slowScript, + fastIFrame, + goodIFrameScript, + fastIFrameScript, + slowIFrameScript, + numTrackersFound, + numTrackersBlocked, + } = results; is(goodScript, "yes", "is not a tracker"); - is(fastScript, "yes", "is a non-blocked tracker"); - is(slowScript, "yes", "is a non-blocked tracker"); - is(numTrackersFound, 2, "2 trackers found"); + is(fastScript, "yes", "FastBlock is disabled"); + is(slowScript, "yes", "FastBlock is disabled"); + is(fastIFrame, "yes", "fast iframe loaded"); + is(goodIFrameScript, "yes", "is not a tracker"); + is(fastIFrameScript, "yes", "FastBlock is disabled"); + is(slowIFrameScript, "yes", "FastBlock is disabled"); + is(numTrackersFound, 5, "5 trackers found"); is(numTrackersBlocked, 0, "no tracker blocked"); + + let iframeLoaded = await addIFrame(aWindow, gBadIFramePage, "badIFrame"); + ok(iframeLoaded, "tracking iframe is loaded"); + + results = await ContentTask.spawn(browser, log, (LOG) => { + let iframe = content.document.getElementById("badIFrame").contentDocument; + return { + badIFrame: content.document.getElementById("badIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript").dataset.touched, + fastIFrameScript: iframe.getElementById("fastIFrameScript").dataset.touched, + slowIFrameScript: iframe.getElementById("slowIFrameScript").dataset.touched, + numTrackersFound: content.document.numTrackersFound, + numTrackersBlocked: content.document.numTrackersBlocked, + }; + }); + + is(results.badIFrame, "yes", "FastBlock is disabled"); + is(results.goodIFrameScript, "yes", "is not a tracker"); + is(results.fastIFrameScript, "yes", "FastBlock is disabled"); + is(results.slowIFrameScript, "yes", "FastBlock is disabled"); + + is(results.numTrackersFound, 8, "8 trackers found"); + is(results.numTrackersBlocked, 0, "0 tracker blocked"); + + let goodIFrameLoaded = await addIFrame(aWindow, gGoodIFramePage, "goodIFrame"); + ok(goodIFrameLoaded, "non tracking iframe is loaded"); + + results = await ContentTask.spawn(browser, {}, () => { + let iframe = content.document.getElementById("goodIFrame").contentDocument; + return { + goodIFrame: content.document.getElementById("goodIFrame").dataset.touched, + goodIFrameScript: iframe.getElementById("goodIFrameScript").dataset.touched, + fastIFrameScript: iframe.getElementById("fastIFrameScript").dataset.touched, + slowIFrameScript: iframe.getElementById("slowIFrameScript").dataset.touched, + numTrackersFound: content.document.numTrackersFound, + numTrackersBlocked: content.document.numTrackersBlocked, + }; + }); + + is(results.goodIFrame, "yes", "non tracking iframe is loaded"); + is(results.goodIFrameScript, "yes", "is not a tracker"); + is(results.fastIFrameScript, "yes", "FastBlock is disabled"); + is(results.slowIFrameScript, "yes", "FastBlock is disabled"); + + is(results.numTrackersFound, 10, "10 trackers found"); + is(results.numTrackersBlocked, 0, "0 tracker blocked"); } async function testPrefsSwitch() { @@ -292,7 +494,7 @@ async function testPrefsSwitch() { "set": [ ["browser.contentblocking.enabled", true], ["browser.fastblock.enabled", true], - ]}, testFastBlock, 3); // // fastblock.html, good.js, evil.js + ]}, testFastBlock, 6); // FastBlock OFF await runTest({ @@ -314,7 +516,9 @@ async function testPrefsSwitch() { async function test() { await setupTest(); - await runTest(null, testFastBlock, 3); // fastblock.html, good.js, evil.js + await runTest(null, + testFastBlock, + 6); // A long-timeout that FastBlock never happens await runTest({ "set": [["browser.fastblock.timeout", gInfiniteTimeout]]}, From 58e3df40e959ab5e96a53c181c9c8229f8682c3d Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Thu, 13 Sep 2018 20:12:38 +0000 Subject: [PATCH 27/40] Bug 1488055 - followup fix to enable the click handler actor in sidebar, r=mconley Depends on D5196 Differential Revision: https://phabricator.services.mozilla.com/D5780 --HG-- extra : moz-landing-system : lando --- browser/components/nsBrowserGlue.js | 1 - browser/modules/ContentClick.jsm | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js index 49f4a1b1ab03..35a4d761f798 100644 --- a/browser/components/nsBrowserGlue.js +++ b/browser/components/nsBrowserGlue.js @@ -71,7 +71,6 @@ let ACTORS = { ClickHandler: { child: { module: "resource:///actors/ClickHandlerChild.jsm", - group: "browsers", events: { "click": {capture: true, mozSystemGroup: true}, }, diff --git a/browser/modules/ContentClick.jsm b/browser/modules/ContentClick.jsm index 705cc58b1f8f..21dc0e4e311f 100644 --- a/browser/modules/ContentClick.jsm +++ b/browser/modules/ContentClick.jsm @@ -44,6 +44,13 @@ var ContentClick = { return; } + // If the browser is not in a place where we can open links, bail out. + // This can happen in osx sheets, dialogs, etc. that are not browser + // windows. Specifically the payments UI is in an osx sheet. + if (window.openLinkIn === undefined) { + return; + } + // Mark the page as a user followed link. This is done so that history can // distinguish automatic embed visits from user activated ones. For example // pages loaded in frames are embed visits and lost with the session, while From feacd37ebaf12cd53f1db7ae45ae52f6c8fcf175 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 13 Sep 2018 22:36:11 +0000 Subject: [PATCH 28/40] Bug 1490845 - Avoid fuzzer symbols being hidden r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D5729 --HG-- extra : moz-landing-system : lando --- tools/fuzzing/libfuzzer/FuzzerExtFunctionsWeak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fuzzing/libfuzzer/FuzzerExtFunctionsWeak.cpp b/tools/fuzzing/libfuzzer/FuzzerExtFunctionsWeak.cpp index 7c47dfae3124..277947aadd05 100644 --- a/tools/fuzzing/libfuzzer/FuzzerExtFunctionsWeak.cpp +++ b/tools/fuzzing/libfuzzer/FuzzerExtFunctionsWeak.cpp @@ -21,7 +21,7 @@ extern "C" { // Declare these symbols as weak to allow them to be optionally defined. #define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \ - __attribute__((weak)) RETURN_TYPE NAME FUNC_SIG + __attribute__((weak, visibility("default"))) RETURN_TYPE NAME FUNC_SIG #include "FuzzerExtFunctions.def" From 9455e67e2ce8c19f88684eefe81ba080acbb9b3e Mon Sep 17 00:00:00 2001 From: Timothy Guan-tin Chien Date: Thu, 13 Sep 2018 22:38:43 +0000 Subject: [PATCH 29/40] Bug 1491066 - Allow TextTrackManager to pass cue without videocontrols r=alwu With UA Widget, the videocontrols container is created lazily. It won't be a problem for WebVTT.processCues() in vtt.jsm, so TextTrackManager::UpdateCueDisplay() should not early return there, but pass nullptr to it. Differential Revision: https://phabricator.services.mozilla.com/D3667 --HG-- extra : moz-landing-system : lando --- dom/html/TextTrackManager.cpp | 2 +- dom/media/webvtt/vtt.jsm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/html/TextTrackManager.cpp b/dom/html/TextTrackManager.cpp index a1d0b6fcbbb4..7c785453025f 100644 --- a/dom/html/TextTrackManager.cpp +++ b/dom/html/TextTrackManager.cpp @@ -276,7 +276,7 @@ TextTrackManager::UpdateCueDisplay() nsCOMPtr overlay = videoFrame->GetCaptionOverlay(); nsCOMPtr controls = videoFrame->GetVideoControls(); - if (!overlay || !controls) { + if (!overlay) { return; } diff --git a/dom/media/webvtt/vtt.jsm b/dom/media/webvtt/vtt.jsm index 4da62c4e92e3..71fb574417d1 100644 --- a/dom/media/webvtt/vtt.jsm +++ b/dom/media/webvtt/vtt.jsm @@ -1021,6 +1021,10 @@ ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm"); controlBar = controls.parentNode.getElementById("controlBar"); } controlBarShown = controlBar ? !!controlBar.clientHeight : false; + } else { + // There is no controls element. This only happen to UA Widget because + // it is created lazily. + controlBarShown = false; } // Determine if we need to compute the display states of the cues. This could From 052ca9c390cbddfde09851537156f2740a64df47 Mon Sep 17 00:00:00 2001 From: Timothy Guan-tin Chien Date: Thu, 13 Sep 2018 21:21:11 +0000 Subject: [PATCH 30/40] Bug 1487143 - Properly dispatch MozAutoplayMediaBlocked event to content, r=alwu The MozAutoplayMediaBlocked event should have its target set to the video element, not the document. Also, MozNoControlsBlockedVideo event has to initialized from the CustomEvent constructor of the right window for the XBL binding to access it. I don't know when it stopped working. Test is added to ensure the entire UI won't break. Differential Revision: https://phabricator.services.mozilla.com/D5801 --HG-- extra : moz-landing-system : lando --- dom/html/HTMLMediaElement.cpp | 2 +- mobile/android/chrome/content/CastingApps.js | 4 ++-- .../tests/browser/chrome/media_playback.html | 3 ++- .../chrome/test_mozAutoplayMediaBlocked.html | 13 ++++++++++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index ed9bdc29aea8..2724450b479b 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -4147,7 +4147,7 @@ HTMLMediaElement::DispatchEventsWhenPlayWasNotAllowed() } #if defined(MOZ_WIDGET_ANDROID) RefPtr asyncDispatcher = - new AsyncEventDispatcher(OwnerDoc(), + new AsyncEventDispatcher(this, NS_LITERAL_STRING("MozAutoplayMediaBlocked"), CanBubble::eYes, ChromeOnlyDispatch::eYes); diff --git a/mobile/android/chrome/content/CastingApps.js b/mobile/android/chrome/content/CastingApps.js index 5dc5c79fb923..d7008c58d042 100644 --- a/mobile/android/chrome/content/CastingApps.js +++ b/mobile/android/chrome/content/CastingApps.js @@ -186,7 +186,7 @@ var CastingApps = { } case "MozAutoplayMediaBlocked": { if (this._bound && this._bound.has(aEvent.target)) { - aEvent.target.dispatchEvent(new CustomEvent("MozNoControlsBlockedVideo")); + aEvent.target.dispatchEvent(new aEvent.target.ownerGlobal.CustomEvent("MozNoControlsBlockedVideo")); } else { if (!this._blocked) { this._blocked = new WeakMap; @@ -202,7 +202,7 @@ var CastingApps = { this._bound.set(aEvent.target, true); if (this._blocked && this._blocked.has(aEvent.target)) { this._blocked.delete(aEvent.target); - aEvent.target.dispatchEvent(new CustomEvent("MozNoControlsBlockedVideo")); + aEvent.target.dispatchEvent(new aEvent.target.ownerGlobal.CustomEvent("MozNoControlsBlockedVideo")); } break; } diff --git a/mobile/android/tests/browser/chrome/media_playback.html b/mobile/android/tests/browser/chrome/media_playback.html index 377142387411..adb8b5d8df4e 100644 --- a/mobile/android/tests/browser/chrome/media_playback.html +++ b/mobile/android/tests/browser/chrome/media_playback.html @@ -1,5 +1,6 @@ - + + -
From abdaa90858232ad2cf10e2401f932e41dcd7014e Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 14 Sep 2018 00:06:16 +0000 Subject: [PATCH 36/40] Bug 1375319 part 3 - Try dispatching fullscreen events to element first rather than document. r=smaug Some steps in file_fullscreen-api.html are adjusted in order to test the behavior that the event is correctly dispatched to the document when element is disconnected. Depends on D5415 Differential Revision: https://phabricator.services.mozilla.com/D5416 --HG-- extra : moz-landing-system : lando --- dom/base/Element.cpp | 2 +- dom/base/nsDocument.cpp | 65 ++++++++++--------- dom/base/nsIDocument.h | 2 +- dom/events/PendingFullscreenEvent.h | 15 +++-- dom/html/test/file_fullscreen-api.html | 25 +++---- .../test/file_fullscreen-event-order.html | 9 +-- dom/webidl/Element.webidl | 6 ++ ...nt-request-fullscreen-not-allowed.html.ini | 4 -- .../meta/fullscreen/idlharness.window.js.ini | 12 ---- 9 files changed, 72 insertions(+), 68 deletions(-) delete mode 100644 testing/web-platform/meta/fullscreen/api/element-request-fullscreen-not-allowed.html.ini diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 46e9b7ad8ce2..4ce06953f197 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -3580,7 +3580,7 @@ Element::RequestFullscreen(CallerType aCallerType, ErrorResult& aError) // Note that requests for fullscreen inside a web app's origin are exempt // from this restriction. if (const char* error = GetFullscreenError(aCallerType)) { - OwnerDoc()->DispatchFullscreenError(error); + OwnerDoc()->DispatchFullscreenError(error, this); return; } diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index dedb5b85c792..962985410945 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -8562,11 +8562,11 @@ NotifyPageHide(nsIDocument* aDocument, void* aData) } static void -DispatchFullscreenChange(nsIDocument* aTarget) +DispatchFullscreenChange(nsIDocument* aDocument, nsINode* aTarget) { - if (nsPresContext* presContext = aTarget->GetPresContext()) { - auto pendingEvent = - MakeUnique(FullscreenEventType::Change, aTarget); + if (nsPresContext* presContext = aDocument->GetPresContext()) { + auto pendingEvent = MakeUnique( + FullscreenEventType::Change, aDocument, aTarget); presContext->RefreshDriver()-> ScheduleFullscreenEvent(std::move(pendingEvent)); } @@ -10716,13 +10716,13 @@ GetFullscreenLeaf(nsIDocument* aDoc) static bool ResetFullscreen(nsIDocument* aDocument, void* aData) { - if (aDocument->FullscreenStackTop()) { + if (Element* fsElement = aDocument->FullscreenStackTop()) { NS_ASSERTION(CountFullscreenSubDocuments(aDocument) <= 1, "Should have at most 1 fullscreen subdocument."); aDocument->CleanupFullscreenState(); NS_ASSERTION(!aDocument->FullscreenStackTop(), "Should reset fullscreen"); - DispatchFullscreenChange(aDocument); + DispatchFullscreenChange(aDocument, fsElement); aDocument->EnumerateSubDocuments(ResetFullscreen, nullptr); } return true; @@ -10823,35 +10823,38 @@ nsIDocument::RestorePreviousFullscreenState() } nsCOMPtr fullScreenDoc = GetFullscreenLeaf(this); - AutoTArray exitDocs; + AutoTArray exitElements; nsIDocument* doc = fullScreenDoc; // Collect all subdocuments. for (; doc != this; doc = doc->GetParentDocument()) { - exitDocs.AppendElement(doc); + Element* fsElement = doc->FullscreenStackTop(); + MOZ_ASSERT(fsElement, "Parent document of " + "a fullscreen document without fullscreen element?"); + exitElements.AppendElement(fsElement); } MOZ_ASSERT(doc == this, "Must have reached this doc"); // Collect all ancestor documents which we are going to change. for (; doc; doc = doc->GetParentDocument()) { MOZ_ASSERT(!doc->mFullscreenStack.IsEmpty(), "Ancestor of fullscreen document must also be in fullscreen"); + Element* fsElement = doc->FullscreenStackTop(); if (doc != this) { - Element* top = doc->FullscreenStackTop(); - if (top->IsHTMLElement(nsGkAtoms::iframe)) { - if (static_cast(top)->FullscreenFlag()) { + if (auto* iframe = HTMLIFrameElement::FromNode(fsElement)) { + if (iframe->FullscreenFlag()) { // If this is an iframe, and it explicitly requested // fullscreen, don't rollback it automatically. break; } } } - exitDocs.AppendElement(doc); + exitElements.AppendElement(fsElement); if (doc->mFullscreenStack.Length() > 1) { break; } } - nsIDocument* lastDoc = exitDocs.LastElement(); + nsIDocument* lastDoc = exitElements.LastElement()->OwnerDoc(); if (!lastDoc->GetParentDocument() && lastDoc->mFullscreenStack.Length() == 1) { // If we are fully exiting fullscreen, don't touch anything here, @@ -10864,8 +10867,8 @@ nsIDocument::RestorePreviousFullscreenState() UnlockPointer(); // All documents listed in the array except the last one are going to // completely exit from the fullscreen state. - for (auto i : IntegerRange(exitDocs.Length() - 1)) { - exitDocs[i]->CleanupFullscreenState(); + for (auto i : IntegerRange(exitElements.Length() - 1)) { + exitElements[i]->OwnerDoc()->CleanupFullscreenState(); } // The last document will either rollback one fullscreen element, or // completely exit from the fullscreen state as well. @@ -10880,8 +10883,8 @@ nsIDocument::RestorePreviousFullscreenState() // Dispatch the fullscreenchange event to all document listed. Note // that the loop order is reversed so that events are dispatched in // the tree order as indicated in the spec. - for (nsIDocument* d : Reversed(exitDocs)) { - DispatchFullscreenChange(d); + for (Element* e : Reversed(exitElements)) { + DispatchFullscreenChange(e->OwnerDoc(), e); } MOZ_ASSERT(newFullscreenDoc, "If we were going to exit from fullscreen on " @@ -10932,11 +10935,11 @@ nsIDocument::AsyncRequestFullscreen(UniquePtr aRequest) } void -nsIDocument::DispatchFullscreenError(const char* aMessage) +nsIDocument::DispatchFullscreenError(const char* aMessage, nsINode* aTarget) { if (nsPresContext* presContext = GetPresContext()) { - auto pendingEvent = - MakeUnique(FullscreenEventType::Error, this); + auto pendingEvent = MakeUnique( + FullscreenEventType::Error, this, aTarget); presContext->RefreshDriver()-> ScheduleFullscreenEvent(std::move(pendingEvent)); } @@ -11171,27 +11174,27 @@ nsIDocument::FullscreenElementReadyCheck(Element* aElement, return false; } if (!aElement->IsInComposedDoc()) { - DispatchFullscreenError("FullscreenDeniedNotInDocument"); + DispatchFullscreenError("FullscreenDeniedNotInDocument", aElement); return false; } if (aElement->OwnerDoc() != this) { - DispatchFullscreenError("FullscreenDeniedMovedDocument"); + DispatchFullscreenError("FullscreenDeniedMovedDocument", aElement); return false; } if (!GetWindow()) { - DispatchFullscreenError("FullscreenDeniedLostWindow"); + DispatchFullscreenError("FullscreenDeniedLostWindow", aElement); return false; } if (const char* msg = GetFullscreenError(this, aCallerType)) { - DispatchFullscreenError(msg); + DispatchFullscreenError(msg, aElement); return false; } if (!IsVisible()) { - DispatchFullscreenError("FullscreenDeniedHidden"); + DispatchFullscreenError("FullscreenDeniedHidden", aElement); return false; } if (HasFullscreenSubDocument(this)) { - DispatchFullscreenError("FullscreenDeniedSubDocFullScreen"); + DispatchFullscreenError("FullscreenDeniedSubDocFullScreen", aElement); return false; } //XXXsmaug Note, we don't follow the latest fullscreen spec here. @@ -11201,11 +11204,11 @@ nsIDocument::FullscreenElementReadyCheck(Element* aElement, FullscreenStackTop())) { // If this document is fullscreen, only grant fullscreen requests from // a descendant of the current fullscreen element. - DispatchFullscreenError("FullscreenDeniedNotDescendant"); + DispatchFullscreenError("FullscreenDeniedNotDescendant", aElement); return false; } if (!nsContentUtils::IsChromeDoc(this) && !IsInActiveTab(this)) { - DispatchFullscreenError("FullscreenDeniedNotFocusedTab"); + DispatchFullscreenError("FullscreenDeniedNotFocusedTab", aElement); return false; } // Deny requests when a windowed plugin is focused. @@ -11215,7 +11218,7 @@ nsIDocument::FullscreenElementReadyCheck(Element* aElement, return false; } if (nsContentUtils::HasPluginWithUncontrolledEventDispatch(fm->GetFocusedElement())) { - DispatchFullscreenError("FullscreenDeniedFocusedPlugin"); + DispatchFullscreenError("FullscreenDeniedFocusedPlugin", aElement); return false; } return true; @@ -11395,7 +11398,7 @@ nsIDocument::RequestFullscreen(UniquePtr aRequest) if (!elem->IsHTMLElement() && !elem->IsXULElement() && !elem->IsSVGElement(nsGkAtoms::svg) && !elem->IsMathMLElement(nsGkAtoms::math)) { - DispatchFullscreenError("FullscreenDeniedNotHTMLSVGOrMathML"); + DispatchFullscreenError("FullscreenDeniedNotHTMLSVGOrMathML", elem); return; } @@ -11538,7 +11541,7 @@ nsIDocument::ApplyFullscreen(const FullscreenRequest& aRequest) // reversed so that events are dispatched in the tree order as // indicated in the spec. for (nsIDocument* d : Reversed(changed)) { - DispatchFullscreenChange(d); + DispatchFullscreenChange(d, d->FullscreenStackTop()); } return true; } diff --git a/dom/base/nsIDocument.h b/dom/base/nsIDocument.h index 77c48d247e0e..a5b779b15a0b 100644 --- a/dom/base/nsIDocument.h +++ b/dom/base/nsIDocument.h @@ -1858,7 +1858,7 @@ public: * Dispatch fullscreenerror event and report the failure message to * the console. */ - void DispatchFullscreenError(const char* aMessage); + void DispatchFullscreenError(const char* aMessage, nsINode* aTarget); void RequestPointerLock(Element* aElement, mozilla::dom::CallerType); bool SetPointerLock(Element* aElement, int aCursorStyle); diff --git a/dom/events/PendingFullscreenEvent.h b/dom/events/PendingFullscreenEvent.h index 9eb35d0aa0a7..23351c1edfdd 100644 --- a/dom/events/PendingFullscreenEvent.h +++ b/dom/events/PendingFullscreenEvent.h @@ -26,11 +26,15 @@ enum class FullscreenEventType class PendingFullscreenEvent { public: - PendingFullscreenEvent(FullscreenEventType aType, nsIDocument* aDoc) - : mDocument(aDoc) + PendingFullscreenEvent(FullscreenEventType aType, + nsIDocument* aDocument, + nsINode* aTarget) + : mDocument(aDocument) + , mTarget(aTarget) , mType(aType) { - MOZ_ASSERT(aDoc); + MOZ_ASSERT(aDocument); + MOZ_ASSERT(aTarget); } nsIDocument* Document() const { return mDocument; } @@ -50,13 +54,16 @@ public: name = NS_LITERAL_STRING("fullscreenerror"); break; } + nsINode* target = + mTarget->GetComposedDoc() == mDocument ? mTarget : mDocument; Unused << nsContentUtils::DispatchTrustedEvent( - mDocument, mDocument, name, + mDocument, target, name, CanBubble::eYes, Cancelable::eNo, Composed::eYes); } private: nsCOMPtr mDocument; + nsCOMPtr mTarget; FullscreenEventType mType; #ifdef DEBUG bool mDispatched = false; diff --git a/dom/html/test/file_fullscreen-api.html b/dom/html/test/file_fullscreen-api.html index d8409e93e801..22a32694e8fc 100644 --- a/dom/html/test/file_fullscreen-api.html +++ b/dom/html/test/file_fullscreen-api.html @@ -54,7 +54,8 @@ function sendMouseClick(element) { const FULLSCREEN_ELEMENT = document.getElementById("fullscreen-element"); function enter1(event) { - is(event.target, document, "Event target should be full-screen document #1"); + is(event.target, FULLSCREEN_ELEMENT, + "Event target should be the fullscreen element #1"); ok(document.fullscreen, "Document should be in fullscreen"); is(document.fullscreenElement, FULLSCREEN_ELEMENT, "Full-screen element should be div element."); @@ -64,13 +65,13 @@ function enter1(event) { FULLSCREEN_ELEMENT.remove(); is(document.fullscreenElement, null, "Full-screen element should be null after removing."); - document.body.appendChild(FULLSCREEN_ELEMENT); - is(document.fullscreenElement, null, - "Full-screen element should still be null after re-adding former FSE."); } function exit1(event) { - is(event.target, document, "Event target should be full-screen document #2"); + document.body.appendChild(FULLSCREEN_ELEMENT); + is(document.fullscreenElement, null, + "Full-screen element should still be null after re-adding former FSE."); + is(event.target, document, "Event target should be the document #2"); ok(!document.fullscreen, "Document should not be in fullscreen"); is(document.fullscreenElement, null, "Full-screen element should be null."); iframe = document.createElement("iframe"); @@ -81,7 +82,8 @@ function exit1(event) { } function enter2(event) { - is(event.target, document, "Event target should be full-screen document #3"); + is(event.target, iframe, + "Event target should be the fullscreen iframe #3"); is(document.fullscreenElement, iframe, "Full-screen element should be iframe element."); is(iframe.contentDocument.fullscreenElement, iframe.contentDocument.body, @@ -105,7 +107,8 @@ function exit2(event) { } function enter3(event) { - is(event.target, document, "Event target should be full-screen document #3"); + is(event.target, FULLSCREEN_ELEMENT, + "Event target should be the fullscreen element #3"); is(document.fullscreenElement, FULLSCREEN_ELEMENT, "Full-screen element should be div."); @@ -119,12 +122,11 @@ function enter3(event) { "Full-screen element in outer frame should be null."); is(_innerFrame.contentDocument.fullscreenElement, null, "Full-screen element in inner frame should be null."); - - document.body.appendChild(FULLSCREEN_ELEMENT); } function exit3(event) { - is(event.target, document, "Event target should be full-screen document #4"); + document.body.appendChild(FULLSCREEN_ELEMENT); + is(event.target, document, "Event target should be the document #3"); is(document.fullscreenElement, null, "Full-screen element should be null."); document.body.removeChild(iframe); iframe = null; @@ -149,7 +151,8 @@ function error1(event) { } function enter4(event) { - is(event.target, document, "Event target should be full-screen document #5"); + is(event.target, inDocElement, + "Event target should be the fullscreen element #4"); is(document.fullscreenElement, inDocElement, "FSE should be inDocElement."); // Remove full-screen ancestor element from document, verify it stops being reported as current FSE. diff --git a/dom/html/test/file_fullscreen-event-order.html b/dom/html/test/file_fullscreen-event-order.html index c6c3f47f8930..4ed5635861c5 100644 --- a/dom/html/test/file_fullscreen-event-order.html +++ b/dom/html/test/file_fullscreen-event-order.html @@ -12,10 +12,11 @@ function is(a, b, msg) { } let fullscreenEvents = []; -let iframeDoc; +let iframe, iframeDoc; function begin() { - iframeDoc = document.querySelector("iframe").contentDocument; + iframe = document.querySelector("iframe"); + iframeDoc = iframe.contentDocument; document.addEventListener("fullscreenchange", evt => { fullscreenEvents.push(evt); }); @@ -29,9 +30,9 @@ function begin() { function assertFullscreenEvents(action) { is(fullscreenEvents.length, 2, "Two documents should have event dispatched for " + action); - is(fullscreenEvents[0].target, document, + is(fullscreenEvents[0].target, iframe, "Root document should have the event dispatched first after " + action); - is(fullscreenEvents[1].target, iframeDoc, + is(fullscreenEvents[1].target, iframeDoc.body, "Inner document should have the event dispatched second after " + action); } diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl index 8cc484419fd3..a2bcb1129d42 100644 --- a/dom/webidl/Element.webidl +++ b/dom/webidl/Element.webidl @@ -265,6 +265,12 @@ partial interface Element { void requestFullscreen(); [Throws, BinaryName="requestFullscreen", NeedsCallerType] void mozRequestFullScreen(); + + // Events handlers + [Func="nsDocument::IsUnprefixedFullscreenEnabled"] + attribute EventHandler onfullscreenchange; + [Func="nsDocument::IsUnprefixedFullscreenEnabled"] + attribute EventHandler onfullscreenerror; }; // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface diff --git a/testing/web-platform/meta/fullscreen/api/element-request-fullscreen-not-allowed.html.ini b/testing/web-platform/meta/fullscreen/api/element-request-fullscreen-not-allowed.html.ini deleted file mode 100644 index 61a8ed2a9b14..000000000000 --- a/testing/web-platform/meta/fullscreen/api/element-request-fullscreen-not-allowed.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[element-request-fullscreen-not-allowed.html] - [Element#requestFullscreen() when not allowed to request fullscreen] - expected: FAIL - diff --git a/testing/web-platform/meta/fullscreen/idlharness.window.js.ini b/testing/web-platform/meta/fullscreen/idlharness.window.js.ini index 185455f50a86..fd0ab130084c 100644 --- a/testing/web-platform/meta/fullscreen/idlharness.window.js.ini +++ b/testing/web-platform/meta/fullscreen/idlharness.window.js.ini @@ -5,15 +5,3 @@ [Document interface: operation exitFullscreen()] expected: FAIL - [Element interface: document.createElementNS(null, "test") must inherit property "onfullscreenerror" with the proper type] - expected: FAIL - - [Element interface: attribute onfullscreenerror] - expected: FAIL - - [Element interface: document.createElementNS(null, "test") must inherit property "onfullscreenchange" with the proper type] - expected: FAIL - - [Element interface: attribute onfullscreenchange] - expected: FAIL - From 9e18233019614c3bc8251bcf35265262e7ae5be0 Mon Sep 17 00:00:00 2001 From: Cosmin Sabou Date: Fri, 14 Sep 2018 03:11:01 +0300 Subject: [PATCH 37/40] Backed out changeset 128979a6e32f (bug 1437608) for reftest failures on bugs/1425243-1. CLOSED TREE --- layout/reftests/bugs/reftest.list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index aacb26217712..6a713089af4d 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -2068,7 +2068,7 @@ test-pref(font.size.systemFontScale,200) == 1412743.html 1412743-ref.html == 1424177.html 1424177-ref.html == 1424680.html 1424680-ref.html == 1424798-1.html 1424798-ref.html -== 1425243-1.html 1425243-1-ref.html +fuzzy(0-74,0-2234) random-if(webrender) == 1425243-1.html 1425243-1-ref.html fuzzy-if(Android,0-66,0-574) fuzzy-if(d2d,0-89,0-777) fuzzy-if(!Android&&!d2d,0-1,0-31341) == 1425243-2.html 1425243-2-ref.html == 1430869.html 1430869-ref.html == 1432541.html 1432541-ref.html From 364a010e05915cac8ad0f51c74f169ee3dff5737 Mon Sep 17 00:00:00 2001 From: Dana Keeler Date: Thu, 13 Sep 2018 17:13:43 +0000 Subject: [PATCH 38/40] bug 748809 - remove nsIAssociatedContentSecurity and nsISecurityInfoProvider r=mayhemer,jrmuizel nsIAssociatedContentSecurity and nsISecurityInfoProvider are unused as of bug 832834, so this patch removes them. Differential Revision: https://phabricator.services.mozilla.com/D5693 --HG-- extra : moz-landing-system : lando --- image/imgRequest.cpp | 22 ----- image/imgRequest.h | 7 -- image/imgRequestProxy.cpp | 26 ------ image/imgRequestProxy.h | 3 - netwerk/base/moz.build | 1 - netwerk/base/nsISecurityInfoProvider.idl | 21 ----- netwerk/protocol/http/HttpChannelChild.cpp | 83 ------------------- netwerk/protocol/http/HttpChannelChild.h | 5 -- netwerk/protocol/http/HttpChannelParent.cpp | 14 ---- netwerk/protocol/http/HttpChannelParent.h | 4 - netwerk/protocol/http/PHttpChannel.ipdl | 2 - .../manager/ssl/TransportSecurityInfo.cpp | 67 +++------------ security/manager/ssl/TransportSecurityInfo.h | 5 -- security/manager/ssl/moz.build | 1 - .../ssl/nsIAssociatedContentSecurity.idl | 23 ----- 15 files changed, 10 insertions(+), 274 deletions(-) delete mode 100644 netwerk/base/nsISecurityInfoProvider.idl delete mode 100644 security/manager/ssl/nsIAssociatedContentSecurity.idl diff --git a/image/imgRequest.cpp b/image/imgRequest.cpp index cde01fc051f4..cded0e43e707 100644 --- a/image/imgRequest.cpp +++ b/image/imgRequest.cpp @@ -66,7 +66,6 @@ imgRequest::imgRequest(imgLoader* aLoader, const ImageCacheKey& aCacheKey) , mMutex("imgRequest") , mProgressTracker(new ProgressTracker()) , mIsMultiPartChannel(false) - , mGotData(false) , mIsInCache(false) , mDecodeRequested(false) , mNewPartPending(false) @@ -473,17 +472,6 @@ imgRequest::GetImageErrorCode() return mImageErrorCode; } -nsresult -imgRequest::GetSecurityInfo(nsISupports** aSecurityInfo) -{ - LOG_FUNC(gImgLog, "imgRequest::GetSecurityInfo"); - - // Missing security info means this is not a security load - // i.e. it is not an error when security info is missing - NS_IF_ADDREF(*aSecurityInfo = mSecurityInfo); - return NS_OK; -} - void imgRequest::RemoveFromCache() { @@ -595,13 +583,6 @@ imgRequest::BoostPriority(uint32_t aCategory) mBoostCategoriesRequested |= newRequestedCategory; } -bool -imgRequest::HasTransferredData() const -{ - MutexAutoLock lock(mMutex); - return mGotData; -} - void imgRequest::SetIsInCache(bool aInCache) { @@ -797,8 +778,6 @@ imgRequest::OnStartRequest(nsIRequest* aRequest, nsISupports* ctxt) nsCOMPtr channel(do_QueryInterface(aRequest)); if (channel) { - channel->GetSecurityInfo(getter_AddRefs(mSecurityInfo)); - /* Get our principal */ nsCOMPtr secMan = nsContentUtils::GetSecurityManager(); @@ -1172,7 +1151,6 @@ imgRequest::OnDataAvailable(nsIRequest* aRequest, nsISupports* aContext, // Retrieve and update our state. { MutexAutoLock lock(mMutex); - mGotData = true; image = mImage; progressTracker = mProgressTracker; isMultipart = mIsMultiPartChannel; diff --git a/image/imgRequest.h b/image/imgRequest.h index fcc20ca39759..ea8a393faaf0 100644 --- a/image/imgRequest.h +++ b/image/imgRequest.h @@ -157,9 +157,6 @@ public: nsresult GetImageErrorCode(void); - /// Returns true if we've received any data. - bool HasTransferredData() const; - /// Returns a non-owning pointer to this imgRequest's MIME type. const char* GetMimeType() const { return mContentType.get(); } @@ -178,8 +175,6 @@ public: nsITimedChannel* GetTimedChannel() const { return mTimedChannel; } - nsresult GetSecurityInfo(nsISupports** aSecurityInfoOut); - imgCacheValidator* GetValidator() const { return mValidator; } void SetValidator(imgCacheValidator* aValidator) { mValidator = aValidator; } @@ -243,7 +238,6 @@ private: // The principal of this image. nsCOMPtr mPrincipal; nsCOMPtr mProperties; - nsCOMPtr mSecurityInfo; nsCOMPtr mChannel; nsCOMPtr mPrevChannelSink; nsCOMPtr mApplicationCache; @@ -291,7 +285,6 @@ private: RefPtr mProgressTracker; RefPtr mImage; bool mIsMultiPartChannel : 1; - bool mGotData : 1; bool mIsInCache : 1; bool mDecodeRequested : 1; bool mNewPartPending : 1; diff --git a/image/imgRequestProxy.cpp b/image/imgRequestProxy.cpp index 2b3c65d146a8..9e30c3eff377 100644 --- a/image/imgRequestProxy.cpp +++ b/image/imgRequestProxy.cpp @@ -103,7 +103,6 @@ NS_INTERFACE_MAP_BEGIN(imgRequestProxy) NS_INTERFACE_MAP_ENTRY(imgIRequest) NS_INTERFACE_MAP_ENTRY(nsIRequest) NS_INTERFACE_MAP_ENTRY(nsISupportsPriority) - NS_INTERFACE_MAP_ENTRY(nsISecurityInfoProvider) NS_INTERFACE_MAP_ENTRY_CONDITIONAL(nsITimedChannel, TimedChannel() != nullptr) NS_INTERFACE_MAP_END @@ -995,31 +994,6 @@ imgRequestProxy::AdjustPriority(int32_t priority) return NS_OK; } -/** nsISecurityInfoProvider methods **/ - -NS_IMETHODIMP -imgRequestProxy::GetSecurityInfo(nsISupports** _retval) -{ - if (GetOwner()) { - return GetOwner()->GetSecurityInfo(_retval); - } - - *_retval = nullptr; - return NS_OK; -} - -NS_IMETHODIMP -imgRequestProxy::GetHasTransferredData(bool* hasData) -{ - if (GetOwner()) { - *hasData = GetOwner()->HasTransferredData(); - } else { - // The safe thing to do is to claim we have data - *hasData = true; - } - return NS_OK; -} - static const char* NotificationTypeToString(int32_t aType) { diff --git a/image/imgRequestProxy.h b/image/imgRequestProxy.h index f48ec99e2c91..e5ba29cfa95d 100644 --- a/image/imgRequestProxy.h +++ b/image/imgRequestProxy.h @@ -8,7 +8,6 @@ #define mozilla_image_imgRequestProxy_h #include "imgIRequest.h" -#include "nsISecurityInfoProvider.h" #include "nsILoadGroup.h" #include "nsISupportsPriority.h" @@ -49,7 +48,6 @@ class ProgressTracker; class imgRequestProxy : public imgIRequest, public mozilla::image::IProgressObserver, public nsISupportsPriority, - public nsISecurityInfoProvider, public nsITimedChannel { protected: @@ -64,7 +62,6 @@ public: NS_DECL_IMGIREQUEST NS_DECL_NSIREQUEST NS_DECL_NSISUPPORTSPRIORITY - NS_DECL_NSISECURITYINFOPROVIDER // nsITimedChannel declared below imgRequestProxy(); diff --git a/netwerk/base/moz.build b/netwerk/base/moz.build index 5e972b076929..a1331f3a9431 100644 --- a/netwerk/base/moz.build +++ b/netwerk/base/moz.build @@ -97,7 +97,6 @@ XPIDL_SOURCES += [ 'nsISecCheckWrapChannel.idl', 'nsISecureBrowserUI.idl', 'nsISecurityEventSink.idl', - 'nsISecurityInfoProvider.idl', 'nsISensitiveInfoHiddenURI.idl', 'nsISerializationHelper.idl', 'nsIServerSocket.idl', diff --git a/netwerk/base/nsISecurityInfoProvider.idl b/netwerk/base/nsISecurityInfoProvider.idl deleted file mode 100644 index 0cf83e69c577..000000000000 --- a/netwerk/base/nsISecurityInfoProvider.idl +++ /dev/null @@ -1,21 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -#include "nsISupports.idl" - -[scriptable, uuid(b8cc9126-9319-4415-afd9-b82220d453ed)] -interface nsISecurityInfoProvider : nsISupports -{ - /** - * The security info for this provider, if any. - */ - readonly attribute nsISupports securityInfo; - - /** - * Whether this provider has transferred data. If it hasn't, its - * security info should be ignored. - */ - readonly attribute boolean hasTransferredData; -}; diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index 5b29489914e9..17111f577b88 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -294,7 +294,6 @@ NS_INTERFACE_MAP_BEGIN(HttpChannelChild) NS_INTERFACE_MAP_ENTRY(nsIAsyncVerifyRedirectCallback) NS_INTERFACE_MAP_ENTRY(nsIChildChannel) NS_INTERFACE_MAP_ENTRY(nsIHttpChannelChild) - NS_INTERFACE_MAP_ENTRY_CONDITIONAL(nsIAssociatedContentSecurity, GetAssociatedContentSecurity()) NS_INTERFACE_MAP_ENTRY(nsIDivertableChannel) NS_INTERFACE_MAP_ENTRY(nsIThreadRetargetableRequest) NS_INTERFACE_MAP_ENTRY_CONCRETE(HttpChannelChild) @@ -3476,88 +3475,6 @@ HttpChannelChild::MarkOfflineCacheEntryAsForeign() return NS_OK; } -//----------------------------------------------------------------------------- -// HttpChannelChild::nsIAssociatedContentSecurity -//----------------------------------------------------------------------------- - -bool -HttpChannelChild::GetAssociatedContentSecurity( - nsIAssociatedContentSecurity** _result) -{ - if (!mSecurityInfo) - return false; - - nsCOMPtr assoc = - do_QueryInterface(mSecurityInfo); - if (!assoc) - return false; - - if (_result) - assoc.forget(_result); - return true; -} - -NS_IMETHODIMP -HttpChannelChild::GetCountSubRequestsBrokenSecurity( - int32_t *aSubRequestsBrokenSecurity) -{ - nsCOMPtr assoc; - if (!GetAssociatedContentSecurity(getter_AddRefs(assoc))) - return NS_OK; - - return assoc->GetCountSubRequestsBrokenSecurity(aSubRequestsBrokenSecurity); -} -NS_IMETHODIMP -HttpChannelChild::SetCountSubRequestsBrokenSecurity( - int32_t aSubRequestsBrokenSecurity) -{ - nsCOMPtr assoc; - if (!GetAssociatedContentSecurity(getter_AddRefs(assoc))) - return NS_OK; - - return assoc->SetCountSubRequestsBrokenSecurity(aSubRequestsBrokenSecurity); -} - -NS_IMETHODIMP -HttpChannelChild::GetCountSubRequestsNoSecurity(int32_t *aSubRequestsNoSecurity) -{ - nsCOMPtr assoc; - if (!GetAssociatedContentSecurity(getter_AddRefs(assoc))) - return NS_OK; - - return assoc->GetCountSubRequestsNoSecurity(aSubRequestsNoSecurity); -} -NS_IMETHODIMP -HttpChannelChild::SetCountSubRequestsNoSecurity(int32_t aSubRequestsNoSecurity) -{ - nsCOMPtr assoc; - if (!GetAssociatedContentSecurity(getter_AddRefs(assoc))) - return NS_OK; - - return assoc->SetCountSubRequestsNoSecurity(aSubRequestsNoSecurity); -} - -NS_IMETHODIMP -HttpChannelChild::Flush() -{ - nsCOMPtr assoc; - if (!GetAssociatedContentSecurity(getter_AddRefs(assoc))) - return NS_OK; - - nsresult rv; - int32_t broken, no; - - rv = assoc->GetCountSubRequestsBrokenSecurity(&broken); - NS_ENSURE_SUCCESS(rv, rv); - rv = assoc->GetCountSubRequestsNoSecurity(&no); - NS_ENSURE_SUCCESS(rv, rv); - - if (mIPCOpen) - SendUpdateAssociatedContentSecurity(broken, no); - - return NS_OK; -} - //----------------------------------------------------------------------------- // HttpChannelChild::nsIHttpChannelChild //----------------------------------------------------------------------------- diff --git a/netwerk/protocol/http/HttpChannelChild.h b/netwerk/protocol/http/HttpChannelChild.h index b02104112e95..303d2e1af38f 100644 --- a/netwerk/protocol/http/HttpChannelChild.h +++ b/netwerk/protocol/http/HttpChannelChild.h @@ -28,7 +28,6 @@ #include "nsIResumableChannel.h" #include "nsIProxiedChannel.h" #include "nsIAsyncVerifyRedirectCallback.h" -#include "nsIAssociatedContentSecurity.h" #include "nsIChildChannel.h" #include "nsIHttpChannelChild.h" #include "nsIDivertableChannel.h" @@ -60,7 +59,6 @@ class HttpChannelChild final : public PHttpChannelChild , public nsIProxiedChannel , public nsIApplicationCacheChannel , public nsIAsyncVerifyRedirectCallback - , public nsIAssociatedContentSecurity , public nsIChildChannel , public nsIHttpChannelChild , public nsIDivertableChannel @@ -75,7 +73,6 @@ public: NS_DECL_NSIAPPLICATIONCACHECONTAINER NS_DECL_NSIAPPLICATIONCACHECHANNEL NS_DECL_NSIASYNCVERIFYREDIRECTCALLBACK - NS_DECL_NSIASSOCIATEDCONTENTSECURITY NS_DECL_NSICHILDCHANNEL NS_DECL_NSIHTTPCHANNELCHILD NS_DECL_NSIDIVERTABLECHANNEL @@ -187,8 +184,6 @@ protected: virtual void ActorDestroy(ActorDestroyReason aWhy) override; - MOZ_MUST_USE bool - GetAssociatedContentSecurity(nsIAssociatedContentSecurity** res = nullptr); virtual void DoNotifyListenerCleanup() override; virtual void DoAsyncAbort(nsresult aStatus) override; diff --git a/netwerk/protocol/http/HttpChannelParent.cpp b/netwerk/protocol/http/HttpChannelParent.cpp index d3b0a25da276..030c1d408767 100644 --- a/netwerk/protocol/http/HttpChannelParent.cpp +++ b/netwerk/protocol/http/HttpChannelParent.cpp @@ -29,7 +29,6 @@ #include "nsIBackgroundChannelRegistrar.h" #include "nsSerializationHelper.h" #include "nsISerializable.h" -#include "nsIAssociatedContentSecurity.h" #include "nsIApplicationCacheService.h" #include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/ipc/URIUtils.h" @@ -878,17 +877,6 @@ HttpChannelParent::RecvSetCacheTokenCachedCharset(const nsCString& charset) return IPC_OK(); } -mozilla::ipc::IPCResult -HttpChannelParent::RecvUpdateAssociatedContentSecurity(const int32_t& broken, - const int32_t& no) -{ - if (mAssociatedContentSecurity) { - mAssociatedContentSecurity->SetCountSubRequestsBrokenSecurity(broken); - mAssociatedContentSecurity->SetCountSubRequestsNoSecurity(no); - } - return IPC_OK(); -} - mozilla::ipc::IPCResult HttpChannelParent::RecvRedirect2Verify(const nsresult& aResult, const RequestHeaderTuples& changedHeaders, @@ -1071,7 +1059,6 @@ HttpChannelParent::ContinueRedirect2Verify(const nsresult& aResult) mozilla::ipc::IPCResult HttpChannelParent::RecvDocumentChannelCleanup(const bool& clearCacheEntry) { - // From now on only using mAssociatedContentSecurity. Free everything else. CleanupBackgroundChannel(); // Background channel can be closed. mChannel = nullptr; // Reclaim some memory sooner. if (clearCacheEntry) { @@ -2398,7 +2385,6 @@ HttpChannelParent::UpdateAndSerializeSecurityInfo(nsACString& aSerializedSecurit nsCOMPtr secInfoSupp; mChannel->GetSecurityInfo(getter_AddRefs(secInfoSupp)); if (secInfoSupp) { - mAssociatedContentSecurity = do_QueryInterface(secInfoSupp); nsCOMPtr secInfoSer = do_QueryInterface(secInfoSupp); if (secInfoSer) { NS_SerializeToString(secInfoSer, aSerializedSecurityInfoOut); diff --git a/netwerk/protocol/http/HttpChannelParent.h b/netwerk/protocol/http/HttpChannelParent.h index 013e770292a4..ce6b4c04a3a9 100644 --- a/netwerk/protocol/http/HttpChannelParent.h +++ b/netwerk/protocol/http/HttpChannelParent.h @@ -23,7 +23,6 @@ #include "nsIDeprecationWarner.h" class nsICacheEntry; -class nsIAssociatedContentSecurity; #define HTTP_CHANNEL_PARENT_IID \ { 0x982b2372, 0x7aa5, 0x4e8a, \ @@ -200,8 +199,6 @@ protected: const OptionalURIParams& apiRedirectUri, const OptionalCorsPreflightArgs& aCorsPreflightArgs, const bool& aChooseAppcache) override; - virtual mozilla::ipc::IPCResult RecvUpdateAssociatedContentSecurity(const int32_t& broken, - const int32_t& no) override; virtual mozilla::ipc::IPCResult RecvDocumentChannelCleanup(const bool& clearCacheEntry) override; virtual mozilla::ipc::IPCResult RecvMarkOfflineCacheEntryAsForeign() override; virtual mozilla::ipc::IPCResult RecvDivertOnDataAvailable(const nsCString& data, @@ -279,7 +276,6 @@ private: RefPtr mChannel; nsCOMPtr mCacheEntry; - nsCOMPtr mAssociatedContentSecurity; nsCOMPtr mRedirectChannel; nsCOMPtr mRedirectCallback; diff --git a/netwerk/protocol/http/PHttpChannel.ipdl b/netwerk/protocol/http/PHttpChannel.ipdl index 76d287b6f859..4c44bf26a1dd 100644 --- a/netwerk/protocol/http/PHttpChannel.ipdl +++ b/netwerk/protocol/http/PHttpChannel.ipdl @@ -35,8 +35,6 @@ parent: async SetCacheTokenCachedCharset(nsCString charset); - async UpdateAssociatedContentSecurity(int32_t broken, - int32_t no); async Suspend(); async Resume(); diff --git a/security/manager/ssl/TransportSecurityInfo.cpp b/security/manager/ssl/TransportSecurityInfo.cpp index 2c1303ed5de4..269d708b17bf 100644 --- a/security/manager/ssl/TransportSecurityInfo.cpp +++ b/security/manager/ssl/TransportSecurityInfo.cpp @@ -54,8 +54,6 @@ TransportSecurityInfo::TransportSecurityInfo() , mHaveCertErrorBits(false) , mMutex("TransportSecurityInfo::mMutex") , mSecurityState(nsIWebProgressListener::STATE_IS_INSECURE) - , mSubRequestsBrokenSecurity(0) - , mSubRequestsNoSecurity(0) , mErrorCode(0) , mPort(0) { @@ -64,7 +62,6 @@ TransportSecurityInfo::TransportSecurityInfo() NS_IMPL_ISUPPORTS(TransportSecurityInfo, nsITransportSecurityInfo, nsIInterfaceRequestor, - nsIAssociatedContentSecurity, nsISerializable, nsIClassInfo) @@ -117,44 +114,6 @@ TransportSecurityInfo::SetSecurityState(uint32_t aState) mSecurityState = aState; } -NS_IMETHODIMP -TransportSecurityInfo::GetCountSubRequestsBrokenSecurity( - int32_t *aSubRequestsBrokenSecurity) -{ - *aSubRequestsBrokenSecurity = mSubRequestsBrokenSecurity; - return NS_OK; -} - -NS_IMETHODIMP -TransportSecurityInfo::SetCountSubRequestsBrokenSecurity( - int32_t aSubRequestsBrokenSecurity) -{ - mSubRequestsBrokenSecurity = aSubRequestsBrokenSecurity; - return NS_OK; -} - -NS_IMETHODIMP -TransportSecurityInfo::GetCountSubRequestsNoSecurity( - int32_t *aSubRequestsNoSecurity) -{ - *aSubRequestsNoSecurity = mSubRequestsNoSecurity; - return NS_OK; -} - -NS_IMETHODIMP -TransportSecurityInfo::SetCountSubRequestsNoSecurity( - int32_t aSubRequestsNoSecurity) -{ - mSubRequestsNoSecurity = aSubRequestsNoSecurity; - return NS_OK; -} - -NS_IMETHODIMP -TransportSecurityInfo::Flush() -{ - return NS_OK; -} - NS_IMETHODIMP TransportSecurityInfo::GetErrorCodeString(nsAString& aErrorString) { @@ -209,11 +168,13 @@ TransportSecurityInfo::Write(nsIObjectOutputStream* aStream) if (NS_FAILED(rv)) { return rv; } - rv = aStream->Write32(mSubRequestsBrokenSecurity); + // mSubRequestsBrokenSecurity was removed in bug 748809 + rv = aStream->Write32(0); if (NS_FAILED(rv)) { return rv; } - rv = aStream->Write32(mSubRequestsNoSecurity); + // mSubRequestsNoSecurity was removed in bug 748809 + rv = aStream->Write32(0); if (NS_FAILED(rv)) { return rv; } @@ -411,26 +372,18 @@ TransportSecurityInfo::Read(nsIObjectInputStream* aStream) if (NS_FAILED(rv)) { return rv; } - uint32_t subRequestsBrokenSecurity; - rv = aStream->Read32(&subRequestsBrokenSecurity); + // mSubRequestsBrokenSecurity was removed in bug 748809 + uint32_t unusedSubRequestsBrokenSecurity; + rv = aStream->Read32(&unusedSubRequestsBrokenSecurity); if (NS_FAILED(rv)) { return rv; } - if (subRequestsBrokenSecurity > - static_cast(std::numeric_limits::max())) { - return NS_ERROR_UNEXPECTED; - } - mSubRequestsBrokenSecurity = subRequestsBrokenSecurity; - uint32_t subRequestsNoSecurity; - rv = aStream->Read32(&subRequestsNoSecurity); + // mSubRequestsNoSecurity was removed in bug 748809 + uint32_t unusedSubRequestsNoSecurity; + rv = aStream->Read32(&unusedSubRequestsNoSecurity); if (NS_FAILED(rv)) { return rv; } - if (subRequestsNoSecurity > - static_cast(std::numeric_limits::max())) { - return NS_ERROR_UNEXPECTED; - } - mSubRequestsNoSecurity = subRequestsNoSecurity; uint32_t errorCode; rv = aStream->Read32(&errorCode); if (NS_FAILED(rv)) { diff --git a/security/manager/ssl/TransportSecurityInfo.h b/security/manager/ssl/TransportSecurityInfo.h index 4073693e6ca5..e1522a9de097 100644 --- a/security/manager/ssl/TransportSecurityInfo.h +++ b/security/manager/ssl/TransportSecurityInfo.h @@ -15,7 +15,6 @@ #include "mozilla/Mutex.h" #include "mozilla/RefPtr.h" #include "nsDataHashtable.h" -#include "nsIAssociatedContentSecurity.h" #include "nsIClassInfo.h" #include "nsIInterfaceRequestor.h" #include "nsITransportSecurityInfo.h" @@ -32,7 +31,6 @@ enum class EVStatus { class TransportSecurityInfo : public nsITransportSecurityInfo , public nsIInterfaceRequestor - , public nsIAssociatedContentSecurity , public nsISerializable , public nsIClassInfo { @@ -44,7 +42,6 @@ public: NS_DECL_THREADSAFE_ISUPPORTS NS_DECL_NSITRANSPORTSECURITYINFO NS_DECL_NSIINTERFACEREQUESTOR - NS_DECL_NSIASSOCIATEDCONTENTSECURITY NS_DECL_NSISERIALIZABLE NS_DECL_NSICLASSINFO @@ -113,8 +110,6 @@ protected: private: uint32_t mSecurityState; - int32_t mSubRequestsBrokenSecurity; - int32_t mSubRequestsNoSecurity; PRErrorCode mErrorCode; diff --git a/security/manager/ssl/moz.build b/security/manager/ssl/moz.build index c163bd336e46..ff4ba23eaab5 100644 --- a/security/manager/ssl/moz.build +++ b/security/manager/ssl/moz.build @@ -10,7 +10,6 @@ XPIDL_SOURCES += [ 'nsIASN1Object.idl', 'nsIASN1PrintableItem.idl', 'nsIASN1Sequence.idl', - 'nsIAssociatedContentSecurity.idl', 'nsIBadCertListener2.idl', 'nsICertBlocklist.idl', 'nsICertificateDialogs.idl', diff --git a/security/manager/ssl/nsIAssociatedContentSecurity.idl b/security/manager/ssl/nsIAssociatedContentSecurity.idl deleted file mode 100644 index 666f141f986a..000000000000 --- a/security/manager/ssl/nsIAssociatedContentSecurity.idl +++ /dev/null @@ -1,23 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -/** - * This interface is used to cache associated (sub) content security - * state. That is determined asynchronously based on callback notification - * while loading the content and its sub content particles. - * - * Some optimizations like bfcaching removes these callback notifications - * and therefor the subcontent state could not be determined. In such - * a case it is loaded from this object stored in nsIChannel.securityInfo. - */ - -#include "nsISupports.idl" - -[scriptable, uuid(a8285dae-f125-454f-9d1b-089e3f01b2c4)] -interface nsIAssociatedContentSecurity : nsISupports -{ - attribute long countSubRequestsBrokenSecurity; - attribute long countSubRequestsNoSecurity; - void flush(); -}; From 9f7d0bfb652311046af0457b09b9652688ae1f21 Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Thu, 13 Sep 2018 20:22:57 -0400 Subject: [PATCH 39/40] Bug 1490062 - Update HarfBuzz to version 1.9.0. r=jfkthame Differential Revision: https://phabricator.services.mozilla.com/D5830 --HG-- rename : gfx/harfbuzz/src/hb-aat-layout-common-private.hh => gfx/harfbuzz/src/hb-aat-layout-common.hh rename : gfx/harfbuzz/src/hb-aat-layout-private.hh => gfx/harfbuzz/src/hb-aat-layout.hh rename : gfx/harfbuzz/src/hb-atomic-private.hh => gfx/harfbuzz/src/hb-atomic.hh rename : gfx/harfbuzz/src/hb-blob-private.hh => gfx/harfbuzz/src/hb-blob.hh rename : gfx/harfbuzz/src/hb-buffer-private.hh => gfx/harfbuzz/src/hb-buffer.hh rename : gfx/harfbuzz/src/hb-face-private.hh => gfx/harfbuzz/src/hb-face.hh rename : gfx/harfbuzz/src/hb-font-private.hh => gfx/harfbuzz/src/hb-font.hh rename : gfx/harfbuzz/src/hb-iter-private.hh => gfx/harfbuzz/src/hb-iter.hh rename : gfx/harfbuzz/src/hb-machinery-private.hh => gfx/harfbuzz/src/hb-machinery.hh rename : gfx/harfbuzz/src/hb-map-private.hh => gfx/harfbuzz/src/hb-map.hh rename : gfx/harfbuzz/src/hb-mutex-private.hh => gfx/harfbuzz/src/hb-mutex.hh rename : gfx/harfbuzz/src/hb-object-private.hh => gfx/harfbuzz/src/hb-object.hh rename : gfx/harfbuzz/src/hb-open-file-private.hh => gfx/harfbuzz/src/hb-open-file.hh rename : gfx/harfbuzz/src/hb-open-type-private.hh => gfx/harfbuzz/src/hb-open-type.hh rename : gfx/harfbuzz/src/hb-ot-layout-common-private.hh => gfx/harfbuzz/src/hb-ot-layout-common.hh rename : gfx/harfbuzz/src/hb-ot-layout-gsubgpos-private.hh => gfx/harfbuzz/src/hb-ot-layout-gsubgpos.hh rename : gfx/harfbuzz/src/hb-ot-layout-private.hh => gfx/harfbuzz/src/hb-ot-layout.hh rename : gfx/harfbuzz/src/hb-ot-map-private.hh => gfx/harfbuzz/src/hb-ot-map.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-arabic-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex-arabic.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-indic-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex-indic.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-khmer-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex-khmer.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-myanmar-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex-myanmar.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-use-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex-use.hh rename : gfx/harfbuzz/src/hb-ot-shape-complex-private.hh => gfx/harfbuzz/src/hb-ot-shape-complex.hh rename : gfx/harfbuzz/src/hb-ot-shape-fallback-private.hh => gfx/harfbuzz/src/hb-ot-shape-fallback.hh rename : gfx/harfbuzz/src/hb-ot-shape-normalize-private.hh => gfx/harfbuzz/src/hb-ot-shape-normalize.hh rename : gfx/harfbuzz/src/hb-ot-shape-private.hh => gfx/harfbuzz/src/hb-ot-shape.hh rename : gfx/harfbuzz/src/hb-set-digest-private.hh => gfx/harfbuzz/src/hb-set-digest.hh rename : gfx/harfbuzz/src/hb-set-private.hh => gfx/harfbuzz/src/hb-set.hh rename : gfx/harfbuzz/src/hb-shape-plan-private.hh => gfx/harfbuzz/src/hb-shape-plan.hh rename : gfx/harfbuzz/src/hb-shaper-impl-private.hh => gfx/harfbuzz/src/hb-shaper-impl.hh rename : gfx/harfbuzz/src/hb-shaper-private.hh => gfx/harfbuzz/src/hb-shaper.hh rename : gfx/harfbuzz/src/hb-subset-private.hh => gfx/harfbuzz/src/hb-subset.hh rename : gfx/harfbuzz/src/hb-unicode-private.hh => gfx/harfbuzz/src/hb-unicode.hh rename : gfx/harfbuzz/src/hb-utf-private.hh => gfx/harfbuzz/src/hb-utf.hh rename : gfx/harfbuzz/src/hb-vector-private.hh => gfx/harfbuzz/src/hb-vector.hh rename : gfx/harfbuzz/src/hb-private.hh => gfx/harfbuzz/src/hb.hh extra : rebase_source : 96e5e4d6e8c904f1ddc8f1338e39f74b02215654 --- gfx/harfbuzz/NEWS | 19 + gfx/harfbuzz/README-mozilla | 2 +- gfx/harfbuzz/configure.ac | 2 +- gfx/harfbuzz/src/Makefile.sources | 81 ++-- gfx/harfbuzz/src/check-includes.sh | 8 +- gfx/harfbuzz/src/dump-indic-data.cc | 2 +- gfx/harfbuzz/src/dump-khmer-data.cc | 2 +- gfx/harfbuzz/src/dump-myanmar-data.cc | 2 +- gfx/harfbuzz/src/dump-use-data.cc | 2 +- gfx/harfbuzz/src/gen-indic-table.py | 2 +- gfx/harfbuzz/src/gen-use-table.py | 2 +- gfx/harfbuzz/src/hb-aat-layout-ankr-table.hh | 2 +- gfx/harfbuzz/src/hb-aat-layout-bsln-table.hh | 2 +- ...mon-private.hh => hb-aat-layout-common.hh} | 8 +- gfx/harfbuzz/src/hb-aat-layout-feat-table.hh | 2 +- gfx/harfbuzz/src/hb-aat-layout-kerx-table.hh | 4 +- gfx/harfbuzz/src/hb-aat-layout-morx-table.hh | 6 +- gfx/harfbuzz/src/hb-aat-layout-trak-table.hh | 6 +- gfx/harfbuzz/src/hb-aat-layout.cc | 25 +- ...aat-layout-private.hh => hb-aat-layout.hh} | 14 +- gfx/harfbuzz/src/hb-aat-ltag-table.hh | 2 +- .../{hb-atomic-private.hh => hb-atomic.hh} | 13 +- gfx/harfbuzz/src/hb-blob.cc | 4 +- .../src/{hb-blob-private.hh => hb-blob.hh} | 12 +- .../src/hb-buffer-deserialize-json.hh | 2 +- .../src/hb-buffer-deserialize-json.rl | 2 +- .../src/hb-buffer-deserialize-text.hh | 2 +- .../src/hb-buffer-deserialize-text.rl | 2 +- gfx/harfbuzz/src/hb-buffer-serialize.cc | 2 +- gfx/harfbuzz/src/hb-buffer.cc | 4 +- .../{hb-buffer-private.hh => hb-buffer.hh} | 12 +- gfx/harfbuzz/src/hb-common.cc | 7 +- gfx/harfbuzz/src/hb-coretext.cc | 4 +- gfx/harfbuzz/src/hb-debug.hh | 4 +- gfx/harfbuzz/src/hb-directwrite.cc | 4 +- gfx/harfbuzz/src/hb-dsalgs.hh | 14 +- gfx/harfbuzz/src/hb-face.cc | 215 ++++++++- gfx/harfbuzz/src/hb-face.h | 33 ++ .../src/{hb-face-private.hh => hb-face.hh} | 12 +- gfx/harfbuzz/src/hb-fallback-shape.cc | 2 +- gfx/harfbuzz/src/hb-font.cc | 6 +- .../src/{hb-font-private.hh => hb-font.hh} | 12 +- gfx/harfbuzz/src/hb-ft.cc | 11 +- gfx/harfbuzz/src/hb-glib.cc | 9 +- gfx/harfbuzz/src/hb-gobject-enums.cc.tmpl | 2 +- gfx/harfbuzz/src/hb-gobject-structs.cc | 2 +- gfx/harfbuzz/src/hb-graphite2.cc | 2 +- gfx/harfbuzz/src/hb-icu.cc | 9 +- .../src/{hb-iter-private.hh => hb-iter.hh} | 8 +- ...b-machinery-private.hh => hb-machinery.hh} | 177 +++++-- gfx/harfbuzz/src/hb-map.cc | 2 +- .../src/{hb-map-private.hh => hb-map.hh} | 8 +- .../src/{hb-mutex-private.hh => hb-mutex.hh} | 8 +- gfx/harfbuzz/src/hb-null.hh | 45 +- .../{hb-object-private.hh => hb-object.hh} | 14 +- ...b-open-file-private.hh => hb-open-file.hh} | 13 +- ...b-open-type-private.hh => hb-open-type.hh} | 42 +- gfx/harfbuzz/src/hb-ot-cmap-table.hh | 284 +++++++---- gfx/harfbuzz/src/hb-ot-color-cbdt-table.hh | 4 +- gfx/harfbuzz/src/hb-ot-color-colr-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-color-cpal-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-color-sbix-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-color-svg-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-color.cc | 12 +- gfx/harfbuzz/src/hb-ot-face.cc | 76 +++ gfx/harfbuzz/src/hb-ot-face.hh | 116 +++++ gfx/harfbuzz/src/hb-ot-font.cc | 133 ++---- gfx/harfbuzz/src/hb-ot-glyf-table.hh | 6 +- gfx/harfbuzz/src/hb-ot-hdmx-table.hh | 20 +- gfx/harfbuzz/src/hb-ot-head-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-hhea-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-hmtx-table.hh | 6 +- gfx/harfbuzz/src/hb-ot-kern-table.hh | 4 +- gfx/harfbuzz/src/hb-ot-layout-base-table.hh | 4 +- ...mmon-private.hh => hb-ot-layout-common.hh} | 303 +++++++++--- gfx/harfbuzz/src/hb-ot-layout-gdef-table.hh | 51 +- gfx/harfbuzz/src/hb-ot-layout-gpos-table.hh | 203 ++++++-- gfx/harfbuzz/src/hb-ot-layout-gsub-table.hh | 425 +++++++++++------ ...os-private.hh => hb-ot-layout-gsubgpos.hh} | 441 ++++++++++++++---- gfx/harfbuzz/src/hb-ot-layout-jstf-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-layout.cc | 198 ++++---- ...b-ot-layout-private.hh => hb-ot-layout.hh} | 151 ++---- gfx/harfbuzz/src/hb-ot-map.cc | 4 +- .../{hb-ot-map-private.hh => hb-ot-map.hh} | 8 +- gfx/harfbuzz/src/hb-ot-math-table.hh | 4 +- gfx/harfbuzz/src/hb-ot-math.cc | 8 +- gfx/harfbuzz/src/hb-ot-maxp-table.hh | 3 +- gfx/harfbuzz/src/hb-ot-name-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-os2-table.hh | 3 +- gfx/harfbuzz/src/hb-ot-os2-unicode-ranges.hh | 2 +- gfx/harfbuzz/src/hb-ot-post-macroman.hh | 2 +- gfx/harfbuzz/src/hb-ot-post-table.hh | 5 +- .../hb-ot-shape-complex-arabic-fallback.hh | 5 +- .../src/hb-ot-shape-complex-arabic-win1256.hh | 2 +- .../src/hb-ot-shape-complex-arabic.cc | 6 +- ...ivate.hh => hb-ot-shape-complex-arabic.hh} | 10 +- .../src/hb-ot-shape-complex-default.cc | 2 +- .../src/hb-ot-shape-complex-hangul.cc | 2 +- .../src/hb-ot-shape-complex-hebrew.cc | 2 +- .../src/hb-ot-shape-complex-indic-machine.hh | 2 +- .../src/hb-ot-shape-complex-indic-machine.rl | 2 +- .../src/hb-ot-shape-complex-indic-table.cc | 2 +- gfx/harfbuzz/src/hb-ot-shape-complex-indic.cc | 4 +- ...rivate.hh => hb-ot-shape-complex-indic.hh} | 12 +- .../src/hb-ot-shape-complex-khmer-machine.hh | 2 +- .../src/hb-ot-shape-complex-khmer-machine.rl | 2 +- gfx/harfbuzz/src/hb-ot-shape-complex-khmer.cc | 4 +- ...rivate.hh => hb-ot-shape-complex-khmer.hh} | 10 +- .../hb-ot-shape-complex-myanmar-machine.hh | 2 +- .../hb-ot-shape-complex-myanmar-machine.rl | 2 +- .../src/hb-ot-shape-complex-myanmar.cc | 2 +- ...vate.hh => hb-ot-shape-complex-myanmar.hh} | 10 +- gfx/harfbuzz/src/hb-ot-shape-complex-thai.cc | 2 +- .../src/hb-ot-shape-complex-tibetan.cc | 2 +- .../src/hb-ot-shape-complex-use-machine.hh | 2 +- .../src/hb-ot-shape-complex-use-machine.rl | 2 +- .../src/hb-ot-shape-complex-use-table.cc | 2 +- gfx/harfbuzz/src/hb-ot-shape-complex-use.cc | 4 +- ...-private.hh => hb-ot-shape-complex-use.hh} | 10 +- ...plex-private.hh => hb-ot-shape-complex.hh} | 12 +- gfx/harfbuzz/src/hb-ot-shape-fallback.cc | 4 +- ...ack-private.hh => hb-ot-shape-fallback.hh} | 10 +- gfx/harfbuzz/src/hb-ot-shape-normalize.cc | 6 +- ...ze-private.hh => hb-ot-shape-normalize.hh} | 8 +- gfx/harfbuzz/src/hb-ot-shape.cc | 26 +- ...{hb-ot-shape-private.hh => hb-ot-shape.hh} | 12 +- gfx/harfbuzz/src/hb-ot-tag.cc | 2 +- gfx/harfbuzz/src/hb-ot-var-avar-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-var-fvar-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-var-hvar-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-var-mvar-table.hh | 2 +- gfx/harfbuzz/src/hb-ot-var.cc | 12 +- ...set-digest-private.hh => hb-set-digest.hh} | 12 +- gfx/harfbuzz/src/hb-set.cc | 2 +- .../src/{hb-set-private.hh => hb-set.hh} | 20 +- gfx/harfbuzz/src/hb-shape-plan.cc | 10 +- ...shape-plan-private.hh => hb-shape-plan.hh} | 10 +- gfx/harfbuzz/src/hb-shape.cc | 16 +- ...aper-impl-private.hh => hb-shaper-impl.hh} | 16 +- gfx/harfbuzz/src/hb-shaper.cc | 9 +- .../{hb-shaper-private.hh => hb-shaper.hh} | 8 +- gfx/harfbuzz/src/hb-static.cc | 8 +- gfx/harfbuzz/src/hb-string-array.hh | 2 +- gfx/harfbuzz/src/hb-subset-glyf.cc | 3 +- gfx/harfbuzz/src/hb-subset-glyf.hh | 4 +- gfx/harfbuzz/src/hb-subset-input.cc | 48 +- ...b-subset-private.hh => hb-subset-input.hh} | 24 +- gfx/harfbuzz/src/hb-subset-plan.cc | 33 +- gfx/harfbuzz/src/hb-subset-plan.hh | 22 +- gfx/harfbuzz/src/hb-subset.cc | 265 ++++------- gfx/harfbuzz/src/hb-subset.h | 33 +- gfx/harfbuzz/src/hb-subset.hh | 60 +++ gfx/harfbuzz/src/hb-ucdn.cc | 6 +- gfx/harfbuzz/src/hb-unicode.cc | 6 +- gfx/harfbuzz/src/hb-unicode.h | 8 + .../{hb-unicode-private.hh => hb-unicode.hh} | 8 +- gfx/harfbuzz/src/hb-uniscribe.cc | 6 +- .../src/{hb-utf-private.hh => hb-utf.hh} | 8 +- .../{hb-vector-private.hh => hb-vector.hh} | 10 +- gfx/harfbuzz/src/hb-version.h | 6 +- gfx/harfbuzz/src/hb-warning.cc | 6 +- gfx/harfbuzz/src/{hb-private.hh => hb.hh} | 12 +- gfx/harfbuzz/src/main.cc | 4 +- gfx/harfbuzz/src/moz.build | 1 + gfx/harfbuzz/src/test-buffer-serialize.cc | 2 +- gfx/harfbuzz/src/test-size-params.cc | 2 +- gfx/harfbuzz/src/test-unicode-ranges.cc | 2 +- gfx/harfbuzz/src/test-would-substitute.cc | 2 +- gfx/harfbuzz/src/test.cc | 2 +- gfx/harfbuzz/update.sh | 2 +- 170 files changed, 2768 insertions(+), 1546 deletions(-) rename gfx/harfbuzz/src/{hb-aat-layout-common-private.hh => hb-aat-layout-common.hh} (99%) rename gfx/harfbuzz/src/{hb-aat-layout-private.hh => hb-aat-layout.hh} (84%) rename gfx/harfbuzz/src/{hb-atomic-private.hh => hb-atomic.hh} (98%) rename gfx/harfbuzz/src/{hb-blob-private.hh => hb-blob.hh} (92%) rename gfx/harfbuzz/src/{hb-buffer-private.hh => hb-buffer.hh} (98%) rename gfx/harfbuzz/src/{hb-face-private.hh => hb-face.hh} (94%) rename gfx/harfbuzz/src/{hb-font-private.hh => hb-font.hh} (99%) rename gfx/harfbuzz/src/{hb-iter-private.hh => hb-iter.hh} (97%) rename gfx/harfbuzz/src/{hb-machinery-private.hh => hb-machinery.hh} (79%) rename gfx/harfbuzz/src/{hb-map-private.hh => hb-map.hh} (98%) rename gfx/harfbuzz/src/{hb-mutex-private.hh => hb-mutex.hh} (97%) rename gfx/harfbuzz/src/{hb-object-private.hh => hb-object.hh} (97%) rename gfx/harfbuzz/src/{hb-open-file-private.hh => hb-open-file.hh} (98%) rename gfx/harfbuzz/src/{hb-open-type-private.hh => hb-open-type.hh} (95%) create mode 100644 gfx/harfbuzz/src/hb-ot-face.cc create mode 100644 gfx/harfbuzz/src/hb-ot-face.hh rename gfx/harfbuzz/src/{hb-ot-layout-common-private.hh => hb-ot-layout-common.hh} (87%) rename gfx/harfbuzz/src/{hb-ot-layout-gsubgpos-private.hh => hb-ot-layout-gsubgpos.hh} (86%) rename gfx/harfbuzz/src/{hb-ot-layout-private.hh => hb-ot-layout.hh} (86%) rename gfx/harfbuzz/src/{hb-ot-map-private.hh => hb-ot-map.hh} (98%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-arabic-private.hh => hb-ot-shape-complex-arabic.hh} (87%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-indic-private.hh => hb-ot-shape-complex-indic.hh} (98%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-khmer-private.hh => hb-ot-shape-complex-khmer.hh} (93%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-myanmar-private.hh => hb-ot-shape-complex-myanmar.hh} (95%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-use-private.hh => hb-ot-shape-complex-use.hh} (94%) rename gfx/harfbuzz/src/{hb-ot-shape-complex-private.hh => hb-ot-shape-complex.hh} (98%) rename gfx/harfbuzz/src/{hb-ot-shape-fallback-private.hh => hb-ot-shape-fallback.hh} (90%) rename gfx/harfbuzz/src/{hb-ot-shape-normalize-private.hh => hb-ot-shape-normalize.hh} (93%) rename gfx/harfbuzz/src/{hb-ot-shape-private.hh => hb-ot-shape.hh} (94%) rename gfx/harfbuzz/src/{hb-set-digest-private.hh => hb-set-digest.hh} (95%) rename gfx/harfbuzz/src/{hb-set-private.hh => hb-set.hh} (97%) rename gfx/harfbuzz/src/{hb-shape-plan-private.hh => hb-shape-plan.hh} (92%) rename gfx/harfbuzz/src/{hb-shaper-impl-private.hh => hb-shaper-impl.hh} (82%) rename gfx/harfbuzz/src/{hb-shaper-private.hh => hb-shaper.hh} (97%) rename gfx/harfbuzz/src/{hb-subset-private.hh => hb-subset-input.hh} (75%) create mode 100644 gfx/harfbuzz/src/hb-subset.hh rename gfx/harfbuzz/src/{hb-unicode-private.hh => hb-unicode.hh} (99%) rename gfx/harfbuzz/src/{hb-utf-private.hh => hb-utf.hh} (98%) rename gfx/harfbuzz/src/{hb-vector-private.hh => hb-vector.hh} (97%) rename gfx/harfbuzz/src/{hb-private.hh => hb.hh} (98%) diff --git a/gfx/harfbuzz/NEWS b/gfx/harfbuzz/NEWS index 3ae857ef3292..c9af0f36853a 100644 --- a/gfx/harfbuzz/NEWS +++ b/gfx/harfbuzz/NEWS @@ -1,3 +1,22 @@ +Overview of changes leading to 1.9.0 +Monday, September 10, 2018 +==================================== +- Added 'cmap' API to hb_face_t. +- Face-builder API. +- hb-ot-font re-creation should be much leaner now, as the + font tables it uses are cached on hb_face_t now. +- Internal source header file name changes: + hb-*-private.hh is renamed to hb-*.hh. + +New API: ++HB_UNICODE_MAX ++hb_face_collect_unicodes() ++hb_face_collect_variation_selectors() ++hb_face_collect_variation_unicodes() ++hb_face_builder_create() ++hb_face_builder_add_table() + + Overview of changes leading to 1.8.8 Tuesday, August 14, 2018 ==================================== diff --git a/gfx/harfbuzz/README-mozilla b/gfx/harfbuzz/README-mozilla index 87ffdeb0999b..0b50e83021e6 100644 --- a/gfx/harfbuzz/README-mozilla +++ b/gfx/harfbuzz/README-mozilla @@ -1,7 +1,7 @@ This directory contains the HarfBuzz source from the upstream repo: https://github.com/harfbuzz/harfbuzz -Current version: 1.8.8 [commit 63be5dcdde61275822d931b2924425478bc1dac1] +Current version: 1.9.0 [commit 54d332dd9b0263821376161cdffb60ffb3c7847f] UPDATING: diff --git a/gfx/harfbuzz/configure.ac b/gfx/harfbuzz/configure.ac index 55cc12b3f40e..1c698087132b 100644 --- a/gfx/harfbuzz/configure.ac +++ b/gfx/harfbuzz/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.64]) AC_INIT([HarfBuzz], - [1.8.8], + [1.9.0], [https://github.com/harfbuzz/harfbuzz/issues/new], [harfbuzz], [http://harfbuzz.org/]) diff --git a/gfx/harfbuzz/src/Makefile.sources b/gfx/harfbuzz/src/Makefile.sources index b981b0e264f3..654255e20c7c 100644 --- a/gfx/harfbuzz/src/Makefile.sources +++ b/gfx/harfbuzz/src/Makefile.sources @@ -1,28 +1,28 @@ # Base and default-included sources and headers HB_BASE_sources = \ - hb-atomic-private.hh \ - hb-blob-private.hh \ + hb-atomic.hh \ + hb-blob.hh \ hb-blob.cc \ - hb-buffer-private.hh \ + hb-buffer.hh \ hb-buffer-serialize.cc \ hb-buffer.cc \ hb-common.cc \ hb-debug.hh \ hb-dsalgs.hh \ - hb-face-private.hh \ + hb-face.hh \ hb-face.cc \ - hb-font-private.hh \ + hb-font.hh \ hb-font.cc \ - hb-iter-private.hh \ - hb-map-private.hh \ + hb-iter.hh \ + hb-map.hh \ hb-map.cc \ - hb-machinery-private.hh \ - hb-mutex-private.hh \ + hb-machinery.hh \ + hb-mutex.hh \ hb-null.hh \ - hb-object-private.hh \ - hb-open-file-private.hh \ - hb-open-type-private.hh \ + hb-object.hh \ + hb-open-file.hh \ + hb-open-type.hh \ hb-ot-color-cbdt-table.hh \ hb-ot-cmap-table.hh \ hb-ot-glyf-table.hh \ @@ -38,23 +38,23 @@ HB_BASE_sources = \ hb-ot-post-macroman.hh \ hb-ot-post-table.hh \ hb-ot-tag.cc \ - hb-private.hh \ - hb-set-digest-private.hh \ - hb-set-private.hh \ + hb.hh \ + hb-set-digest.hh \ + hb-set.hh \ hb-set.cc \ hb-shape.cc \ - hb-shape-plan-private.hh \ + hb-shape-plan.hh \ hb-shape-plan.cc \ hb-shaper-list.hh \ - hb-shaper-impl-private.hh \ - hb-shaper-private.hh \ + hb-shaper-impl.hh \ + hb-shaper.hh \ hb-shaper.cc \ hb-static.cc \ hb-string-array.hh \ - hb-unicode-private.hh \ + hb-unicode.hh \ hb-unicode.cc \ - hb-vector-private.hh \ - hb-utf-private.hh \ + hb-vector.hh \ + hb-utf.hh \ hb-warning.cc \ $(NULL) @@ -89,61 +89,63 @@ HB_FALLBACK_sources = \ HB_OT_sources = \ hb-aat-layout.cc \ - hb-aat-layout-common-private.hh \ + hb-aat-layout-common.hh \ hb-aat-layout-ankr-table.hh \ hb-aat-layout-bsln-table.hh \ hb-aat-layout-feat-table.hh \ hb-aat-layout-kerx-table.hh \ hb-aat-layout-morx-table.hh \ hb-aat-layout-trak-table.hh \ - hb-aat-layout-private.hh \ + hb-aat-layout.hh \ hb-aat-ltag-table.hh \ + hb-ot-face.hh \ + hb-ot-face.cc \ hb-ot-font.cc \ hb-ot-layout.cc \ hb-ot-layout-base-table.hh \ - hb-ot-layout-common-private.hh \ + hb-ot-layout-common.hh \ hb-ot-layout-gdef-table.hh \ hb-ot-layout-gpos-table.hh \ - hb-ot-layout-gsubgpos-private.hh \ + hb-ot-layout-gsubgpos.hh \ hb-ot-layout-gsub-table.hh \ hb-ot-layout-jstf-table.hh \ - hb-ot-layout-private.hh \ + hb-ot-layout.hh \ hb-ot-color.cc \ hb-ot-color-colr-table.hh \ hb-ot-color-cpal-table.hh \ hb-ot-color-sbix-table.hh \ hb-ot-color-svg-table.hh \ hb-ot-map.cc \ - hb-ot-map-private.hh \ + hb-ot-map.hh \ hb-ot-math.cc \ hb-ot-math-table.hh \ hb-ot-shape.cc \ hb-ot-shape-complex-arabic.cc \ hb-ot-shape-complex-arabic-fallback.hh \ - hb-ot-shape-complex-arabic-private.hh \ + hb-ot-shape-complex-arabic.hh \ hb-ot-shape-complex-arabic-table.hh \ hb-ot-shape-complex-arabic-win1256.hh \ hb-ot-shape-complex-default.cc \ hb-ot-shape-complex-hangul.cc \ hb-ot-shape-complex-hebrew.cc \ hb-ot-shape-complex-indic.cc \ - hb-ot-shape-complex-indic-private.hh \ + hb-ot-shape-complex-indic.hh \ hb-ot-shape-complex-indic-table.cc \ - hb-ot-shape-complex-khmer-private.hh \ + hb-ot-shape-complex-khmer.hh \ hb-ot-shape-complex-khmer.cc \ - hb-ot-shape-complex-myanmar-private.hh \ + hb-ot-shape-complex-myanmar.hh \ hb-ot-shape-complex-myanmar.cc \ hb-ot-shape-complex-thai.cc \ hb-ot-shape-complex-tibetan.cc \ hb-ot-shape-complex-use.cc \ - hb-ot-shape-complex-use-private.hh \ + hb-ot-shape-complex-use.hh \ hb-ot-shape-complex-use-table.cc \ - hb-ot-shape-complex-private.hh \ - hb-ot-shape-normalize-private.hh \ + hb-ot-shape-complex.hh \ + hb-ot-shape-normalize.hh \ hb-ot-shape-normalize.cc \ - hb-ot-shape-fallback-private.hh \ + hb-ot-shape-fallback.hh \ hb-ot-shape-fallback.cc \ - hb-ot-shape-private.hh \ + hb-ot-shape.hh \ hb-ot-var.cc \ hb-ot-var-avar-table.hh \ hb-ot-var-fvar-table.hh \ @@ -207,16 +209,17 @@ HB_ICU_headers = hb-icu.h HB_SUBSET_sources = \ hb-static.cc \ hb-subset.cc \ + hb-subset.hh \ hb-subset-glyf.cc \ + hb-subset-glyf.hh \ hb-subset-input.cc \ + hb-subset-input.hh \ hb-subset-plan.cc \ + hb-subset-plan.hh \ $(NULL) HB_SUBSET_headers = \ hb-subset.h \ - hb-subset-glyf.hh \ - hb-subset-plan.hh \ - hb-subset-private.hh \ $(NULL) HB_GOBJECT_DIST_sources = hb-gobject-structs.cc diff --git a/gfx/harfbuzz/src/check-includes.sh b/gfx/harfbuzz/src/check-includes.sh index fd565da53fbb..f938f706cfd4 100755 --- a/gfx/harfbuzz/src/check-includes.sh +++ b/gfx/harfbuzz/src/check-includes.sh @@ -23,14 +23,14 @@ grep -v 'hb[.]h:' | grep . >&2 && stat=1 -echo 'Checking that source files #include "hb-*private.hh" first (or none)' +echo 'Checking that source files #include a private header first (or none)' for x in $HBSOURCES; do test -f "$srcdir/$x" -a ! -f "$x" && x="$srcdir/$x" - grep '#.*\' "$x" /dev/null | grep -v 'include _' | head -n 1 + grep '#.*\' "$x" /dev/null | head -n 1 done | -grep -v '"hb-.*private[.]hh"' | -grep -v 'hb-private[.]hh:' | +grep -v '"hb-.*[.]hh"' | +grep -v 'hb[.]hh' | grep . >&2 && stat=1 diff --git a/gfx/harfbuzz/src/dump-indic-data.cc b/gfx/harfbuzz/src/dump-indic-data.cc index d57413884be3..a506889810bc 100644 --- a/gfx/harfbuzz/src/dump-indic-data.cc +++ b/gfx/harfbuzz/src/dump-indic-data.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-ot-shape-complex-indic-private.hh" +#include "hb-ot-shape-complex-indic.hh" int main (void) diff --git a/gfx/harfbuzz/src/dump-khmer-data.cc b/gfx/harfbuzz/src/dump-khmer-data.cc index 7dd09b2b5ca5..12871fa850fb 100644 --- a/gfx/harfbuzz/src/dump-khmer-data.cc +++ b/gfx/harfbuzz/src/dump-khmer-data.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-ot-shape-complex-khmer-private.hh" +#include "hb-ot-shape-complex-khmer.hh" int main (void) diff --git a/gfx/harfbuzz/src/dump-myanmar-data.cc b/gfx/harfbuzz/src/dump-myanmar-data.cc index 2df9cd987f34..9f8b12ed2298 100644 --- a/gfx/harfbuzz/src/dump-myanmar-data.cc +++ b/gfx/harfbuzz/src/dump-myanmar-data.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-ot-shape-complex-myanmar-private.hh" +#include "hb-ot-shape-complex-myanmar.hh" int main (void) diff --git a/gfx/harfbuzz/src/dump-use-data.cc b/gfx/harfbuzz/src/dump-use-data.cc index 0e64688f1e06..4a8b25842e19 100644 --- a/gfx/harfbuzz/src/dump-use-data.cc +++ b/gfx/harfbuzz/src/dump-use-data.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-ot-shape-complex-use-private.hh" +#include "hb-ot-shape-complex-use.hh" int main (void) diff --git a/gfx/harfbuzz/src/gen-indic-table.py b/gfx/harfbuzz/src/gen-indic-table.py index 6252664caae4..e65b9814adf6 100755 --- a/gfx/harfbuzz/src/gen-indic-table.py +++ b/gfx/harfbuzz/src/gen-indic-table.py @@ -102,7 +102,7 @@ for h in headers: print (" * %s" % (l.strip())) print (" */") print () -print ('#include "hb-ot-shape-complex-indic-private.hh"') +print ('#include "hb-ot-shape-complex-indic.hh"') print () # Shorten values diff --git a/gfx/harfbuzz/src/gen-use-table.py b/gfx/harfbuzz/src/gen-use-table.py index c742ebacae42..a8724619a03b 100755 --- a/gfx/harfbuzz/src/gen-use-table.py +++ b/gfx/harfbuzz/src/gen-use-table.py @@ -394,7 +394,7 @@ for h in headers: print (" * %s" % (l.strip())) print (" */") print () -print ('#include "hb-ot-shape-complex-use-private.hh"') +print ('#include "hb-ot-shape-complex-use.hh"') print () total = 0 diff --git a/gfx/harfbuzz/src/hb-aat-layout-ankr-table.hh b/gfx/harfbuzz/src/hb-aat-layout-ankr-table.hh index 3b7912b9df64..a197cec81124 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-ankr-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-ankr-table.hh @@ -25,7 +25,7 @@ #ifndef HB_AAT_LAYOUT_ANKR_TABLE_HH #define HB_AAT_LAYOUT_ANKR_TABLE_HH -#include "hb-aat-layout-common-private.hh" +#include "hb-aat-layout-common.hh" /* * ankr -- Anchor Point diff --git a/gfx/harfbuzz/src/hb-aat-layout-bsln-table.hh b/gfx/harfbuzz/src/hb-aat-layout-bsln-table.hh index df2bf5b43f07..b86408626f23 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-bsln-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-bsln-table.hh @@ -25,7 +25,7 @@ #ifndef HB_AAT_LAYOUT_BSLN_TABLE_HH #define HB_AAT_LAYOUT_BSLN_TABLE_HH -#include "hb-aat-layout-common-private.hh" +#include "hb-aat-layout-common.hh" /* * bsln -- Baseline diff --git a/gfx/harfbuzz/src/hb-aat-layout-common-private.hh b/gfx/harfbuzz/src/hb-aat-layout-common.hh similarity index 99% rename from gfx/harfbuzz/src/hb-aat-layout-common-private.hh rename to gfx/harfbuzz/src/hb-aat-layout-common.hh index d7f35052d777..25f4fe14a757 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-common-private.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-common.hh @@ -24,10 +24,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_AAT_LAYOUT_COMMON_PRIVATE_HH -#define HB_AAT_LAYOUT_COMMON_PRIVATE_HH +#ifndef HB_AAT_LAYOUT_COMMON_HH +#define HB_AAT_LAYOUT_COMMON_HH -#include "hb-aat-layout-private.hh" +#include "hb-aat-layout.hh" namespace AAT { @@ -641,4 +641,4 @@ struct hb_aat_apply_context_t : } /* namespace AAT */ -#endif /* HB_AAT_LAYOUT_COMMON_PRIVATE_HH */ +#endif /* HB_AAT_LAYOUT_COMMON_HH */ diff --git a/gfx/harfbuzz/src/hb-aat-layout-feat-table.hh b/gfx/harfbuzz/src/hb-aat-layout-feat-table.hh index 3e070d79592d..b70076316629 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-feat-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-feat-table.hh @@ -25,7 +25,7 @@ #ifndef HB_AAT_LAYOUT_FEAT_TABLE_HH #define HB_AAT_LAYOUT_FEAT_TABLE_HH -#include "hb-aat-layout-common-private.hh" +#include "hb-aat-layout-common.hh" /* * feat -- Feature Name diff --git a/gfx/harfbuzz/src/hb-aat-layout-kerx-table.hh b/gfx/harfbuzz/src/hb-aat-layout-kerx-table.hh index cc03d6278625..615a8f8d4c3b 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-kerx-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-kerx-table.hh @@ -28,8 +28,8 @@ #ifndef HB_AAT_LAYOUT_KERX_TABLE_HH #define HB_AAT_LAYOUT_KERX_TABLE_HH -#include "hb-open-type-private.hh" -#include "hb-aat-layout-common-private.hh" +#include "hb-open-type.hh" +#include "hb-aat-layout-common.hh" #include "hb-aat-layout-ankr-table.hh" /* diff --git a/gfx/harfbuzz/src/hb-aat-layout-morx-table.hh b/gfx/harfbuzz/src/hb-aat-layout-morx-table.hh index f25842457db1..ef452e22b29b 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-morx-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-morx-table.hh @@ -27,9 +27,9 @@ #ifndef HB_AAT_LAYOUT_MORX_TABLE_HH #define HB_AAT_LAYOUT_MORX_TABLE_HH -#include "hb-open-type-private.hh" -#include "hb-aat-layout-common-private.hh" -#include "hb-ot-layout-common-private.hh" +#include "hb-open-type.hh" +#include "hb-aat-layout-common.hh" +#include "hb-ot-layout-common.hh" /* * morx -- Extended Glyph Metamorphosis diff --git a/gfx/harfbuzz/src/hb-aat-layout-trak-table.hh b/gfx/harfbuzz/src/hb-aat-layout-trak-table.hh index f5dc558c3fee..c4bec2cab64b 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-trak-table.hh +++ b/gfx/harfbuzz/src/hb-aat-layout-trak-table.hh @@ -28,9 +28,9 @@ #ifndef HB_AAT_LAYOUT_TRAK_TABLE_HH #define HB_AAT_LAYOUT_TRAK_TABLE_HH -#include "hb-aat-layout-common-private.hh" -#include "hb-ot-layout-private.hh" -#include "hb-open-type-private.hh" +#include "hb-aat-layout-common.hh" +#include "hb-ot-layout.hh" +#include "hb-open-type.hh" /* * trak -- Tracking diff --git a/gfx/harfbuzz/src/hb-aat-layout.cc b/gfx/harfbuzz/src/hb-aat-layout.cc index 36d4037ad9bd..a5e36a40a384 100644 --- a/gfx/harfbuzz/src/hb-aat-layout.cc +++ b/gfx/harfbuzz/src/hb-aat-layout.cc @@ -24,12 +24,10 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" -#include "hb-ot-layout-private.hh" -#include "hb-ot-layout-gsubgpos-private.hh" - -#include "hb-aat-layout-private.hh" +#include "hb-ot-face.hh" +#include "hb-aat-layout.hh" #include "hb-aat-layout-ankr-table.hh" #include "hb-aat-layout-bsln-table.hh" // Just so we compile it; unused otherwise. #include "hb-aat-layout-feat-table.hh" // Just so we compile it; unused otherwise. @@ -51,25 +49,12 @@ _get_morx (hb_face_t *face, hb_blob_t **blob = nullptr) *blob = hb_blob_get_empty (); return Null(AAT::morx); } - hb_ot_layout_t * layout = hb_ot_layout_from_face (face); - const AAT::morx& morx = *(layout->table.morx.get ()); + const AAT::morx& morx = *(hb_ot_face_data (face)->morx.get ()); if (blob) - *blob = layout->table.morx.get_blob (); + *blob = hb_ot_face_data (face)->morx.get_blob (); return morx; } -// static inline void -// _hb_aat_layout_create (hb_face_t *face) -// { -// hb_blob_t *morx_blob = hb_sanitize_context_t ().reference_table (face); -// morx_blob->as (); - -// if (0) -// { -// morx_blob->as > ()->get_value (1, face->get_num_glyphs ()); -// } -// } - void hb_aat_layout_substitute (hb_font_t *font, hb_buffer_t *buffer) { diff --git a/gfx/harfbuzz/src/hb-aat-layout-private.hh b/gfx/harfbuzz/src/hb-aat-layout.hh similarity index 84% rename from gfx/harfbuzz/src/hb-aat-layout-private.hh rename to gfx/harfbuzz/src/hb-aat-layout.hh index ce75c8e71926..ac9c535395a4 100644 --- a/gfx/harfbuzz/src/hb-aat-layout-private.hh +++ b/gfx/harfbuzz/src/hb-aat-layout.hh @@ -24,14 +24,14 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_AAT_LAYOUT_PRIVATE_HH -#define HB_AAT_LAYOUT_PRIVATE_HH +#ifndef HB_AAT_LAYOUT_HH +#define HB_AAT_LAYOUT_HH -#include "hb-private.hh" +#include "hb.hh" -#include "hb-font-private.hh" -#include "hb-buffer-private.hh" -#include "hb-open-type-private.hh" +#include "hb-font.hh" +#include "hb-buffer.hh" +#include "hb-open-type.hh" HB_INTERNAL void @@ -40,4 +40,4 @@ hb_aat_layout_substitute (hb_font_t *font, hb_buffer_t *buffer); HB_INTERNAL void hb_aat_layout_position (hb_font_t *font, hb_buffer_t *buffer); -#endif /* HB_AAT_LAYOUT_PRIVATE_HH */ +#endif /* HB_AAT_LAYOUT_HH */ diff --git a/gfx/harfbuzz/src/hb-aat-ltag-table.hh b/gfx/harfbuzz/src/hb-aat-ltag-table.hh index 15c4e89cbe53..e308ab28c375 100644 --- a/gfx/harfbuzz/src/hb-aat-ltag-table.hh +++ b/gfx/harfbuzz/src/hb-aat-ltag-table.hh @@ -25,7 +25,7 @@ #ifndef HB_AAT_LTAG_TABLE_HH #define HB_AAT_LTAG_TABLE_HH -#include "hb-aat-layout-common-private.hh" +#include "hb-aat-layout-common.hh" /* * ltag -- Language Tag diff --git a/gfx/harfbuzz/src/hb-atomic-private.hh b/gfx/harfbuzz/src/hb-atomic.hh similarity index 98% rename from gfx/harfbuzz/src/hb-atomic-private.hh rename to gfx/harfbuzz/src/hb-atomic.hh index 297c646986c3..6e3672c18bc0 100644 --- a/gfx/harfbuzz/src/hb-atomic-private.hh +++ b/gfx/harfbuzz/src/hb-atomic.hh @@ -29,10 +29,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_ATOMIC_PRIVATE_HH -#define HB_ATOMIC_PRIVATE_HH +#ifndef HB_ATOMIC_HH +#define HB_ATOMIC_HH -#include "hb-private.hh" +#include "hb.hh" /* @@ -98,7 +98,7 @@ static inline void _hb_memory_barrier (void) { #if !defined(MemoryBarrier) /* MinGW has a convoluted history of supporting MemoryBarrier. */ - long dummy = 0; + LONG dummy = 0; InterlockedExchange (&dummy, 1); #else MemoryBarrier (); @@ -106,7 +106,8 @@ static inline void _hb_memory_barrier (void) } #define _hb_memory_barrier() _hb_memory_barrier () -#define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd ((unsigned *) (AI), (V)) +#define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd ((LONG *) (AI), (V)) +static_assert ((sizeof (LONG) == sizeof (int)), ""); #define hb_atomic_ptr_impl_cmpexch(P,O,N) (InterlockedCompareExchangePointer ((void **) (P), (void *) (N), (void *) (O)) == (void *) (O)) @@ -278,4 +279,4 @@ struct hb_atomic_ptr_t }; -#endif /* HB_ATOMIC_PRIVATE_HH */ +#endif /* HB_ATOMIC_HH */ diff --git a/gfx/harfbuzz/src/hb-blob.cc b/gfx/harfbuzz/src/hb-blob.cc index 25c3e05aad1e..a335df308a5e 100644 --- a/gfx/harfbuzz/src/hb-blob.cc +++ b/gfx/harfbuzz/src/hb-blob.cc @@ -30,8 +30,8 @@ #define _POSIX_C_SOURCE 200809L #endif -#include "hb-private.hh" -#include "hb-blob-private.hh" +#include "hb.hh" +#include "hb-blob.hh" #ifdef HAVE_SYS_MMAN_H #ifdef HAVE_UNISTD_H diff --git a/gfx/harfbuzz/src/hb-blob-private.hh b/gfx/harfbuzz/src/hb-blob.hh similarity index 92% rename from gfx/harfbuzz/src/hb-blob-private.hh rename to gfx/harfbuzz/src/hb-blob.hh index 49ad68ecec77..bee8c9794ad4 100644 --- a/gfx/harfbuzz/src/hb-blob-private.hh +++ b/gfx/harfbuzz/src/hb-blob.hh @@ -26,10 +26,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_BLOB_PRIVATE_HH -#define HB_BLOB_PRIVATE_HH +#ifndef HB_BLOB_HH +#define HB_BLOB_HH -#include "hb-private.hh" +#include "hb.hh" /* @@ -62,6 +62,10 @@ struct hb_blob_t { return unlikely (!data) ? &Null(Type) : reinterpret_cast (data); } + inline hb_bytes_t as_bytes (void) const + { + return hb_bytes_t (data, length); + } public: hb_object_header_t header; @@ -79,4 +83,4 @@ struct hb_blob_t DECLARE_NULL_INSTANCE (hb_blob_t); -#endif /* HB_BLOB_PRIVATE_HH */ +#endif /* HB_BLOB_HH */ diff --git a/gfx/harfbuzz/src/hb-buffer-deserialize-json.hh b/gfx/harfbuzz/src/hb-buffer-deserialize-json.hh index 380f3c5fca39..1f9e2e91db89 100644 --- a/gfx/harfbuzz/src/hb-buffer-deserialize-json.hh +++ b/gfx/harfbuzz/src/hb-buffer-deserialize-json.hh @@ -29,7 +29,7 @@ #ifndef HB_BUFFER_DESERIALIZE_JSON_HH #define HB_BUFFER_DESERIALIZE_JSON_HH -#include "hb-private.hh" +#include "hb.hh" #line 36 "hb-buffer-deserialize-json.hh" diff --git a/gfx/harfbuzz/src/hb-buffer-deserialize-json.rl b/gfx/harfbuzz/src/hb-buffer-deserialize-json.rl index ec9bc7c9ae98..f3abb027b209 100644 --- a/gfx/harfbuzz/src/hb-buffer-deserialize-json.rl +++ b/gfx/harfbuzz/src/hb-buffer-deserialize-json.rl @@ -27,7 +27,7 @@ #ifndef HB_BUFFER_DESERIALIZE_JSON_HH #define HB_BUFFER_DESERIALIZE_JSON_HH -#include "hb-private.hh" +#include "hb.hh" %%{ diff --git a/gfx/harfbuzz/src/hb-buffer-deserialize-text.hh b/gfx/harfbuzz/src/hb-buffer-deserialize-text.hh index 5bca369f8d2b..67f0a1252f83 100644 --- a/gfx/harfbuzz/src/hb-buffer-deserialize-text.hh +++ b/gfx/harfbuzz/src/hb-buffer-deserialize-text.hh @@ -29,7 +29,7 @@ #ifndef HB_BUFFER_DESERIALIZE_TEXT_HH #define HB_BUFFER_DESERIALIZE_TEXT_HH -#include "hb-private.hh" +#include "hb.hh" #line 36 "hb-buffer-deserialize-text.hh" diff --git a/gfx/harfbuzz/src/hb-buffer-deserialize-text.rl b/gfx/harfbuzz/src/hb-buffer-deserialize-text.rl index 1d90979a9024..6268a6c5039d 100644 --- a/gfx/harfbuzz/src/hb-buffer-deserialize-text.rl +++ b/gfx/harfbuzz/src/hb-buffer-deserialize-text.rl @@ -27,7 +27,7 @@ #ifndef HB_BUFFER_DESERIALIZE_TEXT_HH #define HB_BUFFER_DESERIALIZE_TEXT_HH -#include "hb-private.hh" +#include "hb.hh" %%{ diff --git a/gfx/harfbuzz/src/hb-buffer-serialize.cc b/gfx/harfbuzz/src/hb-buffer-serialize.cc index 11471941de8f..1b6d14731fd3 100644 --- a/gfx/harfbuzz/src/hb-buffer-serialize.cc +++ b/gfx/harfbuzz/src/hb-buffer-serialize.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-buffer-private.hh" +#include "hb-buffer.hh" static const char *serialize_formats[] = { diff --git a/gfx/harfbuzz/src/hb-buffer.cc b/gfx/harfbuzz/src/hb-buffer.cc index eb7b01caafa8..536ab5d53760 100644 --- a/gfx/harfbuzz/src/hb-buffer.cc +++ b/gfx/harfbuzz/src/hb-buffer.cc @@ -27,8 +27,8 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-buffer-private.hh" -#include "hb-utf-private.hh" +#include "hb-buffer.hh" +#include "hb-utf.hh" /** diff --git a/gfx/harfbuzz/src/hb-buffer-private.hh b/gfx/harfbuzz/src/hb-buffer.hh similarity index 98% rename from gfx/harfbuzz/src/hb-buffer-private.hh rename to gfx/harfbuzz/src/hb-buffer.hh index a6c4b6963305..bcaf066c70bc 100644 --- a/gfx/harfbuzz/src/hb-buffer-private.hh +++ b/gfx/harfbuzz/src/hb-buffer.hh @@ -27,11 +27,11 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_BUFFER_PRIVATE_HH -#define HB_BUFFER_PRIVATE_HH +#ifndef HB_BUFFER_HH +#define HB_BUFFER_HH -#include "hb-private.hh" -#include "hb-unicode-private.hh" +#include "hb.hh" +#include "hb-unicode.hh" #ifndef HB_BUFFER_MAX_LEN_FACTOR @@ -119,7 +119,7 @@ struct hb_buffer_t /* Text before / after the main buffer contents. * Always in Unicode, and ordered outward. * Index 0 is for "pre-context", 1 for "post-context". */ - static const unsigned int CONTEXT_LENGTH = 5; + enum { CONTEXT_LENGTH = 5 }; hb_codepoint_t context[2][CONTEXT_LENGTH]; unsigned int context_len[2]; @@ -386,4 +386,4 @@ _next_cluster (hb_buffer_t *buffer, unsigned int start) #define HB_BUFFER_ASSERT_VAR(b, var) HB_BUFFER_XALLOCATE_VAR (b, assert_var, var ()) -#endif /* HB_BUFFER_PRIVATE_HH */ +#endif /* HB_BUFFER_HH */ diff --git a/gfx/harfbuzz/src/hb-common.cc b/gfx/harfbuzz/src/hb-common.cc index 22dd52f49d8d..ed3fed2a35c3 100644 --- a/gfx/harfbuzz/src/hb-common.cc +++ b/gfx/harfbuzz/src/hb-common.cc @@ -26,9 +26,9 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" -#include "hb-machinery-private.hh" +#include "hb-machinery.hh" #include #ifdef HAVE_XLOCALE_H @@ -731,8 +731,9 @@ parse_uint32 (const char **pp, const char *end, uint32_t *pv) #ifdef USE_XLOCALE - +#ifdef HB_USE_ATEXIT static void free_static_C_locale (void); +#endif static struct hb_C_locale_lazy_loader_t : hb_lazy_loader_t::value, hb_C_locale_lazy_loader_t> diff --git a/gfx/harfbuzz/src/hb-coretext.cc b/gfx/harfbuzz/src/hb-coretext.cc index 1b916a53d341..a7ba85f8350b 100644 --- a/gfx/harfbuzz/src/hb-coretext.cc +++ b/gfx/harfbuzz/src/hb-coretext.cc @@ -28,8 +28,8 @@ #define HB_SHAPER coretext -#include "hb-private.hh" -#include "hb-shaper-impl-private.hh" +#include "hb.hh" +#include "hb-shaper-impl.hh" #include "hb-coretext.h" #include diff --git a/gfx/harfbuzz/src/hb-debug.hh b/gfx/harfbuzz/src/hb-debug.hh index 9056ffca2b1b..49663d215dca 100644 --- a/gfx/harfbuzz/src/hb-debug.hh +++ b/gfx/harfbuzz/src/hb-debug.hh @@ -27,8 +27,8 @@ #ifndef HB_DEBUG_HH #define HB_DEBUG_HH -#include "hb-private.hh" -#include "hb-atomic-private.hh" +#include "hb.hh" +#include "hb-atomic.hh" #include "hb-dsalgs.hh" diff --git a/gfx/harfbuzz/src/hb-directwrite.cc b/gfx/harfbuzz/src/hb-directwrite.cc index baad81884dc3..35197c238655 100644 --- a/gfx/harfbuzz/src/hb-directwrite.cc +++ b/gfx/harfbuzz/src/hb-directwrite.cc @@ -22,9 +22,9 @@ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ -#include "hb-private.hh" +#include "hb.hh" #define HB_SHAPER directwrite -#include "hb-shaper-impl-private.hh" +#include "hb-shaper-impl.hh" #include diff --git a/gfx/harfbuzz/src/hb-dsalgs.hh b/gfx/harfbuzz/src/hb-dsalgs.hh index 8cbe6584b29c..7e06ff170106 100644 --- a/gfx/harfbuzz/src/hb-dsalgs.hh +++ b/gfx/harfbuzz/src/hb-dsalgs.hh @@ -27,7 +27,7 @@ #ifndef HB_DSALGS_HH #define HB_DSALGS_HH -#include "hb-private.hh" +#include "hb.hh" /* Void! For when we need a expression-type of void. */ @@ -492,6 +492,15 @@ template struct hb_auto_t : Type { hb_auto_t (void) { Type::init (); } + /* Explicitly allow the following only for pointer and references, + * to avoid any accidental copies. + * + * Apparently if we template for all types, then gcc seems to + * capture a reference argument in the type, but clang doesn't, + * causing unwanted copies and bugs that come with it. Ideally + * we should use C++11-style rvalue reference &&t1. */ + template explicit hb_auto_t (T1 *t1) { Type::init (t1); } + template explicit hb_auto_t (T1 &t1) { Type::init (t1); } ~hb_auto_t (void) { Type::fini (); } private: /* Hide */ void init (void) {} @@ -502,6 +511,9 @@ struct hb_bytes_t { inline hb_bytes_t (void) : bytes (nullptr), len (0) {} inline hb_bytes_t (const char *bytes_, unsigned int len_) : bytes (bytes_), len (len_) {} + inline hb_bytes_t (const void *bytes_, unsigned int len_) : bytes ((const char *) bytes_), len (len_) {} + + inline void free (void) { ::free ((void *) bytes); bytes = nullptr; len = 0; } inline int cmp (const hb_bytes_t &a) const { diff --git a/gfx/harfbuzz/src/hb-face.cc b/gfx/harfbuzz/src/hb-face.cc index 49f29d3fa87f..92c341523357 100644 --- a/gfx/harfbuzz/src/hb-face.cc +++ b/gfx/harfbuzz/src/hb-face.cc @@ -26,11 +26,13 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" -#include "hb-face-private.hh" -#include "hb-blob-private.hh" -#include "hb-open-file-private.hh" +#include "hb-face.hh" +#include "hb-blob.hh" +#include "hb-open-file.hh" +#include "hb-ot-face.hh" +#include "hb-ot-cmap-table.hh" /** @@ -512,3 +514,208 @@ hb_face_get_table_tags (const hb_face_t *face, return ot_face.get_table_tags (start_offset, table_count, table_tags); } + + +/* + * Character set. + */ + + +/** + * hb_face_collect_unicodes: + * @face: font face. + * @out: set to add Unicode characters covered by @face to. + * + * Since: 1.9.0 + */ +void +hb_face_collect_unicodes (hb_face_t *face, + hb_set_t *out) +{ + if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return; + hb_ot_face_data (face)->cmap->collect_unicodes (out); +} + +/** + * hb_face_collect_variation_selectors: + * @face: font face. + * @out: set to add Variation Selector characters covered by @face to. + * + * + * + * Since: 1.9.0 + */ +void +hb_face_collect_variation_selectors (hb_face_t *face, + hb_set_t *out) +{ + if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return; + hb_ot_face_data (face)->cmap->collect_variation_selectors (out); +} + +/** + * hb_face_collect_variation_unicodes: + * @face: font face. + * @out: set to add Unicode characters for @variation_selector covered by @face to. + * + * + * + * Since: 1.9.0 + */ +void +hb_face_collect_variation_unicodes (hb_face_t *face, + hb_codepoint_t variation_selector, + hb_set_t *out) +{ + if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return; + hb_ot_face_data (face)->cmap->collect_variation_unicodes (variation_selector, out); +} + + + +/* + * face-builder: A face that has add_table(). + */ + +struct hb_face_builder_data_t +{ + struct table_entry_t + { + inline int cmp (const hb_tag_t *t) const + { + if (*t < tag) return -1; + if (*t > tag) return -1; + return 0; + } + + hb_tag_t tag; + hb_blob_t *blob; + }; + + hb_vector_t tables; +}; + +static hb_face_builder_data_t * +_hb_face_builder_data_create (void) +{ + hb_face_builder_data_t *data = (hb_face_builder_data_t *) calloc (1, sizeof (hb_face_builder_data_t)); + if (unlikely (!data)) + return nullptr; + + data->tables.init (); + + return data; +} + +static void +_hb_face_builder_data_destroy (void *user_data) +{ + hb_face_builder_data_t *data = (hb_face_builder_data_t *) user_data; + + for (unsigned int i = 0; i < data->tables.len; i++) + hb_blob_destroy (data->tables[i].blob); + + data->tables.fini (); + + free (data); +} + +static hb_blob_t * +_hb_face_builder_data_reference_blob (hb_face_builder_data_t *data) +{ + + unsigned int table_count = data->tables.len; + unsigned int face_length = table_count * 16 + 12; + + for (unsigned int i = 0; i < table_count; i++) + face_length += hb_ceil_to_4 (hb_blob_get_length (data->tables.arrayZ[i].blob)); + + char *buf = (char *) malloc (face_length); + if (unlikely (!buf)) + return nullptr; + + hb_serialize_context_t c (buf, face_length); + OT::OpenTypeFontFile *f = c.start_serialize (); + + bool is_cff = data->tables.lsearch (HB_TAG ('C','F','F',' ')) || data->tables.lsearch (HB_TAG ('C','F','F','2')); + hb_tag_t sfnt_tag = is_cff ? OT::OpenTypeFontFile::CFFTag : OT::OpenTypeFontFile::TrueTypeTag; + + Supplier tags_supplier (&data->tables[0].tag, table_count, sizeof (data->tables[0])); + Supplier blobs_supplier (&data->tables[0].blob, table_count, sizeof (data->tables[0])); + bool ret = f->serialize_single (&c, + sfnt_tag, + tags_supplier, + blobs_supplier, + table_count); + + c.end_serialize (); + + if (unlikely (!ret)) + { + free (buf); + return nullptr; + } + + return hb_blob_create (buf, face_length, HB_MEMORY_MODE_WRITABLE, buf, free); +} + +static hb_blob_t * +_hb_face_builder_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data) +{ + hb_face_builder_data_t *data = (hb_face_builder_data_t *) user_data; + + if (!tag) + return _hb_face_builder_data_reference_blob (data); + + hb_face_builder_data_t::table_entry_t *entry = data->tables.lsearch (tag); + if (entry) + return hb_blob_reference (entry->blob); + + return nullptr; +} + + +/** + * hb_face_builder_create: + * + * Creates a #hb_face_t that can be used with hb_face_builder_add_table(). + * After tables are added to the face, it can be compiled to a binary + * font file by calling hb_face_reference_blob(). + * + * Return value: (transfer full) New face. + * + * Since: 1.9.0 + **/ +hb_face_t * +hb_face_builder_create (void) +{ + hb_face_builder_data_t *data = _hb_face_builder_data_create (); + if (unlikely (!data)) return hb_face_get_empty (); + + return hb_face_create_for_tables (_hb_face_builder_reference_table, + data, + _hb_face_builder_data_destroy); +} + +/** + * hb_face_builder_add_table: + * + * Add table for @tag with data provided by @blob to the face. @face must + * be created using hb_face_builder_create(). + * + * Since: 1.9.0 + **/ +hb_bool_t +hb_face_builder_add_table (hb_face_t *face, hb_tag_t tag, hb_blob_t *blob) +{ + if (unlikely (face->destroy != (hb_destroy_func_t) _hb_face_builder_data_destroy)) + return false; + + hb_face_builder_data_t *data = (hb_face_builder_data_t *) face->user_data; + hb_face_builder_data_t::table_entry_t *entry = data->tables.push (); + + entry->tag = tag; + entry->blob = hb_blob_reference (blob); + + return true; +} diff --git a/gfx/harfbuzz/src/hb-face.h b/gfx/harfbuzz/src/hb-face.h index 208092efc28a..e8ff090d55fa 100644 --- a/gfx/harfbuzz/src/hb-face.h +++ b/gfx/harfbuzz/src/hb-face.h @@ -33,6 +33,7 @@ #include "hb-common.h" #include "hb-blob.h" +#include "hb-set.h" HB_BEGIN_DECLS @@ -120,6 +121,38 @@ hb_face_get_table_tags (const hb_face_t *face, unsigned int *table_count, /* IN/OUT */ hb_tag_t *table_tags /* OUT */); + +/* + * Character set. + */ + +HB_EXTERN void +hb_face_collect_unicodes (hb_face_t *face, + hb_set_t *out); + +HB_EXTERN void +hb_face_collect_variation_selectors (hb_face_t *face, + hb_set_t *out); + +HB_EXTERN void +hb_face_collect_variation_unicodes (hb_face_t *face, + hb_codepoint_t variation_selector, + hb_set_t *out); + + +/* + * Builder face. + */ + +HB_EXTERN hb_face_t * +hb_face_builder_create (void); + +HB_EXTERN hb_bool_t +hb_face_builder_add_table (hb_face_t *face, + hb_tag_t tag, + hb_blob_t *blob); + + HB_END_DECLS #endif /* HB_FACE_H */ diff --git a/gfx/harfbuzz/src/hb-face-private.hh b/gfx/harfbuzz/src/hb-face.hh similarity index 94% rename from gfx/harfbuzz/src/hb-face-private.hh rename to gfx/harfbuzz/src/hb-face.hh index 086ce6e96d1f..f90453dbd1f4 100644 --- a/gfx/harfbuzz/src/hb-face-private.hh +++ b/gfx/harfbuzz/src/hb-face.hh @@ -26,13 +26,13 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_FACE_PRIVATE_HH -#define HB_FACE_PRIVATE_HH +#ifndef HB_FACE_HH +#define HB_FACE_HH -#include "hb-private.hh" +#include "hb.hh" -#include "hb-shaper-private.hh" -#include "hb-shape-plan-private.hh" +#include "hb-shaper.hh" +#include "hb-shape-plan.hh" /* @@ -105,4 +105,4 @@ DECLARE_NULL_INSTANCE (hb_face_t); #undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS -#endif /* HB_FACE_PRIVATE_HH */ +#endif /* HB_FACE_HH */ diff --git a/gfx/harfbuzz/src/hb-fallback-shape.cc b/gfx/harfbuzz/src/hb-fallback-shape.cc index eff20f70c775..dc8536c8281a 100644 --- a/gfx/harfbuzz/src/hb-fallback-shape.cc +++ b/gfx/harfbuzz/src/hb-fallback-shape.cc @@ -25,7 +25,7 @@ */ #define HB_SHAPER fallback -#include "hb-shaper-impl-private.hh" +#include "hb-shaper-impl.hh" HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face) diff --git a/gfx/harfbuzz/src/hb-font.cc b/gfx/harfbuzz/src/hb-font.cc index 857b8f577348..bc831dd53f28 100644 --- a/gfx/harfbuzz/src/hb-font.cc +++ b/gfx/harfbuzz/src/hb-font.cc @@ -26,10 +26,10 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" -#include "hb-font-private.hh" -#include "hb-machinery-private.hh" +#include "hb-font.hh" +#include "hb-machinery.hh" /* diff --git a/gfx/harfbuzz/src/hb-font-private.hh b/gfx/harfbuzz/src/hb-font.hh similarity index 99% rename from gfx/harfbuzz/src/hb-font-private.hh rename to gfx/harfbuzz/src/hb-font.hh index d3a413802583..4c8d0aeec03f 100644 --- a/gfx/harfbuzz/src/hb-font-private.hh +++ b/gfx/harfbuzz/src/hb-font.hh @@ -26,13 +26,13 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_FONT_PRIVATE_HH -#define HB_FONT_PRIVATE_HH +#ifndef HB_FONT_HH +#define HB_FONT_HH -#include "hb-private.hh" +#include "hb.hh" -#include "hb-face-private.hh" -#include "hb-shaper-private.hh" +#include "hb-face.hh" +#include "hb-shaper.hh" /* @@ -601,4 +601,4 @@ DECLARE_NULL_INSTANCE (hb_font_t); #undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS -#endif /* HB_FONT_PRIVATE_HH */ +#endif /* HB_FONT_HH */ diff --git a/gfx/harfbuzz/src/hb-ft.cc b/gfx/harfbuzz/src/hb-ft.cc index 01341b604a13..5d6abb29d164 100644 --- a/gfx/harfbuzz/src/hb-ft.cc +++ b/gfx/harfbuzz/src/hb-ft.cc @@ -27,12 +27,12 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" #include "hb-ft.h" -#include "hb-font-private.hh" -#include "hb-machinery-private.hh" +#include "hb-font.hh" +#include "hb-machinery.hh" #include FT_ADVANCES_H #include FT_MULTIPLE_MASTERS_H @@ -417,7 +417,9 @@ hb_ft_get_font_h_extents (hb_font_t *font HB_UNUSED, return true; } +#ifdef HB_USE_ATEXIT static void free_static_ft_funcs (void); +#endif static struct hb_ft_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t { @@ -682,8 +684,9 @@ hb_ft_font_create_referenced (FT_Face ft_face) return hb_ft_font_create (ft_face, _hb_ft_face_destroy); } - +#ifdef HB_USE_ATEXIT static void free_static_ft_library (void); +#endif static struct hb_ft_library_lazy_loader_t : hb_lazy_loader_t::value, hb_ft_library_lazy_loader_t> diff --git a/gfx/harfbuzz/src/hb-glib.cc b/gfx/harfbuzz/src/hb-glib.cc index 809b22f6b469..18f3a81db64b 100644 --- a/gfx/harfbuzz/src/hb-glib.cc +++ b/gfx/harfbuzz/src/hb-glib.cc @@ -26,12 +26,12 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" #include "hb-glib.h" -#include "hb-unicode-private.hh" -#include "hb-machinery-private.hh" +#include "hb-unicode.hh" +#include "hb-machinery.hh" #if !GLIB_CHECK_VERSION(2,29,14) @@ -366,8 +366,9 @@ hb_glib_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED, } - +#ifdef HB_USE_ATEXIT static void free_static_glib_funcs (void); +#endif static struct hb_glib_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader_t { diff --git a/gfx/harfbuzz/src/hb-gobject-enums.cc.tmpl b/gfx/harfbuzz/src/hb-gobject-enums.cc.tmpl index ca458a3846cb..e056df478910 100644 --- a/gfx/harfbuzz/src/hb-gobject-enums.cc.tmpl +++ b/gfx/harfbuzz/src/hb-gobject-enums.cc.tmpl @@ -25,7 +25,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" /* g++ didn't like older gtype.h gcc-only code path. */ #include diff --git a/gfx/harfbuzz/src/hb-gobject-structs.cc b/gfx/harfbuzz/src/hb-gobject-structs.cc index 0c8e55733eb2..1b87585832ef 100644 --- a/gfx/harfbuzz/src/hb-gobject-structs.cc +++ b/gfx/harfbuzz/src/hb-gobject-structs.cc @@ -24,7 +24,7 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" /* g++ didn't like older gtype.h gcc-only code path. */ #include diff --git a/gfx/harfbuzz/src/hb-graphite2.cc b/gfx/harfbuzz/src/hb-graphite2.cc index 1f42a36f35ad..817278f309bb 100644 --- a/gfx/harfbuzz/src/hb-graphite2.cc +++ b/gfx/harfbuzz/src/hb-graphite2.cc @@ -27,7 +27,7 @@ */ #define HB_SHAPER graphite2 -#include "hb-shaper-impl-private.hh" +#include "hb-shaper-impl.hh" #include "hb-graphite2.h" diff --git a/gfx/harfbuzz/src/hb-icu.cc b/gfx/harfbuzz/src/hb-icu.cc index 2e3ad3675441..564f71fe2dce 100644 --- a/gfx/harfbuzz/src/hb-icu.cc +++ b/gfx/harfbuzz/src/hb-icu.cc @@ -27,12 +27,12 @@ * Google Author(s): Behdad Esfahbod */ -#include "hb-private.hh" +#include "hb.hh" #include "hb-icu.h" -#include "hb-unicode-private.hh" -#include "hb-machinery-private.hh" +#include "hb-unicode.hh" +#include "hb-machinery.hh" #include #include @@ -343,8 +343,9 @@ hb_icu_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED, return utf32_len; } - +#ifdef HB_USE_ATEXIT static void free_static_icu_funcs (void); +#endif static struct hb_icu_unicode_funcs_lazy_loader_t : hb_unicode_funcs_lazy_loader_t { diff --git a/gfx/harfbuzz/src/hb-iter-private.hh b/gfx/harfbuzz/src/hb-iter.hh similarity index 97% rename from gfx/harfbuzz/src/hb-iter-private.hh rename to gfx/harfbuzz/src/hb-iter.hh index 314133ade707..6fd6aed79a7a 100644 --- a/gfx/harfbuzz/src/hb-iter-private.hh +++ b/gfx/harfbuzz/src/hb-iter.hh @@ -24,10 +24,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_ITER_PRIVATE_HH -#define HB_ITER_PRIVATE_HH +#ifndef HB_ITER_HH +#define HB_ITER_HH -#include "hb-private.hh" +#include "hb.hh" /* Unified iterator object. @@ -146,4 +146,4 @@ m (void) } } -#endif /* HB_ITER_PRIVATE_HH */ +#endif /* HB_ITER_HH */ diff --git a/gfx/harfbuzz/src/hb-machinery-private.hh b/gfx/harfbuzz/src/hb-machinery.hh similarity index 79% rename from gfx/harfbuzz/src/hb-machinery-private.hh rename to gfx/harfbuzz/src/hb-machinery.hh index 99ef485a3079..62f490721138 100644 --- a/gfx/harfbuzz/src/hb-machinery-private.hh +++ b/gfx/harfbuzz/src/hb-machinery.hh @@ -26,13 +26,14 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_MACHINERY_PRIVATE_HH -#define HB_MACHINERY_PRIVATE_HH +#ifndef HB_MACHINERY_HH +#define HB_MACHINERY_HH -#include "hb-private.hh" -#include "hb-blob-private.hh" +#include "hb.hh" +#include "hb-blob.hh" -#include "hb-iter-private.hh" +#include "hb-iter.hh" +#include "hb-vector.hh" /* @@ -98,8 +99,8 @@ static inline Type& StructAfter(TObject &X) #define DEFINE_SIZE_STATIC(size) \ DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)); \ - static const unsigned int static_size = (size); \ - static const unsigned int min_size = (size); \ + enum { static_size = (size) }; \ + enum { min_size = (size) }; \ inline unsigned int get_size (void) const { return (size); } #define DEFINE_SIZE_UNION(size, _member) \ @@ -111,9 +112,13 @@ static inline Type& StructAfter(TObject &X) static const unsigned int min_size = (size) #define DEFINE_SIZE_ARRAY(size, array) \ - DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (array[0])); \ + DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + VAR * sizeof (array[0])); \ DEFINE_COMPILES_ASSERTION ((void) array[0].static_size) \ - static const unsigned int min_size = (size) + enum { min_size = (size) }; \ + +#define DEFINE_SIZE_ARRAY_SIZED(size, array) \ + DEFINE_SIZE_ARRAY(size, array); \ + inline unsigned int get_size (void) const { return (size - array[0].min_size + array.get_size ()); } #define DEFINE_SIZE_ARRAY2(size, array1, array2) \ DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0])); \ @@ -128,7 +133,7 @@ static inline Type& StructAfter(TObject &X) template struct hb_dispatch_context_t { - static const unsigned int max_debug_depth = MaxDebugDepth; + enum { max_debug_depth = MaxDebugDepth }; typedef Return return_t; template inline bool may_dispatch (const T *obj, const F *format) { return true; } @@ -138,6 +143,68 @@ struct hb_dispatch_context_t /* * Sanitize + * + * + * === Introduction === + * + * The sanitize machinery is at the core of our zero-cost font loading. We + * mmap() font file into memory and create a blob out of it. Font subtables + * are returned as a readonly sub-blob of the main font blob. These table + * blobs are then sanitized before use, to ensure invalid memory access does + * not happen. The toplevel sanitize API use is like, eg. to load the 'head' + * table: + * + * hb_blob_t *head_blob = hb_sanitize_context_t ().reference_table (face); + * + * The blob then can be converted to a head table struct with: + * + * const head *head_table = head_blob->as (); + * + * What the reference_table does is, to call hb_face_reference_table() to load + * the table blob, sanitize it and return either the sanitized blob, or empty + * blob if sanitization failed. The blob->as() function returns the null + * object of its template type argument if the blob is empty. Otherwise, it + * just casts the blob contents to the desired type. + * + * Sanitizing a blob of data with a type T works as follows (with minor + * simplification): + * + * - Cast blob content to T*, call sanitize() method of it, + * - If sanitize succeeded, return blob. + * - Otherwise, if blob is not writable, try making it writable, + * or copy if cannot be made writable in-place, + * - Call sanitize() again. Return blob if sanitize succeeded. + * - Return empty blob otherwise. + * + * + * === The sanitize() contract === + * + * The sanitize() method of each object type shall return true if it's safe to + * call other methods of the object, and false otherwise. + * + * Note that what sanitize() checks for might align with what the specification + * describes as valid table data, but does not have to be. In particular, we + * do NOT want to be pedantic and concern ourselves with validity checks that + * are irrelevant to our use of the table. On the contrary, we want to be + * lenient with error handling and accept invalid data to the extent that it + * does not impose extra burden on us. + * + * Based on the sanitize contract, one can see that what we check for depends + * on how we use the data in other table methods. Ie. if other table methods + * assume that offsets do NOT point out of the table data block, then that's + * something sanitize() must check for (GSUB/GPOS/GDEF/etc work this way). On + * the other hand, if other methods do such checks themselves, then sanitize() + * does not have to bother with them (glyf/local work this way). The choice + * depends on the table structure and sanitize() performance. For example, to + * check glyf/loca offsets in sanitize() would cost O(num-glyphs). We try hard + * to avoid such costs during font loading. By postponing such checks to the + * actual glyph loading, we reduce the sanitize cost to O(1) and total runtime + * cost to O(used-glyphs). As such, this is preferred. + * + * The same argument can be made re GSUB/GPOS/GDEF, but there, the table + * structure is so complicated that by checking all offsets at sanitize() time, + * we make the code much simpler in other methods, as offsets and referenced + * objectes do not need to be validated at each use site. */ /* This limits sanitizing time on really broken fonts. */ @@ -375,12 +442,19 @@ struct hb_serialize_context_t { this->start = (char *) start_; this->end = this->start + size; + reset (); + } + inline void reset (void) + { this->ran_out_of_room = false; this->head = this->start; this->debug_depth = 0; } + inline bool err (bool e) { return this->ran_out_of_room = this->ran_out_of_room || e; } + + /* To be called around main operation. */ template inline Type *start_serialize (void) { @@ -391,7 +465,6 @@ struct hb_serialize_context_t return start_embed (); } - inline void end_serialize (void) { DEBUG_MSG_LEVEL (SERIALIZE, this->start, 0, -1, @@ -401,15 +474,20 @@ struct hb_serialize_context_t this->ran_out_of_room ? "RAN OUT OF ROOM" : "did not ran out of room"); } - template - inline Type *copy (void) + inline unsigned int length (void) const { return this->head - this->start; } + + inline void align (unsigned int alignment) { - assert (!this->ran_out_of_room); - unsigned int len = this->head - this->start; - void *p = malloc (len); - if (p) - memcpy (p, this->start, len); - return reinterpret_cast (p); + unsigned int l = length () % alignment; + if (l) + allocate_size (alignment - l); + } + + template + inline Type *start_embed (void) const + { + Type *ret = reinterpret_cast (this->head); + return ret; } template @@ -431,20 +509,13 @@ struct hb_serialize_context_t return this->allocate_size (Type::min_size); } - template - inline Type *start_embed (void) - { - Type *ret = reinterpret_cast (this->head); - return ret; - } - template inline Type *embed (const Type &obj) { unsigned int size = obj.get_size (); Type *ret = this->allocate_size (size); if (unlikely (!ret)) return nullptr; - memcpy (ret, obj, size); + memcpy (ret, &obj, size); return ret; } @@ -466,6 +537,38 @@ struct hb_serialize_context_t return reinterpret_cast (&obj); } + /* Output routines. */ + template + inline Type *copy (void) const + { + assert (!this->ran_out_of_room); + unsigned int len = this->head - this->start; + void *p = malloc (len); + if (p) + memcpy (p, this->start, len); + return reinterpret_cast (p); + } + inline hb_bytes_t copy_bytes (void) const + { + assert (!this->ran_out_of_room); + unsigned int len = this->head - this->start; + void *p = malloc (len); + if (p) + memcpy (p, this->start, len); + else + return hb_bytes_t (); + return hb_bytes_t (p, len); + } + inline hb_blob_t *copy_blob (void) const + { + assert (!this->ran_out_of_room); + return hb_blob_create (this->start, + this->head - this->start, + HB_MEMORY_MODE_DUPLICATE, + nullptr, nullptr); + } + + public: unsigned int debug_depth; char *start, *end, *head; bool ran_out_of_room; @@ -479,12 +582,19 @@ struct hb_serialize_context_t template struct Supplier { - inline Supplier (const Type *array, unsigned int len_, unsigned int stride_=sizeof(Type)) + inline Supplier (const Type *array, unsigned int len_, unsigned int stride_=sizeof (Type)) { head = array; len = len_; stride = stride_; } + inline Supplier (const hb_vector_t *v) + { + head = v->arrayZ; + len = v->len; + stride = sizeof (Type); + } + inline const Type operator [] (unsigned int i) const { if (unlikely (i >= len)) return Type (); @@ -682,6 +792,10 @@ struct hb_lazy_loader_t : hb_data_wrapper_t } return p; } + inline Stored * get_stored_relaxed (void) const + { + return this->instance.get_relaxed (); + } inline void set_stored (Stored *instance_) { @@ -695,6 +809,7 @@ struct hb_lazy_loader_t : hb_data_wrapper_t } inline const Returned * get (void) const { return Funcs::convert (get_stored ()); } + inline const Returned * get_relaxed (void) const { return Funcs::convert (get_stored_relaxed ()); } inline Returned * get_unconst (void) const { return const_cast (Funcs::convert (get_stored ())); } /* To be possibly overloaded by subclasses. */ @@ -729,9 +844,9 @@ struct hb_lazy_loader_t : hb_data_wrapper_t /* Specializations. */ -template +template struct hb_face_lazy_loader_t : hb_lazy_loader_t, + hb_face_lazy_loader_t, hb_face_t, WheresFace> {}; template @@ -789,4 +904,4 @@ struct hb_unicode_funcs_lazy_loader_t : hb_lazy_loader_t @@ -251,4 +251,4 @@ struct hb_map_t }; -#endif /* HB_MAP_PRIVATE_HH */ +#endif /* HB_MAP_HH */ diff --git a/gfx/harfbuzz/src/hb-mutex-private.hh b/gfx/harfbuzz/src/hb-mutex.hh similarity index 97% rename from gfx/harfbuzz/src/hb-mutex-private.hh rename to gfx/harfbuzz/src/hb-mutex.hh index 14bde3103e12..d8cdf4b64ac6 100644 --- a/gfx/harfbuzz/src/hb-mutex-private.hh +++ b/gfx/harfbuzz/src/hb-mutex.hh @@ -29,10 +29,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_MUTEX_PRIVATE_HH -#define HB_MUTEX_PRIVATE_HH +#ifndef HB_MUTEX_HH +#define HB_MUTEX_HH -#include "hb-private.hh" +#include "hb.hh" /* mutex */ @@ -138,4 +138,4 @@ struct hb_mutex_t }; -#endif /* HB_MUTEX_PRIVATE_HH */ +#endif /* HB_MUTEX_HH */ diff --git a/gfx/harfbuzz/src/hb-null.hh b/gfx/harfbuzz/src/hb-null.hh index 91efee6443db..7128f0a94f35 100644 --- a/gfx/harfbuzz/src/hb-null.hh +++ b/gfx/harfbuzz/src/hb-null.hh @@ -27,7 +27,7 @@ #ifndef HB_NULL_HH #define HB_NULL_HH -#include "hb-private.hh" +#include "hb.hh" /* @@ -51,27 +51,40 @@ static inline Type const & Null (void) { /* Specializaitons for arbitrary-content Null objects expressed in bytes. */ #define DECLARE_NULL_NAMESPACE_BYTES(Namespace, Type) \ -} /* Close namespace. */ \ -extern HB_INTERNAL const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::min_size]; \ -template <> \ -/*static*/ inline const Namespace::Type& Null (void) { \ - return *reinterpret_cast (_hb_Null_##Namespace##_##Type); \ -} \ -namespace Namespace { \ -static_assert (true, "Just so we take semicolon after.") + } /* Close namespace. */ \ + extern HB_INTERNAL const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::min_size]; \ + template <> \ + /*static*/ inline const Namespace::Type& Null (void) { \ + return *reinterpret_cast (_hb_Null_##Namespace##_##Type); \ + } \ + namespace Namespace { \ + static_assert (true, "Just so we take semicolon after.") #define DEFINE_NULL_NAMESPACE_BYTES(Namespace, Type) \ -const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::min_size] + const unsigned char _hb_Null_##Namespace##_##Type[Namespace::Type::min_size] /* Specializaitons for arbitrary-content Null objects expressed as struct initializer. */ #define DECLARE_NULL_INSTANCE(Type) \ -extern HB_INTERNAL const Type _hb_Null_##Type; \ -template <> \ -/*static*/ inline const Type& Null (void) { \ - return _hb_Null_##Type; \ -} \ + extern HB_INTERNAL const Type _hb_Null_##Type; \ + template <> \ + /*static*/ inline const Type& Null (void) { \ + return _hb_Null_##Type; \ + } \ static_assert (true, "Just so we take semicolon after.") #define DEFINE_NULL_INSTANCE(Type) \ -const Type _hb_Null_##Type + const Type _hb_Null_##Type + +/* Specializaiton to disallow Null objects. */ +#define DECLARE_NULL_DISALLOW(Type) \ + template <> inline const Type& Null (void) +#define DECLARE_NULL_NAMSPACE_DISALLOW(Namespace, Type) \ + } /* Close namespace. */ \ + template <> \ + /*static*/ inline const Namespace::Type& Null (void) { \ + extern void *_hb_undefined; \ + return *reinterpret_cast (_hb_undefined); \ + } \ + namespace Namespace { \ + static_assert (true, "Just so we take semicolon after.") /* Global writable pool. Enlarge as necessary. */ diff --git a/gfx/harfbuzz/src/hb-object-private.hh b/gfx/harfbuzz/src/hb-object.hh similarity index 97% rename from gfx/harfbuzz/src/hb-object-private.hh rename to gfx/harfbuzz/src/hb-object.hh index 4955a68dc3cc..ca85af691d97 100644 --- a/gfx/harfbuzz/src/hb-object-private.hh +++ b/gfx/harfbuzz/src/hb-object.hh @@ -29,13 +29,13 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_OBJECT_PRIVATE_HH -#define HB_OBJECT_PRIVATE_HH +#ifndef HB_OBJECT_HH +#define HB_OBJECT_HH -#include "hb-private.hh" -#include "hb-atomic-private.hh" -#include "hb-mutex-private.hh" -#include "hb-vector-private.hh" +#include "hb.hh" +#include "hb-atomic.hh" +#include "hb-mutex.hh" +#include "hb-vector.hh" /* @@ -322,4 +322,4 @@ static inline void *hb_object_get_user_data (Type *obj, } -#endif /* HB_OBJECT_PRIVATE_HH */ +#endif /* HB_OBJECT_HH */ diff --git a/gfx/harfbuzz/src/hb-open-file-private.hh b/gfx/harfbuzz/src/hb-open-file.hh similarity index 98% rename from gfx/harfbuzz/src/hb-open-file-private.hh rename to gfx/harfbuzz/src/hb-open-file.hh index d47bff66e788..d3b748602ba2 100644 --- a/gfx/harfbuzz/src/hb-open-file-private.hh +++ b/gfx/harfbuzz/src/hb-open-file.hh @@ -26,10 +26,10 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_OPEN_FILE_PRIVATE_HH -#define HB_OPEN_FILE_PRIVATE_HH +#ifndef HB_OPEN_FILE_HH +#define HB_OPEN_FILE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" #include "hb-ot-head-table.hh" @@ -115,7 +115,7 @@ typedef struct OffsetTable * table list. */ int i = tables.len < 64 ? tables.lsearch (t) : tables.bsearch (t); if (table_index) - *table_index = i == -1 ? Index::NOT_FOUND_INDEX : (unsigned int) i; + *table_index = i == -1 ? (unsigned) Index::NOT_FOUND_INDEX : (unsigned) i; return i != -1; } inline const TableRecord& get_table_by_tag (hb_tag_t tag) const @@ -161,8 +161,7 @@ typedef struct OffsetTable memcpy (start, hb_blob_get_data (blob, nullptr), rec.length); /* 4-byte allignment. */ - if (rec.length % 4) - c->allocate_size (4 - rec.length % 4); + c->align (4); const char *end = (const char *) c->head; if (tags[i] == HB_OT_TAG_head && end - start >= head::static_size) @@ -565,4 +564,4 @@ struct OpenTypeFontFile } /* namespace OT */ -#endif /* HB_OPEN_FILE_PRIVATE_HH */ +#endif /* HB_OPEN_FILE_HH */ diff --git a/gfx/harfbuzz/src/hb-open-type-private.hh b/gfx/harfbuzz/src/hb-open-type.hh similarity index 95% rename from gfx/harfbuzz/src/hb-open-type-private.hh rename to gfx/harfbuzz/src/hb-open-type.hh index 5580565f1185..ef18163fa564 100644 --- a/gfx/harfbuzz/src/hb-open-type-private.hh +++ b/gfx/harfbuzz/src/hb-open-type.hh @@ -26,13 +26,14 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_OPEN_TYPE_PRIVATE_HH -#define HB_OPEN_TYPE_PRIVATE_HH +#ifndef HB_OPEN_TYPE_HH +#define HB_OPEN_TYPE_HH -#include "hb-private.hh" -#include "hb-blob-private.hh" -#include "hb-face-private.hh" -#include "hb-machinery-private.hh" +#include "hb.hh" +#include "hb-blob.hh" +#include "hb-face.hh" +#include "hb-machinery.hh" +#include "hb-subset.hh" namespace OT { @@ -149,7 +150,7 @@ typedef HBUINT16 NameID; /* Script/language-system/feature index */ struct Index : HBUINT16 { - static const unsigned int NOT_FOUND_INDEX = 0xFFFFu; + enum { NOT_FOUND_INDEX = 0xFFFFu }; }; DECLARE_NULL_NAMESPACE_BYTES (OT, Index); @@ -246,6 +247,19 @@ struct OffsetTo : Offset return * (Type *) Offset::serialize (c, base); } + template + inline void serialize_subset (hb_subset_context_t *c, const T &src, const void *base) + { + if (&src == &Null(T)) + { + this->set (0); + return; + } + serialize (c->serializer, base); + if (!src.subset (c)) + this->set (0); + } + inline bool sanitize (hb_sanitize_context_t *c, const void *base) const { TRACE_SANITIZE (this); @@ -404,7 +418,6 @@ struct ArrayOf if (unlikely (!c->extend (*this))) return_trace (false); return_trace (true); } - inline bool serialize (hb_serialize_context_t *c, Supplier &items, unsigned int items_len) @@ -505,6 +518,17 @@ struct OffsetListOf : OffsetArrayOf return this+this->arrayZ[i]; } + inline bool subset (hb_subset_context_t *c) const + { + TRACE_SUBSET (this); + struct OffsetListOf *out = c->serializer->embed (*this); + if (unlikely (!out)) return_trace (false); + unsigned int count = this->len; + for (unsigned int i = 0; i < count; i++) + out->arrayZ[i].serialize_subset (c, (*this)[i], out); + return_trace (true); + } + inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); @@ -646,4 +670,4 @@ struct BinSearchArrayOf : SortedArrayOf {}; } /* namespace OT */ -#endif /* HB_OPEN_TYPE_PRIVATE_HH */ +#endif /* HB_OPEN_TYPE_HH */ diff --git a/gfx/harfbuzz/src/hb-ot-cmap-table.hh b/gfx/harfbuzz/src/hb-ot-cmap-table.hh index 67a9c7dd96b0..e6876d12cf67 100644 --- a/gfx/harfbuzz/src/hb-ot-cmap-table.hh +++ b/gfx/harfbuzz/src/hb-ot-cmap-table.hh @@ -27,9 +27,8 @@ #ifndef HB_OT_CMAP_TABLE_HH #define HB_OT_CMAP_TABLE_HH -#include "hb-open-type-private.hh" -#include "hb-set-private.hh" -#include "hb-subset-plan.hh" +#include "hb-open-type.hh" +#include "hb-set.hh" /* * cmap -- Character to Glyph Index Mapping @@ -37,10 +36,6 @@ */ #define HB_OT_TAG_cmap HB_TAG('c','m','a','p') -#ifndef HB_MAX_UNICODE_CODEPOINT_VALUE -#define HB_MAX_UNICODE_CODEPOINT_VALUE 0x10FFFF -#endif - namespace OT { @@ -54,6 +49,12 @@ struct CmapSubtableFormat0 *glyph = gid; return true; } + inline void collect_unicodes (hb_set_t *out) const + { + for (unsigned int i = 0; i < 256; i++) + if (glyphIdArray[i]) + out->add (i); + } inline bool sanitize (hb_sanitize_context_t *c) const { @@ -237,15 +238,14 @@ struct CmapSubtableFormat4 glyphIdArray = idRangeOffset + segCount; glyphIdArrayLength = (subtable->length - 16 - 8 * segCount) / 2; } + inline void fini (void) {} - static inline bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyph) + inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const { - const accelerator_t *thiz = (const accelerator_t *) obj; - /* Custom two-array bsearch. */ - int min = 0, max = (int) thiz->segCount - 1; - const HBUINT16 *startCount = thiz->startCount; - const HBUINT16 *endCount = thiz->endCount; + int min = 0, max = (int) this->segCount - 1; + const HBUINT16 *startCount = this->startCount; + const HBUINT16 *endCount = this->endCount; unsigned int i; while (min <= max) { @@ -264,33 +264,55 @@ struct CmapSubtableFormat4 found: hb_codepoint_t gid; - unsigned int rangeOffset = thiz->idRangeOffset[i]; + unsigned int rangeOffset = this->idRangeOffset[i]; if (rangeOffset == 0) - gid = codepoint + thiz->idDelta[i]; + gid = codepoint + this->idDelta[i]; else { /* Somebody has been smoking... */ - unsigned int index = rangeOffset / 2 + (codepoint - thiz->startCount[i]) + i - thiz->segCount; - if (unlikely (index >= thiz->glyphIdArrayLength)) + unsigned int index = rangeOffset / 2 + (codepoint - this->startCount[i]) + i - this->segCount; + if (unlikely (index >= this->glyphIdArrayLength)) return false; - gid = thiz->glyphIdArray[index]; + gid = this->glyphIdArray[index]; if (unlikely (!gid)) return false; - gid += thiz->idDelta[i]; + gid += this->idDelta[i]; } - - *glyph = gid & 0xFFFFu; + gid &= 0xFFFFu; + if (!gid) + return false; + *glyph = gid; return true; } - - static inline void get_all_codepoints_func (const void *obj, hb_set_t *out) + static inline bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyph) { - const accelerator_t *thiz = (const accelerator_t *) obj; - for (unsigned int i = 0; i < thiz->segCount; i++) + return ((const accelerator_t *) obj)->get_glyph (codepoint, glyph); + } + inline void collect_unicodes (hb_set_t *out) const + { + unsigned int count = this->segCount; + if (count && this->startCount[count - 1] == 0xFFFFu) + count--; /* Skip sentinel segment. */ + for (unsigned int i = 0; i < count; i++) { - if (thiz->startCount[i] != 0xFFFFu - || thiz->endCount[i] != 0xFFFFu) // Skip the last segment (0xFFFF) - hb_set_add_range (out, thiz->startCount[i], thiz->endCount[i]); + unsigned int rangeOffset = this->idRangeOffset[i]; + if (rangeOffset == 0) + out->add_range (this->startCount[i], this->endCount[i]); + else + { + for (hb_codepoint_t codepoint = this->startCount[i]; + codepoint <= this->endCount[i]; + codepoint++) + { + unsigned int index = rangeOffset / 2 + (codepoint - this->startCount[i]) + i - this->segCount; + if (unlikely (index >= this->glyphIdArrayLength)) + break; + hb_codepoint_t gid = this->glyphIdArray[index]; + if (unlikely (!gid)) + continue; + out->add (codepoint); + } + } } } @@ -305,10 +327,14 @@ struct CmapSubtableFormat4 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const { - accelerator_t accel; - accel.init (this); + hb_auto_t accel (this); return accel.get_glyph_func (&accel, codepoint, glyph); } + inline void collect_unicodes (hb_set_t *out) const + { + hb_auto_t accel (this); + accel.collect_unicodes (out); + } inline bool sanitize (hb_sanitize_context_t *c) const { @@ -383,7 +409,7 @@ struct CmapSubtableLongGroup HBUINT32 startCharCode; /* First character code in this group. */ HBUINT32 endCharCode; /* Last character code in this group. */ HBUINT32 glyphID; /* Glyph index; interpretation depends on - * subtable format. */ + * subtable format. */ public: DEFINE_SIZE_STATIC (12); }; @@ -400,6 +426,14 @@ struct CmapSubtableTrimmed *glyph = gid; return true; } + inline void collect_unicodes (hb_set_t *out) const + { + hb_codepoint_t start = startCharCode; + unsigned int count = glyphIdArray.len; + for (unsigned int i = 0; i < count; i++) + if (glyphIdArray[i]) + out->add (start + i); + } inline bool sanitize (hb_sanitize_context_t *c) const { @@ -432,18 +466,19 @@ struct CmapSubtableLongSegmented int i = groups.bsearch (codepoint); if (i == -1) return false; - *glyph = T::group_get_glyph (groups[i], codepoint); + hb_codepoint_t gid = T::group_get_glyph (groups[i], codepoint); + if (!gid) + return false; + *glyph = gid; return true; } - inline void get_all_codepoints (hb_set_t *out) const + inline void collect_unicodes (hb_set_t *out) const { for (unsigned int i = 0; i < this->groups.len; i++) { - hb_set_add_range (out, - MIN ((unsigned int) this->groups[i].startCharCode, - (unsigned int) HB_MAX_UNICODE_CODEPOINT_VALUE), - MIN ((unsigned int) this->groups[i].endCharCode, - (unsigned int) HB_MAX_UNICODE_CODEPOINT_VALUE)); + out->add_range (this->groups[i].startCharCode, + MIN ((hb_codepoint_t) this->groups[i].endCharCode, + (hb_codepoint_t) HB_UNICODE_MAX)); } } @@ -574,13 +609,29 @@ struct UnicodeValueRange } HBUINT24 startUnicodeValue; /* First value in this range. */ - HBUINT8 additionalCount; /* Number of additional values in this + HBUINT8 additionalCount; /* Number of additional values in this * range. */ public: DEFINE_SIZE_STATIC (4); }; -typedef SortedArrayOf DefaultUVS; +struct DefaultUVS : SortedArrayOf +{ + inline void collect_unicodes (hb_set_t *out) const + { + unsigned int count = len; + for (unsigned int i = 0; i < count; i++) + { + hb_codepoint_t first = arrayZ[i].startUnicodeValue; + hb_codepoint_t last = MIN ((hb_codepoint_t) (first + arrayZ[i].additionalCount), + (hb_codepoint_t) HB_UNICODE_MAX); + out->add_range (first, last); + } + } + + public: + DEFINE_SIZE_ARRAY (4, arrayZ); +}; struct UVSMapping { @@ -601,7 +652,18 @@ struct UVSMapping DEFINE_SIZE_STATIC (5); }; -typedef SortedArrayOf NonDefaultUVS; +struct NonDefaultUVS : SortedArrayOf +{ + inline void collect_unicodes (hb_set_t *out) const + { + unsigned int count = len; + for (unsigned int i = 0; i < count; i++) + out->add (arrayZ[i].glyphID); + } + + public: + DEFINE_SIZE_ARRAY (4, arrayZ); +}; struct VariationSelectorRecord { @@ -616,7 +678,7 @@ struct VariationSelectorRecord return GLYPH_VARIANT_USE_DEFAULT; const NonDefaultUVS &nonDefaults = base+nonDefaultUVS; i = nonDefaults.bsearch (codepoint); - if (i != -1) + if (i != -1 && nonDefaults[i].glyphID) { *glyph = nonDefaults[i].glyphID; return GLYPH_VARIANT_FOUND; @@ -624,6 +686,12 @@ struct VariationSelectorRecord return GLYPH_VARIANT_NOT_FOUND; } + inline void collect_unicodes (hb_set_t *out, const void *base) const + { + (base+defaultUVS).collect_unicodes (out); + (base+nonDefaultUVS).collect_unicodes (out); + } + inline int cmp (const hb_codepoint_t &variation_selector) const { return varSelector.cmp (variation_selector); @@ -652,7 +720,19 @@ struct CmapSubtableFormat14 hb_codepoint_t variation_selector, hb_codepoint_t *glyph) const { - return record[record.bsearch(variation_selector)].get_glyph (codepoint, glyph, this); + return record[record.bsearch (variation_selector)].get_glyph (codepoint, glyph, this); + } + + inline void collect_variation_selectors (hb_set_t *out) const + { + unsigned int count = record.len; + for (unsigned int i = 0; i < count; i++) + out->add (record.arrayZ[i].varSelector); + } + inline void collect_variation_unicodes (hb_codepoint_t variation_selector, + hb_set_t *out) const + { + record[record.bsearch (variation_selector)].collect_unicodes (out, this); } inline bool sanitize (hb_sanitize_context_t *c) const @@ -690,6 +770,19 @@ struct CmapSubtable default: return false; } } + inline void collect_unicodes (hb_set_t *out) const + { + switch (u.format) { + case 0: u.format0 .collect_unicodes (out); return; + case 4: u.format4 .collect_unicodes (out); return; + case 6: u.format6 .collect_unicodes (out); return; + case 10: u.format10.collect_unicodes (out); return; + case 12: u.format12.collect_unicodes (out); return; + case 13: u.format13.collect_unicodes (out); return; + case 14: + default: return; + } + } inline bool sanitize (hb_sanitize_context_t *c) const { @@ -754,7 +847,8 @@ struct cmap { static const hb_tag_t tableTag = HB_OT_TAG_cmap; - struct subset_plan { + struct subset_plan + { subset_plan(void) { format4_segments.init(); @@ -895,33 +989,44 @@ struct cmap return result; } + const CmapSubtable *find_best_subtable (bool *symbol = nullptr) const + { + if (symbol) *symbol = false; + + const CmapSubtable *subtable; + + /* 32-bit subtables. */ + if ((subtable = this->find_subtable (3, 10))) return subtable; + if ((subtable = this->find_subtable (0, 6))) return subtable; + if ((subtable = this->find_subtable (0, 4))) return subtable; + + /* 16-bit subtables. */ + if ((subtable = this->find_subtable (3, 1))) return subtable; + if ((subtable = this->find_subtable (0, 3))) return subtable; + if ((subtable = this->find_subtable (0, 2))) return subtable; + if ((subtable = this->find_subtable (0, 1))) return subtable; + if ((subtable = this->find_subtable (0, 0))) return subtable; + + /* Symbol subtable. */ + if ((subtable = this->find_subtable (3, 0))) + { + if (symbol) *symbol = true; + return subtable; + } + + /* Meh. */ + return &Null(CmapSubtable); + } + struct accelerator_t { inline void init (hb_face_t *face) { this->blob = hb_sanitize_context_t().reference_table (face); const cmap *table = this->blob->as (); - const CmapSubtable *subtable = nullptr; const CmapSubtableFormat14 *subtable_uvs = nullptr; - - bool symbol = false; - /* 32-bit subtables. */ - if (!subtable) subtable = table->find_subtable (3, 10); - if (!subtable) subtable = table->find_subtable (0, 6); - if (!subtable) subtable = table->find_subtable (0, 4); - /* 16-bit subtables. */ - if (!subtable) subtable = table->find_subtable (3, 1); - if (!subtable) subtable = table->find_subtable (0, 3); - if (!subtable) subtable = table->find_subtable (0, 2); - if (!subtable) subtable = table->find_subtable (0, 1); - if (!subtable) subtable = table->find_subtable (0, 0); - if (!subtable) - { - subtable = table->find_subtable (3, 0); - if (subtable) symbol = true; - } - /* Meh. */ - if (!subtable) subtable = &Null(CmapSubtable); + bool symbol; + subtable = table->find_best_subtable (&symbol); /* UVS subtable. */ if (!subtable_uvs) @@ -933,30 +1038,26 @@ struct cmap /* Meh. */ if (!subtable_uvs) subtable_uvs = &Null(CmapSubtableFormat14); - this->uvs_table = subtable_uvs; + this->subtable_uvs = subtable_uvs; this->get_glyph_data = subtable; if (unlikely (symbol)) { this->get_glyph_func = get_glyph_from_symbol; - this->get_all_codepoints_func = null_get_all_codepoints_func; } else { switch (subtable->u.format) { /* Accelerate format 4 and format 12. */ default: this->get_glyph_func = get_glyph_from; - this->get_all_codepoints_func = null_get_all_codepoints_func; break; case 12: this->get_glyph_func = get_glyph_from; - this->get_all_codepoints_func = get_all_codepoints_from; break; case 4: { this->format4_accel.init (&subtable->u.format4); this->get_glyph_data = &this->format4_accel; this->get_glyph_func = this->format4_accel.get_glyph_func; - this->get_all_codepoints_func = this->format4_accel.get_all_codepoints_func; } break; } @@ -978,9 +1079,9 @@ struct cmap hb_codepoint_t variation_selector, hb_codepoint_t *glyph) const { - switch (this->uvs_table->get_glyph_variant (unicode, - variation_selector, - glyph)) + switch (this->subtable_uvs->get_glyph_variant (unicode, + variation_selector, + glyph)) { case GLYPH_VARIANT_NOT_FOUND: return false; case GLYPH_VARIANT_FOUND: return true; @@ -990,22 +1091,24 @@ struct cmap return get_nominal_glyph (unicode, glyph); } - inline void get_all_codepoints (hb_set_t *out) const + inline void collect_unicodes (hb_set_t *out) const { - this->get_all_codepoints_func (get_glyph_data, out); + subtable->collect_unicodes (out); + } + inline void collect_variation_selectors (hb_set_t *out) const + { + subtable_uvs->collect_variation_selectors (out); + } + inline void collect_variation_unicodes (hb_codepoint_t variation_selector, + hb_set_t *out) const + { + subtable_uvs->collect_variation_unicodes (variation_selector, out); } protected: typedef bool (*hb_cmap_get_glyph_func_t) (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyph); - typedef void (*hb_cmap_get_all_codepoints_func_t) (const void *obj, - hb_set_t *out); - - static inline void null_get_all_codepoints_func (const void *obj, hb_set_t *out) - { - // NOOP - } template static inline bool get_glyph_from (const void *obj, @@ -1016,14 +1119,6 @@ struct cmap return typed_obj->get_glyph (codepoint, glyph); } - template - static inline void get_all_codepoints_from (const void *obj, - hb_set_t *out) - { - const Type *typed_obj = (const Type *) obj; - typed_obj->get_all_codepoints (out); - } - template static inline bool get_glyph_from_symbol (const void *obj, hb_codepoint_t codepoint, @@ -1047,13 +1142,14 @@ struct cmap } private: + const CmapSubtable *subtable; + const CmapSubtableFormat14 *subtable_uvs; + hb_cmap_get_glyph_func_t get_glyph_func; const void *get_glyph_data; - hb_cmap_get_all_codepoints_func_t get_all_codepoints_func; CmapSubtableFormat4::accelerator_t format4_accel; - const CmapSubtableFormat14 *uvs_table; hb_blob_t *blob; }; @@ -1066,10 +1162,7 @@ struct cmap key.platformID.set (platform_id); key.encodingID.set (encoding_id); - /* Note: We can use bsearch, but since it has no performance - * implications, we use lsearch and as such accept fonts with - * unsorted subtable list. */ - int result = encodingRecord./*bsearch*/lsearch (key); + int result = encodingRecord.bsearch (key); if (result == -1 || !encodingRecord[result].subtable) return nullptr; @@ -1084,6 +1177,7 @@ struct cmap DEFINE_SIZE_ARRAY (4, encodingRecord); }; +struct cmap_accelerator_t : cmap::accelerator_t {}; } /* namespace OT */ diff --git a/gfx/harfbuzz/src/hb-ot-color-cbdt-table.hh b/gfx/harfbuzz/src/hb-ot-color-cbdt-table.hh index 21c2f4773667..8bedf2224a08 100644 --- a/gfx/harfbuzz/src/hb-ot-color-cbdt-table.hh +++ b/gfx/harfbuzz/src/hb-ot-color-cbdt-table.hh @@ -27,7 +27,7 @@ #ifndef HB_OT_COLOR_CBDT_TABLE_HH #define HB_OT_COLOR_CBDT_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * CBLC -- Color Bitmap Location @@ -533,6 +533,8 @@ struct CBDT DEFINE_SIZE_ARRAY(4, dataZ); }; +struct CBDT_accelerator_t : CBDT::accelerator_t {}; + } /* namespace OT */ #endif /* HB_OT_COLOR_CBDT_TABLE_HH */ diff --git a/gfx/harfbuzz/src/hb-ot-color-colr-table.hh b/gfx/harfbuzz/src/hb-ot-color-colr-table.hh index ce6702d2ad35..070226f18e2e 100644 --- a/gfx/harfbuzz/src/hb-ot-color-colr-table.hh +++ b/gfx/harfbuzz/src/hb-ot-color-colr-table.hh @@ -25,7 +25,7 @@ #ifndef HB_OT_COLOR_COLR_TABLE_HH #define HB_OT_COLOR_COLR_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * COLR -- Color diff --git a/gfx/harfbuzz/src/hb-ot-color-cpal-table.hh b/gfx/harfbuzz/src/hb-ot-color-cpal-table.hh index 2c312748d3b5..2c9fced093ed 100644 --- a/gfx/harfbuzz/src/hb-ot-color-cpal-table.hh +++ b/gfx/harfbuzz/src/hb-ot-color-cpal-table.hh @@ -28,7 +28,7 @@ #ifndef HB_OT_COLOR_CPAL_TABLE_HH #define HB_OT_COLOR_CPAL_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* diff --git a/gfx/harfbuzz/src/hb-ot-color-sbix-table.hh b/gfx/harfbuzz/src/hb-ot-color-sbix-table.hh index 0461afa3298d..1b643c77a59c 100644 --- a/gfx/harfbuzz/src/hb-ot-color-sbix-table.hh +++ b/gfx/harfbuzz/src/hb-ot-color-sbix-table.hh @@ -25,7 +25,7 @@ #ifndef HB_OT_COLOR_SBIX_TABLE_HH #define HB_OT_COLOR_SBIX_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * sbix -- Standard Bitmap Graphics diff --git a/gfx/harfbuzz/src/hb-ot-color-svg-table.hh b/gfx/harfbuzz/src/hb-ot-color-svg-table.hh index 3976694f8449..ad9162f7c7d2 100644 --- a/gfx/harfbuzz/src/hb-ot-color-svg-table.hh +++ b/gfx/harfbuzz/src/hb-ot-color-svg-table.hh @@ -25,7 +25,7 @@ #ifndef HB_OT_COLOR_SVG_TABLE_HH #define HB_OT_COLOR_SVG_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * SVG -- SVG (Scalable Vector Graphics) diff --git a/gfx/harfbuzz/src/hb-ot-color.cc b/gfx/harfbuzz/src/hb-ot-color.cc index 86171c63353c..7cdff380ef2a 100644 --- a/gfx/harfbuzz/src/hb-ot-color.cc +++ b/gfx/harfbuzz/src/hb-ot-color.cc @@ -25,7 +25,7 @@ * Google Author(s): Sascha Brawer */ -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" #include "hb-ot-color-colr-table.hh" #include "hb-ot-color-cpal-table.hh" #include "hb-ot.h" @@ -33,8 +33,8 @@ #include #include -#include "hb-ot-layout-private.hh" -#include "hb-shaper-private.hh" +#include "hb-ot-layout.hh" +#include "hb-shaper.hh" #if 0 HB_MARK_AS_FLAG_T (hb_ot_color_palette_flags_t) @@ -45,16 +45,14 @@ static inline const OT::COLR& _get_colr (hb_face_t *face) { if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return Null(OT::COLR); - hb_ot_layout_t * layout = hb_ot_layout_from_face (face); - return *(layout->colr.get ()); + return *(hb_ot_face_data (face)->colr.get ()); } static inline const OT::CPAL& _get_cpal (hb_face_t *face) { if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return Null(OT::CPAL); - hb_ot_layout_t * layout = hb_ot_layout_from_face (face); - return *(layout->cpal.get ()); + return *(hb_ot_face_data (face)->cpal.get ()); } diff --git a/gfx/harfbuzz/src/hb-ot-face.cc b/gfx/harfbuzz/src/hb-ot-face.cc new file mode 100644 index 000000000000..388a59720584 --- /dev/null +++ b/gfx/harfbuzz/src/hb-ot-face.cc @@ -0,0 +1,76 @@ +/* + * Copyright © 2018 Google, Inc. + * + * This is part of HarfBuzz, a text shaping library. + * + * Permission is hereby granted, without written agreement and without + * license or royalty fees, to use, copy, modify, and distribute this + * software and its documentation for any purpose, provided that the + * above copyright notice and the following two paragraphs appear in + * all copies of this software. + * + * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR + * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES + * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN + * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * + * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS + * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * Google Author(s): Behdad Esfahbod + */ + +#include "hb-ot-face.hh" + +#include "hb-ot-cmap-table.hh" +#include "hb-ot-glyf-table.hh" +#include "hb-ot-hmtx-table.hh" +#include "hb-ot-kern-table.hh" +#include "hb-ot-post-table.hh" +#include "hb-ot-color-cbdt-table.hh" +#include "hb-ot-layout-gdef-table.hh" +#include "hb-ot-layout-gsub-table.hh" +#include "hb-ot-layout-gpos-table.hh" + + +void hb_ot_face_data_t::init0 (hb_face_t *face) +{ + this->face = face; +#define HB_OT_LAYOUT_TABLE(Namespace, Type) Type.init0 (); +#define HB_OT_LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOUT_TABLE (Namespace, Type) + HB_OT_LAYOUT_TABLES +#undef HB_OT_LAYOUT_ACCELERATOR +#undef HB_OT_LAYOUT_TABLE +} +void hb_ot_face_data_t::fini (void) +{ +#define HB_OT_LAYOUT_TABLE(Namespace, Type) Type.fini (); +#define HB_OT_LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOUT_TABLE (Namespace, Type) + HB_OT_LAYOUT_TABLES +#undef HB_OT_LAYOUT_ACCELERATOR +#undef HB_OT_LAYOUT_TABLE +} + +hb_ot_face_data_t * +_hb_ot_face_data_create (hb_face_t *face) +{ + hb_ot_face_data_t *data = (hb_ot_face_data_t *) calloc (1, sizeof (hb_ot_face_data_t)); + if (unlikely (!data)) + return nullptr; + + data->init0 (face); + + return data; +} + +void +_hb_ot_face_data_destroy (hb_ot_face_data_t *data) +{ + data->fini (); + free (data); +} + diff --git a/gfx/harfbuzz/src/hb-ot-face.hh b/gfx/harfbuzz/src/hb-ot-face.hh new file mode 100644 index 000000000000..5ac3538e44dd --- /dev/null +++ b/gfx/harfbuzz/src/hb-ot-face.hh @@ -0,0 +1,116 @@ +/* + * Copyright © 2007,2008,2009 Red Hat, Inc. + * Copyright © 2012,2013 Google, Inc. + * + * This is part of HarfBuzz, a text shaping library. + * + * Permission is hereby granted, without written agreement and without + * license or royalty fees, to use, copy, modify, and distribute this + * software and its documentation for any purpose, provided that the + * above copyright notice and the following two paragraphs appear in + * all copies of this software. + * + * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR + * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES + * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN + * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * + * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, + * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS + * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * Red Hat Author(s): Behdad Esfahbod + * Google Author(s): Behdad Esfahbod + */ + +#ifndef HB_OT_FACE_HH +#define HB_OT_FACE_HH + +#include "hb.hh" + +#include "hb-machinery.hh" + + +#define hb_ot_face_data(face) ((hb_ot_face_data_t *) face->shaper_data.ot.get_relaxed ()) + + +/* + * hb_ot_face_data_t + */ + +/* Most of these tables are NOT needed for shaping. But we need to hook them *somewhere*. + * This is as good as any place. */ +#define HB_OT_LAYOUT_TABLES \ + /* OpenType shaping. */ \ + HB_OT_LAYOUT_TABLE(OT, JSTF) \ + HB_OT_LAYOUT_TABLE(OT, BASE) \ + /* AAT shaping. */ \ + HB_OT_LAYOUT_TABLE(AAT, morx) \ + HB_OT_LAYOUT_TABLE(AAT, kerx) \ + HB_OT_LAYOUT_TABLE(AAT, ankr) \ + HB_OT_LAYOUT_TABLE(AAT, trak) \ + /* OpenType variations. */ \ + HB_OT_LAYOUT_TABLE(OT, fvar) \ + HB_OT_LAYOUT_TABLE(OT, avar) \ + HB_OT_LAYOUT_TABLE(OT, MVAR) \ + /* OpenType math. */ \ + HB_OT_LAYOUT_TABLE(OT, MATH) \ + /* OpenType fundamentals. */ \ + HB_OT_LAYOUT_ACCELERATOR(OT, GDEF) \ + HB_OT_LAYOUT_ACCELERATOR(OT, GSUB) \ + HB_OT_LAYOUT_ACCELERATOR(OT, GPOS) \ + HB_OT_LAYOUT_ACCELERATOR(OT, cmap) \ + HB_OT_LAYOUT_ACCELERATOR(OT, hmtx) \ + HB_OT_LAYOUT_ACCELERATOR(OT, vmtx) \ + HB_OT_LAYOUT_ACCELERATOR(OT, post) \ + HB_OT_LAYOUT_ACCELERATOR(OT, kern) \ + HB_OT_LAYOUT_ACCELERATOR(OT, glyf) \ + HB_OT_LAYOUT_ACCELERATOR(OT, CBDT) \ + /* */ + +/* Declare tables. */ +#define HB_OT_LAYOUT_TABLE(Namespace, Type) namespace Namespace { struct Type; } +#define HB_OT_LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOUT_TABLE (Namespace, Type##_accelerator_t) +HB_OT_LAYOUT_TABLES +#undef HB_OT_LAYOUT_ACCELERATOR +#undef HB_OT_LAYOUT_TABLE + +struct hb_ot_face_data_t +{ + HB_INTERNAL void init0 (hb_face_t *face); + HB_INTERNAL void fini (void); + +#define HB_OT_LAYOUT_TABLE_ORDER(Namespace, Type) \ + HB_PASTE (ORDER_, HB_PASTE (Namespace, HB_PASTE (_, Type))) + enum order_t + { + ORDER_ZERO, +#define HB_OT_LAYOUT_TABLE(Namespace, Type) HB_OT_LAYOUT_TABLE_ORDER (Namespace, Type), +#define HB_OT_LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOUT_TABLE (Namespace, Type) + HB_OT_LAYOUT_TABLES +#undef HB_OT_LAYOUT_ACCELERATOR +#undef HB_OT_LAYOUT_TABLE + }; + + hb_face_t *face; /* MUST be JUST before the lazy loaders. */ +#define HB_OT_LAYOUT_TABLE(Namespace, Type) \ + hb_table_lazy_loader_t Type; +#define HB_OT_LAYOUT_ACCELERATOR(Namespace, Type) \ + hb_face_lazy_loader_t Type; + HB_OT_LAYOUT_TABLES +#undef HB_OT_LAYOUT_ACCELERATOR +#undef HB_OT_LAYOUT_TABLE +}; + + +HB_INTERNAL hb_ot_face_data_t * +_hb_ot_face_data_create (hb_face_t *face); + +HB_INTERNAL void +_hb_ot_face_data_destroy (hb_ot_face_data_t *data); + + +#endif /* HB_OT_FACE_HH */ diff --git a/gfx/harfbuzz/src/hb-ot-font.cc b/gfx/harfbuzz/src/hb-ot-font.cc index 9da8fc7d497b..a4c5584fbd95 100644 --- a/gfx/harfbuzz/src/hb-ot-font.cc +++ b/gfx/harfbuzz/src/hb-ot-font.cc @@ -24,84 +24,22 @@ * Google Author(s): Behdad Esfahbod, Roozbeh Pournader */ -#include "hb-private.hh" +#include "hb.hh" #include "hb-ot.h" -#include "hb-font-private.hh" -#include "hb-machinery-private.hh" +#include "hb-font.hh" +#include "hb-machinery.hh" +#include "hb-ot-face.hh" #include "hb-ot-cmap-table.hh" -#include "hb-ot-glyf-table.hh" #include "hb-ot-hmtx-table.hh" #include "hb-ot-kern-table.hh" #include "hb-ot-post-table.hh" - +#include "hb-ot-glyf-table.hh" #include "hb-ot-color-cbdt-table.hh" -struct hb_ot_font_t -{ - inline void init (hb_face_t *face) - { - cmap.init (face); - h_metrics.init (face); - v_metrics.init (face, h_metrics.ascender - h_metrics.descender); /* TODO Can we do this lazily? */ - - this->face = face; - glyf.init (); - cbdt.init (); - post.init (); - kern.init (); - } - inline void fini (void) - { - cmap.fini (); - h_metrics.fini (); - v_metrics.fini (); - - glyf.fini (); - cbdt.fini (); - post.fini (); - kern.fini (); - } - - OT::cmap::accelerator_t cmap; - OT::hmtx::accelerator_t h_metrics; - OT::vmtx::accelerator_t v_metrics; - - hb_face_t *face; /* MUST be JUST before the lazy loaders. */ - hb_face_lazy_loader_t<1, OT::glyf::accelerator_t> glyf; - hb_face_lazy_loader_t<2, OT::CBDT::accelerator_t> cbdt; - hb_face_lazy_loader_t<3, OT::post::accelerator_t> post; - hb_face_lazy_loader_t<4, OT::kern::accelerator_t> kern; -}; - - -static hb_ot_font_t * -_hb_ot_font_create (hb_face_t *face) -{ - hb_ot_font_t *ot_font = (hb_ot_font_t *) calloc (1, sizeof (hb_ot_font_t)); - - if (unlikely (!ot_font)) - return nullptr; - - ot_font->init (face); - - return ot_font; -} - -static void -_hb_ot_font_destroy (void *data) -{ - hb_ot_font_t *ot_font = (hb_ot_font_t *) data; - - ot_font->fini (); - - free (ot_font); -} - - static hb_bool_t hb_ot_get_nominal_glyph (hb_font_t *font HB_UNUSED, void *font_data, @@ -110,8 +48,8 @@ hb_ot_get_nominal_glyph (hb_font_t *font HB_UNUSED, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - return ot_font->cmap.get_nominal_glyph (unicode, glyph); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + return ot_font->cmap.get_relaxed()->get_nominal_glyph (unicode, glyph); } static hb_bool_t @@ -122,8 +60,8 @@ hb_ot_get_variation_glyph (hb_font_t *font HB_UNUSED, hb_codepoint_t *glyph, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - return ot_font->cmap.get_variation_glyph (unicode, variation_selector, glyph); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + return ot_font->cmap.get_relaxed ()->get_variation_glyph (unicode, variation_selector, glyph); } static hb_position_t @@ -132,8 +70,8 @@ hb_ot_get_glyph_h_advance (hb_font_t *font, hb_codepoint_t glyph, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - return font->em_scale_x (ot_font->h_metrics.get_advance (glyph, font)); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + return font->em_scale_x (ot_font->hmtx.get_relaxed ()->get_advance (glyph, font)); } static hb_position_t @@ -142,8 +80,8 @@ hb_ot_get_glyph_v_advance (hb_font_t *font, hb_codepoint_t glyph, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - return font->em_scale_y (-(int) ot_font->v_metrics.get_advance (glyph, font)); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + return font->em_scale_y (-(int) ot_font->vmtx.get_relaxed ()->get_advance (glyph, font)); } static hb_position_t @@ -153,7 +91,7 @@ hb_ot_get_glyph_h_kerning (hb_font_t *font, hb_codepoint_t right_glyph, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; return font->em_scale_x (ot_font->kern->get_h_kerning (left_glyph, right_glyph)); } @@ -164,10 +102,10 @@ hb_ot_get_glyph_extents (hb_font_t *font, hb_glyph_extents_t *extents, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; bool ret = ot_font->glyf->get_extents (glyph, extents); if (!ret) - ret = ot_font->cbdt->get_extents (glyph, extents); + ret = ot_font->CBDT->get_extents (glyph, extents); // TODO Hook up side-bearings variations. extents->x_bearing = font->em_scale_x (extents->x_bearing); extents->y_bearing = font->em_scale_y (extents->y_bearing); @@ -183,7 +121,7 @@ hb_ot_get_glyph_name (hb_font_t *font HB_UNUSED, char *name, unsigned int size, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; return ot_font->post->get_glyph_name (glyph, name, size); } @@ -194,7 +132,7 @@ hb_ot_get_glyph_from_name (hb_font_t *font HB_UNUSED, hb_codepoint_t *glyph, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; return ot_font->post->get_glyph_from_name (name, len, glyph); } @@ -204,12 +142,12 @@ hb_ot_get_font_h_extents (hb_font_t *font, hb_font_extents_t *metrics, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - metrics->ascender = font->em_scale_y (ot_font->h_metrics.ascender); - metrics->descender = font->em_scale_y (ot_font->h_metrics.descender); - metrics->line_gap = font->em_scale_y (ot_font->h_metrics.line_gap); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + metrics->ascender = font->em_scale_y (ot_font->hmtx.get_relaxed ()->ascender); + metrics->descender = font->em_scale_y (ot_font->hmtx.get_relaxed ()->descender); + metrics->line_gap = font->em_scale_y (ot_font->hmtx.get_relaxed ()->line_gap); // TODO Hook up variations. - return ot_font->h_metrics.has_font_extents; + return ot_font->hmtx.get_relaxed ()->has_font_extents; } static hb_bool_t @@ -218,16 +156,17 @@ hb_ot_get_font_v_extents (hb_font_t *font, hb_font_extents_t *metrics, void *user_data HB_UNUSED) { - const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data; - metrics->ascender = font->em_scale_x (ot_font->v_metrics.ascender); - metrics->descender = font->em_scale_x (ot_font->v_metrics.descender); - metrics->line_gap = font->em_scale_x (ot_font->v_metrics.line_gap); + const hb_ot_face_data_t *ot_font = (const hb_ot_face_data_t *) font_data; + metrics->ascender = font->em_scale_x (ot_font->vmtx.get_relaxed ()->ascender); + metrics->descender = font->em_scale_x (ot_font->vmtx.get_relaxed ()->descender); + metrics->line_gap = font->em_scale_x (ot_font->vmtx.get_relaxed ()->line_gap); // TODO Hook up variations. - return ot_font->v_metrics.has_font_extents; + return ot_font->vmtx.get_relaxed ()->has_font_extents; } - +#ifdef HB_USE_ATEXIT static void free_static_ot_funcs (void); +#endif static struct hb_ot_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t { @@ -283,12 +222,16 @@ _hb_ot_get_font_funcs (void) void hb_ot_font_set_funcs (hb_font_t *font) { - hb_ot_font_t *ot_font = _hb_ot_font_create (font->face); - if (unlikely (!ot_font)) - return; + if (unlikely (!hb_ot_shaper_face_data_ensure (font->face))) return; + hb_ot_face_data_t *ot_font = hb_ot_face_data (font->face); + + /* Load them lazies. We access them with get_relaxed() for performance. */ + ot_font->cmap.get (); + ot_font->hmtx.get (); + ot_font->vmtx.get (); hb_font_set_funcs (font, _hb_ot_get_font_funcs (), ot_font, - _hb_ot_font_destroy); + nullptr); } diff --git a/gfx/harfbuzz/src/hb-ot-glyf-table.hh b/gfx/harfbuzz/src/hb-ot-glyf-table.hh index bcf89e462470..7c20983603f4 100644 --- a/gfx/harfbuzz/src/hb-ot-glyf-table.hh +++ b/gfx/harfbuzz/src/hb-ot-glyf-table.hh @@ -27,11 +27,9 @@ #ifndef HB_OT_GLYF_TABLE_HH #define HB_OT_GLYF_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" #include "hb-ot-head-table.hh" #include "hb-subset-glyf.hh" -#include "hb-subset-plan.hh" -#include "hb-subset-private.hh" namespace OT { @@ -490,6 +488,8 @@ struct glyf DEFINE_SIZE_ARRAY (0, dataZ); }; +struct glyf_accelerator_t : glyf::accelerator_t {}; + } /* namespace OT */ diff --git a/gfx/harfbuzz/src/hb-ot-hdmx-table.hh b/gfx/harfbuzz/src/hb-ot-hdmx-table.hh index 0951871ce97d..87dd6d018224 100644 --- a/gfx/harfbuzz/src/hb-ot-hdmx-table.hh +++ b/gfx/harfbuzz/src/hb-ot-hdmx-table.hh @@ -27,8 +27,7 @@ #ifndef HB_OT_HDMX_TABLE_HH #define HB_OT_HDMX_TABLE_HH -#include "hb-open-type-private.hh" -#include "hb-subset-plan.hh" +#include "hb-open-type.hh" /* * hdmx -- Horizontal Device Metrics @@ -89,8 +88,13 @@ struct DeviceRecord { TRACE_SERIALIZE (this); - if (unlikely (!c->allocate_size (get_size (subset_view.len())))) + unsigned int size = get_size (subset_view.len()); + if (unlikely (!c->allocate_size (size))) + { + DEBUG_MSG (SUBSET, nullptr, "Couldn't allocate enough space for DeviceRecord: %d.", + size); return_trace (false); + } this->pixel_size.set (subset_view.source_device_record->pixel_size); this->max_width.set (subset_view.source_device_record->max_width); @@ -161,14 +165,14 @@ struct hdmx return_trace (true); } - static inline size_t get_subsetted_size (hb_subset_plan_t *plan) + static inline size_t get_subsetted_size (const hdmx *source_hdmx, hb_subset_plan_t *plan) { - return min_size + DeviceRecord::get_size (plan->glyphs.len); + return min_size + source_hdmx->num_records * DeviceRecord::get_size (plan->glyphs.len); } inline bool subset (hb_subset_plan_t *plan) const { - size_t dest_size = get_subsetted_size (plan); + size_t dest_size = get_subsetted_size (this, plan); hdmx *dest = (hdmx *) malloc (dest_size); if (unlikely (!dest)) { @@ -178,8 +182,10 @@ struct hdmx hb_serialize_context_t c (dest, dest_size); hdmx *hdmx_prime = c.start_serialize (); - if (!hdmx_prime || !hdmx_prime->serialize (&c, this, plan)) { + if (!hdmx_prime || !hdmx_prime->serialize (&c, this, plan)) + { free (dest); + DEBUG_MSG(SUBSET, nullptr, "Failed to serialize write new hdmx."); return false; } c.end_serialize (); diff --git a/gfx/harfbuzz/src/hb-ot-head-table.hh b/gfx/harfbuzz/src/hb-ot-head-table.hh index fded120be28e..602e365ce5d4 100644 --- a/gfx/harfbuzz/src/hb-ot-head-table.hh +++ b/gfx/harfbuzz/src/hb-ot-head-table.hh @@ -29,7 +29,7 @@ #ifndef HB_OT_HEAD_TABLE_HH #define HB_OT_HEAD_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * head -- Font Header diff --git a/gfx/harfbuzz/src/hb-ot-hhea-table.hh b/gfx/harfbuzz/src/hb-ot-hhea-table.hh index efb42b61616f..3336cadd4724 100644 --- a/gfx/harfbuzz/src/hb-ot-hhea-table.hh +++ b/gfx/harfbuzz/src/hb-ot-hhea-table.hh @@ -27,7 +27,7 @@ #ifndef HB_OT_HHEA_TABLE_HH #define HB_OT_HHEA_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * hhea -- Horizontal Header diff --git a/gfx/harfbuzz/src/hb-ot-hmtx-table.hh b/gfx/harfbuzz/src/hb-ot-hmtx-table.hh index 13fa9d6e0922..3e4b3bdef5ce 100644 --- a/gfx/harfbuzz/src/hb-ot-hmtx-table.hh +++ b/gfx/harfbuzz/src/hb-ot-hmtx-table.hh @@ -27,11 +27,10 @@ #ifndef HB_OT_HMTX_TABLE_HH #define HB_OT_HMTX_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" #include "hb-ot-hhea-table.hh" #include "hb-ot-os2-table.hh" #include "hb-ot-var-hvar-table.hh" -#include "hb-subset-plan.hh" /* * hmtx -- Horizontal Metrics @@ -332,6 +331,9 @@ struct vmtx : hmtxvmtx { static const hb_tag_t os2Tag = HB_TAG_NONE; }; +struct hmtx_accelerator_t : hmtx::accelerator_t {}; +struct vmtx_accelerator_t : vmtx::accelerator_t {}; + } /* namespace OT */ diff --git a/gfx/harfbuzz/src/hb-ot-kern-table.hh b/gfx/harfbuzz/src/hb-ot-kern-table.hh index b4d81095282f..40f94be296fa 100644 --- a/gfx/harfbuzz/src/hb-ot-kern-table.hh +++ b/gfx/harfbuzz/src/hb-ot-kern-table.hh @@ -27,7 +27,7 @@ #ifndef HB_OT_KERN_TABLE_HH #define HB_OT_KERN_TABLE_HH -#include "hb-open-type-private.hh" +#include "hb-open-type.hh" /* * kern -- Kerning @@ -390,6 +390,8 @@ struct kern DEFINE_SIZE_UNION (2, major); }; +struct kern_accelerator_t : kern::accelerator_t {}; + } /* namespace OT */ diff --git a/gfx/harfbuzz/src/hb-ot-layout-base-table.hh b/gfx/harfbuzz/src/hb-ot-layout-base-table.hh index 96da07fb5cd8..449e74550e9d 100644 --- a/gfx/harfbuzz/src/hb-ot-layout-base-table.hh +++ b/gfx/harfbuzz/src/hb-ot-layout-base-table.hh @@ -28,8 +28,8 @@ #ifndef HB_OT_LAYOUT_BASE_TABLE_HH #define HB_OT_LAYOUT_BASE_TABLE_HH -#include "hb-open-type-private.hh" -#include "hb-ot-layout-common-private.hh" +#include "hb-open-type.hh" +#include "hb-ot-layout-common.hh" namespace OT { diff --git a/gfx/harfbuzz/src/hb-ot-layout-common-private.hh b/gfx/harfbuzz/src/hb-ot-layout-common.hh similarity index 87% rename from gfx/harfbuzz/src/hb-ot-layout-common-private.hh rename to gfx/harfbuzz/src/hb-ot-layout-common.hh index 89d5eae494f0..dd65f3384947 100644 --- a/gfx/harfbuzz/src/hb-ot-layout-common-private.hh +++ b/gfx/harfbuzz/src/hb-ot-layout-common.hh @@ -26,13 +26,13 @@ * Google Author(s): Behdad Esfahbod */ -#ifndef HB_OT_LAYOUT_COMMON_PRIVATE_HH -#define HB_OT_LAYOUT_COMMON_PRIVATE_HH +#ifndef HB_OT_LAYOUT_COMMON_HH +#define HB_OT_LAYOUT_COMMON_HH -#include "hb-private.hh" -#include "hb-ot-layout-private.hh" -#include "hb-open-type-private.hh" -#include "hb-set-private.hh" +#include "hb.hh" +#include "hb-ot-layout.hh" +#include "hb-open-type.hh" +#include "hb-set.hh" #ifndef HB_MAX_NESTING_LEVEL @@ -97,15 +97,14 @@ struct Record }; template -struct RecordArrayOf : SortedArrayOf > { +struct RecordArrayOf : SortedArrayOf > +{ + inline const OffsetTo& get_offset (unsigned int i) const + { return (*this)[i].offset; } + inline OffsetTo& get_offset (unsigned int i) + { return (*this)[i].offset; } inline const Tag& get_tag (unsigned int i) const - { - /* We cheat slightly and don't define separate Null objects - * for Record types. Instead, we return the correct Null(Tag) - * here. */ - if (unlikely (i >= this->len)) return Null(Tag); - return (*this)[i].tag; - } + { return (*this)[i].tag; } inline unsigned int get_tags (unsigned int start_offset, unsigned int *record_count /* IN/OUT */, hb_tag_t *record_tags /* OUT */) const @@ -136,7 +135,18 @@ template struct RecordListOf : RecordArrayOf { inline const Type& operator [] (unsigned int i) const - { return this+RecordArrayOf::operator [](i).offset; } + { return this+this->get_offset (i); } + + inline bool subset (hb_subset_context_t *c) const + { + TRACE_SUBSET (this); + struct RecordListOf *out = c->serializer->embed (*this); + if (unlikely (!out)) return_trace (false); + unsigned int count = this->len; + for (unsigned int i = 0; i < count; i++) + out->get_offset (i).serialize_subset (c, (*this)[i], out); + return_trace (true); + } inline bool sanitize (hb_sanitize_context_t *c) const { @@ -158,9 +168,8 @@ struct RangeRecord return_trace (c->check_struct (this)); } - inline bool intersects (const hb_set_t *glyphs) const { - return glyphs->intersects (start, end); - } + inline bool intersects (const hb_set_t *glyphs) const + { return glyphs->intersects (start, end); } template inline bool add_coverage (set_t *glyphs) const { @@ -224,6 +233,12 @@ struct LangSys return reqFeatureIndex;; } + inline bool subset (hb_subset_context_t *c) const + { + TRACE_SUBSET (this); + return_trace (c->serializer->embed (*this)); + } + inline bool sanitize (hb_sanitize_context_t *c, const Record::sanitize_closure_t * = nullptr) const { @@ -238,7 +253,7 @@ struct LangSys * = 0xFFFFu */ IndexArray featureIndex; /* Array of indices into the FeatureList */ public: - DEFINE_SIZE_ARRAY (6, featureIndex); + DEFINE_SIZE_ARRAY_SIZED (6, featureIndex); }; DECLARE_NULL_NAMESPACE_BYTES (OT, LangSys); @@ -263,6 +278,18 @@ struct Script inline bool has_default_lang_sys (void) const { return defaultLangSys != 0; } inline const LangSys& get_default_lang_sys (void) const { return this+defaultLangSys; } + inline bool subset (hb_subset_context_t *c) const + { + TRACE_SUBSET (this); + struct Script *out = c->serializer->embed (*this); + if (unlikely (!out)) return_trace (false); + out->defaultLangSys.serialize_subset (c, this+defaultLangSys, out); + unsigned int count = langSys.len; + for (unsigned int i = 0; i < count; i++) + out->langSys.arrayZ[i].offset.serialize_subset (c, this+langSys[i].offset, out); + return_trace (true); + } + inline bool sanitize (hb_sanitize_context_t *c, const Record