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

77414 Коммитов

Автор SHA1 Сообщение Дата
Sandor Molnar 41e90a1bee Backed out 2 changesets (bug 1580394) for causing dt failures in browser_dbg-paused-overlay-loading. CLOSED TREE
Backed out changeset e692ec7d440f (bug 1580394)
Backed out changeset 0ceda05fc737 (bug 1580394)
2021-12-01 11:20:15 +02:00
Emilio Cobos Álvarez a198b03c34 Bug 1580394 - Add an InsertAnonymousContent version which tries to update layout synchronously if needed. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132034
2021-12-01 08:11:22 +00:00
Emilio Cobos Álvarez 542b017923 Bug 1743150 - Shorthands in computed style shouldn't be enumerable. r=layout-reviewers,jfkthame
This is as per spec, and causes failures once we enable the pref to expose
shorthands in the computed style. We need to decouple the "enabled-ness" from
the enumerable-ness, which we do by keeping two separate arrays, and leaving
ComputedStyleMap for the enumeration.

Differential Revision: https://phabricator.services.mozilla.com/D132266
2021-12-01 07:20:19 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Ting-Yu Lin 5addb144e4 Bug 1743537 Part 6 - Rename arguments of ScrollFrameHelper::LayoutScrollbars(). r=emilio
Technically, `aContentArea` is not 100% wrong; its the content area of the outer
scroll frame, which contains the content area of the inner scrolled frame, the
padding, and the scrollbars. However, it should really be named
`aInsideBorderArea` as the caller names it. Otherwise, it is easy to cause
confusion with the content area of the inner scrolled frame.

Also, rename `aOldScrollArea` as well so that we use the term "scroll port"
consistently.

Differential Revision: https://phabricator.services.mozilla.com/D132445
2021-11-30 23:25:22 +00:00
Ting-Yu Lin cd368a47f6 Bug 1743537 Part 5 - Rename variables names storing mScrollPort. r=emilio
Make these variables more distinguishable from `oldScrolledAreaBounds` and
`newScrolledAreaBounds`.

Differential Revision: https://phabricator.services.mozilla.com/D132444
2021-11-30 23:25:22 +00:00
Ting-Yu Lin b5de753621 Bug 1743537 Part 4 - Cache scrollbar sizes in ScrollReflowInput. r=layout-reviewers,emilio
Scrollbar's min and pref sizes won't change during reflow, so we can cache them
in ScrollReflowInput to save some repetitive computation in multiple
ReflowScrolledFrame() and TryLayout() calls.

This is also a preparation for Bug 1715112 because we can use the pref sizes to
compute the scrollbar-gutter size in ScrollReflowInput.

Differential Revision: https://phabricator.services.mozilla.com/D132443
2021-11-30 23:25:22 +00:00
Ting-Yu Lin 9a7c5736d5 Bug 1743537 Part 3 - Call SetScrollbarMediatorContent in ScrollReflowInput's constructor. r=emilio
It should be sufficient to call `SetScrollbarMediatorContent` once in
ScrollReflowInput's constructor, which is created in the beginning of
nsHTMLScrollFrame::Reflow(), instead of calling it repeatedly in multiple
TryLayout() calls.

Differential Revision: https://phabricator.services.mozilla.com/D132442
2021-11-30 23:25:21 +00:00
Ting-Yu Lin 3495f5356d Bug 1743537 Part 2 - Pass ScrollReflowInput argument by reference. r=emilio
We've had some APIs passing ScrollReflowInput by reference while some others
using pointer. Let's unify them by using reference everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D132441
2021-11-30 23:25:21 +00:00
Ting-Yu Lin 33bd4df6d2 Bug 1743537 Part 1 - Move ScrollReflowInput members' initialization into its constructor. r=layout-reviewers,emilio
They shouldn't be scattered in nsHTMLScrollFrame::Reflow(). Also, reorder these
assignment operations according to the member variables' appearance order in
ScrollReflowInput.

I also moved the constructor out of the class definition because it becomes a
large method, and I'm going to add `private:` section after the methods section
in a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D132440
2021-11-30 23:25:21 +00:00
Mike Hommey 9e8fdcc107 Bug 1739078 - Add MOZ_ICU_CFLAGS to bindgen flags for stylo. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D131995
2021-11-30 21:34:14 +00:00
Marian-Vasile Laza 3bfa529b3e Backed out 6 changesets (bug 1715892, bug 1719735) for causing bc test failures. CLOSED TREE
Backed out changeset 196952bd8c9c (bug 1715892)
Backed out changeset 9105fe01c025 (bug 1715892)
Backed out changeset 4c15d1a24ccd (bug 1715892)
Backed out changeset 2c328b84285f (bug 1715892)
Backed out changeset 8fcdcdf44b62 (bug 1719735)
Backed out changeset c48f398e301f (bug 1719735)
2021-11-30 23:30:59 +02:00
Greg Tatum 9b5497020e Bug 1715892 - Unify locale/DateTimeFormat to mozilla::intl::AppDateTimeFormat; r=platform-i18n-reviewers,dminor
I considered removing this class initially, but it's actually a pretty
useful abstraction over the DateTimeFormat interface when used
specifically with Gecko. It applies the OS preferences and provides some
caching behavior.

Differential Revision: https://phabricator.services.mozilla.com/D131671
2021-11-30 19:05:58 +00:00
Jonathan Kew 7964cdbec5 Bug 1743560 - Prefer a face named 'Regular' over other faces in a macOS font family if they cannot be distinguished by style attributes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132486
2021-11-30 17:01:11 +00:00
Emilio Cobos Álvarez a03153bd1b Bug 1743027 - Simplify plaintext.css dark mode code. r=jwatt
Now that we have dark color-scheme everywhere we don't need to hard-code
this.

Differential Revision: https://phabricator.services.mozilla.com/D132187
2021-11-30 15:06:51 +00:00
Emilio Cobos Álvarez c9d4405306 Bug 1743310 - Remove paint flashing. r=gfx-reviewers,lsalzman
It's only meaningfully read in two places:

 * WebRender fallback code.
 * Some widget DEBUG-only code, which on Linux is ifdef'd and on Windows does
   some rather sketchy things like sleeping for 30ms

So I think it should be ok to remove, since WR fallback has its own flashing
pref as well, IIUC.

Differential Revision: https://phabricator.services.mozilla.com/D132313
2021-11-30 11:46:08 +00:00
Emilio Cobos Álvarez 52174f1ecb Bug 1743310 - Remove paint flahing support from the layout debugger. r=hiro
Doesn't do anything particularly useful nowadays, see above.

Differential Revision: https://phabricator.services.mozilla.com/D132312
2021-11-30 11:46:07 +00:00
Butkovits Atila 724754167c Backed out 2 changesets (bug 1580394) for causing failures at browser_dbg-paused-overlay-loading.js. CLOSED TREE
Backed out changeset 6d96da07e581 (bug 1580394)
Backed out changeset db068d3108a2 (bug 1580394)
2021-11-30 12:44:44 +02:00
Emilio Cobos Álvarez 4253a7fa88 Bug 1580394 - Add an InsertAnonymousContent version which tries to update layout synchronously if needed. r=nchevobbe,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132034
2021-11-30 09:33:19 +00:00
Miko Mynttinen 6edc3c9c20 Bug 1742850 - Add logging for display list building r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D132065
2021-11-29 14:50:53 +00:00
Glenn Watson ab52fe7f54 Bug 1742903 - Fix fuzziness annotation on mac r=gfx-reviewers,mstange
The fuzziness result is now consistent across mac/linux.

Differential Revision: https://phabricator.services.mozilla.com/D132309
2021-11-28 21:16:18 +00:00
Deian Stefan 1ee9a841d8 Bug 1732201 - Sandbox woff2 in OTS using RLBox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D126435
2021-11-27 23:30:49 +00:00
Cristian Tuns f0ef0360eb Backed out changeset d486edc7499b (bug 1732201) for causing web-platform-tests failures on header-totalsfntsize-001.xht CLOSED TREE 2021-11-27 07:32:22 -05:00
Andrew Osmond af4570762c Bug 1711061 - Part 12. Change the display list to use WebRenderImageProvider. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D126605
2021-11-27 11:47:40 +00:00
Deian Stefan 0a5e1f2075 Bug 1732201 - Sandbox woff2 in OTS using RLBox r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D126435
2021-11-27 04:41:21 +00:00
Glenn Watson 019a9ef9a0 Bug 1742907 - Update fuzziness for animate-preserve3d-child.html r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132268
2021-11-26 21:04:56 +00:00
Emilio Cobos Álvarez 4354146592 Bug 1432090 - Honor GTK button layout. r=stransky,desktop-theme-reviewers,dao
This is based off work by smurfd. But this patch doesn't support buttons
both at the left and right, which simplifies a lot the implementation.

Also, clean-up the existing env variables while at it.

Co-authored-by: Nicklas Boman <smurfd@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D132073
2021-11-26 11:37:52 +00:00
Emilio Cobos Álvarez 2dca36cb25 Bug 502258 - Add a Show Password button to <input type=password> controls. r=Gijs
It's controlled by the pref:
layout.forms.input-type-show-password-button.enabled

Differential Revision: https://phabricator.services.mozilla.com/D130407
2021-11-25 20:12:05 +00:00
Glenn Watson 03f806f11b Bug 1742907 - Update fuzziness for animate-preserve3d-parent.html r=gfx-reviewers,jrmuizel
Needs a few extra pixels fuzziness on tier 2 platforms.

Differential Revision: https://phabricator.services.mozilla.com/D132181
2021-11-25 20:10:02 +00:00
Glenn Watson 998283bed3 Bug 1742686 - Intern clips with spatial node indices r=gfx-reviewers,kvark
Since spatial node indices are now stable across display lists,
we can include them in the interned data for clips.

This means that much of the code complexity related to clip
instances can be removed (though this is left for a follow
up patch once this has been in nightly for some time without
causing any regressions).

Long term, this means that clips are retained between display lists
along with their positioning information. We can take advantage of
this to cache state / dependencies about clips between different
display lists, which will eliminate some redundant clip work we
currently do every scene/frame build.

Differential Revision: https://phabricator.services.mozilla.com/D131962
2021-11-24 23:46:22 +00:00
Nika Layzell 26555d958a Bug 1734739 - Part 1: Stop requiring otherpid for ShareTo, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D128218
2021-11-24 17:56:00 +00:00
Emilio Cobos Álvarez 534a2657be Bug 1741124 - Don't apply CSS perspective to non-CSS-transformed frames. r=miko
Applying it to SVG-transformed frames is wrong, and causes us to
rasterize rather massive SVGs. This is consistent with the other CSS
3d transforms code, and our rendering of the test-case matches other
browsers.

Differential Revision: https://phabricator.services.mozilla.com/D132040
2021-11-24 16:33:12 +00:00
Emilio Cobos Álvarez 7be3218970 Bug 1741776 - Make sure <option> is a containing-block for positioned descendants. r=miko
We have other code to make sure that options themselves are in-flow, so
we really want abspos boxes not to escape the select element.

Other browsers don't allow having out-of-flow option children at all
(they seem to force descendants to be in-flow). However that seems
fairly more complicated to implement, and I don't think it particularly
matters how we deal with this as long as we deal with it in a
sorta-reasonable way.

Differential Revision: https://phabricator.services.mozilla.com/D131785
2021-11-24 10:43:50 +00:00
criss b1ce91ad33 Backed out changeset b6be0f1bccf7 (bug 1739078) for causing build bustages. CLOSED TREE 2021-11-24 10:17:20 +02:00
Mike Hommey 032bac9c9c Bug 1739078 - Add MOZ_ICU_CFLAGS to bindgen flags for stylo. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D131995
2021-11-24 07:36:43 +00:00
Butkovits Atila 99c27e9b05 Backed out changeset 1f2d586e5968 (bug 1741776) for causing failures at test_bug858459.html. CLOSED TREE 2021-11-23 20:59:39 +02:00
Emilio Cobos Álvarez d6a2f350b2 Bug 1741776 - Make sure <option> is a containing-block for positioned descendants. r=miko
We have other code to make sure that options themselves are in-flow, so
we really want abspos boxes not to escape the select element.

Other browsers don't allow having out-of-flow option children at all
(they seem to force descendants to be in-flow). However that seems
fairly more complicated to implement, and I don't think it particularly
matters how we deal with this as long as we deal with it in a
sorta-reasonable way.

Differential Revision: https://phabricator.services.mozilla.com/D131785
2021-11-23 15:11:55 +00:00
Emilio Cobos Álvarez 24be48359c Bug 1742574 - Keep system fonts when prioritizing user fonts. r=jfkthame,layout-reviewers
This was a subtle behavior change in bug 1739464. The early-return here:

  https://hg.mozilla.org/mozilla-central/rev/2fb74c67b0c5#l11.40

Meant we also bailed out from user font prioritization for system fonts.

It's unclear whether that's really the best behavior but since the
intention of the regressing patch was not to change behavior, preserving
the old behavior seems better.

Differential Revision: https://phabricator.services.mozilla.com/D131899
2021-11-23 12:41:19 +00:00
Emilio Cobos Álvarez 4fc02f6f53 Bug 1742411 - Prefer content property to img src on image elements. r=dholbert
Given the compat reports in bug 1484928, I don't think it's worth
keeping the current behavior.

Our behavior should match other browsers now. Rather than making
content: url() work everywhere even for otherwise-replaced elements,
just special-case this since that's what other browsers seem to do.

Differential Revision: https://phabricator.services.mozilla.com/D131797
2021-11-23 11:36:21 +00:00
Hiroyuki Ikezoe 26f550200e Bug 1742495 - Drop ScrollOrigin argument from ScrollToCSSPixelsApproximate. r=botond
And rename the function to ScrollToCSSPixelsForApz.

Differential Revision: https://phabricator.services.mozilla.com/D131854
2021-11-23 02:05:33 +00:00
lamoure6 3478e8ae47 Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-11-22 22:10:33 +00:00
Sylvestre Ledru 70be2344fc Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici
This changed with this:
https://github.com/psf/black/pull/1740

Depends on D130964

Differential Revision: https://phabricator.services.mozilla.com/D130965
2021-11-22 22:10:03 +00:00
Deian Stefan 86e82e1036 Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-22 06:19:17 +00:00
Sandor Molnar 51a05715fe Backed out changeset 4294063f1606 (bug 1688452) for causing mochitest and wpt failures. CLOSED TREE 2021-11-20 13:00:27 +02:00
Deian Stefan fcd2e09518 Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-19 21:28:53 +00:00
Emilio Cobos Álvarez ff07ef7e17 Bug 1739464 - Simplify language-dependent font fallback code. r=jfkthame
.fallback is always the default font for the lang group unless we're a
system font (in which case it's "none").

The only reason we need that is because we need to react to
language changes (which affect the initial font).

Simplify the model a bit doing the language lookup in gfxTextRun (this
should avoid allocating a few nsStyleFont structs too.

Depends on D130732

Differential Revision: https://phabricator.services.mozilla.com/D131312
2021-11-19 16:11:55 +00:00
Emilio Cobos Álvarez 2f4e4df679 Bug 1739464 - Use first generic rather than only generic to determine fallback font family. r=jfkthame
This seems like more sensible behavior. We have another use of
only_generic(), but that affects font sizing and other browsers agree
with us there:

  <div style="font-family: monospace">Should be 13px</div>
  <div style="font-family: something, monospace">Should be 16px</div>

So not touching that one.

Differential Revision: https://phabricator.services.mozilla.com/D130732
2021-11-19 16:11:54 +00:00
Alexandru Michis d4f3d0994e Backed out changeset 7893bbd002e0 (bug 1688452) for causing bustages in nsRLBoxExpatDriver.
CLOSED TREE
2021-11-19 15:54:31 +02:00
Deian Stefan 76c5d8907d Bug 1688452 - Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv,bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-11-19 06:08:36 +00:00
Ting-Yu Lin 5d4998ecf4 Bug 1741774 - Support scrollbar-gutter in the style system. r=emilio
This patch adds `scrollbar-gutter` property in CSS Overflow level 3 [1] to the
style system.

`devtools/shared/css/generated/properties-db.js` is generated by
`./mach devtools-css-db`.

[1] https://drafts.csswg.org/css-overflow-3/#scrollbar-gutter-property

Differential Revision: https://phabricator.services.mozilla.com/D131460
2021-11-19 01:48:07 +00:00