Граф коммитов

630931 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo e98d64e015 Bug 1509575 - Expose the isFirstPaint flag on LayerManager. r=kats
So that it's easily available during painting.

The flag is set based on nsIPresShell::mIsFirstPaint, but the pres shell
flag is cleared at the beginning of the paint, so we can't query it from
the pres shell during the paint.

Differential Revision: https://phabricator.services.mozilla.com/D16237

--HG--
extra : moz-landing-system : lando
2019-01-11 04:21:20 +00:00
Daniel Varga 5dc5a82752 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : 40b25d678b690be8bfe028129337a9b578caade6
2019-01-11 06:19:53 +02:00
Daniel Varga f0a9c979bb Merge mozilla-inbound to mozillia-central. a=merge 2019-01-11 06:14:14 +02:00
Masayuki Nakano 1a008703fb Bug 181137 - part 9: Move kNSURIs in Document.cpp and FragmentOrElement.cpp into their users r=smaug
Due to renaming nsContentIterator.cpp to ContentIterator.cpp, Document.cpp
and FragmentOrElement.cpp are compiled in a unified cpp file now.  However,
both of them have same name constant, kNSURIs and some build systems claim
that it in FragmentOrElement.cpp is never used.

Fortunately, each of them is used only by one method.  Therefore, this patch
moves the each declaration into each user method.

Differential Revision: https://phabricator.services.mozilla.com/D16186

--HG--
extra : moz-landing-system : lando
2019-01-11 01:53:10 +00:00
Masayuki Nakano f421d7b889 Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

Differential Revision: https://phabricator.services.mozilla.com/D15928

--HG--
extra : moz-landing-system : lando
2019-01-11 01:52:26 +00:00
Masayuki Nakano f8844f0d9b Bug 181137 - part 7: Get rid of nsIContentIterator interface r=smaug
Now, nobody requires nsIContentIterator interface.  So, we can get rid of it.

Unfortunately, there is no macro to keep the inherited class,
ContentSubtreeIterator, in the cycle collection to make it keep managing
ContentSubtreeIterator::mRange without nsISupports interface.  Therefore, this
patch moves it into ContentIteratorBase temporarily.  Anyway, the following
patch makes those classes not refcountable.  At that time, this issue will be
fixed.

Differential Revision: https://phabricator.services.mozilla.com/D15927

--HG--
extra : moz-landing-system : lando
2019-01-11 01:51:42 +00:00
Masayuki Nakano a6ef59a998 Bug 181137 - part 6: Make nsFilteredContentIterator not derived from nsIContentIterator r=smaug
nsFilteredContentIterator is used only by TextServicesDocument and there is
no reason that it should be derived from nsIContentIterator except consistency.
Additionally, it's now only class which is derived from nsIContentIterator
except ContentIteratorBase.  So, after this change, we can get rid of
nsIContentIterator completely.

This patch moves nsFilteredContentIterator into mozilla namespace and
makes TextServicesDocument treat FilteredContentIterator directly instead of
nsIContentIterator interface.

Differential Revision: https://phabricator.services.mozilla.com/D15925

--HG--
rename : editor/spellchecker/nsFilteredContentIterator.cpp => editor/spellchecker/FilteredContentIterator.cpp
rename : editor/spellchecker/nsFilteredContentIterator.h => editor/spellchecker/FilteredContentIterator.h
extra : moz-landing-system : lando
2019-01-11 01:51:35 +00:00
Masayuki Nakano da38fe53bc Bug 181137 - part 5: Make all users of PostContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PostContentIterator can access it directly.  This patch
makes them use the concrete class directly.

Differential Revision: https://phabricator.services.mozilla.com/D15923

--HG--
extra : moz-landing-system : lando
2019-01-11 01:50:19 +00:00
Masayuki Nakano f5602b96ab Bug 181137 - part 4: Make all users of PreContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PreContentIterator can access it directly.  This patch makes
them use the concrete class directly.

Differential Revision: https://phabricator.services.mozilla.com/D15922

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:36 +00:00
Masayuki Nakano 3b6d4adf2d Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

Differential Revision: https://phabricator.services.mozilla.com/D15920

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:00 +00:00
Masayuki Nakano ad8ce91822 Bug 181137 - part 2: Make nsContentIterator class is a base class of other concrete classes r=smaug
Currently, ContentIterator is created with a bool flag to decide whether the
instance lists up post-order or pre-order.  However, this is not clear.  For
example:

nsCOMPtr<nsIContentIterator> preOrderIter = new ContentIterator(false);

This is not clear whether this does right thing or not.

This patch makes any users can create PostContentIterator for post-order
iterator, and creates PreContentIterator for pre-order iterator.  So, now,
each creator needs to writhe above as:

nsCOMPtr<nsIContentIterator> preOrderIter = new PreContentIterator();

or

nsCOMPtr<nsIContentIterator> postOrderIter = new PostContentIterator();

Additionally, with this change, if each user starts to use concrete classes
directly, compiler can stop using virtual calls because of all concrete
classes are now marked as "final".

Differential Revision: https://phabricator.services.mozilla.com/D15918

--HG--
extra : moz-landing-system : lando
2019-01-11 01:48:11 +00:00
Masayuki Nakano 2d75b78552 Bug 181137 - part 1: Move nsContentIterator and nsContentSubtreeIterator into mozilla namespace r=smaug
First, we should move nsContentIterator and nsContentSubtreeIterator into
mozilla namespace and then, remove "ns" prefix.

Additionally, this patch separates the definition of the classes into
ContentIterator.h and exposes it as "mozilla/ContentIterator.h".  This allows
everybody access those concrete classes.

Differential Revision: https://phabricator.services.mozilla.com/D15917

--HG--
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.cpp
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.h
extra : moz-landing-system : lando
2019-01-11 01:47:15 +00:00
sotaro d85d8a3b57 Bug 1516787 - Add GLContextEGL::OnMarkDestroyed() r=jgilbert 2019-01-11 09:04:26 +09:00
Cosmin Sabou af0ac088e5 Backed out changeset 8d953c25fdef (bug 1514874) for windows asan mda failures on RemoteDecoderModule.cpp. 2019-01-11 02:03:38 +02:00
Emilio Cobos Álvarez 06e203c285 Bug 1519269 - Rustfmt recent changes. 2019-01-11 01:02:56 +01:00
Shanavas M 03d98acfa8 Bug 1519269 - Remove OrderedMap in favor of IndexMap. r=emilio
This cherry-picks https://github.com/servo/servo/pull/22656.
2019-01-11 01:02:54 +01:00
Mike Hommey 9a0967dc5d Bug 1515579 - Use absolute paths for compilers, etc. r=ted
In bug 1259382, some workarounds were added to make the build system
alter PATH and not use absolute paths for toolchain programs, because
autoconf and the build system doesn't deal with spaces in those very
well. But later in bug 1290040, we made find_program return Windows
short paths (without spaces), which alleviates the need for those
workarounds.

We still, however, and unfortunately, need to alter PATH to account for
the fact that MSVC DLLs are not necessarily alongside the compiler
executables...

Depends on D15181

Differential Revision: https://phabricator.services.mozilla.com/D15182

--HG--
extra : moz-landing-system : lando
2019-01-10 23:37:46 +00:00
Cameron McCormack 0de25813f2 Bug 1519011 - Make counterstyles.css sharable r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16240

--HG--
extra : moz-landing-system : lando
2019-01-10 22:27:09 +00:00
Cameron McCormack 788d8b2454 Bug 1519006 - Stop null checking infallible style sheet accessors in nsDocumentViewer::CreateStyleSet r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16151

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:28 +00:00
Cameron McCormack 8106cebcf9 Bug 1519001 - Rename some style sheet accessors on nsLayoutStylesheetCache to indicate they can return null r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D16150

--HG--
extra : moz-landing-system : lando
2019-01-11 03:12:05 +00:00
Eric Rahm f32fd66363 Bug 1519209 - Disable NSS_ALLOW_SSLKEYLOGFILE in beta and release. r=glandium
This disables NSS_ALLOW_SSLKEYLOGFILE in beta in release in order to avoid shutdown hangs until the NSS project has time to fix the root cause of the issue.

--HG--
extra : rebase_source : 51c84d4841308d283f993a7fda576031d7c4f449
2019-01-10 13:14:41 -08:00
Bas Schouten fd9a23b073 Bug 1519227: Register payload appropriately in CrossProcessCompositorBridgeParent. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D16246

--HG--
extra : rebase_source : d3c9ad182bbb83931b95bff0b130a98c8a66b8e5
2019-01-10 22:41:14 +01:00
Robert Strong e2c81d08b4 Bug 1517044 - Don't allow nsIWritablePropertyBag calls to overwrite nsIUpdate and nsIUpdatePatch attributes. r=mhowell 2019-01-10 15:18:14 -08:00
Sean Stangl 56c0daa179 Bug 1518957 - Implement ARM64 truncation and remove unused emitRoundDouble(). r=nbp
--HG--
extra : amend_source : 6d7336b98d91c2f252431d38823731b394e30dd7
2019-01-10 23:16:27 +02:00
Nathan Froyd d983955203 Bug 1518922 - part 2 - remove GetChildProcessTmpDir; r=gsvelto
After part 1, this function and the code associated with it is no longer
used.
2019-01-10 16:13:37 -05:00
Nathan Froyd fcefa80c7c Bug 1518922 - part 1 - remove dead code for extra crashreporting directory; r=Alex_Gaynor
The command-line parameter used by nsEmbedFunctions.cpp is turned into
an nsIFile, and then said nsIFile is never used.  Its last use was
deleted in bug 1407693, where we reworked how extra annotations were
done.
2019-01-10 16:13:37 -05:00
Jed Davis ebb609373d Backed out changeset a0cf88b1fe5b (bug 1487287) 2019-01-10 13:55:31 -07:00
Hector Zhao b73c2c6e9b Bug 1513162 - Use guid with known prefix for bookmarks from distribution.ini. r=mak,mkaply
Also stop setting keyword with distribution.ini.

Differential Revision: https://phabricator.services.mozilla.com/D15489

--HG--
extra : moz-landing-system : lando
2019-01-10 20:54:53 +00:00
Zibi Braniecki abcd557c95 Bug 1509583 - Migrate region/language names resources to Fluent. r=flod,mossop
Differential Revision: https://phabricator.services.mozilla.com/D12807

--HG--
extra : moz-landing-system : lando
2019-01-11 00:23:50 +00:00
Zibi Braniecki ffeb7038f9 Bug 1509583 - Move InlineSpellChecker to sync over locale codes rather than indexes. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15762

--HG--
extra : moz-landing-system : lando
2019-01-11 00:23:48 +00:00
Zibi Braniecki 9436ebe59a Bug 1509583 - Refactor mozIntl.getRegions to mozIntl.getAvailableLocaleDisplayNames. r=jfkthame,MattN
Differential Revision: https://phabricator.services.mozilla.com/D13188

--HG--
extra : moz-landing-system : lando
2019-01-11 00:25:52 +00:00
Zibi Braniecki a5339188fb Bug 1509583 - Introduce LocalizationSync. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D13340

--HG--
extra : moz-landing-system : lando
2019-01-11 00:25:49 +00:00
Zibi Braniecki ef5c7af9be Bug 1509609 - Provide a sync version of generateBundles for L10nregistry. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13166

--HG--
extra : moz-landing-system : lando
2019-01-11 00:19:37 +00:00
Mike Hommey b8548a1071 Bug 1515528 - Disable accessibility on aarch64-windows. r=dmajor,chmanchester
Depends on D15265

Differential Revision: https://phabricator.services.mozilla.com/D15266

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:35 +00:00
Mike Hommey da8c7ce8ed Bug 1515528 - Prefer MSVC when building for aarch64 windows. r=froydnj
Depends on D15264

Differential Revision: https://phabricator.services.mozilla.com/D15265

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:33 +00:00
Mike Hommey 9936784a53 Bug 1515528 - Detect MSVC paths separately for host and target. r=chmanchester
Because MSVC compilers only support one architecture, we need to search
"cl" in different toolchain search paths for each of the host and
target, especially when they are different.

Likewise for the library paths for the linker. Ideally we'd pass
-LIBPATH both for host and target, but that has implications for rust
that I don't want to have to figure just now.

Depends on D15263

Differential Revision: https://phabricator.services.mozilla.com/D15264

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:31 +00:00
Mike Hommey f90954f379 Bug 1515528 - Fix VC paths for arm64. r=froydnj
Depends on D15262

Differential Revision: https://phabricator.services.mozilla.com/D15263

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:29 +00:00
Mike Hommey f4de6ab03a Bug 1515528 - Prefer link to lld-link when building with msvc rather than clang-cl. r=froydnj
While it was preferable to use lld-link with msvc for performance
reasons when we defaulted to compile with msvc, now that we build with
clang-cl by default, it's now better to use msvc's linker when using
msvc's compiler, especially for aarch64, which is the last place where
we actually need msvc.

Differential Revision: https://phabricator.services.mozilla.com/D15262

--HG--
extra : moz-landing-system : lando
2019-01-11 00:20:26 +00:00
Mike Hommey 546e2487aa Bug 1515579 - Add some mk_export_correct_style to win64-aarch64 mozconfig. r=ted
Like for other windows platforms. This currently doesn't make a
difference, but will with next change.

Differential Revision: https://phabricator.services.mozilla.com/D15181

--HG--
extra : moz-landing-system : lando
2019-01-10 08:36:40 +00:00
Kartikaya Gupta 7bb962bec3 Bug 1519175 - Save the clip-scroll tree to the WR capture. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D16229

--HG--
extra : moz-landing-system : lando
2019-01-10 22:50:07 +00:00
Kartikaya Gupta 2dc2417751 Bug 1519175 - Allow creating PrintTree instances with other sinks. r=kvark
This will let us print trees to files instead of stdout.

Differential Revision: https://phabricator.services.mozilla.com/D16228

--HG--
extra : moz-landing-system : lando
2019-01-10 22:47:37 +00:00
Ashley Hauck 0c9af78f5c Bug 1514919 - Do not constant-fold the same nodes more than once. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D14813

--HG--
extra : moz-landing-system : lando
2019-01-09 21:27:39 +00:00
Matt Howell 219be7ea4f Bug 1512039 - Allow the stub installer to detect and download the AArch64 Windows build. r=agashlin
This patch also removes the last vestiges of the old architecture dropdown
structure, and removes a use of GetBinaryTypeW because it doesn't seem to
return a useful result for any ARM ISA.

Differential Revision: https://phabricator.services.mozilla.com/D14811

--HG--
extra : moz-landing-system : lando
2019-01-10 23:09:01 +00:00
James Willcox f4b85965af Bug 1354200 - Exit instead of MOZ_CRASH on channel error in child process r=jld
Android mercilessly kills the parent in low memory situations, and we
don't want that to trigger a crash when the child is abruptly
disconnected.

Differential Revision: https://phabricator.services.mozilla.com/D16234

--HG--
extra : moz-landing-system : lando
2019-01-10 22:45:44 +00:00
Mike Hommey 516c65acec Bug 1519042 - Remove OS_TEST. r=ted
Depends on D16162

Differential Revision: https://phabricator.services.mozilla.com/D16163

--HG--
extra : moz-landing-system : lando
2019-01-10 22:06:12 +00:00
Mike Hommey 8bfba15706 Bug 1519042 - Replace the last non-third-part uses of OS_TEST with TARGET_CPU. r=ted
Depends on D16161

Differential Revision: https://phabricator.services.mozilla.com/D16162

--HG--
extra : moz-landing-system : lando
2019-01-10 22:06:10 +00:00
Mike Hommey 28376bb4f9 Bug 1519042 - Remove special case adding -xgot assembly flag on NetBSD. r=ted
None of the values tested against OS_TEST are actually possible per
split_triplet in build/moz.configure/init.configure, so the code is
dead in practice.

Differential Revision: https://phabricator.services.mozilla.com/D16161

--HG--
extra : moz-landing-system : lando
2019-01-10 22:06:02 +00:00
Mike Hommey 65e1e6bb41 Bug 1519040 - Remove some unused old-configure assignments. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16159

--HG--
extra : moz-landing-system : lando
2019-01-10 22:02:04 +00:00
Mike Hommey d5fbdc4b28 Bug 1519030 - Move libav-fft configuration to python configure. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16157

--HG--
extra : moz-landing-system : lando
2019-01-10 22:00:41 +00:00
Mike Hommey 8153f29959 Bug 1519012 - Move most PGO-related configure flags back to toolchain.configure. r=froydnj
LLVM_PROFDATA needs the toolchain search dir, per bug 1515579.

Also, most of the options actually don't do anything useful with
artifact builds. In fact, the only one that artifact builds would need
is MOZ_PGO. So we move to options back to toolchain.configure, somewhere
late enough ; except MOZ_PGO, that we move to the top-level
moz.configure (because we don't need a separate file for one option).

Differential Revision: https://phabricator.services.mozilla.com/D16152

--HG--
extra : moz-landing-system : lando
2019-01-10 14:25:12 +00:00