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

702226 Коммитов

Автор SHA1 Сообщение Дата
Martin Robinson 08a4e2cbc2 Bug 1631154 - Add an iterator for transition properties. r=emilio
This simplifies the code a bit and also will allow us to more easily
make improvements to servo's animation implementation in the future.
2020-04-18 04:04:24 +02:00
Anthony Ramine 54e5523868 Bug 1631154 - Introduce a new type UnsafeBox<T> in the rule tree. r=emilio
This lets us rely less on raw pointers, thus better tracking the lifetime
of the rule node values while dropping strong references etc.
2020-04-18 04:04:24 +02:00
Anthony Ramine 06ea2dd325 Bug 1631154 - Make StrongRuleNode::downgrade be unsafe. r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine 49a6858e5c Bug 1631154 - Make StrongRuleNode::ensure_child take a StrongRuleNode for the root. r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine a8dec99fc8 Bug 1631154 - Remove WeakRuleNode::clone. r=emilio
MallocSizeOf for RuleTree should not keep around weak references in
case someone runs a GC meanwhile.
2020-04-18 04:04:24 +02:00
Anthony Ramine f71e5d7ef4 Bug 1631154 - Make WeakRuleNode::from_ptr be unsafe. r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine 47d8182814 Bug 1631154 - Make StrongRuleNode::from_ptr be unsafe. r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine 2d243f239d Bug 1631154 - Move the meat of the rule tree to a submodule "core". r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine 971b28fce9 Bug 1631154 - Move CascadeLevel to its own rule_tree submodule. r=emilio 2020-04-18 04:04:24 +02:00
Anthony Ramine ebdcec89d4 Bug 1631154 - Refactor rule tree children. r=emilio
We move the data structure to its own module for better
encapsulation of unsafe code.
2020-04-18 04:04:24 +02:00
Jeff Walden a6d7edfc60 Bug 949220 - Make |NewObjectWithGivenTaggedProto| accept three arguments and take |NewObjectKind| as template parameter. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71274
2020-04-18 01:46:50 +00:00
Jeff Walden b8beb3fcf8 Bug 949220 - Inline |js::CloneObject| into its sole caller. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71273
2020-04-18 01:46:37 +00:00
Jeff Walden a432253d26 Bug 949220 - Make |js::CloneObject| take a |JSObject*| prototype argument, not a |TaggedProto|. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71272
2020-04-18 01:46:19 +00:00
Jeff Walden d92f1d8264 Bug 949220 - Add |NewSingletonObjectWithGivenTaggedProtoAndKind| to encode singleton-ness into function name for one caller. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71271
2020-04-18 01:46:06 +00:00
Jeff Walden 4a355fb0d4 Bug 949220 - Adjust some |NewObjectWithGivenTaggedProto| overloads so fewer users must specify an object kind. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71270
2020-04-18 01:46:03 +00:00
Jeff Walden 53ea94b20f Bug 949220 - Remove |NurseryAllocatedProxy| now that it's unused. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D70516
2020-04-18 01:46:01 +00:00
Jeff Walden e81bc1064b Bug 949220 - Inline |ProxyObject::create| into its sole caller, and simplify the resulting code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D70515
2020-04-18 01:44:56 +00:00
Robert Longson 650b69563f Bug 1581691 - make transform-origin a mapped CSS attribute r=heycam,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D63016
2020-04-18 01:32:40 +00:00
Timothy Nikkel 5ac7021bc5 Bug 1630964. Increase fuzz a small amount of newly added test. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D71414
2020-04-17 23:47:59 +00:00
Emilio Cobos Álvarez c7992b8656 Bug 1449522 - Cleanup some parent walks in StyleSheet code. r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D71410
2020-04-17 22:55:03 +00:00
Ryan VanderMeulen 12bac77b70 Bug 1630806 - Update pdf.js to version 2.5.95. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D71246
2020-04-17 22:37:35 +00:00
Emilio Cobos Álvarez 5f95854d9b Bug 1449522 - Clean up stylesheet association modes. r=nordzilla
Should also have no behavior change.

After the previous patch we don't have sheets associated with a document but
not owned by it, so take advantage of that.

Differential Revision: https://phabricator.services.mozilla.com/D71264
2020-04-17 22:54:55 +00:00
Emilio Cobos Álvarez 31821e1fc4 Bug 1449522 - Remove nsIEditorStyleSheets. r=masayuki,m_kato
Users have much better, easier alternatives, like
DOMWindowUtils.{loadSheetUsingURIString,removeSheet}, which we use to
replace the only caller that exists in mozilla-central (the editor
element, which loads EditorOverride.css).

This allows to clean up the style system and editor. There are other
callers in comm-central, but it seems they can switch to DOMWindowUtils
trivially, as the DOMWindowUtils APIs also use the system principal and
thus they can load any URL.

I'll make sure to give them some time with the migration and/or help
out of course.

Differential Revision: https://phabricator.services.mozilla.com/D71263
2020-04-17 22:54:48 +00:00
Emilio Cobos Álvarez 63dce710f2 Bug 1630835 - Don't propagate associated document or shadow root to child sheets. r=nordzilla
This should have no behavior change, but makes the setup simpler and
more similar to the constructable sheets.

Differential Revision: https://phabricator.services.mozilla.com/D71262
2020-04-17 22:54:35 +00:00
sotaro c64e7f13d2 Bug 1611372 - Invalidate WebRender frame on nsWindow::OnExposeEvent() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D71139
2020-04-17 17:27:37 +00:00
Tom Schuster 3d95c82e6e Bug 1630779 - Fix DefinitelyDifferentValue. r=iain
I think using MConstant::equals was /probably/ fine, but I find it hard to reason about.
This also potentially allows comparing double 1.0 to int32 1 or similar.

Differential Revision: https://phabricator.services.mozilla.com/D71240
2020-04-17 22:33:50 +00:00
Geoff Brown e245496607 Bug 1612345 - Ensure that most custom retriggers repeat the original task by default; r=bc
Various updates to the custom retrigger action so that, without any custom changes to
parameters, the retriggered task runs with the same parameters as the original task.
Several issues were found and corrected, notably:
 - parameters like --allow-software-gl-layers were ignored
 - MOZHARNESS_TEST_PATHS was ignored
 - many parameter customizations in the desktop mozharness configs were ignored
 - mochitest suite/subsuite/flavor selection was not always correct
 - using repeat=1 by default meant that each test ran twice

Differential Revision: https://phabricator.services.mozilla.com/D70457
2020-04-17 22:11:02 +00:00
Lee Salzman cb7f18181e Bug 1627689 - check for valid surfaces in DrawTargetCairo::DrawSurfaceWithShadow. r=jrmuizel
This just duplicates some error checking we already do in DrawSurface to this case.

Differential Revision: https://phabricator.services.mozilla.com/D71209
2020-04-17 22:17:18 +00:00
Imanol Fernandez 355194cd42 Bug 1631113 - Do not check the position cap to assign local floor height r=kip,daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D71409
2020-04-17 22:16:10 +00:00
Tim Huang c1ee1b488f Bug 1624268 - Part 4: Remove unnecessary code for ContentBlocking::ShouldAllowAccessFor(). r=dimi,baku
As we change to use the 'HasStoragePermission' flag, there are some code
became uncessary. This patch removes those code.

Differential Revision: https://phabricator.services.mozilla.com/D71034
2020-04-17 22:09:46 +00:00
Tim Huang c59499224d Bug 1624268 - Part 3: Use the 'HasStoragePermission' flag to check the storage permission. r=dimi,baku
We move to use the 'HasStoragePermission' flag to check the storage
permission. For the storage permission check of windows, the flag would
come from the WindowContext. For the check of channels, the flag would
come from the loadInfo of the channel.

Differential Revision: https://phabricator.services.mozilla.com/D71033
2020-04-17 22:09:38 +00:00
Tim Huang 33e45c4e07 Bug 1624268 - Part 2: Moving the setting of 'HasStoragePermission' flag to the WindowContext a bit earlier. r=dimi,baku
We need the 'hasStoragePermission' flag for calculating the
HasStorageAccess() value. Right now the setting of the flag is later
than the calculation. So, we move the setting before the calculation.

Differential Revision: https://phabricator.services.mozilla.com/D71032
2020-04-17 22:09:31 +00:00
Tim Huang 195cb08d19 Bug 1624268 - Part 1: Add checking the HasStorageAccessGranted() for the ContentBlocking::ShouldAllowAccessFor(channel). r=dimi,baku
We need to check the HasStorageAccessGranted() in the channel version of
the ContentBlocking::ShouldAllowAccessFor(). It's because we will move
to use the flag 'HasStoragePermission' to check the permission. But, this
flag won't get updated if the storage is allowed by the heuristic. So,
we need to rely on the HasStorageAccessGranted() to check the storage
access in the channel check as well.

Differential Revision: https://phabricator.services.mozilla.com/D71031
2020-04-17 22:09:23 +00:00
Andreea Pavel 93c0d14217 Bug 1626473 - Update expectations for valid-with-multi-item-array.https.html. r=jgraham
DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D70991
2020-04-15 06:55:37 +00:00
Dão Gottwald 0f5c169db7 Bug 1630167 - Remove busy, progress, pendingicon attributes when discarding browser. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D71302
2020-04-17 20:13:36 +00:00
Gijs Kruitbosch 5ffecefa61 Bug 1620226 - remove Cu.permitCPOWsInScope and Cu.getCrossProcessWrapperTag, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D71400
2020-04-17 21:32:38 +00:00
Jeff Walden 69ce41f4d6 Bug 1502355 - Make |WritableStreamDefaultWriterWrite| return a narrower |PromiseObject*| type for more clarity. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D71115
2020-04-16 07:43:25 +00:00
Mihai Alexandru Michis 90b380e4ae Backed out 7 changesets (bug 949220) for causing failures in Compartment.h
CLOSED TREE

Backed out changeset f44d32cba0ec (bug 949220)
Backed out changeset 50526bdc2a82 (bug 949220)
Backed out changeset 0c6e7d41cb06 (bug 949220)
Backed out changeset ba0ef525da5d (bug 949220)
Backed out changeset d85d4d198864 (bug 949220)
Backed out changeset 6c60e7fceaa0 (bug 949220)
Backed out changeset b25d763a3d67 (bug 949220)
2020-04-18 00:16:13 +03:00
Emilio Cobos Álvarez 1f3abc7835 Bug 1630837 - Optimize CC of rules from constructable stylesheets. r=smaug,nordzilla
This removes StyleSheet::GetComposedDoc because it wasn't doing the
right thing, and while constructable stylesheets _could_ in theory
return something meaningful (the constructor doc iff any adopters is
connected), it's not a concept we need in other places for now.

Differential Revision: https://phabricator.services.mozilla.com/D71261
2020-04-17 21:12:11 +00:00
Daosheng Mu ece4eed6d3 Bug 1631067 - Fixes a typo of Pico Neo 2 controller profile name. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D71391
2020-04-17 20:27:46 +00:00
Jeff Walden 28196182ec Bug 949220 - Make |NewObjectWithGivenTaggedProto| accept three arguments and take |NewObjectKind| as template parameter. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71274
2020-04-17 20:32:59 +00:00
Jeff Walden 7921bb2b6a Bug 949220 - Inline |js::CloneObject| into its sole caller. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71273
2020-04-17 20:32:40 +00:00
Jeff Walden 3f3c9e2c10 Bug 949220 - Make |js::CloneObject| take a |JSObject*| prototype argument, not a |TaggedProto|. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71272
2020-04-17 20:32:32 +00:00
Jeff Walden e658c58c15 Bug 949220 - Add |NewSingletonObjectWithGivenTaggedProtoAndKind| to encode singleton-ness into function name for one caller. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71271
2020-04-17 20:32:30 +00:00
Jeff Walden 0e06b88680 Bug 949220 - Adjust some |NewObjectWithGivenTaggedProto| overloads so fewer users must specify an object kind. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D71270
2020-04-17 20:31:26 +00:00
Jeff Walden 33993321ab Bug 949220 - Remove |NurseryAllocatedProxy| now that it's unused. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D70516
2020-04-17 20:31:08 +00:00
Jeff Walden 1171dd10f4 Bug 949220 - Inline |ProxyObject::create| into its sole caller, and simplify the resulting code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D70515
2020-04-17 20:30:47 +00:00
Jeff Walden 727f92385c Bug 1624266 - Remove a debug fprintf that crept into previous changes.
Differential Revision: https://phabricator.services.mozilla.com/D71407
2020-04-17 20:39:28 +00:00
Nika Layzell 9fdd774725 Bug 1630777 - Relax Span nsTArray methods, r=xpcom-reviewers,sg
Relaxes the type constraints for span overloads on `nsTArray`, such as
`AppendElements`. They previously took `Span<const Item>`, which could cause
build errors when attempting to pass a non const-qualified Item such as in
`Span<RefPtr<BrowsingContext>>`.

Differential Revision: https://phabricator.services.mozilla.com/D71232
2020-04-17 20:17:01 +00:00
Julian 2ca7b71c9f Bug 1609562 - Migrate popup-notifications.inc to Fluent. r=fluent-reviewers,Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D69754
2020-04-17 20:13:27 +00:00