Iulian Moraru
def1c96ee0
Backed out changeset 1abceb4692e8 (bug 1768962) for causing reftest failures on partial-prerender-translate-9.html.
2022-06-10 16:57:23 +03:00
Nicolas Silva
4217d195e2
Bug 1768962 - Fix a bunch more partial-prerender tests to use blobs. r=gfx-reviewers,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D146588
2022-06-10 09:27:05 +00:00
David Shin
b176094a3b
Bug 1767364: Return an incomplete reflow status for tables if they have next-in-flow with previously unflowed children. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D148140
2022-06-10 09:14:00 +00:00
Molnar Sandor
8b6a566d1f
Backed out 4 changesets (bug 1769161) for causing mochitest failures in layout/base/tests/chrome/test_printpreview.xhtml CLOSED TREE
...
Backed out changeset d376decbcba0 (bug 1769161)
Backed out changeset a821b6bc4a18 (bug 1769161)
Backed out changeset 4ffac65dfc17 (bug 1769161)
Backed out changeset 616392cd1725 (bug 1769161)
2022-06-10 07:45:32 +03:00
Emily McDonough
674b8193c6
Bug 1769161 Part 4 - Add test for unwriteable margin scaling with page-size mismatches r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D146603
2022-06-09 23:51:08 +00:00
Emily McDonough
9850473d52
Bug 1769161 Part 3 - Scale unwriteable margins and user-specified margins by the page-size scaling factor r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D148207
2022-06-09 23:51:07 +00:00
Emily McDonough
07eeeab1e8
Bug 1769161 Part 2 - Rename and document margin and sizing calculation for nsPageFrame margins. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D146602
2022-06-09 23:51:07 +00:00
Emily McDonough
7011873dd9
Bug 1769161 Part 1 - Refactor scaling factor due to page-size for nsPageFrame to be in its own function. r=dholbert
...
This includes two versions of the function, one which takes an already-computed
page size to avoid computing this multiple times for a caller, and the other
which computes this value itself for convenience.
Differential Revision: https://phabricator.services.mozilla.com/D146601
2022-06-09 23:51:07 +00:00
Emilio Cobos Álvarez
40b88fe3ed
Bug 1773342 - Treat text scale factor as an additional zoom factor, on both GTK and Windows. r=stransky,handyman
...
GTK already did this, sorta, in a platform-specific way: by hacking in the
scale factor in the CSS screen code. I think this is cleaner, since we have a
centralized place to compute the full zoom in nsPresContext, and that code path
is fairly well tested.
This also would make it trivial to make this text zoom rather than full zoom in
the future, if we wanted (which is probably _technically_ more correct, even
though less pretty less pretty).
This also allows us to remove some hacks where we were undoing the text scale
factor on Linux (since stuff like scrollbars already ignore full zoom).
Depends on D148675
Differential Revision: https://phabricator.services.mozilla.com/D148676
2022-06-09 23:02:11 +00:00
Joel Maher
490f3d046c
Bug 1773523 - allow_xul_xbl support in manifests. r=mccr8,gbrown
...
Differential Revision: https://phabricator.services.mozilla.com/D148681
2022-06-09 19:01:01 +00:00
Emilio Cobos Álvarez
d6c7207d17
Bug 1771262 - z-index should apply to menupopup frames. r=stransky
...
nsMenuPopupFrame initialized the view z-index to a hard-coded INT32_MAX, but
then reset it on restyles based on ZIndex() in SyncFrameViewProperties().
We specify z-index here, so use a consistent z-index all around:
https://searchfox.org/mozilla-central/rev/ace2c59e6c56b2dcba25af1aa8903a5e7f9a5857/toolkit/content/xul.css#255-256
I suspect this is also causing that weird bug about menus going under other
menus on macOS (bug 1763990).
Differential Revision: https://phabricator.services.mozilla.com/D148762
2022-06-09 16:44:43 +00:00
Tiaan Louw
10dbaef1e0
Bug 1768535 - Rename :-moz-modal-dialog to :modal r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D148751
2022-06-09 08:58:52 +00:00
Razvan Cojocaru
1ef41e3cef
Bug 1771533 - Audit usages of MatrixScalesDouble to see if using MatrixScales would make more sense in some cases. r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D148498
2022-06-08 21:28:30 +00:00
Magnus Melin
e9e3669c52
Bug 1772461 - Crash in [@ nsTreeSelection::TimedSelect]. r=NeilDeakin
...
Differential Revision: https://phabricator.services.mozilla.com/D148372
2022-06-08 20:19:19 +00:00
Molnar Sandor
1fc858a96d
Backed out 5 changesets (bug 1761242, bug 1744822, bug 1761252) for causing browser-chrome failures in netwerk/test/browser/browser_103_assets.js CLOSED TREE
...
Backed out changeset 33cc08eb51b3 (bug 1744822)
Backed out changeset b70697d24e75 (bug 1761252)
Backed out changeset 4a5e10110c6a (bug 1761242)
Backed out changeset 7cda175b833d (bug 1761242)
Backed out changeset 4f5ed111093b (bug 1761242)
2022-06-08 18:56:35 +03:00
Manuel Bucher
35abf46688
Bug 1761242 - Expose computing security flags for early hint preloader r=ckerschb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D144798
2022-06-08 14:33:10 +00:00
Emilio Cobos Álvarez
e37bef5dfb
Bug 1772968 - nsPresContext::UpdateViewportScrollStylesOverride shouldn't look at retargeted elements. r=edgar
...
This is mostly an optimization since html/body can't have shadow roots
and we only care about comparing the fullscreen element against those,
but it also avoids the problematic codepath.
The issue is that we call UpdateViewportScrollStylesOverride() in the
middle of UnbindFromTree when the DOM state isn't quite stable.
Before my patch, we only did that once the top layer stack is empty, but
now we do it once for each element we pop, which means that we might hit
this codepath with a fullscreen element mid-unbind.
The following patch fixes it but this seemed worth doing anyways.
Differential Revision: https://phabricator.services.mozilla.com/D148491
2022-06-08 11:25:24 +00:00
Hiroyuki Ikezoe
20c48b14ce
Bug 1771830 - Apply scroll snap in ScrollToShowRect in PresShell.cpp. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D147708
2022-06-08 02:49:56 +00:00
Emilio Cobos Álvarez
adc65b1456
Bug 1773070 - Rename/remove some eventState/s variables. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D148558
2022-06-07 23:09:54 +00:00
Emilio Cobos Álvarez
12bd84f0c5
Bug 1773070 - While at it rename ContentStateChanged to ElementStateChanged, and make it take elements. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D148553
2022-06-07 23:09:54 +00:00
Emilio Cobos Álvarez
255763ef57
Bug 1773070 - Unify Gecko and Servo EventState/ElementState bits. r=smaug
...
Add a dom/base/rust crate called just "dom" where we can share these.
Most of the changes are automatic:
s/mozilla::EventStates/mozilla::dom::ElementState/
s/EventStates/ElementState/
s/NS_EVENT_STATE_/ElementState::/
s/NS_DOCUMENT_STATE_/DocumentState::/
And so on. This requires a new cbindgen version to avoid ugly casts for
large shifts.
Differential Revision: https://phabricator.services.mozilla.com/D148537
2022-06-07 23:09:52 +00:00
Emilio Cobos Álvarez
e6f78c41b6
Bug 1772840 - Fix zoom handling in nsXULTooltipListener. r=mstange
...
If the tooltip node and the target node are in different documents, we'd
use the tooltip's CSS-to-dev-pixel scale to convert.
This is basically bug 1756323 but for XUL, I thought we wouldn't have
cross-document zoom like that but apparently I was wrong...
Differential Revision: https://phabricator.services.mozilla.com/D148402
2022-06-07 18:59:31 +00:00
Nicolas Silva
0d0c66fe9e
Bug 1773024 - Initialize mShouldFlatten. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D148506
2022-06-07 15:05:09 +00:00
Nicolas Silva
0bfbdf273b
Bug 1768650 - Turn off gfx.webrender.svg-images for a test. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D147051
2022-06-07 13:45:20 +00:00
David Shin
14611a24e8
Bug 1764126 - Part 4: Add parsing for linear easing function and gate it behind pref. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D146839
2022-06-07 11:51:24 +00:00
Michael Kohler
0bdaaea795
Bug 1769086 - Update metadata for layout/xul/ files to not point to Firefox Menus component r=emilio DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D148352
2022-06-07 11:11:50 +00:00
Emilio Cobos Álvarez
23b07c1867
Bug 1694061 - Simplify XULResizerElement by removing the window resizing path which is dead code. r=ntim
...
Differential Revision: https://phabricator.services.mozilla.com/D105988
2022-06-07 09:38:23 +00:00
Mats Palmgren
f13e1725b3
Bug 1694056 - Remove (XUL) nsTitleBarFrame since it's no longer used. r=emilio
...
Depends on D105927
Differential Revision: https://phabricator.services.mozilla.com/D105928
2022-06-07 09:30:03 +00:00
Mats Palmgren
de27d55d14
Bug 1590376 part 2 - Remove (XUL) nsResizerFrame since it serves no purpose anymore. r=emilio
...
Depends on D105926
Differential Revision: https://phabricator.services.mozilla.com/D105927
2022-06-07 09:30:02 +00:00
Mats Palmgren
6b2f046373
Bug 1590376 part 1 - Add a XULResizerElement and move all nsResizerFrame's event handling code there. r=ntim,smaug
...
I'm mostly moving the code verbatim, but I excluded a few bits
that handled resizers inside menu popup frames, e.g.
https://searchfox.org/mozilla-central/rev/7bb1cc6abf6634b2a20f71935e1e519e73402b63/layout/xul/nsResizerFrame.cpp#165-170
I don't think we need that functionallity anymore and it
simplifies the code to exclude it.
Differential Revision: https://phabricator.services.mozilla.com/D105926
2022-06-07 09:30:01 +00:00
Miko Mynttinen
f655f6ea98
Bug 1772561 - Do not call RDLUtils::AssertDisplayItemUnmodified() in opt builds r=tnikkel
...
Differential Revision: https://phabricator.services.mozilla.com/D148272
2022-06-06 22:32:19 +00:00
Butkovits Atila
e3b4113a08
Backed out 4 changesets (bug 1694056, bug 1590376) for causing failures at test_resizer_ctrl_click.xhtml. CLOSED TREE
...
Backed out changeset 656906f99173 (bug 1590376)
Backed out changeset 15e9b4e9070c (bug 1694056)
Backed out changeset f137d6e73641 (bug 1590376)
Backed out changeset 00ed65f43cb2 (bug 1590376)
2022-06-07 02:12:40 +03:00
Mats Palmgren
cd6ad5af43
Bug 1694056 - Remove (XUL) nsTitleBarFrame since it's no longer used. r=emilio
...
Depends on D105927
Differential Revision: https://phabricator.services.mozilla.com/D105928
2022-06-06 20:00:46 +00:00
Mats Palmgren
0715c66e3b
Bug 1590376 part 2 - Remove (XUL) nsResizerFrame since it serves no purpose anymore. r=emilio
...
Depends on D105926
Differential Revision: https://phabricator.services.mozilla.com/D105927
2022-06-06 20:00:46 +00:00
Mats Palmgren
17801441dd
Bug 1590376 part 1 - Add a XULResizerElement and move all nsResizerFrame's event handling code there. r=ntim,smaug
...
I'm mostly moving the code verbatim, but I excluded a few bits
that handled resizers inside menu popup frames, e.g.
https://searchfox.org/mozilla-central/rev/7bb1cc6abf6634b2a20f71935e1e519e73402b63/layout/xul/nsResizerFrame.cpp#165-170
I don't think we need that functionallity anymore and it
simplifies the code to exclude it.
Differential Revision: https://phabricator.services.mozilla.com/D105926
2022-06-06 20:00:45 +00:00
Emilio Cobos Álvarez
fb05cda721
Bug 1772690 - Add a debug-only ComputedStyle::DumpMatchedRules(). r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D148336
2022-06-05 21:21:10 +00:00
Daniel Holbert
551202fc84
Bug 1772228: Use BehavesLikeInitialValueOnBlockAxis to broaden/optimimize a check in IntrinsicForAxis, and answer a TODO comment with an explanation in the code. r=emilio
...
The TODO comment (removed here) was correct that we could/should be using
BehavesLikeInitialValueOnBlockAxis instead of explicit `auto` / `none` checks
(since any value that behaves like the initial value will have the same
semantics as far as this code is concerned, in terms of not generating a
meaningful transferred constraint).
The explicit `minBSize == 0 check **is still needed** (or at least, it's still
useful), since 0 is trivially uninteresting as a transferred lower-bound, so
it's valid to exclude it from the guarded logic (and 0 is not handled by the
BehavesLikeInitialValueOnBlockAxis() check). In this patch I broaden it to
check IsDefinitelyZero(), though (to include 0%).
Hopefully the new code-comment and lambda make these checks clearer.
Differential Revision: https://phabricator.services.mozilla.com/D148079
2022-06-05 21:20:00 +00:00
Tim Nguyen
d6f65f3847
Bug 1772668 - Move text-align-last reftests to WPT. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D148335
2022-06-04 13:00:53 +00:00
Emilio Cobos Álvarez
8adeaaa67f
Bug 1343919 - Fix base URI in KeyframeEffect. r=birtles
...
This is the only meaningful consumer of
ServoCSSParser::GetParsingEnvironment right now, but seems worth fixing
before other folks add more.
Differential Revision: https://phabricator.services.mozilla.com/D148145
2022-06-04 12:49:12 +00:00
Emilio Cobos Álvarez
b24faeba30
Bug 1750102
- Add an input-region-margin to widgets, and implement it on Linux. r=stransky
...
Recompute the input region when resizing the widget and so on, and use
it to check for rollups.
Depends on D148211
Differential Revision: https://phabricator.services.mozilla.com/D148222
2022-06-04 12:41:06 +00:00
Jonathan Kew
f117f58e47
Bug 1771609 - patch 3 - Remove nsAutoLineIterator, as it no longer serves any useful purpose since the iterator is owned by the target frame. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D147579
2022-06-03 22:05:36 +00:00
Jonathan Kew
e0a3c0d3b2
Bug 1771609 - patch 2 - Cache the block's nsLineIterator in a property on nsBlockFrame, for better performance on large pages. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D147578
2022-06-03 22:05:36 +00:00
Razvan Cojocaru
f0ceea18e4
Bug 1767127 - Change the types of FilterInstance::m[UserSpaceToFilter|FilterSpaceToUser]SpaceScale to MatrixScalesDouble. r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D148138
2022-06-03 19:55:30 +00:00
Emilio Cobos Álvarez
50fea61916
Bug 1770829
- Use ColorMix for interpolated colors in the computed style rather than ComplexColorRatios. r=barret
...
This among other things preserves the right color-space when
interpolating currentColor.
Differential Revision: https://phabricator.services.mozilla.com/D147512
2022-06-03 19:11:07 +00:00
Dan Robertson
9a05a09fb2
Bug 1760368 - Overscroll transform should not apply to fixed content. r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D146825
2022-06-03 18:12:25 +00:00
Marian-Vasile Laza
30722837c1
Backed out changeset d2838baf9655 (bug 1750102
) for causing bustages on nsStyleStruct.cpp by partially backing out 1750102
. CLOSED TREE
2022-06-03 20:38:13 +03:00
Marian-Vasile Laza
c7d153ca29
Backed out changeset c8b026cff732 (bug 1750102
) for causing bc failures on browser_test_autoscrolling_in_extension_popup_window.js. CLOSED TREE
2022-06-03 20:12:55 +03:00
Emilio Cobos Álvarez
20e06ba3ee
Bug 1750102
- Two minor style system fixups.
...
MANUAL PUSH: Trivial fixup CLOSED TREE
2022-06-03 12:58:31 +02:00
Emilio Cobos Álvarez
c6c289ff2d
Bug 1750102
- Add an input-region-margin to widgets, and implement it on Linux. r=stransky
...
Recompute the input region when resizing the widget and so on, and use
it to check for rollups.
Depends on D148211
Differential Revision: https://phabricator.services.mozilla.com/D148222
2022-06-03 10:39:13 +00:00
Emilio Cobos Álvarez
2bd192dbd0
Bug 1772432 - Remove nsWidgetInitData::mMouseTransparent. r=stransky
...
Instead, have the menu popup frame call SetWindowMouseTransparent (since
it needs to anyways to deal with dynamic changes).
Differential Revision: https://phabricator.services.mozilla.com/D148211
2022-06-03 09:41:39 +00:00