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

697869 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 41ef145833 Bug 1624247 part 3: Refactor CachedBAxisMeasurement to be an optional member in a more general CachedFlexItemData class. r=TYLin
This patch should not impact behavior; it is purely a refactoring change.

In a later patch, I will add more (non-optional) members to this new class, to
cache additional data.

One happy outcome of the current patch is that CachedBAxisMeasurement's members
can now become (mostly) 'const' again, now that we can reconstruct it in-place
by virtue of it being stored in a Maybe<>.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 05:02:35 +00:00
Daniel Holbert 2879ef41fa Bug 1624247 part 2: Rename flex item helper-struct from CachedMeasuringReflowResult to CachedBAxisMeasurement. r=TYLin
This patch should not impact behavior; it is purely a rename.

The "reflow result" naming is too generic for this struct, now that I'm
planning to cache other results from flex item reflow (in later patches).

This particular struct is caching block-axis measurements (a BSize and an ascent), so let's rename it to reflect that.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 04:52:02 +00:00
Daniel Holbert 587b081007 Bug 1624247 part 1: When caching flex item BSize measurement, cache the content-box size instead of border-box size. r=TYLin
This patch should not impact behavior; it is purely a refactoring change to do the same arithmetic in a different spot.

The content-box size is the size that we actually care about when we use this
cached data, so we might as well just store that size directly, instead of
storing the border-box size and making adjustments at usage time, which is what
we do right now.

Note that one of the usage sites had an informational NS_WARNING_ASSERTION, for
cases where the BorderPadding subtraction might drop us into negative
territory.  I'm not particularly concerned with preserving that warning at this
point (in part because it's not necessarily an error when it fails, since it's
possible to make it fail with huge sizes; and in part because it's non-fatal,
which means we're not likely to notice it if it did "legitimately" fail
anyway).  So I've just removed it for simplicity & consistency.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 04:51:39 +00:00
jayati 0c89b054f1 Bug 1583790 - Ensure that we are passing valid principal values as arguments to functions in SitePermissions.jsm. r=johannh,prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D66217

--HG--
extra : moz-landing-system : lando
2020-03-25 09:04:35 +00:00
Julian Descottes 388bab6ee6 Bug 1602468 - Skip destroy for object fronts on Toolbox destroy r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56546

--HG--
extra : moz-landing-system : lando
2020-03-25 09:28:06 +00:00
Simon Fraser f02a5bdd6c Bug 1623328 Handle missing target_task_set in try estimates r=ahal
I'm unsure of the root cause as the file should exist if generate_tasks has worked, but this should avoid errors in the meantime while we investigate.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 16:39:37 +00:00
Sydney d1bfb4ded2 Bug 1624236 - 1624236: Removed 'else after 'break' in js/src/vm/Shape.cpp r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D68113

--HG--
extra : moz-landing-system : lando
2020-03-25 09:07:31 +00:00
Mirko Brodesser 9cb24081dd Bug 1623858: part 9) Document more variables corresponding to `nsISelectionController::getDisplaySelection`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67847

--HG--
extra : moz-landing-system : lando
2020-03-24 20:27:24 +00:00
Mirko Brodesser d8abdcf8c1 Bug 1623858: part 8) Document `nsIFrame::ComputeSelectionStyle`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67846

--HG--
extra : moz-landing-system : lando
2020-03-24 20:25:42 +00:00
Jan de Mooij 6dc74be7a0 Bug 1618198 part 27 - Implement JSOp::TableSwitch. r=iain
This follows the IonBuilder code but the WarpBuilder design makes this come out
a bit simpler and nicer.

Also cleans up BytecodeLocation to not conflate jump targets and TableSwitch's
default-target. It worked, but it's an implementation detail and BytecodeLocation
should be explicit about the difference.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 06:47:11 +00:00
Jan de Mooij 2ca7e8f0e2 Bug 1618198 part 26 - Support Debugger and Instrumentation* ops. r=iain
Note that the resumeAt in IonBuilder for JSOp::Debugger made little sense: MDebugger
bails out if an onDebuggerStatement hook is active but that uses the previous resume
point and not the one attached there. Strictly speaking MDebugger isn't effectful
at all so it doesn't need a resume point, but changing getAliasSet is probably not
worth it.

Unfortunately the instrumentation callback can be nursery allocated. For now
WarpOracle aborts compilation in this case, I think that's fine considering the
instrumentation machinery isn't really used anymore.

Finally, maybe in the future WarpOracle should allocate WarpScriptSnapshot upfront
so we don't need a constructor with many parameters.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 06:57:18 +00:00
Emilio Cobos Álvarez 2a4b5013d7 Bug 1623938 - Disable high-contrast overriding document colors on non-Windows platforms by default. r=morgan,Jamie
The high-contrast light GTK theme has some known issues. The dark theme works
much better, but we have multiple complaints about high contrast users, some of
which don't know about the "override document colors" setting.

Disable it for now so as to go to the previous state for the time being.

Mac/Android don't have a high-contrast theme either (or we don't hook into it),
so 1 seems like a better / less confusing default.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 08:22:50 +00:00
Nicolas Chevobbe 7e9a981cdc Bug 1605323 - Set toolbox context in "Store as global variable" context menu entry. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D67815

--HG--
extra : moz-landing-system : lando
2020-03-24 20:56:25 +00:00
Jeff Gilbert b672f22f08 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 05:40:54 +00:00
Brindusan Cristian 4d9cd18676 Backed out changeset 58d155b0b54a (bug 1624768) for mochitest failures at test_2_conformance2__renderbuffers__multisampled-depth-renderbuffer-initialization.html. 2020-03-25 06:00:00 +02:00
Kriyszig 64e6f10659 Bug 1590990 - Prevent blocked icon from being draggable in Network Monitor r=Harald,Honza
The bocked.svg used as img in Network Monitor is draggable that
isn't consistent with the rest of the UI. This problem doesn't
exist for the icon used to toggle Network Blocking Panel.
Taking cue from the same implementation, converted the image
to a CSS background property.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 21:19:56 +00:00
Dan Glastonbury 0d0ef2e1f6 Bug 1624761 - Remove OverrideStatus from DocumentLoadListener. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68132

--HG--
extra : moz-landing-system : lando
2020-03-25 01:12:37 +00:00
Jeff Gilbert 0e9c40e7e2 Bug 1624768 - Forbid multisampled unsized DEPTH_STENCIL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D68135

--HG--
extra : moz-landing-system : lando
2020-03-25 01:40:41 +00:00
Karl Tomlinson 3c6e2c84d6 Bug 1492011 assert that ConsoleStructuredCloneData::mGlobal is cleared before ConsoleRunnable destruction r=baku
Depends on D68000

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:10 +00:00
Karl Tomlinson 701025e896 Bug 1492011 make ConsoleCallData::mRefCnt thread-safe r=baku
so that references can be released from the main thread and there is no need
to send a message to Console thread.

Depends on D67999

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

--HG--
extra : moz-landing-system : lando
2020-03-24 10:02:07 +00:00
Karl Tomlinson 8000fcef11 Bug 1492011 introduce a separate class to hold main-thread data associated with each Console r=baku
This provides that ConsoleRunnable no longer has a reference to Console, which
previously needed to be released through a message to the console thread.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 01:06:16 +00:00
Karl Tomlinson 7a8ede2509 Bug 1492011 provide ID and Prefix on ConsoleCallData r=baku
to remove Console instance access from
PopulateConsoleNotificationInTheTargetScope().

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:22:34 +00:00
Karl Tomlinson 876034cbe8 Bug 1492011 change CreateStartTimerValue and CreateLogOrEndTimerValue from instance to class method r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67997

--HG--
extra : moz-landing-system : lando
2020-03-25 00:51:50 +00:00
Karl Tomlinson 42e23b8bed Bug 1492011 change CreateCounterOrResetCounterValue from instance method to nonmember function with internal linkage r=baku
Depends on D67995

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:53 +00:00
Karl Tomlinson 74303d90fd Bug 1492011 change ProcessArguments from instance method to nonmember function with internal linkage r=baku
Depends on D67994

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:55:41 +00:00
Karl Tomlinson 08d7ab99aa Bug 1492011 provide group stack parameter to PopulateConsoleNotificationInTheTargetScope() r=baku
This will support removal of Console class usage from main thread.

Depends on D67993

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:04:00 +00:00
Karl Tomlinson 15ee47208b Bug 1492011 replace ArgumentsToValueList instance method with nsTArray::AppendElements() r=baku
Depends on D67992

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:02:16 +00:00
Karl Tomlinson 3ec04c339f Bug 1492011 change ShouldIncludeStackTrace from instance to class method r=baku
Depends on D67991

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:01:04 +00:00
Karl Tomlinson 36c19455ab Bug 1492011 Remove now-unused Console::mStatus r=baku
Depends on D67990

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

--HG--
extra : moz-landing-system : lando
2020-03-24 09:00:49 +00:00
Karl Tomlinson 2f45248784 Bug 1492011 Remove Console::mCallDataStoragePending r=baku
Now that ConsoleCallData has nothing to trace, mCallDataStoragePending has no
purpose.

Depends on D67989

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:58:51 +00:00
Karl Tomlinson ddd9e31d2f Bug 1492011 store raw JS arguments on Console separately from ConsoleCallData r=baku
so that all ConsoleCallData members can be destroyed on either thread.

ArgumentData::mArguments hold the same references that
ConsoleCallData::mCopiedArguments held previously.  The name change is because
the references are merely stored rather than any deep copy of objects.

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

--HG--
extra : moz-landing-system : lando
2020-03-25 00:47:15 +00:00
Karl Tomlinson f49d456f4a Bug 1492011 consolidate StoreProfileData and StoreConsoleData into a single method with arguments parameter r=baku
This removes a dependency on JS objects on ConsoleCallData, and a reference to
the arguments on ConsoleProfileWorkerRunnable.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 08:31:48 +00:00
Lee Salzman 0adb330468 Bug 1611467 - disable Skia typeface cache to prevent it from leaking fonts. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68131

--HG--
extra : moz-landing-system : lando
2020-03-25 00:58:41 +00:00
Dragana Damjanovic aecbe2330a Bug 1618158 - Make Http3Session ref counting thread-safe. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D67703

--HG--
extra : moz-landing-system : lando
2020-03-24 23:01:34 +00:00
Daniel Huigens 7f0520ae9a Bug 1598278 - Check that Service Worker controls client in navigate() r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D66040

--HG--
extra : moz-landing-system : lando
2020-03-24 23:35:38 +00:00
Erik Nordin ca4fa23626 Bug 1621415 - Ensure adopted styles are applied when printing r=emilio
- Add functionality to clone adopted style sheets for printing.
- Add reftest to ensure that the document's adopted styles show in print.
- Add reftest to ensure that a shadow root's adopted styles show in print.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:54:18 +00:00
Emilio Cobos Álvarez e13b4495b3 Bug 1624708 - Make non-native theme keyboard navigable. r=spohl
By painting focus colors. I suspect this was mostly an oversight? But it is the
most obvious issue I always find with this theme.

I followed active > focus > hover, which seems to match what GTK does (and makes
sense, generally).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Emilio Cobos Álvarez 53477db16b Bug 1624696 - Respect padding for all elements except checkbox/radio. r=spohl,mstange
Only button / menulist-button were missing from the hard-coded if condition. I
don't think we ever want to override author padding, and this can cause compat
issues as the one in this bug.

I'm making HasAuthorSpecifiedRules fast in bug 1624080, btw.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Nicolas Silva 756d071573 Bug 1624640 - Grow the alpha8 texture array four layers at a time. r=jrmuizel
The texture array is currently grown layer by layer and we typically get to 3 or 4 layers over several frames by the time we are done loading a simple wikipedia page.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:53:21 +00:00
Nicolas Silva 81a8466c6f Bug 1624565 - Avoid clearing the texture cache as often. r=gw
The current heuristic in TextureCache::maybe_reclaim_shared_memory pretty much clears the cache every 5 seconds. Clearing the cache is prtty drastic though, because it causes us to re-upload data and reallocate several textures on the next frame. We really only want to do it when the savings are big, which happens less often now that texture array layer count is capped at 16 and that textures are released as soon as they are empty.

This makes us clear the cache less often by augmenting the threshold to 16 megabytes and only considering texture regions that would not be reallocated right away (since we grow some texture arrays more than one region at a time).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:52:57 +00:00
Nicolas Silva 6f1f372ccf Bug 1624565 - Eagerly deallocate empty texture arrays in the texture cache. r=gw
We already have a cooldown from texture cache items being deallocated a certain amount of time and frames after their last use so we can deallocate texture arrays as soon as they are completely empty. We do this at the end of the frame to avoid deallocating and reallocating within the frame. It's better to reclaim texture memory this way than run into maybe_reclaim_shared_memory which will throw away everything and cause new allocations on the next frame.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:53:21 +00:00
Anthony Ramine 4bbeb892c3 Bug 1624190 - Use time.process_time() on Python 3; r=rstewart
time.clock() is deprecated since Python 3.3 and gone in Python 3.8.

Depends on D67773

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

--HG--
extra : moz-landing-system : lando
2020-03-23 16:32:07 +00:00
Sydney 3806c4e3c2 Bug 1622743 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_popup_frames.js r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D68058

--HG--
extra : moz-landing-system : lando
2020-03-24 22:13:58 +00:00
Lee Salzman 5c0bc3a931 Bug 1624396 - update ANGLE shader validation tests to use centralized WR shader list. r=gw
Depends on D67961

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

--HG--
extra : moz-landing-system : lando
2020-03-24 20:32:29 +00:00
Lee Salzman 234a39ce5e Bug 1624396 - add necessary trigonometry intrinsics for conic gradients in SWGL. r=jrmuizel
Depends on D67960

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

--HG--
extra : moz-landing-system : lando
2020-03-24 03:41:38 +00:00
Lee Salzman 358c8f7c7c Bug 1624396 - add missing texture rectangle support to SWGL. r=jrmuizel
Depends on D67959

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

--HG--
extra : moz-landing-system : lando
2020-03-24 03:41:38 +00:00
Lee Salzman 7fe8ae3ba8 Bug 1624396 - update SWGL to use the centralized WR shader list. r=jrmuizel
Depends on D67958

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

--HG--
extra : moz-landing-system : lando
2020-03-24 19:13:49 +00:00
Lee Salzman 9cb73ab9c6 Bug 1624396 - implement centralized shader features list management for WebRender. r=gw,jrmuizel,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D67958

--HG--
extra : moz-landing-system : lando
2020-03-24 22:21:25 +00:00
Narcis Beleuzu 464f343178 Backed out changeset f3c5f5a1b35d (bug 1624696) for wpt failures on baseline-alignment-and-overflow.tentative.html . CLOSED TREE 2020-03-25 00:24:22 +02:00
Narcis Beleuzu 2f0ac811bf Backed out changeset 0ee82dc106f2 (bug 1624708) for reftest failure on 359903-1.html . CLOSED TREE 2020-03-25 00:22:30 +02:00