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

74676 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke d10d03d076 Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96556

Depends on D96554
2020-11-23 16:10:41 +00:00
Simon Giesecke 73d4d57082 Bug 1676357 - Avoid including Layers.h in header files. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D96538

Depends on D96537
2020-11-23 16:09:05 +00:00
Simon Giesecke 262d17a458 Bug 1676356 - Avoid including ServoStyleConsts.h in header files. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D96536

Depends on D96535
2020-11-23 16:08:47 +00:00
Simon Giesecke f15895390e Bug 1673931 - Avoid including Element.h from header files.
Differential Revision: https://phabricator.services.mozilla.com/D96535

Depends on D96534
2020-11-23 16:08:40 +00:00
Simon Giesecke 071c7c035f Bug 1676356 - Avoid including PresShell.h from header files. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D96534

Depends on D95184
2020-11-23 16:08:23 +00:00
Simon Giesecke 6fac745ea4 Bug 1673931 - Remove dependency of BindingUtils.h on Document.h.
Differential Revision: https://phabricator.services.mozilla.com/D95048

Depends on D95047
2020-11-23 16:08:03 +00:00
Simon Giesecke 5bfbb2a572 Bug 1673931 - Avoid including Document.h from header files. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95046

Depends on D95045
2020-11-23 16:07:43 +00:00
Simon Giesecke 5b3084384e Bug 1660470 - Move void_t/null_t to a new IPCCore.h header. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93546

Depends on D93544
2020-11-23 16:05:20 +00:00
Simon Giesecke c077183836 Bug 1660470 - Avoid including IPCMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93235

Depends on D93234
2020-11-23 16:03:47 +00:00
Simon Giesecke c3c25a8337 Bug 1660470 - Avoid including GfxMessageUtils.h from header files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93234

Depends on D93233
2020-11-23 16:03:38 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Noemi Erli e52ab350ac Backed out changeset b21f364898eb (bug 1678389) for causing Android gv-unit failures CLOSED TREE 2020-11-22 04:24:23 +02:00
Mats Palmgren 4959a2c086 Bug 1678758 - Reset the overflow areas too after changing our desired height (sic). r=emilio
We have existing table reftests that fails without this fix
when the pref layout.display-list.improve-fragmentation is
enabled.

Differential Revision: https://phabricator.services.mozilla.com/D97831
2020-11-21 23:23:01 +00:00
Emilio Cobos Álvarez ec7eb5b86a Bug 1678389 - Use transient user activation for <input> file/color picker. r=edgar
This matches other browsers, see [1], and should fix this and other
similar bugs like bug 1610726.

[1]: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/forms/file_input_type.cc;l=163;drc=8a5de62dd01360cfe3d150640d3ff4d974bbe842

Differential Revision: https://phabricator.services.mozilla.com/D97640
2020-11-22 00:20:03 +00:00
Razvan Maries 00226db676 Backed out changeset b2da4b644dd9 (bug 1677917) for perma failures on break-at-end-container-edge-000.html. CLOSED TREE 2020-11-21 19:23:33 +02:00
Emilio Cobos Álvarez d570280e88 Bug 1677917 - Change BlockReflowInput's skipsides setup to be sane. r=mats,TYLin
Precomputing the skipBEnd bit is odd / wrong. Using the PreReflow
version causes no regression, and allows us to simplify the code.

It also reverts the test annotations added to bug 1675376 which were
caused by the extra argument to GetLogicalSkipSides() somehow.

Differential Revision: https://phabricator.services.mozilla.com/D97418
2020-11-21 15:53:16 +00:00
Razvan Maries 7885200a40 Backed out changeset 5f347d3846aa (bug 1677689) for perma failures on layout/base/tests/test_bug851485.html. CLOSED TREE 2020-11-21 12:47:56 +02:00
Boris Chiou 04d9986bd4 Bug 1651776 - aspect-ratio should be used for abspos when insets on the block axis are specified. r=TYLin
Based on https://github.com/w3c/csswg-drafts/issues/5151,
if the block size is auto, we still can use the insets to resolve the auto
block size on absoluate position elements, so we still can use this resolved
block size to calculate the inline size through aspect-ratio.

Differential Revision: https://phabricator.services.mozilla.com/D96277
2020-11-20 22:46:05 +00:00
Boris Chiou d1895eafaa Bug 1651776 - Refine the terminology of writing modes when handling unconstrained block-size on out-of-flow boxes. r=TYLin
I'd like to handle aspect-ratio in those code block, so it'd be better
to always handle unconstrained block-size on the writing mode of the current
block. Besides, we move it as a method of ReflowInput.

Differential Revision: https://phabricator.services.mozilla.com/D97515
2020-11-20 22:38:38 +00:00
Boris Chiou d494534798 Bug 1651776 - Move Compute{Inline|Block}SizeFromAspectRatio() into AspectRatio struct. r=TYLin
We add a new file, AspectRatio.cpp, to definte the method,
ComputeRatioDependentSize. So we don't have to move this function to
WritingModes.h

Besides, we miss the forward declaration of IPC::ParamTraits, so add it
into AspectRatio.h.

Differential Revision: https://phabricator.services.mozilla.com/D95822
2020-11-20 22:38:36 +00:00
Jon Bauman f5c1a59332 Bug 1675987 - No derogatory language: Remove references to "crazy" in layout module r=emilio,AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D97657
2020-11-20 21:21:03 +00:00
Timothy Nikkel c9931b44d2 Bug 1676301. Only set mResolutionUpdated if we are changing the resolution. r=kats
We incorrectly set it when going from the mResolution.isNothing() to the *mResolution == 1.f case.

Differential Revision: https://phabricator.services.mozilla.com/D97385
2020-11-19 01:01:02 +00:00
Masayuki Nakano 2efcda6dc7 Bug 1335347 - Make `nsMenuBarListener::KeyUp` wait replay event if a content process has focus r=smaug
`keyup` event of `Alt` key should be fired in content process even if it'll
activate the menubar, and it should be cancelable as same as before enabling
e10s.

Unfortunately, the new test is complicated even they test simple things.
The reason is, this test requires the window running it is the active window.
However, the window may become inactive on Linux, therefore, this test
needs to manage window state by itself.

And another reason is, after inactivating the menubar, somebody keeps
consuming keyboard events in chrome.  Although, popups shouldn't be
opened by this test, but waiting all popups hidden makes the remaining
intermittent failure gone.  Therefore, this patch waits all popups become
hidden after inactivating the menubar and before new test.

Differential Revision: https://phabricator.services.mozilla.com/D95984
2020-11-20 03:49:55 +00:00
Botond Ballo 94bd7fb7c9 Bug 1645433 - Avoid using INT32_MAX as the z-index of inactive scrollframe items. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D97063
2020-11-20 01:18:24 +00:00
Ting-Yu Lin 2151575956 Bug 1677642 - Add a wpt testing an empty box doesn't contribute to parent's scrollable overflow area. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97513
2020-11-20 01:13:05 +00:00
Kartikaya Gupta 8ac8ba07a9 Bug 1678334 - Sprinkle const in a bunch of ComputeScrollMetadata. r=tnikkel
This reduces the chance that we accidentally introduce more
side-effect-producing code into this function. It doesn't remove
the side effects already in this function though.

Depends on D97624

Differential Revision: https://phabricator.services.mozilla.com/D97625
2020-11-19 22:59:45 +00:00
Kartikaya Gupta 01e2621457 Bug 1678334 - Mark a bunch of parameters const. r=tnikkel
These parameters are conceptually not modified by the functions,
so they should be const.

Depends on D97623

Differential Revision: https://phabricator.services.mozilla.com/D97624
2020-11-19 22:52:36 +00:00
Kartikaya Gupta 1772d78d55 Bug 1678334 - Make GetScrollTargetFrame() const. r=tnikkel
This removes one const_cast but also adds two new ones. I think
the new ones are reasonable - conceptually the function does not
modify the input, so the input should be const. If that input
is returned as the output then we need to strip the const because
the return value shouldn't be const (because the caller should be
free to modify it if desired).

Depends on D97622

Differential Revision: https://phabricator.services.mozilla.com/D97623
2020-11-19 22:46:33 +00:00
Kartikaya Gupta b63d0829ea Bug 1678334 - Improve const-correctness in FindBackground methods. r=mats
There's a couple of uses of const_cast here, but I think they are
reasonable. Conceptually the input parameter is a const (in that it
is not modified) but the output shouldn't be const (because the
caller is free to modify it if it wants to). If we're returning the
input as output then we should strip the const attribute, hence
the const_cast.

Depends on D97621

Differential Revision: https://phabricator.services.mozilla.com/D97622
2020-11-19 23:46:06 +00:00
Kartikaya Gupta 558df38a4b Bug 1678334 - Mark some functions as const. r=tnikkel
This functions are conceptually getters and should be const.

Differential Revision: https://phabricator.services.mozilla.com/D97621
2020-11-19 22:44:42 +00:00
Mats Palmgren 7352f9f7a6 Bug 1665214 - Reserve space at the top of the page for non-fragmented overflow from previous pages. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D97021
2020-11-19 20:16:11 +00:00
ISHIKAWA, Chiaki c892462ee7 Bug 1677194 - Avoid accessing invalidated frame. r=emilio
MANUAL PUSH: Author doesn't use Phabricator.
2020-11-19 18:28:56 +01:00
Kagami Sascha Rosylight 3e00b3f53e Bug 1675883 - Use SetStartAndEndInLimiter() in SetSelectionInternal() r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D96503
2020-11-19 13:43:30 +00:00
Timothy Nikkel 849f0a8b3e Bug 1677518. Only use the draw result from the previous image if we are actually using the previous image. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D97249
2020-11-17 11:19:11 +00:00
Csoregi Natalia 1d34bd022d Merge autoland to mozilla-central. a=merge 2020-11-19 11:56:07 +02:00
Csoregi Natalia 511fc14c29 Backed out changeset e176bd45edd8 (bug 1335347) for failures on browser_alt_keyup_in_content.js. a=backout 2020-11-19 11:47:55 +02:00
Lee Salzman f6c80461bd Bug 1677872 - reduce division usage in brush shaders. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D97379
2020-11-18 19:08:37 +00:00
Markus Stange ec6e4c4f05 Bug 1677396 - Redirect composition payloads through the refresh driver. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D97382
2020-11-19 04:02:46 +00:00
coderboncuk c8b12f5aa2 Bug 1676299 - Removed the xMajor parameter from BaseMatrix::ScaleFactors() r=botond
Differential Revision: https://phabricator.services.mozilla.com/D97449
2020-11-18 18:53:01 +00:00
Razvan Maries b7eeb731df Backed out 23 changesets (bug 1675409) for build bustages on Preferences.cpp. CLOSED TREE
Backed out changeset c1a131a55767 (bug 1675409)
Backed out changeset 47d210802a5d (bug 1675409)
Backed out changeset e8ebb1c58d30 (bug 1675409)
Backed out changeset 69a1e9aeff2a (bug 1675409)
Backed out changeset 68f330b387a8 (bug 1675409)
Backed out changeset e4750d9ef5a1 (bug 1675409)
Backed out changeset bb6bb71e5ab3 (bug 1675409)
Backed out changeset 988d7f4716df (bug 1675409)
Backed out changeset ca41382e891c (bug 1675409)
Backed out changeset 90f3fbbbbeda (bug 1675409)
Backed out changeset 9b109d61a6f6 (bug 1675409)
Backed out changeset 3dd66abfdaa2 (bug 1675409)
Backed out changeset 44181df5f0db (bug 1675409)
Backed out changeset bb2603d947fc (bug 1675409)
Backed out changeset 97055cf20a56 (bug 1675409)
Backed out changeset f88fcf09de0d (bug 1675409)
Backed out changeset 7963e1c49786 (bug 1675409)
Backed out changeset 4c379c1061c3 (bug 1675409)
Backed out changeset b8be8ae7da63 (bug 1675409)
Backed out changeset 0b90aa89421e (bug 1675409)
Backed out changeset c10fb46467c9 (bug 1675409)
Backed out changeset 894ac233b290 (bug 1675409)
Backed out changeset 075d1d8e34c2 (bug 1675409)
2020-11-18 20:06:28 +02:00
Cristina Coroiu b468838f9a Backed out changeset fc06dd6899fc (bug 1677872) for Wr failures at css/css-images/tiled-gradients.html on a CLOSED TREE 2020-11-18 19:07:55 +02:00
David Parks 3805bd5a26 Bug 1675349: Update tests under layout/tools/reftest for removal of plugins r=jmathies
Disables reftests with results that require TestPlugin.

Differential Revision: https://phabricator.services.mozilla.com/D95915
2020-11-18 15:59:24 +00:00
David Parks e68c025938 Bug 1675349: Update tests under layout/generic for the removal of plugins. r=jmathies
REMOVED
-------
layout/generic/test/test_invalidate_during_plugin_paint.html
Bug 564991
Test plugin Invalidating in the midst of painting.

layout/generic/test/test_plugin_focus.html
Bug 520462
Test plugin focus properly set by mouse click.

layout/generic/test/test_plugin_mouse_coords.html
Bug 506304
Test plugin properly receives mouse events.

layout/generic/test/test_plugin_clipping.xhtml
layout/generic/test/test_plugin_clipping_2.xhtml
layout/generic/test/test_plugin_clipping_table.xhtml
layout/generic/test/test_plugin_clipping_transformed.xhtml
Test plugin clipping.  "It includes tests for plugins partially covered by opaque HTML content, tests for clip region changes due to scrolling, tests for clip region changes due to z-index changes, and tests for correct plugin clip regions in the presence of subpixel geometry."  Also in the presence of tables and moz-transforms.

Differential Revision: https://phabricator.services.mozilla.com/D95914
2020-11-18 15:59:12 +00:00
David Parks 8c7f8843d1 Bug 1675349: Update tests under layout/base for the removal of plugins. r=jmathies
UPDATED
-------
layout/base/tests/test_bug629838.html
bug 629838
Make sure MozPaintCount and MozAfterPaint are in sync, even with empty transactions
Switch to a <div> and use CSS.  MozPaintCount is otherwise largely untested.

layout/base/tests/test_mozPaintCount.html
bug 563864
Test MozPaintCount.
Switch to a <div> and use CSS.

REMOVED
-------
layout/base/tests/chrome/test_chrome_over_plugin.xhtml
Test that plugins are properly clipped wrt translucent chrome elements and not by translucent content elements.

Differential Revision: https://phabricator.services.mozilla.com/D95913
2020-11-18 15:58:59 +00:00
David Parks 1e71ef1cb8 Bug 1675349: Replace plugin behavior with a basic fallback r=jmathies,mixedpuppy
The browser currently only enables plugin behavior for Flash and our internal test plugins.  This patch replaces support for those plugins with a simple fallback that shows a transparent region where the plugin would have been.  It removes the file system search(es) for the plugin dynamic libraries and short-circuits the logic to determine if plugins should do something special -- all implementations now behave the same in the presence of plugin elements.

The new behavior is:
1. If the <object> or <embed> element lists a type of something other than "x-shockwave-flash" or "x-test" then the behavior is unchanged.  This means that non-plugin types behave properly and unknown types (for example, typos) are also unaffected (they reduce to 0x0 elements).
2. If the <object> element has an HTML fallback in the DOM (see spec for <object> elements) then the fallback is always shown.
3. Otherwise, the element is shown as a transparent region with the size specified in attributes.

Differential Revision: https://phabricator.services.mozilla.com/D95902
2020-11-18 15:55:34 +00:00
Lee Salzman e94ea21e9b Bug 1677872 - reduce division usage in brush shaders. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D97379
2020-11-18 14:39:20 +00:00
Emilio Cobos Álvarez d0cf38cffb Bug 1677920 - Remove writing mode argument from CalcAndCacheConsumedBSize(). r=TYLin
Always matches the frame's writing-mode.

Differential Revision: https://phabricator.services.mozilla.com/D97390
2020-11-18 11:06:29 +00:00
Cristina Coroiu 760416ddb7 Backed out changeset f488d4345f75 (bug 1676852) on request by smaug 2020-11-18 13:55:06 +02:00
Emilio Cobos Álvarez fe742360bd Bug 1675376 - Lift IsBidiEnabled check up to the caller. r=mats
That avoids going all the way to the first continuation to call ResolveBidi on
it. This shaves a bunch of time when there are a lot of pages.

This is more problematic than it seems specially when there's no bidi, because
in the "bidi not enabled" case we never remove the flag, which is bad. When
bidi is actually enabled we usually have done the resolution already.

Differential Revision: https://phabricator.services.mozilla.com/D97358
2020-11-18 11:04:42 +00:00