Skip to content

Commit 91cf703

Browse files
Merge pull request ricardoquesada#32 from pandamicro/v34
Upgrade to SpiderMonkey v34
2 parents e41b4fe + 87a751e commit 91cf703

File tree

14,700 files changed

+606351
-288311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,700 files changed

+606351
-288311
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ js/src/build-osx/*
5151
js/src/build-linux/*
5252
!js/src/build-android/build.sh
5353
!js/src/build-ios/build.sh
54+
!js/src/build-ios/copy-header.sh
5455
!js/src/build-win32/build.sh
5556
!js/src/build-osx/build.sh
5657
!js/src/build-linux/build.sh

Makefile.in

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ MAKE_SYM_STORE_ARGS := -c --vcs-info
200200
DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
201201
MAKE_SYM_STORE_PATH := $(DIST)/bin
202202
endif
203+
MAKE_SYM_STORE_ARGS += --install-manifest=$(DEPTH)/_build_manifests/install/dist_include,$(DIST)/include
203204

204205
SYM_STORE_SOURCE_DIRS := $(topsrcdir)
205206

@@ -257,19 +258,23 @@ update-packaging:
257258

258259
.PHONY: pretty-package
259260
pretty-package:
260-
$(MAKE) package MOZ_PKG_PRETTYNAMES=1
261+
unset MOZ_SIGN_CMD && $(MAKE) package MOZ_PKG_PRETTYNAMES=1
261262

262263
.PHONY: pretty-package-tests
263264
pretty-package-tests:
264-
$(MAKE) package-tests MOZ_PKG_PRETTYNAMES=1
265+
unset MOZ_SIGN_CMD && $(MAKE) package-tests MOZ_PKG_PRETTYNAMES=1
265266

266267
.PHONY: pretty-l10n-check
267268
pretty-l10n-check:
268-
$(MAKE) l10n-check MOZ_PKG_PRETTYNAMES=1
269+
unset MOZ_SIGN_CMD && $(MAKE) l10n-check MOZ_PKG_PRETTYNAMES=1
269270

270271
.PHONY: pretty-update-packaging
271272
pretty-update-packaging:
272-
$(MAKE) -C tools/update-packaging MOZ_PKG_PRETTYNAMES=1
273+
unset MOZ_SIGN_CMD && $(MAKE) -C tools/update-packaging MOZ_PKG_PRETTYNAMES=1
274+
275+
.PHONY: pretty-installer
276+
pretty-installer:
277+
unset MOZ_SIGN_CMD && $(MAKE) installer MOZ_PKG_PRETTYNAMES=1
273278

274279
#XXX: this is a hack, since we don't want to clobber for MSVC
275280
# PGO support, but we can't do this test in client.mk
@@ -313,6 +318,28 @@ endif
313318
# Interdependencies for parallel export.
314319
js/xpconnect/src/export: dom/bindings/export xpcom/xpidl/export
315320
accessible/xpcom/export: xpcom/xpidl/export
321+
322+
# The widget binding generator code is part of the annotationProcessors.
323+
widget/android/bindings/export: build/annotationProcessors/export
324+
316325
ifdef ENABLE_CLANG_PLUGIN
317-
js/src/export config/export: build/clang-plugin/export
326+
js/src/export config/host: build/clang-plugin/export
327+
endif
328+
329+
# Interdependencies that moz.build world don't know about yet for compilation.
330+
# Note some others are hardcoded or "guessed" in recursivemake.py and emitter.py
331+
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk3)
332+
toolkit/library/target: widget/gtk/mozgtk/gtk3/target
333+
endif
334+
ifdef MOZ_LDAP_XPCOM
335+
ldap/target: config/external/nss/target mozglue/build/target
336+
toolkit/library/target: ldap/target
337+
endif
338+
ifndef MOZ_FOLD_LIBS
339+
ifndef MOZ_NATIVE_SQLITE
340+
config/external/nss/target: db/sqlite3/src/target
341+
endif
342+
endif
343+
ifeq ($(MOZ_REPLACE_MALLOC_LINKAGE),dummy library)
344+
mozglue/build/target: memory/replace/dummy/target
318345
endif

accessible/atk/Makefile.in

Lines changed: 0 additions & 14 deletions
This file was deleted.

accessible/atk/moz.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ LOCAL_INCLUDES += [
4141
]
4242

4343
FINAL_LIBRARY = 'xul'
44+
45+
if CONFIG['MOZ_ENABLE_GTK']:
46+
CFLAGS += CONFIG['TK_CFLAGS']
47+
CXXFLAGS += CONFIG['TK_CFLAGS']
48+
49+
if CONFIG['MOZ_ENABLE_DBUS']:
50+
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']

accessible/base/ARIAMap.cpp

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ static nsRoleMapEntry sWAIRoleMaps[] =
122122
eOpenCloseAction,
123123
eNoLiveAttr,
124124
kGenericAccType,
125-
states::COLLAPSED | states::HASPOPUP,
125+
states::COLLAPSED | states::HASPOPUP | states::VERTICAL,
126126
eARIAAutoComplete,
127-
eARIAReadonly
127+
eARIAReadonly,
128+
eARIAOrientation
128129
},
129130
{ // dialog
130131
&nsGkAtoms::dialog,
@@ -261,10 +262,11 @@ static nsRoleMapEntry sWAIRoleMaps[] =
261262
eNoAction,
262263
eNoLiveAttr,
263264
eListControl | eSelect,
264-
kNoReqStates,
265+
states::VERTICAL,
265266
eARIAMultiSelectable,
266267
eARIAReadonly,
267-
eFocusableUntilDisabled
268+
eFocusableUntilDisabled,
269+
eARIAOrientation
268270
},
269271
{ // listitem
270272
&nsGkAtoms::listitem,
@@ -315,7 +317,8 @@ static nsRoleMapEntry sWAIRoleMaps[] =
315317
// any action, but menu can be open or close.
316318
eNoLiveAttr,
317319
kGenericAccType,
318-
kNoReqStates
320+
states::VERTICAL,
321+
eARIAOrientation
319322
},
320323
{ // menubar
321324
&nsGkAtoms::menubar,
@@ -325,7 +328,8 @@ static nsRoleMapEntry sWAIRoleMaps[] =
325328
eNoAction,
326329
eNoLiveAttr,
327330
kGenericAccType,
328-
kNoReqStates
331+
states::HORIZONTAL,
332+
eARIAOrientation
329333
},
330334
{ // menuitem
331335
&nsGkAtoms::menuitem,
@@ -422,7 +426,8 @@ static nsRoleMapEntry sWAIRoleMaps[] =
422426
eNoAction,
423427
eNoLiveAttr,
424428
kGenericAccType,
425-
kNoReqStates
429+
kNoReqStates,
430+
eARIAOrientation
426431
},
427432
{ // region
428433
&nsGkAtoms::region,
@@ -475,7 +480,7 @@ static nsRoleMapEntry sWAIRoleMaps[] =
475480
eNoAction,
476481
eNoLiveAttr,
477482
kGenericAccType,
478-
kNoReqStates,
483+
states::VERTICAL,
479484
eARIAOrientation,
480485
eARIAReadonly
481486
},
@@ -487,7 +492,7 @@ static nsRoleMapEntry sWAIRoleMaps[] =
487492
eNoAction,
488493
eNoLiveAttr,
489494
kGenericAccType,
490-
kNoReqStates,
495+
states::HORIZONTAL,
491496
eARIAOrientation
492497
},
493498
{ // slider
@@ -498,7 +503,7 @@ static nsRoleMapEntry sWAIRoleMaps[] =
498503
eNoAction,
499504
eNoLiveAttr,
500505
kGenericAccType,
501-
kNoReqStates,
506+
states::HORIZONTAL,
502507
eARIAOrientation,
503508
eARIAReadonly
504509
},
@@ -542,7 +547,8 @@ static nsRoleMapEntry sWAIRoleMaps[] =
542547
eNoAction,
543548
eNoLiveAttr,
544549
eSelect,
545-
kNoReqStates
550+
states::HORIZONTAL,
551+
eARIAOrientation
546552
},
547553
{ // tabpanel
548554
&nsGkAtoms::tabpanel,
@@ -584,7 +590,8 @@ static nsRoleMapEntry sWAIRoleMaps[] =
584590
eNoAction,
585591
eNoLiveAttr,
586592
kGenericAccType,
587-
kNoReqStates
593+
states::HORIZONTAL,
594+
eARIAOrientation
588595
},
589596
{ // tooltip
590597
&nsGkAtoms::tooltip,
@@ -604,10 +611,11 @@ static nsRoleMapEntry sWAIRoleMaps[] =
604611
eNoAction,
605612
eNoLiveAttr,
606613
eSelect,
607-
kNoReqStates,
614+
states::VERTICAL,
608615
eARIAReadonly,
609616
eARIAMultiSelectable,
610-
eFocusableUntilDisabled
617+
eFocusableUntilDisabled,
618+
eARIAOrientation
611619
},
612620
{ // treegrid
613621
&nsGkAtoms::treegrid,
@@ -617,10 +625,11 @@ static nsRoleMapEntry sWAIRoleMaps[] =
617625
eNoAction,
618626
eNoLiveAttr,
619627
eSelect | eTable,
620-
kNoReqStates,
628+
states::VERTICAL,
621629
eARIAReadonlyOrEditable,
622630
eARIAMultiSelectable,
623-
eFocusableUntilDisabled
631+
eFocusableUntilDisabled,
632+
eARIAOrientation
624633
},
625634
{ // treeitem
626635
&nsGkAtoms::treeitem,

accessible/base/ARIAMap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ struct nsRoleMapEntry
180180
mozilla::a11y::aria::EStateRule attributeMap1;
181181
mozilla::a11y::aria::EStateRule attributeMap2;
182182
mozilla::a11y::aria::EStateRule attributeMap3;
183+
mozilla::a11y::aria::EStateRule attributeMap4;
183184
};
184185

185186

accessible/base/ARIAStateMap.cpp

Lines changed: 35 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,18 @@ using namespace mozilla::a11y::aria;
1919
*/
2020
struct EnumTypeData
2121
{
22-
EnumTypeData(nsIAtom* aAttrName,
23-
nsIAtom** aValue1, uint64_t aState1,
24-
nsIAtom** aValue2, uint64_t aState2,
25-
nsIAtom** aValue3 = 0, uint64_t aState3 = 0) :
26-
mState1(aState1), mState2(aState2), mState3(aState3), mDefaultState(0),
27-
mAttrName(aAttrName), mValue1(aValue1), mValue2(aValue2), mValue3(aValue3),
28-
mNullValue(nullptr)
29-
{ }
30-
31-
EnumTypeData(nsIAtom* aAttrName, uint64_t aDefaultState,
32-
nsIAtom** aValue1, uint64_t aState1) :
33-
mState1(aState1), mState2(0), mState3(0), mDefaultState(aDefaultState),
34-
mAttrName(aAttrName), mValue1(aValue1), mValue2(nullptr), mValue3(nullptr),
35-
mNullValue(nullptr)
36-
{ }
37-
38-
// States applied if corresponding enum values are matched.
39-
const uint64_t mState1;
40-
const uint64_t mState2;
41-
const uint64_t mState3;
42-
43-
// Default state if no one enum value is matched.
44-
const uint64_t mDefaultState;
45-
4622
// ARIA attribute name.
4723
nsIAtom* const mAttrName;
4824

4925
// States if the attribute value is matched to the enum value. Used as
50-
// nsIContent::AttrValuesArray.
51-
nsIAtom* const* const mValue1;
52-
nsIAtom* const* const mValue2;
53-
nsIAtom* const* const mValue3;
54-
nsIAtom* const* const mNullValue;
26+
// nsIContent::AttrValuesArray, last item must be nullptr.
27+
nsIAtom* const* const mValues[4];
28+
29+
// States applied if corresponding enum values are matched.
30+
const uint64_t mStates[3];
31+
32+
// States to clear in case of match.
33+
const uint64_t mClearState;
5534
};
5635

5736
enum ETokenType
@@ -108,22 +87,29 @@ aria::MapToState(EStateRule aRule, dom::Element* aElement, uint64_t* aState)
10887
switch (aRule) {
10988
case eARIAAutoComplete:
11089
{
111-
static const EnumTypeData data(
90+
static const EnumTypeData data = {
11291
nsGkAtoms::aria_autocomplete,
113-
&nsGkAtoms::inlinevalue, states::SUPPORTS_AUTOCOMPLETION,
114-
&nsGkAtoms::list, states::HASPOPUP | states::SUPPORTS_AUTOCOMPLETION,
115-
&nsGkAtoms::both, states::HASPOPUP | states::SUPPORTS_AUTOCOMPLETION);
92+
{ &nsGkAtoms::inlinevalue,
93+
&nsGkAtoms::list,
94+
&nsGkAtoms::both, nullptr },
95+
{ states::SUPPORTS_AUTOCOMPLETION,
96+
states::HASPOPUP | states::SUPPORTS_AUTOCOMPLETION,
97+
states::HASPOPUP | states::SUPPORTS_AUTOCOMPLETION }, 0
98+
};
11699

117100
MapEnumType(aElement, aState, data);
118101
return true;
119102
}
120103

121104
case eARIABusy:
122105
{
123-
static const EnumTypeData data(
106+
static const EnumTypeData data = {
124107
nsGkAtoms::aria_busy,
125-
&nsGkAtoms::_true, states::BUSY,
126-
&nsGkAtoms::error, states::INVALID);
108+
{ &nsGkAtoms::_true,
109+
&nsGkAtoms::error, nullptr },
110+
{ states::BUSY,
111+
states::INVALID }, 0
112+
};
127113

128114
MapEnumType(aElement, aState, data);
129115
return true;
@@ -221,23 +207,16 @@ aria::MapToState(EStateRule aRule, dom::Element* aElement, uint64_t* aState)
221207

222208
case eARIAOrientation:
223209
{
224-
if (aElement->AttrValueIs(kNameSpaceID_None, nsGkAtoms::aria_orientation,
225-
NS_LITERAL_STRING("horizontal"), eCaseMatters)) {
226-
*aState &= ~states::VERTICAL;
227-
*aState |= states::HORIZONTAL;
228-
} else if (aElement->AttrValueIs(kNameSpaceID_None,
229-
nsGkAtoms::aria_orientation,
230-
NS_LITERAL_STRING("vertical"),
231-
eCaseMatters)) {
232-
*aState &= ~states::HORIZONTAL;
233-
*aState |= states::VERTICAL;
234-
} else {
235-
NS_ASSERTION(!(*aState & (states::HORIZONTAL | states::VERTICAL)),
236-
"orientation state on role with default aria-orientation!");
237-
*aState |= GetRoleMap(aElement)->Is(nsGkAtoms::scrollbar) ?
238-
states::VERTICAL : states::HORIZONTAL;
239-
}
210+
static const EnumTypeData data = {
211+
nsGkAtoms::aria_orientation,
212+
{ &nsGkAtoms::horizontal,
213+
&nsGkAtoms::vertical, nullptr },
214+
{ states::HORIZONTAL,
215+
states::VERTICAL },
216+
states::HORIZONTAL | states::VERTICAL
217+
};
240218

219+
MapEnumType(aElement, aState, data);
241220
return true;
242221
}
243222

@@ -347,19 +326,17 @@ static void
347326
MapEnumType(dom::Element* aElement, uint64_t* aState, const EnumTypeData& aData)
348327
{
349328
switch (aElement->FindAttrValueIn(kNameSpaceID_None, aData.mAttrName,
350-
&aData.mValue1, eCaseMatters)) {
329+
aData.mValues, eCaseMatters)) {
351330
case 0:
352-
*aState |= aData.mState1;
331+
*aState = (*aState & ~aData.mClearState) | aData.mStates[0];
353332
return;
354333
case 1:
355-
*aState |= aData.mState2;
334+
*aState = (*aState & ~aData.mClearState) | aData.mStates[1];
356335
return;
357336
case 2:
358-
*aState |= aData.mState3;
337+
*aState = (*aState & ~aData.mClearState) | aData.mStates[2];
359338
return;
360339
}
361-
362-
*aState |= aData.mDefaultState;
363340
}
364341

365342
static void

accessible/base/AccCollector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class AccCollector
7171
* Collect embedded objects. Provide quick access to accessible by index and
7272
* vice versa.
7373
*/
74-
class EmbeddedObjCollector : public AccCollector
74+
class EmbeddedObjCollector MOZ_FINAL : public AccCollector
7575
{
7676
public:
7777
virtual ~EmbeddedObjCollector() { }

0 commit comments

Comments
 (0)