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

73369 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini c71431ab1b Bug 1648141 - IPCBlobInputStream to RemoteLazyInputStream - part 8 - mozilla namespace, r=smaug,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D80931
2020-06-29 10:30:00 +00:00
Andrea Marchesini 54b73ea513 Bug 1648141 - IPCBlobInputStream to RemoteLazyInputStream - part 2 - RemoteLazyInputStreamStorage, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D80925
2020-06-29 10:25:24 +00:00
longsonr 5a4aaccb28 Bug 386713 - Mark text-font-weight-01.svg passing on linux r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D81453
2020-06-28 23:40:18 +00:00
Glenn Watson 1628e0582a Bug 1647862 - Fix panic when casting large rects to i32. r=Bert
In various parts of the picture and mask code, we were casting
the `clipped` rect to i32 (after rounding out). However, this
can cause overflow panics when the origin of the rect is too big.

Instead, treat the origin as f32 (which it was generally being
converted to anyway), and only cast the size part to be i32 as
required. This is safe since we know that the size has been
clipped to the visible screen, so will always be safe to cast
to i32.

Differential Revision: https://phabricator.services.mozilla.com/D80968
2020-06-28 22:00:56 +00:00
Kagami Sascha Rosylight 21f2b48e01 Bug 1647525 - Use HasAnyStateBits() in remaining layout files r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81230
2020-06-28 01:00:19 +00:00
Kagami Sascha Rosylight 3979f83c6e Bug 1647525 - Use HasAnyStateBits() in nsSplitterFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81229
2020-06-27 14:32:34 +00:00
Kagami Sascha Rosylight afef7b8459 Bug 1647525 - Use HasAnyStateBits() in nsPopupSetFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81228
2020-06-27 14:28:32 +00:00
Kagami Sascha Rosylight f54ce89254 Bug 1647525 - Use HasAnyStateBits() in nsBoxFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81227
2020-06-27 14:30:49 +00:00
Kagami Sascha Rosylight e99550a841 Bug 1647525 - Use HasAnyStateBits() in nsBox r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81226
2020-06-27 14:26:27 +00:00
Kagami Sascha Rosylight fe4c508e22 Bug 1647525 - Use HasAnyStateBits() in nsTableFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81225
2020-06-27 14:28:49 +00:00
Kagami Sascha Rosylight 24b9873504 Bug 1647525 - Use HasAnyStateBits() in SVGTextFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81224
2020-06-27 14:22:58 +00:00
Kagami Sascha Rosylight 1922472bfb Bug 1647525 - Use HasAnyStateBits() in SVGObserverUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81223
2020-06-27 14:22:50 +00:00
Kagami Sascha Rosylight f3236784fc Bug 1647525 - Use HasAnyStateBits() in SVGGeometryFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81222
2020-06-27 14:22:02 +00:00
Kagami Sascha Rosylight 52dc835ea9 Bug 1647525 - Use HasAnyStateBits() in nsSVGUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81221
2020-06-27 14:21:39 +00:00
Kagami Sascha Rosylight 1321196011 Bug 1647525 - Use HasAnyStateBits() in nsSVGSwitchFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81220
2020-06-27 14:23:36 +00:00
Kagami Sascha Rosylight a4ae8eced4 Bug 1647525 - Use HasAnyStateBits() in nsSVGOuterSVGFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81219
2020-06-27 14:18:09 +00:00
Kagami Sascha Rosylight 01781c983c Bug 1647525 - Use HasAnyStateBits() in nsSVGIntegrationUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81218
2020-06-27 14:15:47 +00:00
Kagami Sascha Rosylight 73697d6a65 Bug 1647525 - Use HasAnyStateBits() in nsSVGForeignObjectFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81217
2020-06-27 15:53:29 +00:00
Kagami Sascha Rosylight ea355c9152 Bug 1647525 - Use HasAnyStateBits() in nsSVGContainerFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81216
2020-06-27 14:15:42 +00:00
Kagami Sascha Rosylight e6be47e504 Bug 1647525 - Use HasAnyStateBits() in nsFontFaceUtils r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81215
2020-06-27 14:10:40 +00:00
Kagami Sascha Rosylight 0011786c13 Bug 1647525 - Use HasAnyStateBits() in nsDisplayList r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81214
2020-06-27 14:11:08 +00:00
Kagami Sascha Rosylight b6dc482753 Bug 1647525 - Use HasAnyStateBits() in nsCSSRendering r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81213
2020-06-27 14:09:53 +00:00
Kagami Sascha Rosylight c444cc3b4f Bug 1647525 - Use HasAnyStateBits() in nsMathMLContainerFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81212
2020-06-27 14:07:05 +00:00
Kagami Sascha Rosylight aba64a8c07 Bug 1647525 - Use HasAnyStateBits() in ViewportFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81211
2020-06-27 14:09:45 +00:00
Kagami Sascha Rosylight 0c4cbfa46b Bug 1647525 - Use HasAnyStateBits() in ReflowInput r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81210
2020-06-27 14:06:06 +00:00
Kagami Sascha Rosylight 7815996cb8 Bug 1647525 - Use HasAnyStateBits() in nsTextFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81209
2020-06-27 13:17:44 +00:00
Kagami Sascha Rosylight fdd4c54d63 Bug 1647525 - Use HasAnyStateBits() in nsSubDocumentFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81208
2020-06-27 13:17:36 +00:00
Kagami Sascha Rosylight 2cff1c7497 Bug 1647525 - Use HasAnyStateBits() in nsSplittableFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81207
2020-06-27 13:17:29 +00:00
Kagami Sascha Rosylight b601151ba7 Bug 1647525 - Use HasAnyStateBits() in nsPlaceholderFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81206
2020-06-27 13:17:21 +00:00
Kagami Sascha Rosylight 211ea9487d Bug 1647525 - Use HasAnyStateBits() in nsInlineFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81205
2020-06-27 13:17:14 +00:00
Kagami Sascha Rosylight 1732f70ce2 Bug 1647525 - Use HasAnyStateBits() in nsIFrameInlines r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81204
2020-06-27 13:17:06 +00:00
Kagami Sascha Rosylight 8be8aebf9d Bug 1647525 - Use HasAnyStateBits() in nsGridContainerFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81203
2020-06-27 13:17:04 +00:00
Kagami Sascha Rosylight 93819231cb Bug 1647525 - Use HasAnyStateBits() in nsGfxScrollFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81202
2020-06-27 13:16:56 +00:00
Kagami Sascha Rosylight ac5b595f91 Bug 1647525 - Use HasAnyStateBits() in nsFontInflationData r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81201
2020-06-27 13:16:49 +00:00
Kagami Sascha Rosylight 665e5fe0b3 Bug 1647525 - Use HasAnyStateBits() in nsFlexContainerFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81200
2020-06-27 13:16:41 +00:00
Kagami Sascha Rosylight 91d8e0a89a Bug 1647525 - Use HasAnyStateBits() in nsContainerFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81199
2020-06-27 14:07:43 +00:00
Kagami Sascha Rosylight 2bd2a63ded Bug 1647525 - Use HasAnyStateBits() in nsColumnSetFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81198
2020-06-27 13:16:31 +00:00
Kagami Sascha Rosylight ca9abb5ac5 Bug 1647525 - Use HasAnyStateBits() in nsCanvasFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81197
2020-06-27 13:16:23 +00:00
Kagami Sascha Rosylight 12f08ffb68 Bug 1647525 - Use HasAnyStateBits() in nsBulletFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81196
2020-06-27 13:16:21 +00:00
longsonr 71614873fb Bug 1648737 - Move SVGAFrame SVGGFrame SVGGenericContainerFrame SVGInnerSVGFrame SVGMarkerFrame SVGMaskFrame SVGSymbolFrame SVGViewportFrame to the mozilla namespace r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D81310
2020-06-27 05:39:42 +00:00
Mihai Alexandru Michis 20dfc519d1 Backed out changeset 1b8b8756acad (bug 1648737) for causing bustages in SVGMaskFrame.h
CLOSED TREE
2020-06-27 02:24:41 +03:00
Ting-Yu Lin 21e20054e5 Bug 1648824 - Set correct build dependency for FrameClasses.py. r=jwatt
GenerateFrameLists.py uses FrameClasses.py as an input. We should add
FrameClasses.py in 'inputs' arguments so that whenever FrameClasses.py
is changed, the build system re-runs GenerateFrameLists.py.

Differential Revision: https://phabricator.services.mozilla.com/D81371
2020-06-26 21:43:40 +00:00
longsonr 3b9835e5b8 Bug 1648737 - Move SVGAFrame SVGGFrame SVGGenericContainerFrame SVGInnerSVGFrame SVGMarkerFrame SVGMaskFrame SVGSymbolFrame SVGViewportFrame to the mozilla namespace r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D81310
2020-06-26 19:27:08 +00:00
Ting-Yu Lin 675da8e9a4 Bug 1648673 - Remove duplicate CSSOrderAwareFrameIteratorT typedefs in nsGridContainerFrame.h r=dholbert
* It's easier to maintain the type aliases of in one place, i.e.
CSSOrderAwareFrameIterator.h, and the iterator's header itself doesn't
include a lot of headers that add complex dependencies to
nsGridContainerFrame.h.

* Make "jump to definition" functionality in editors work
correctly (rather than just jumping to those declarations.)

Differential Revision: https://phabricator.services.mozilla.com/D81281
2020-06-26 16:51:40 +00:00
Kartikaya Gupta 2876150741 Bug 1648742 - Make the reftest-analyzer render TEST-KNOWN-INTERMITTENT-FAIL screenshots. r=jgraham
Also it will understand TEST-KNOWN-INTERMITTENT-PASS, but not render those by
default since they're passing.

Differential Revision: https://phabricator.services.mozilla.com/D81314
2020-06-26 12:26:57 +00:00
Emilio Cobos Álvarez 7c995807da Bug 1646936 - Generate a single metadata file in the objdir, and feed it to cbindgen. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80360
2020-06-26 10:41:26 +00:00
Coroiu Cristina 302c2fa31a Backed out changeset 8f948dd74aba (bug 1646936) for SM and Toolchain failures on a CLOSED TREE 2020-06-26 13:08:09 +03:00
Emilio Cobos Álvarez 9c7c03bf30 Bug 1646936 - Generate a single metadata file in the objdir, and feed it to cbindgen. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80360
2020-06-26 09:37:16 +00:00
Emilio Cobos Álvarez 8ae606c7bf Bug 1648095 - Don't defer the same sheet load twice. r=heycam
When we call into LoadSheet when starting pending loads for a given
loader, it may be the case that the original loader may still not care
about the load. However some other loader will, so we can't defer this.

This was also causing our state to get out of sync, because if this
happened, then we'd fail to account for it in other loaders.

Differential Revision: https://phabricator.services.mozilla.com/D81119
2020-06-26 01:17:40 +00:00
Timothy Nikkel bc9a1824af Bug 1647948. Relax assertion about image aspect ratio to consider that images can go into error state. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80826
2020-06-25 23:51:22 +00:00
Ting-Yu Lin a826558cef Bug 1648615 - Add hotkeys to dump DOM tree and frame tree in layout debugger. r=emilio
* ctrl+d: Dump DOM tree (content). (Use "d" because "c" is for copy.)
* ctrl+f: Dump frame trees.
* ctrl+p: Dump frame trees in CSS pixels.

On macOS, the modified is cmd instead of ctrl.

Differential Revision: https://phabricator.services.mozilla.com/D81234
2020-06-25 23:59:15 +00:00
longsonr ea442838d3 Bug 1648463 - Move SVGForeignObjectFrame SVGImageFrame and SVGUseFrame to mozilla namespace r=dholbert,jgilbert
stop exposing SVGImageListener as only SVGImageFrame uses it.

Differential Revision: https://phabricator.services.mozilla.com/D81087
2020-06-25 20:42:49 +00:00
Hiroyuki Ikezoe 1320a9622c Bug 1648013 - Migrate reftest-paged reftests in layout/reftests/columns into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80832
2020-06-25 21:01:34 +00:00
Hiroyuki Ikezoe 2d9e750de3 Bug 1648016 - Migrate reftest-paged reftests in layout/reftests/details-summary into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80833
2020-06-25 21:01:26 +00:00
Daosheng Mu af1368e7aa Bug 1602072 - Add a gfxInfo flag determine Firefox is embedded by FxR for telemetry. r=thomasmo,chutten,froydnj,jrmuizel,geckoview-reviewers,rbarker,snorp
Differential Revision: https://phabricator.services.mozilla.com/D56233
2020-06-25 17:22:20 +00:00
Kagami Sascha Rosylight 183aa61185 Bug 1647525 - Use HasAnyStateBits() in nsBlockFrame.h r=emilio
Depends on D81106

Differential Revision: https://phabricator.services.mozilla.com/D81107
2020-06-25 14:50:56 +00:00
Kagami Sascha Rosylight 3ae5939e53 Bug 1647525 - Use HasAnyStateBits() in nsBlockFrame.cpp r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81106
2020-06-25 16:12:44 +00:00
Kagami Sascha Rosylight 1eb0cddc4a Bug 1647525 - Use HasAllStateBits in nsBlockFrame.cpp r=emilio
Depends on D81104

Differential Revision: https://phabricator.services.mozilla.com/D81105
2020-06-25 14:48:46 +00:00
Kagami Sascha Rosylight 39f111a1de Bug 1647525 - Use HasAnyStateBits() in nsAbsoluteContainingBlock r=emilio
Depends on D81103

Differential Revision: https://phabricator.services.mozilla.com/D81104
2020-06-25 14:44:44 +00:00
Kagami Sascha Rosylight 64a111025f Bug 1647525 - Use HasAnyStateBits() in BlockReflowInput r=emilio
Depends on D81102

Differential Revision: https://phabricator.services.mozilla.com/D81103
2020-06-25 14:43:26 +00:00
Kagami Sascha Rosylight 1bc00c970c Bug 1647525 - Use HasAnyStateBits() in nsSelectsAreaFrame r=emilio
Depends on D81101

Differential Revision: https://phabricator.services.mozilla.com/D81102
2020-06-25 14:11:10 +00:00
Kagami Sascha Rosylight fc512af910 Bug 1647525 - Use HasAnyStateBits() in nsListControlFrame r=emilio
Depends on D81100

Differential Revision: https://phabricator.services.mozilla.com/D81101
2020-06-25 14:11:03 +00:00
Kagami Sascha Rosylight 987d11319c Bug 1647525 - Use HasAnyStateBits() in nsFieldSetFrame r=emilio
Depends on D81099

Differential Revision: https://phabricator.services.mozilla.com/D81100
2020-06-25 14:10:40 +00:00
Kagami Sascha Rosylight ec26e7ea7d Bug 1647525 - Use HasAnyStateBits() in nsComboboxControlFrame r=emilio
Depends on D81098

Differential Revision: https://phabricator.services.mozilla.com/D81099
2020-06-25 14:10:27 +00:00
Kagami Sascha Rosylight c1fb8f39c5 Bug 1647525 - Use HasAnyStateBits() in RestyleManager r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81098
2020-06-25 14:24:45 +00:00
Kagami Sascha Rosylight 105b257eeb Bug 1647525 - Use HasAnyStateBits() in PresShell r=emilio
Depends on D81096

Differential Revision: https://phabricator.services.mozilla.com/D81097
2020-06-25 14:09:31 +00:00
Kagami Sascha Rosylight 330db08f71 Bug 1647525 - Use HasAnyStateBits() in nsLayoutUtils r=emilio
Depends on D81095

Differential Revision: https://phabricator.services.mozilla.com/D81096
2020-06-25 14:27:15 +00:00
Kagami Sascha Rosylight f99f3caa1e Bug 1647525 - Use HasAnyStateBits() in nsGenConList r=emilio
Depends on D81094

Differential Revision: https://phabricator.services.mozilla.com/D81095
2020-06-25 14:09:00 +00:00
Kagami Sascha Rosylight 70a090ba3a Bug 1647525 - Use HasAnyStateBits() in nsFrameManager r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81094
2020-06-25 15:39:32 +00:00
Kagami Sascha Rosylight 1793f22207 Bug 1647525 - Use HasAnyStateBits() in nsCSSFrameConstructor r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81093
2020-06-25 14:23:35 +00:00
Kagami Sascha Rosylight 8c5c27b442 Bug 1647525 - Use HasAnyStateBits() in nsCaret r=emilio
Depends on D81091

Differential Revision: https://phabricator.services.mozilla.com/D81092
2020-06-25 14:07:45 +00:00
Kagami Sascha Rosylight 874fc4b1a7 Bug 1647525 - Use HasAnyStateBits() in nsBidiPresUtils r=emilio
Depends on D81090

Differential Revision: https://phabricator.services.mozilla.com/D81091
2020-06-25 14:07:33 +00:00
Kagami Sascha Rosylight c6824c2d07 Bug 1647525 - Use HasAnyStateBits() in nsIFrame.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81090
2020-06-25 14:06:55 +00:00
Emilio Cobos Álvarez 88f6ea40ee Bug 1647474 - Wait for frame callbacks on the right window. r=kats
Quite obvious in hindsight :(

Differential Revision: https://phabricator.services.mozilla.com/D81128
2020-06-25 16:00:43 +00:00
Kartikaya Gupta fcd82d40d2 Bug 1648451 - Stop resetting the scroll anchor on visual viewport size changes. r=emilio
While it makes sense to do this when the visual viewport offset changes, it
doesn't make as much sense when the visual viewport size changes. The size can
change whenever non-overlay scrollbars are added or removed to the root
scrollframe, which is an operation that seems like it shouldn't interfere with
scroll anchoring at all.

Differential Revision: https://phabricator.services.mozilla.com/D81071
2020-06-25 12:58:50 +00:00
Kartikaya Gupta e3dbdcd341 Bug 1648305 - Use the scrollable rect size for first-paint intrinsic scale calculation. r=hiro
When meta-viewport support is enabled, the call to UpdateResolutionForFirstPaint
from RefreshViewportSize is followed by a call to ShrinkToDispalySizeIfNeeded,
which calls UpdateResolutionForContentSizeChange and uses the scrollable rect
size for the intrinsic scale computation. So the intrinsic scale computation
in UpdateResolutionForFirstPaint causes a transient state where the resolution
and visual viewport size is wrong. It is corrected immediately after, but
changing the visual viewport size like that ends up marking frames dirty for
reflow. Avoiding the transient state avoids those reflows, which is a nice
optimization.

Differential Revision: https://phabricator.services.mozilla.com/D80996
2020-06-25 08:41:24 +00:00
Narcis Beleuzu 16b93d8b26 Backed out changeset c2e266e2f077 (bug 1648013) for reftest failure on column-balancing-paged-001.html . CLOSED TREE 2020-06-25 13:45:10 +03:00
Narcis Beleuzu f8a925a7a9 Backed out changeset 3f21595a6b8e (bug 1648016) for reftest failures on details-page-break-after-1.html . CLOSED TREE 2020-06-25 13:36:59 +03:00
Hiroyuki Ikezoe 634a59dd84 Bug 1648013 - Migrate reftest-paged reftests in layout/reftests/columns into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80832
2020-06-25 09:41:47 +00:00
Hiroyuki Ikezoe 09828f53be Bug 1648016 - Migrate reftest-paged reftests in layout/reftests/details-summary into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80833
2020-06-25 09:23:53 +00:00
Delan Azabani 5dc229e516 Bug 1630935 - Add use counter and deprecation warning for STIXGeneral fonts. r=emilio
This patch adds the boolean pref mathml.stixgeneral_operator_stretching.disabled, which defaults to true iff nightly.

When the pref is true, stretched operators won’t be rendered with STIXGeneral, because we only use OpenType MATH tables (in fonts that have them) or the generic Unicode table.

When the pref is false, we continue to support STIXGeneral for stretched operators, but warn the author in devtools and bump the use counter (up to once per page). This only happens when a stretched operator actually uses STIXGeneral: not when we successfully render the operator with some other font earlier in the font-family stack, and not when STIXGeneral isn’t installed.

Differential Revision: https://phabricator.services.mozilla.com/D73833
2020-06-25 04:20:57 +00:00
Lee Salzman 0f03ab076c Bug 1645621 - gracefully downgrade to grayscale font smoothing in WR when necessary. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80969
2020-06-25 03:01:04 +00:00
Kartikaya Gupta 1098b5e8c3 Bug 1648193 - Additional minor cleanup. r=hiro
Instead of having callers compute the cssToDev and pass it to the zoom/
resolution conversion functions, we can just do it in those functions directly.

Differential Revision: https://phabricator.services.mozilla.com/D80939
2020-06-24 23:48:51 +00:00
Kartikaya Gupta 114f22a931 Bug 1648193 - Split UpdateResolution into three different functions. r=hiro
This is a hard diff to read but fundamentally a pretty simple patch. The old
UpdateResolution function had a giant if condition in the middle conditioned
on the update type. Inside the ViewportSize branch there was a further nested
if conditioned on mIsFirstPaint. The function got split into three, with each
new function holding one of the three main blocks of code, along with a copy
of the stuff before and after the if condition. And then I simplified each
function individually to remove unnecessary variables, add some early-exits
and reduce nesting levels, etc.

Depends on D80937

Differential Revision: https://phabricator.services.mozilla.com/D80938
2020-06-24 23:45:00 +00:00
Kartikaya Gupta 4549c23502 Bug 1648193 - Stop passing things to MVM that it already knows how to compute. r=hiro
This removes the two parameters to ShrinkToDisplaySizeIfNeeded and corresponding
parameters passed to UpdateResolution. The call site in nsGfxScrollFrame
gets the arguments from the MVM itself, so it seems silly to be getting things
from the MVM just to pass it back in. The other call sites are already in theMVM.
This change might be slightly less efficient because it re-computes the viewport
info when the caller might already have it but this isn't a hot code path so
I'm not too concerned.

Differential Revision: https://phabricator.services.mozilla.com/D80937
2020-06-24 22:22:17 +00:00
Emily McDonough 9c4930c11b Bug 1633737 - Fix asserts and array accesses for oversized grid tracks with repeat-auto r=emilio
Handle grid track lists that are too large in CalculateRepeatFillCount. Check
for repeat tracks that begin or end past the maximum track limit in
InitRepeatTracks, and handle the possible size mismatch in nsComputedDOMStyle.

This may result in there being fewer than the maximum number of tracks again
after removing empty tracks in a repeat(auto-fit), but only limiting the track
count after removing empty tracks would leave the number of repeat tracks
unbounded (or require a separate limit on just the repeat track count).

Differential Revision: https://phabricator.services.mozilla.com/D76191
2020-06-24 18:25:08 +00:00
Emilio Cobos Álvarez 2948ee6b8c Bug 1647871 - Remove AutoResizeReflowSquasher. r=kats
After the above, I don't think this is needed anymore, because we
shouldn't be looking at the widget size from layout.

It also shouldn't cause more reflows on desktop at least, because of the
early out in ResizeReflowIgnoreOverride before calling
SimpleResizeReflow().

Differential Revision: https://phabricator.services.mozilla.com/D80731
2020-06-24 13:29:18 +00:00
Emilio Cobos Álvarez 9972401d14 Bug 1647871 - Simplify content viewer composition size code. r=kats,hiro
This should be equivalent because:

 * Content viewer size and widget size should eventually be the same always
   (modulo mid-resize, see bug 1645954).

 * Only the root content document has a widget on android (the puppet widget).

 * Only the root content document has a dynamic toolbar.

 * We were only calling this on the root document, which has no parent pres
   context (at least with e10s). Without e10s we could have a chrome
   prescontext (not sure it that ends up being a parent in the pres context
   chain), but we should never change the resolution of that one, so I think
   aScaleContentViewerSize is just useless.

This avoids having two sources of truth by always checking the content viewer
size without subtracting the dynamic toolbar max size.

Differential Revision: https://phabricator.services.mozilla.com/D80723
2020-06-24 14:46:40 +00:00
longsonr 0a29054e26 Bug 1647101 - Move SVGTextFrame SVGViewFrame SVGFEContainerFrame SVGFEImageFrame SVGFELeafFrame SVGFEUnstyledLeafFrame into the mozilla namespace r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D80383
2020-06-23 22:59:34 +00:00
Emilio Cobos Álvarez 45dcbc2d5c Bug 1645987 - Isolate sheet cache by partitioned principal. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D80678
2020-06-24 06:47:38 +00:00
Ting-Yu Lin 6047332ae6 Bug 1647332 Part 4 - Keep doubling the extra block-size that adds to the estimate column block-size until finding a feasible one. r=heycam
In FindBestBalanceBSize(), suppose we have aUnboundedLastColumn equals
to true, and the measuring reflow of all the columns is feasible. This
setting represents the most common scenario of multi-column layout as
the multi-column footnote on Wikipedia.

We used to use 600 as the extra block-size added to the estimate column
block-size. However, if the first guess of the column block-size, say
G1, is infeasible, the feasible block-size is still bound to the sum of
all columns S. That leaves us a massive range between G1 and S to
search.

We don't want to use a larger fixed extra block-size. Although it can
reduce the possibility of failing the first guess, but for cases where a
smaller extra block-size is sufficient, it increases the search range
and the iteration number before the binary search converges.

Instead, we can spend the first few iterations doubling the extra
block-size E added to the estimate column block-size until we find the
first feasible block-size. This gives us a smaller upper bound S / N +
E, where N is the number of columns.

Differential Revision: https://phabricator.services.mozilla.com/D80571
2020-06-23 18:34:42 +00:00
Ting-Yu Lin 7818447d6c Bug 1647332 Part 3 - Extract the constant 600 app units when estimating balancing column block-size. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D80570
2020-06-23 18:34:40 +00:00
Ting-Yu Lin 777470ec78 Bug 1647332 Part 2 - Output the number of columns in ColumnBalanceData, and replace nsFrameList::GetLength(). r=heycam
The motivation is to replace mFrames.GetLength() in
FindBestBalanceBSize() since it is O(N), where N is the number of
columns.

Also, counting the column number from 1 so that it matches mUsedColCount
without needing to subtract 1 at some places.

Differential Revision: https://phabricator.services.mozilla.com/D80569
2020-06-23 18:34:36 +00:00
Ting-Yu Lin 24871a70de Bug 1647332 Part 1 - Print more information in column set log. r=heycam
* childContentBEnd: this value can be larger than
kidDesiredSize.BSize(wm) if -moz-column-content anonymous blocks has a
child which is overflow-incomplete.

* mLastBSize: last column's block-size is important in column balancing
algorithm because it sets mKnownInfeasibleBSize when a balancing
iteration is feasible.

* The iteration count in column balancing. This is an easy way to
observe column balancing performance.

Differential Revision: https://phabricator.services.mozilla.com/D80568
2020-06-23 18:34:34 +00:00
Timothy Nikkel 67d20a7d63 Bug 1646887. Do a full display list rebuild if scrollbars change to or from being overlay scrollbars. r=miko
accessible/tests/browser/bounds/browser_test_resolution.js started flipping on the pref ui.useOverlayScrollbars in order to run it's test properly.

Changing the pref ui.useOverlayScrollbars is first handled in the look and feel code. A "look-and-feel-changed" notification is sent out. PresShell::Observe receives this and calls nsPresContext::ThemeChanged. This queues a runnable. This will eventually reflow all scrollframes via the call MediaFeatureValuesChangedAllDocuments in nsPresContext::ThemeChangedInternal. But before that can happen we can paint, and |LookAndFeel::GetInt(LookAndFeel::IntID::UseOverlayScrollbars)| will return the new value. Which means ScrollFrameHelper::AppendScrollPartsTo will place the scrollbars at their new position in the display list and nothing has marked the scrollbars as modified so we fail to merge.

Differential Revision: https://phabricator.services.mozilla.com/D80585
2020-06-23 14:48:29 +00:00
manas 14bc521eda Bug 1639893 Part 1 - Partial Imlementation of GetOverflowingChildrenOfElement. r=bradwerth,emilio
Differential Revision: https://phabricator.services.mozilla.com/D80216
2020-06-23 18:51:32 +00:00
Honza Bambas 6018bc4a66 Bug 1603542 - Properly mark CSS preloads as used when processing stylesheet tags or imports, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D76528
2020-06-23 17:18:47 +00:00
Andrew Osmond a70c654c29 Bug 1550710 - Make vector images enable high quality scaling for embedded raster images. r=tnikkel
We did not pass FLAG_HIGH_QUALITY_SCALING down to the document used to
rasterize the SVG to a surface, resulting in embedded raster images to
not use high quality downscaling.

Differential Revision: https://phabricator.services.mozilla.com/D56422
2020-06-23 12:43:21 +00:00
Kagami Sascha Rosylight 8bbdc8255f Bug 1647525 - Use HasAnyStateBits() in nsIFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80573
2020-06-23 00:24:04 +00:00
Emilio Cobos Álvarez 3dba84f650 Bug 1645122 - Properly block onload when coalescing loads with other documents. r=heycam
If two loading documents hit the sheet cache and we coalesce the
resource load, there's nothing that prevents the load event on the
second document from firing right now, and there should be.

While at it, also fix the handling of the pending load count, though
it has no correctness impact on the particular test we're fixing here...

We were never decrementing it, which is of course wrong. However it
kinda ended up working because it just causes us to not defer more
loads.

The new assertions and responsibility of the counter should ensure it
stays correct.

Differential Revision: https://phabricator.services.mozilla.com/D80583
2020-06-23 08:27:54 +00:00
Emilio Cobos Álvarez e696ebbe20 Bug 1646776 - Move the preloader for stylesheets to SheetLoadData rather than StreamLoader. r=mayhemer
So as to make sense in a world where we can coalesce loads across
documents. The per-load object is the SheetLoadData, so this way we
guarantee that we fire the right events in presence of the load
coalescing that the SharedStyleSheetCache does.

Differential Revision: https://phabricator.services.mozilla.com/D80380
2020-06-22 18:10:07 +00:00
Emilio Cobos Álvarez 8c691e51cb Bug 1646776 - Don't set an URL for pending constructable stylesheet parses. r=heycam
This shouldn't have any behavior change, but it makes the code make a
bit more sense. Rather than counting inline stylesheets like a pending
load, we won't (but note that any @import inside it will).

The SheetLoadData::mURL it's supposed to be the url of the stylesheet,
so for StyleSheet::Replace it should be null.

Differential Revision: https://phabricator.services.mozilla.com/D80379
2020-06-23 02:54:58 +00:00
Kartikaya Gupta 5b98dad2b2 Bug 1644271 - Enable setting the visual viewport size for VisualViewportOnly-type MVM instances. r=tnikkel
Depends on D80090

Differential Revision: https://phabricator.services.mozilla.com/D80091
2020-06-21 20:48:28 +00:00
Kartikaya Gupta 18cdc2e52a Bug 1644271 - Mark a couple of reftests fuzzy with WR. r=tnikkel
The top end of the scrollbar seems off by a subpixel amount. Some initial
investigation is documented in bug 1646527 and points to a WR internal bug.

Depends on D80089

Differential Revision: https://phabricator.services.mozilla.com/D80090
2020-06-21 20:48:30 +00:00
Kartikaya Gupta b9d1b84ed3 Bug 1644271 - Adjust assertion counts on some crashtests. r=tnikkel
I looked at the assertion stacks and checked that there were no new kinds of
assertions being triggered, just more of the same old assertions. Seems
reasonable that as the desktop behaviour moves closer to mobile (by turning
on visual viewport codepaths) the assertion count will also match that of
mobile.

Depends on D80088

Differential Revision: https://phabricator.services.mozilla.com/D80089
2020-06-21 20:48:32 +00:00
Kartikaya Gupta a0d0d15c84 Bug 1644271 - Block some codepaths that try to use a zero display size. r=tnikkel
This fixes a number of scroll-anchoring WPT tests that otherwise fail with the
final patch in this patchset. This patch also fixes a pre-existing failure on
Android, so we remove the corresponding failure annotation here.  The guard
being added already exists on some of the codepaths leading to this function,
and is used to short-circuit other bits of code. However, there are still some
codepaths that end up in this function with a zero display size, and it's better
to leave the visual viewport unset in the presShell than to set it to a zero
size.

Depends on D80086

Differential Revision: https://phabricator.services.mozilla.com/D80087
2020-06-21 20:48:37 +00:00
Kartikaya Gupta 1d44fcb849 Bug 1644271 - Add some MOZ_LOG for scrollbar layout attempts. r=tnikkel
I found this useful while debugging. It might be overkill to land it.

Depends on D80085

Differential Revision: https://phabricator.services.mozilla.com/D80086
2020-06-21 20:48:35 +00:00
Kartikaya Gupta 6529d86dc8 Bug 1644271 - Log the URI for each MVM created. r=tnikkel
There's a lot of documents that get created (about:blank and friends) and this
makes it easier to figure out which MVM we actually care about.

Differential Revision: https://phabricator.services.mozilla.com/D80085
2020-06-21 20:48:39 +00:00
Kagami Sascha Rosylight 166f2891a2 Bug 1643464 - Part 1: Rename eLeft/eRight to ePrimary/eSecondary r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D80331
2020-06-19 18:02:41 +00:00
Kagami Sascha Rosylight e5f8c2d951 Bug 1644997 - Make ShouldApplyOverflowClipping as a const member method r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80572
2020-06-22 23:36:13 +00:00
tkhan 6ccabd4784 Bug 1602668 - M(1) manifest and test changes. r=kmag,karlt,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70362
2020-06-22 19:09:49 +00:00
Emilio Cobos Álvarez d53d510029 Bug 1644366 - Restore behavior of selection into view to keep scrolling ancestors on focus. r=smaug
... yet keep respecting the preventScroll flag.

Differential Revision: https://phabricator.services.mozilla.com/D78900
2020-06-22 15:31:34 +00:00
Emilio Cobos Álvarez 9541790d6a Bug 1646776 - Add some logging for sheet cache misses for the same URI. r=heycam
This makes it easy to see why your test is not failing without your
patch, for example ;)

Note that we log only when the URIs are the same, which
I think is a reasonable compromise in verbosity.

Differential Revision: https://phabricator.services.mozilla.com/D80288
2020-06-22 10:48:44 +00:00
Emilio Cobos Álvarez f81ececcb9 Bug 1646224 - Fix a typo in windows-only code.
MANUAL PUSH: a11y orange

CLOSED TREE
2020-06-22 13:13:27 +02:00
Emilio Cobos Álvarez b9b9e38dd9 Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-22 09:45:40 +00:00
Simon Giesecke f74c1b7be0 Bug 1645339 - Use range-based for with nsTObserverArray in layout/style. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D79506
2020-06-22 08:44:05 +00:00
Jonathan Kew a2fdc0423f Bug 1533462 - Disable gfx.font_loader.delay for transition mochitests to avoid potential jank during timing-dependent tests. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D80297
2020-06-21 09:15:33 +00:00
longsonr 6b4aba0696 Bug 1555948 - SVGSVGElement::BindToTree should use composed doc to get the animation controller r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80390
2020-06-21 20:53:18 +00:00
Razvan Maries c60adf564e Backed out 6 changesets (bug 1644271) for perma failures on browser_bug1170531.js.
Backed out changeset 9d4e746c732d (bug 1644271)
Backed out changeset 681a48643a84 (bug 1644271)
Backed out changeset 3cf3176c45d4 (bug 1644271)
Backed out changeset efaddcd67a33 (bug 1644271)
Backed out changeset 03aaac05c759 (bug 1644271)
Backed out changeset a780f5111efa (bug 1644271)
2020-06-21 23:44:04 +03:00
Kartikaya Gupta f9ff83d078 Bug 1644271 - Enable setting the visual viewport size for VisualViewportOnly-type MVM instances. r=tnikkel
Depends on D80090

Differential Revision: https://phabricator.services.mozilla.com/D80091
2020-06-18 09:21:36 +00:00
Kartikaya Gupta 3cabfd00ab Bug 1644271 - Mark a couple of reftests fuzzy with WR. r=tnikkel
The top end of the scrollbar seems off by a subpixel amount. Some initial
investigation is documented in bug 1646527 and points to a WR internal bug.

Depends on D80089

Differential Revision: https://phabricator.services.mozilla.com/D80090
2020-06-18 09:20:53 +00:00
Kartikaya Gupta c2c799ab64 Bug 1644271 - Adjust assertion counts on some crashtests. r=tnikkel
I looked at the assertion stacks and checked that there were no new kinds of
assertions being triggered, just more of the same old assertions. Seems
reasonable that as the desktop behaviour moves closer to mobile (by turning
on visual viewport codepaths) the assertion count will also match that of
mobile.

Depends on D80088

Differential Revision: https://phabricator.services.mozilla.com/D80089
2020-06-20 11:13:27 +00:00
Kartikaya Gupta 5085f2206c Bug 1644271 - Block some codepaths that try to use a zero display size. r=tnikkel
This fixes a number of scroll-anchoring WPT tests that otherwise fail with the
final patch in this patchset. This patch also fixes a pre-existing failure on
Android, so we remove the corresponding failure annotation here.  The guard
being added already exists on some of the codepaths leading to this function,
and is used to short-circuit other bits of code. However, there are still some
codepaths that end up in this function with a zero display size, and it's better
to leave the visual viewport unset in the presShell than to set it to a zero
size.

Depends on D80086

Differential Revision: https://phabricator.services.mozilla.com/D80087
2020-06-18 11:20:55 +00:00
Kartikaya Gupta 2d3c0385a1 Bug 1644271 - Add some MOZ_LOG for scrollbar layout attempts. r=tnikkel
I found this useful while debugging. It might be overkill to land it.

Depends on D80085

Differential Revision: https://phabricator.services.mozilla.com/D80086
2020-06-17 22:40:28 +00:00
Kartikaya Gupta 565bdb8643 Bug 1644271 - Log the URI for each MVM created. r=tnikkel
There's a lot of documents that get created (about:blank and friends) and this
makes it easier to figure out which MVM we actually care about.

Differential Revision: https://phabricator.services.mozilla.com/D80085
2020-06-18 11:20:46 +00:00
Kartikaya Gupta 3cdcbca508 Bug 1646385 - Move SetVisualViewport goop from nsLayoutUtils to PresShell. r=tnikkel
There's no need to put this in nsLayoutUtils since it's so closely bound
to presShell anyway. So we move it from being a static nsLayoutUtils function
that takes a PresShell pointer, to being a method on the PresShell itself.

Two functional changes here:
1. Don't run the MaybeReflowForInflationScreenSizeChange code unless the
   visual viewport actually changes
2. Run the MaybeReflowForInflationScreenSizeChange if the visual viewport
   is reset.

These functional changes can be logically thought of as "group the font-
inflation reflow stuff together with the other visual-viewport-triggered
reflow stuff".

Depends on D80040

Differential Revision: https://phabricator.services.mozilla.com/D80041
2020-06-18 11:54:01 +00:00
Kartikaya Gupta 6540b81148 Bug 1646385 - Ensure we recompute the visual viewport size when the root scrollframe's scrollbars get added or removed. r=tnikkel
There are two parts here. One is the "backstop" in the scrollframe's
ReflowFinished callback, that recomputes the visual viewport size if layout
scrollbars are being used in the root scrollframe. This ensures that the
visual viewport gets resized properly after a reflow, possibly at the expense
of a second reflow to reposition fixed-pos items.

There is also an update to the visual viewport during the reflow itself, after
we have reflowed the in-flow contents (including the root scrollframe) but
before we reflow the fixed-pos items. This allows us to avoid the second reflow
by using the new visual viewport for positioning the fixed-pos items correctly.
This early reflow also skips marking things for a second reflow.

This patch fixes a problem described in bug 1644271 comment 2, among other
things. Specifically, it ensures that when the scrollbar properties (e.g.
maxpos, minpos) are computed, they are computed using an up-to-date visual
viewport size. The up-to-date visual viewport size correctly excludes the space
taken up by non-overlay scrollbars, which wasn't happening without this patch.

Depends on D80039

Differential Revision: https://phabricator.services.mozilla.com/D80040
2020-06-18 22:30:00 +00:00
Kartikaya Gupta 68e22e8674 Bug 1646374 - Ensure mLastPos is properly updated during scroll restoration. r=tnikkel
mLastPos is supposed to be updated by querying the visual viewport offset from
the presShell. However because of the way the visual viewport offset is updated,
this doesn't return a nonzero value until after APZ sends back a repaint request.
So this patch modifies the query to also check if there's any pending visual
viewport offset update being sent from the main thread, and use that. It also
modifies the scroll restoration code to request a properly clamped visual
scroll offset, so that the value stored as "pending" is not just the unclamped
restore destination.

Depends on D80038

Differential Revision: https://phabricator.services.mozilla.com/D80039
2020-06-18 11:06:17 +00:00
Kartikaya Gupta 2592c4b45f Bug 1646374 - Add a new log module for scroll restoration. r=tnikkel
Depends on D79885

Differential Revision: https://phabricator.services.mozilla.com/D80038
2020-06-17 23:56:31 +00:00
Kartikaya Gupta e28e2f103c Bug 1645954 - Ensure we update both the content viewer and widget sizes before doing a reflow. r=tnikkel
The existing comment in BrowserChild::RecvUpdateDimensions may have been
accurate at some point in the past, but I'm seeing cases where setting
the content viewer size itself triggers a reflow. Since the widget size
hasn't been updated yet, the reflow uses some stale values and produces
incorrect outcomes. This patch ensures both the content viewer and widget
get their sizes updated first, and only then do we do the reflow.

Differential Revision: https://phabricator.services.mozilla.com/D79885
2020-06-20 11:25:22 +00:00
Timothy Nikkel 8349c27e4a Bug 1645954. Don't use a stale value of mScrollPort during scrollframe reflow while still determining the new value of mScrollPort. r=tnikkel
Also, adjust for scrollbars and resolution correctly.

Differential Revision: https://phabricator.services.mozilla.com/D79778
2020-06-18 09:25:02 +00:00
Kartikaya Gupta afa70400fc Bug 1645937 - Adjust when the root scrollframe gets a clip. r=tnikkel
With containerless scrolling we generally always want this clip on the layer,
since there is no container. However on Android apparently we don't want this,
because it seems to break the setVerticalClipping API used by the dynamic
toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D80054
2020-06-18 22:47:13 +00:00
Edgar Chen 4d53288bec Bug 1635784 - Part 1: IsRemoteTarget should take fission OOP iframe into account; r=smaug
And add IsTopLevelRemoteTarget for the original usage.

Differential Revision: https://phabricator.services.mozilla.com/D79441
2020-06-18 20:38:34 +00:00
Emilio Cobos Álvarez 8ca5b42689 Bug 1646558 - Remove the old android "native" theme. r=geckoview-reviewers,agi
We've had nsNativeBasicTheme enabled since 75, and all reported issues
were fixed real soon (and I haven't heard of any of them recently).

Given the non-native theme is likely changing in the future, I'd rather
not maintain three themes for Android :)

Differential Revision: https://phabricator.services.mozilla.com/D80105
2020-06-18 20:34:16 +00:00
Cosmin Sabou 65d75a47f3 Backed out changeset 299e19193e11 (bug 1646224) for causing font related failures. CLOSED TREE 2020-06-18 18:26:51 +03:00
Emilio Cobos Álvarez 6bb08bd490 Bug 1646056 - Use const references as keys instead of raw pointers for PreloadHashKey. r=mayhemer
Feels a bit more natural for the callers this way. This should have no
behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D79831
2020-06-18 14:06:34 +00:00
Emilio Cobos Álvarez 939c7c466b Bug 1642591 - Don't make referrer policy a cache miss for sub-resource {pre,}loads. r=mayhemer,tnikkel
For preload we're already effectively not using it, I think, due to
bug 1642325.

For images, this matches the spec, see earlier comments in this bug and
https://bugzilla.mozilla.org/show_bug.cgi?id=1174921#c17.  I think it
makes sense for other sub-resources to align as well.

Differential Revision: https://phabricator.services.mozilla.com/D79812
2020-06-18 14:06:20 +00:00
Markus Stange c5cf53e63b Bug 1642603 - Make TransformAndClipBounds stop discarding the corner positions of empty rectangles. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D79582
2020-06-17 18:54:46 +00:00
Emilio Cobos Álvarez 090e3d2409 Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-18 13:55:03 +00:00
Butkovits Atila 34722d7f3a Backed out 2 changesets (bug 1645937) for gv-junit failures on VerticalClippingTest. CLOSED TREE
Backed out changeset e0f3090a46a4 (bug 1645937)
Backed out changeset c1021d851157 (bug 1645937)
2020-06-18 14:59:18 +03:00
Kagami Sascha Rosylight 02e4819dbc Bug 1645003 - Return pointer from GetPrimaryOrCaretFrameForNodeOffset and its deps r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D80063
2020-06-18 10:26:47 +00:00
Kartikaya Gupta 2def21e66e Bug 1645937 - With containerless scrolling we always want this clip on the layer. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D80054
2020-06-18 10:51:03 +00:00
Glenn Watson a0179d273f Bug 1646619 - Update reftest annotations for android device. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D80145
2020-06-18 06:21:50 +00:00
Hiroyuki Ikezoe 77bf0111ce Bug 1467765 - Sample off-main-thread animations on the render backend thread in case of WebRender. r=kats
Now CompositorAnimationStorage::GetAnimatedValue() and SetAnimatedValue()s
are called on the sampler thread in case of WebRender, are called on the
compositor thread in case of non WebRender, so we drop assertions of
IsInCompositorThread check there. A mLock.AssertCurrentThreadOwns call in
each function should make sure the function gets called on the
sampler/compositor thread with acquiring the lock.

One caveat in this change is that in case we try to get an animation value via
nsIDOMWindowUtils.getOMTAStyle(), we do sample animations on the _compositor_
thread and we never call UpdateDynamicProperties, which means if it gets called
in testing refresh driver mode, visual results will differ from what the value
returned by the getOMTAStyle should look like. But it should be fine because we
disallow using any chrome priviledge APIs in reftests and also we will never use
the testing refresh driver mode in the reftest harness. Also in mochitests the
visual results' differences might make people confusing if the person can notice
it, but in principal getOMTAStyle() is designed to get computed animating values
so that it doesn't matter what the visual result is.

Differential Revision: https://phabricator.services.mozilla.com/D79982
2020-06-17 23:47:20 +00:00
Brindusan Cristian 8246b23171 Backed out changeset a59280f412c0 (bug 1633737) for crashtest assertion failures at nsGridContainerFrame.cpp. CLOSED TREE 2020-06-18 04:16:09 +03:00
Emilio Cobos Álvarez 011d524740 Bug 1646336 - Don't unnecessarily lose precision in nsComputedDOMStyle. r=hiro
We're converting to nscoord in some places unnecessarily, reducing the
precision of the computed value we return.

This makes some tests unnecessarily fail if we change the base of
nscoord.

Differential Revision: https://phabricator.services.mozilla.com/D79996
2020-06-18 00:42:47 +00:00
Brindusan Cristian f93d2c823e Backed out changeset 2011f0091ccf (bug 1646336) for dt failures at browser_accessibility_print_to_json.js. CLOSED TREE 2020-06-18 03:17:34 +03:00
Emilio Cobos Álvarez 28c68306b3 Bug 1646546 - Port the style crate to rust 2018. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D80101
2020-06-17 23:40:30 +00:00
Emily McDonough 4b9ef7886e Bug 1633737 - Fix asserts and array accesses for oversized grid tracks with repeat-auto r=emilio
Handle grid track lists that are too large in CalculateRepeatFillCount. Check
for repeat tracks that begin or end past the maximum track limit in
InitRepeatTracks, and handle the possible size mismatch in nsComputedDOMStyle.

This may result in there being fewer than the maximum number of tracks again
after removing empty tracks in a repeat(auto-fit), but only limiting the track
count after removing empty tracks would leave the number of repeat tracks
unbounded (or require a separate limit on just the repeat track count).

Differential Revision: https://phabricator.services.mozilla.com/D76191
2020-06-17 23:25:14 +00:00
Gijs Kruitbosch 19220a3149 Bug 1644863 - fix trailing whitespace and windows line endings in locale files, r=fluent-reviewers,flod,Pike
Differential Revision: https://phabricator.services.mozilla.com/D79203
2020-06-17 22:46:22 +00:00