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

76477 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez a3609908bb Bug 1718755 - Use an early refresh driver runner rather than Dispatch() to coalesce theme changes. r=stransky
That way we guarantee they are processed before display.

Differential Revision: https://phabricator.services.mozilla.com/D119023
2021-07-08 09:23:36 +00:00
Butkovits Atila 5ec437ab3d Bug 1669323 - disable svg/data-uri-with-filter-01.xhtml == svg/data-uri-with-filter-01-ref.svg on Fission for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D119245
2021-07-08 07:59:37 +00:00
Hiroyuki Ikezoe b2ae79bc94 Bug 1716410 - Enable test_bug1451199-1.html and test_bug1451199-2.html on fis-xorig. r=emilio
The failure cause was fixed in bug 1717983.

Differential Revision: https://phabricator.services.mozilla.com/D119130
2021-07-07 22:47:37 +00:00
Narcis Beleuzu 1b3ee0f17f Backed out changeset 66a484400799 (bug 1718934) for mochitest failures on test_value_computation.html . CLOSED TREE 2021-07-08 00:37:51 +03:00
Emily McDonough 1f7ab7926f Bug 1719541 - Directly assign RefPtrs in nsCSSPageFrameCosntructor.cpp r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D119324
2021-07-07 21:15:32 +00:00
Emilio Cobos Álvarez b63ea5363d Bug 1718934 - Parse -webkit-focus-ring-color (computing to black). r=mstange,geckoview-reviewers,aklotz
Some pages use this to hide the focus outline. On Blink it seems black,
WebKit uses it to expose the OS accent color. Make it black, which is
the default when the color isn't implemented on a given platform.

Differential Revision: https://phabricator.services.mozilla.com/D119036
2021-07-07 19:24:29 +00:00
Narcis Beleuzu 935ff18b48 Backed out 2 changesets (bug 1716537) for WP failures on iframe-cross-origin-print.sub.html
Backed out changeset aa3e3f80bd68 (bug 1716537)
Backed out changeset 3226bc23c713 (bug 1716537)
2021-07-07 23:20:47 +03:00
Emilio Cobos Álvarez 4ac9da4216 Bug 1716537 - Allow updating viewport dimensions on paginated subdocuments. r=mattwoodrow
As those don't have the same incremental reflow issues as root paginated
documents, and we do need this for remote iframes to update their
viewport.

Differential Revision: https://phabricator.services.mozilla.com/D119104
2021-07-07 18:40:11 +00:00
Paul Zuehlcke 6eb0d4fb20 Bug 1714608 - Cleaned up partitionKey base domain helpers. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D118724
2021-07-07 16:05:06 +00:00
Miko Mynttinen 0cd2cc19d9 Bug 1697639 - Only add AGRs to mFrameToAnimatedGeometryRootMap when creating AGRs r=mattwoodrow
This enforces a stable frame to AGR mapping, which was previously changing when AGR status of the frame changed due to display port change.
The downside of this is that the intermediate results are not cached, which means more traversals.

Differential Revision: https://phabricator.services.mozilla.com/D118603
2021-07-07 15:33:44 +00:00
Edgar Chen 47e66cd7d9 Bug 1716762 - Don't allow focus to move to remote iframe which is display: none; r=emilio
Make it behave the same as in-process iframe.

Differential Revision: https://phabricator.services.mozilla.com/D118002
2021-07-07 12:08:18 +00:00
Jonathan Kew bf3113343b Bug 1716841 - Update font-size-adjust keywords to match CSSWG resolution in csswg-drafts/#6288. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118198
2021-07-07 11:58:40 +00:00
Emilio Cobos Álvarez e54b955075 Bug 1718337 - More fine-grained viewport units invalidation. r=layout-reviewers,jfkthame
This should speed up window resize significantly.

Differential Revision: https://phabricator.services.mozilla.com/D118878
2021-07-07 11:16:20 +00:00
Emilio Cobos Álvarez 6fc3e06d85 Bug 1719440 - Add some logging for PresShell activeness. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D119262
2021-07-07 10:30:11 +00:00
Hiroyuki Ikezoe dbebe9220b Bug 1716410 - Regenerate the target element for OMTA tests. r=boris
nsIDOMWindowUtils.getOMTAStyle is for querying an in-progress animating value
running on the compositor thread. The key to query the value is stored in the
target nsIFrame of the animating element, and the key is basically based on
the display item (type) in question, DisplayItemType::TYPE_TRANSFORM in cases of
transform animations, etc. So if getOMTAStyle gets called for an element
where
 a) an animation is running on the compositor
 b) a new animation is just created

then, it's possible that getOMTAStyle queries a)'s animation value instead of
b)'s.

Differential Revision: https://phabricator.services.mozilla.com/D119127
2021-07-07 07:11:34 +00:00
Geoff Lankow a83ebb2b21 Bug 1719405 - Modify the no-browsers-inside-deck assertion for Thunderbird. r=hiro
Thunderbird's tabpanels element has a different ID from that of Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D119247
2021-07-07 04:53:09 +00:00
Ting-Yu Lin d5fa6014e8 Bug 1494330 Part 3 - Remove nsComboboxControlFrame::mListControlFrame. r=layout-reviewers,boris
mListControlFrame is the same as mDropdownFrame. See SetDropDown().

Differential Revision: https://phabricator.services.mozilla.com/D119207
2021-07-07 03:11:06 +00:00
Ting-Yu Lin 12def93a1c Bug 1494330 Part 2 - Change nsComboboxControlFrame::mDropdownFrame's type to nsListControlFrame*. r=layout-reviewers,boris
This eliminates a lot of down casting from nsIFrame* to nsListControlFrame*.

Make SetDropDown() accepts nsListControlFrame* because
nsCSSFrameConstructor already passes the derived type in.

We'll replace mListControlFrame with mDropdownFrame in the next part.

Differential Revision: https://phabricator.services.mozilla.com/D119206
2021-07-07 03:11:06 +00:00
Ting-Yu Lin 805a41942c Bug 1494330 Part 1 - Make NS_NewListControlFrame() return nsListControlFrame*. r=layout-reviewers,boris
Also, add nsListControlFrame to the forward declaration list in
nsHTMLParts, and sort them alphabetically.

Differential Revision: https://phabricator.services.mozilla.com/D119205
2021-07-07 03:11:06 +00:00
Butkovits Atila 75289a99bd Backed out 2 changesets (bug 1716537) for causing failures at iframe-cross-origin-print.sub.html. CLOSED TREE
Backed out changeset ddc93b2746df (bug 1716537)
Backed out changeset 7086ac4e5818 (bug 1716537)
2021-07-06 21:42:14 +03:00
Emilio Cobos Álvarez cb71b3d82e Bug 1716537 - Allow updating viewport dimensions on paginated subdocuments. r=mattwoodrow
As those don't have the same incremental reflow issues as root paginated
documents, and we do need this for remote iframes to update their
viewport.

Depends on D119103

Differential Revision: https://phabricator.services.mozilla.com/D119104
2021-07-06 16:54:41 +00:00
Dorel Luca 1af879103c Backed out 2 changesets (bug 1716537) for Build bustages. CLOSED TREE
Backed out changeset 0b5bfe85b344 (bug 1716537)
Backed out changeset c6561b266910 (bug 1716537)
2021-07-06 18:53:22 +03:00
Jonathan Kew 81b88e2c93 Bug 1719239 - Disable support for content:none on elements due to webcompat issues. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119188
2021-07-06 15:39:06 +00:00
Emilio Cobos Álvarez e85773cf91 Bug 1716537 - Allow updating viewport dimensions on paginated subdocuments. r=mattwoodrow
As those don't have the same incremental reflow issues as root paginated
documents, and we do need this for remote iframes to update their
viewport.

Depends on D119103

Differential Revision: https://phabricator.services.mozilla.com/D119104
2021-07-06 15:17:44 +00:00
Hiroyuki Ikezoe ba5ded4486 Bug 1700245 - Use IsAncestorFrameCrossDocInProcess in PresShell::ClearMouseCapture(nsIFrame*). r=tnikkel
Since bug 1717726 we've disallowed having remote <browser> or remote <iframe>
inside nsDeckFrame which means `captureingFrame` in ClearMouseCapture(nsIFrame*)
function will never be called in an out-of-process thus we can use
IsAncestorFrameCrossDocInProcess there.

Also add an assertions that the function gets called only with a child frame of
nsDeckFrame since this function is used only inside nsDeckFrame.

Depends on D119068

Differential Revision: https://phabricator.services.mozilla.com/D119069
2021-07-06 08:58:56 +00:00
Hiroyuki Ikezoe 1fa23c1c89 Bug 1700245 - Split PresShell::ClearMouseCapture into two functions, one takes `nsIFrame`, the other takes no argument. r=tnikkel
Depends on D119067

Differential Revision: https://phabricator.services.mozilla.com/D119068
2021-07-06 08:58:55 +00:00
Niklas Goegge a83ee58b03 Bug 1714645: Use nsSimpleURI instead of NullPrincipalURI. r=ckerschb,nika
Differential Revision: https://phabricator.services.mozilla.com/D118489
2021-07-06 08:23:11 +00:00
Hiroyuki Ikezoe 523a115dcc Bug 1717726 - Add a debug-only assertion disallowing remote <browser>s or <iframe>s inside nsDeckFrame. r=tnikkel
The background to have this assertion is that nsDeckFrame::HideBox calls
PresShell::ClearMouseCapture and ClearMouseCapture checks whether the
being-hidden panel has a content capturing mouse events or not but the check
doesn't work if the content is in a remote process. In our current
mozilla-central tree, there is no such nsDeckFrame other than our browser's
tab. In the case of our browser's tab when switching tabs, i.e. hiding an
active tab, clearing the mouse capturing state has (should have) worked since
E10S (Note for Fission cases it has worked since bug 1680405). So, because
nsDeckFrame will be obsoleted sooner or later, we disallow the situation
for other cases instead of adding special handling for the other case.

Differential Revision: https://phabricator.services.mozilla.com/D119067
2021-07-06 07:38:06 +00:00
Emilio Cobos Álvarez 0c7b4c828a Bug 1717983 - Don't consider a browser active if the tab is inactive but we're preserving layers. r=nika
GeckoView always calls preserveLayers(true) on all <browser> elements,
which causes the puppet widget to always be considered visible.

Given how the code worked before, aBrowsingContext.isActive = false
after that call would deactivate the pres shell, but after my patch it
stops doing so.

We don't really want to un-throttle the refresh driver etc just because
we're preserving layers, so propagate the state to the child process and
account for that in the logic to determine PresShell activeness.

Depends on D118703

Differential Revision: https://phabricator.services.mozilla.com/D118884
2021-07-05 17:31:49 +00:00
Emilio Cobos Álvarez a5f4c42f89 Bug 1717983 - Improve PresShell active flag handling. r=nika
This moves the logic of whether a pres shell should be active to a
single place to make it sane to reason about, and fixes the
subdocument propagation when a BrowserChild becomes visible.

Differential Revision: https://phabricator.services.mozilla.com/D118703
2021-07-05 17:31:48 +00:00
Emilio Cobos Álvarez 3516c9a2c6 Bug 1718200 - In nsDocumentViewer::SetDocument, call Document::Destroy if the new document is a static document. r=smaug
Even if the old one isn't, otherwise we can leak.

This doesn't happen at the moment because our printing code creates its
own browser with the initial about:blank loaded (which not Destroy()ing
is fine), and then host the clone in there.

In bug 1666247, for simplify mode the front-end is creating a non-static
document with the simplify mode, then reusing the same docshell for the
static document. That means that we forget the non-static document and
we can leak.

In comment 16 on that bug, the leak comes from a <link rel=stylesheet>
whose SheetLoadData we keep in Document::mPreloadService (which uses
Document::Destroy() to call ClearAllPreloads() and break cycles).

To fix it, check aDocument->IsStaticDocument(), not just
mDocument->IsStaticDocument()... That's the right check since it is the
cloning codepath the one that otherwise doesn't care about what was in
the viewer before.

Differential Revision: https://phabricator.services.mozilla.com/D118809
2021-07-05 14:13:21 +00:00
Timothy Nikkel a65f556d67 Bug 1719113. Fix confusing in nsImageBoxFrame between imgIContainer and nsImageRendering flags. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D119050
2021-07-05 12:29:56 +00:00
Matt Woodrow 9abbb5ba9f Bug 1717161 - Clamp perspective() values to a minimum of 1px. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118250
2021-07-05 05:19:15 +00:00
Csoregi Natalia 3168d57ca9 Backed out changeset b6b225d4a81c (bug 1718755) for multiple failures e.g.test_mq_any_hover_and_any_pointer.html. CLOSED TREE 2021-07-02 12:26:51 +03:00
Csoregi Natalia bae7f5f301 Backed out changeset b783cedbc8fb (bug 1718200) for failures on browser_preview_print_coop.js. CLOSED TREE 2021-07-02 12:22:09 +03:00
Emilio Cobos Álvarez e6077389db Bug 1718755 - Use an early refresh driver runner rather than Dispatch() to coalesce theme changes. r=stransky
That way we guarantee they are processed before display.

Differential Revision: https://phabricator.services.mozilla.com/D119023
2021-07-02 07:54:40 +00:00
Emilio Cobos Álvarez 90b64c8e6b Bug 1718200 - In nsDocumentViewer::SetDocument, call Document::Destroy if the new document is a static document. r=smaug
Even if the old one isn't, otherwise we can leak.

This doesn't happen at the moment because our printing code creates its
own browser with the initial about:blank loaded (which not Destroy()ing
is fine), and then host the clone in there.

In bug 1666247, for simplify mode the front-end is creating a non-static
document with the simplify mode, then reusing the same docshell for the
static document. That means that we forget the non-static document and
we can leak.

In comment 16 on that bug, the leak comes from a <link rel=stylesheet>
whose SheetLoadData we keep in Document::mPreloadService (which uses
Document::Destroy() to call ClearAllPreloads() and break cycles).

To fix it, check aDocument->IsStaticDocument(), not just
mDocument->IsStaticDocument()... That's the right check since it is the
cloning codepath the one that otherwise doesn't care about what was in
the viewer before.

Differential Revision: https://phabricator.services.mozilla.com/D118809
2021-07-01 17:11:31 +00:00
Masayuki Nakano 347bc5719a Bug 1714914 - Make editor classes treat offset in parent node as uint32_t r=m_kato
It should be treated as `uint32_t` since DOM API does so.  However, there are
some exceptions:

* Result of `nsINode::ComputeIndexOf()`
* Result of `nsAString` methods

They return `-1` as not found, and anyway, they cannot treat large integer
than `INT32_MAX`.  Therefore, this patch does not touch around them.

Differential Revision: https://phabricator.services.mozilla.com/D118933
2021-06-30 07:07:28 +00:00
jaygala260 4f81b4aae7 Bug 1713521 - layout/base/nsFrameTraversal.cpp: do not use 'else' after 'break'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D116943
2021-06-28 15:06:15 +00:00
Masayuki Nakano 63d372da2f Bug 1676702 - part 2: Make `TextControlState` initialize `TextEditor` with `PasswordMaskData` r=m_kato
During a `TextControlState` alive, `PasswordMaskData` should be alive too.
Otherwise, we cannot keep unmasked range at reframing.

Depends on D118756

Differential Revision: https://phabricator.services.mozilla.com/D118757
2021-06-28 04:37:54 +00:00
Jonathan Kew b9ae2c638e Bug 1717029 - Clean up status checks in FontFaceSet::CheckLoadingFinished(). r=layout-reviewers,emilio
No functional change, this just makes it more explicit that each possible status
value is being considered, and unifies the handling of the two arrays.

Differential Revision: https://phabricator.services.mozilla.com/D118200
2021-06-26 14:40:53 +00:00
Jeff Muizelaar 31bbc107fb Bug 1717117. Add even more fuzz for Android.
Differential Revision: https://phabricator.services.mozilla.com/D118872
2021-06-26 02:12:15 +00:00
Jeff Muizelaar 552c921cc3 Bug 1717117. Add some extra fuzz for Android.
Differential Revision: https://phabricator.services.mozilla.com/D118870
2021-06-25 23:18:21 +00:00
Jeff Gilbert afdbf9538b Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-25 19:16:22 +00:00
Jeff Muizelaar e71c762245 Bug 1717117: Enable low-quality-pinch-zoom pref on Android Nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D118224
2021-06-25 14:48:50 +00:00
Florian Quèze cd399a71a2 Bug 1717991 - Remove ifdefs around code that adds profiler markers with custom marker schemas, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D118680
2021-06-25 13:28:01 +00:00
Jonathan Kew a0abb0f180 Bug 1717595 - Ensure we check the fontgroup's validity before using it to build a textrun or otherwise access its cached font instances. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D118733
2021-06-25 10:14:17 +00:00
Iulian Moraru 1a8cb02555 Backed out changeset 10a229d128c0 (bug 1459526) for causing reftest failures on short.mp4.lastframe.html. CLOSED TREE 2021-06-25 06:34:36 +03:00
Hiroyuki Ikezoe 371c6f4522 Bug 1716409 - Enable test_reftests_with_caret.html on fis-xorig runs. r=NeilDeakin
It should have been working on fis-xorig runs since bug 1714594.

Note that the try run used for filing bug 1716409 was pushed on June 7th, whereas
bug 1714594 landed on June 11th.

Differential Revision: https://phabricator.services.mozilla.com/D118767
2021-06-25 00:48:25 +00:00
Sandor Molnar d5946f0a7e Backed out changeset b46a490223a1 (bug 1717983) for causing android failures. CLOSED TREE 2021-06-25 03:29:08 +03:00
Jeff Gilbert 5c14187731 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-24 23:43:31 +00:00
Geoff Brown 57e56287c3 Bug 1714406 - Run test-verify and test-coverage tasks with python 3; r=jmaher
Run TV and TC tasks with python 3. Several issues are addressed for TV:
 - minor Android-only str/int type confusion for mozinfo parameter;
 - the type of mozlog-generated log* options changes under py3, causing
   difficulty when deepcopy'ing options; avoided by removing the need
   for deepcopy;
 - on Windows, with py 3.6, repeated process launches trigger a python
   bug; avoided by running self-tests only once per TV session.

Differential Revision: https://phabricator.services.mozilla.com/D118769
2021-06-24 23:29:28 +00:00
Emilio Cobos Álvarez 9410c0a59b Bug 1716481 - Improve ManagedPostRefreshObserver. r=smaug
Make it less sketchy.

Differential Revision: https://phabricator.services.mozilla.com/D118284
2021-06-24 22:05:12 +00:00
Emilio Cobos Álvarez 72c62d51c7 Bug 1717983 - Improve PresShell active flag handling. r=nika
This moves the logic of whether a pres shell should be active to a
single place to make it sane to reason about, and fixes the
subdocument propagation when a BrowserChild becomes visible.

Differential Revision: https://phabricator.services.mozilla.com/D118703
2021-06-24 20:50:10 +00:00
Boris Chiou 519e7347ed Bug 1717877 - Handle degenerate ratio and negative size attributes for intrinsic size calculation of SVG outer frames. r=emilio
Based on https://github.com/w3c/csswg-drafts/issues/6286, we fall back to the
viewport rect if
1. width/height is a degenerate ratio, or
2. width or height is a negative number.

Differential Revision: https://phabricator.services.mozilla.com/D118666
2021-06-24 20:27:31 +00:00
Michelle Goossens fc09f27525 Bug 1714462 - Part 2: Remove CSS rules using "not (-moz-proton)" in miscellaneous files r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118594
2021-06-24 15:42:03 +00:00
Andrew Halberstadt c3e88222c1 Bug 1696038 - Enable fission reftests on more platforms, r=jmaher
This enables the following tasks on central:
+test-linux1804-64-asan/opt-reftest-fis-e10s
+test-linux1804-64-shippable-qr/opt-reftest-fis-e10s
+test-windows10-64-qr/debug-reftest-fis-e10s
+test-windows10-64-shippable-qr/opt-reftest-fis-e10s

and the following tasks on autoland:
+test-linux1804-64-asan/opt-reftest-fis-e10s
+test-linux1804-64-qr/opt-reftest-fis-e10s
+test-windows10-64-qr/debug-reftest-fis-e10s
+test-windows10-64-qr/opt-reftest-fis-e10s

Differential Revision: https://phabricator.services.mozilla.com/D118593
2021-06-24 15:12:48 +00:00
Kagami Sascha Rosylight 66ab2e605c Bug 1717552 - Remove dom.select_events.enabled r=masayuki,smaug
Differential Revision: https://phabricator.services.mozilla.com/D118639
2021-06-24 12:30:35 +00:00
Emilio Cobos Álvarez 6030c95608 Bug 1585397 - Disable test_import_preload on Android. r=apavel DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D118454
2021-06-24 05:27:38 +00:00
Botond Ballo cdcdf984e4 Bug 1698693 - Convert audited calls to GetCrossDocParentFrame() to GetCrossDocParentFrameInProcess(). r=tnikkel
See bug 1698693 comment 6 and subsequent comments for the audit.

Depends on D117388

Differential Revision: https://phabricator.services.mozilla.com/D117389
2021-06-23 22:05:31 +00:00
Botond Ballo c20a537ecd Bug 1698693 - Make the GetNearestScrollableFrame() call in GetCurrentItemAndPositionForElement() stop at the root scroll frame. r=tnikkel
See rationale in bug 1698693 comment 9.

The added flags ensure we stop at the RSF even if it's overflow:hidden,
or if the starting frame is in fixed content.

Depends on D117387

Differential Revision: https://phabricator.services.mozilla.com/D117388
2021-06-23 22:05:31 +00:00
Botond Ballo fa5e5640c8 Bug 1698693 - Make the GetNearestScrollableFrame() call in GetBoundingFrameRect() stop at the document's root scroll frame. r=tnikkel
See rationale in bug 1698693 comment 8.

The added flags ensure we stop at the RSF even if it's overflow:hidden,
or if the starting frame is in fixed content.

Differential Revision: https://phabricator.services.mozilla.com/D117387
2021-06-23 22:05:31 +00:00
Boris Chiou 5f50cd6052 Bug 1716675 - Move Gecko's internal tests of audio with controls into wpt. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118100
2021-06-23 20:02:20 +00:00
Boris Chiou 4b9b20cfc8 Bug 1716675 - Set 'display:none' with important rule for audio element without controls. r=emilio,botond
If the audio element doesn't have controls attribute, it is not exposing a
user interface, so the user agent is expected to force its display property
to compute to none, irrespective fo CSS rules.

This patch makes sure Gecko's behavior matches other browsers.

spec: https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules

Differential Revision: https://phabricator.services.mozilla.com/D118093
2021-06-23 20:02:20 +00:00
Miko Mynttinen c948d7c6a9 Bug 1494676 - Always consider scrollframes with will-change: scroll active r=tnikkel
This bypasses will-change budgeting for frames will-change: scroll.

Differential Revision: https://phabricator.services.mozilla.com/D118373
2021-06-23 13:10:15 +00:00
Mats Palmgren e0fbda09f4 Bug 1699964 - [css-content] Implement 'content: none' for elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D114130
2021-06-23 02:52:42 +00:00
Mats Palmgren c019c6f680 Bug 1605473 - Implement 'content: none' for ::marker. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111707
2021-06-23 02:52:42 +00:00
Matt Woodrow 50c2489ea5 Bug 1714944 - Flatten away wrapper items while collecting 3D transform leaves. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D117491
2021-06-22 21:20:15 +00:00
Emily McDonough 1f50de5e84 Bug 1647851 Part 3 - Add basic tests for applying page-size when printing r=dholbert
These aren't WPT because the CSS-page spec gives a large range of correct
behavior for handling page-size when printing. We also don't expect Firefox's
default handling to remain the same as it is implemented in this bug.

These also can't be paged reftests because of bug 1717138

Ideally we would be able to give a range of possible correct results for a WPT
that tests printing, but for now we are just testing the specific behavior we
implement.

Differential Revision: https://phabricator.services.mozilla.com/D117480
2021-06-22 19:41:58 +00:00
Emily McDonough d3535c7be9 Bug 1647851 Part 2 - Apply CSS page-size when printing r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115843
2021-06-22 19:41:57 +00:00
Emilio Cobos Alvarez 556f23b5a4 Bug 1715783 - Use nsCSSRendering::DetermineBackgroundColor in backplate color computation. r=morgan
This is more correct as it takes care about falling back to white as needed in
printing mode.

This is still not perfect because themed frames still get black-on-black text.

I'm not super-sure what's the right way to fix that, will
file a follow-up for that. In particular, when you have a themed
button, we use the system colors (i.e., black) to paint
it, but nsLayoutUtils::DarkenColorIfNeeded doesn't know it
and darkens the text color anyways.

Easiest fix is just not use the system colors when
printing, but that feels not-amazing...

Differential Revision: https://phabricator.services.mozilla.com/D118275
2021-06-22 10:42:26 +00:00
Marian-Vasile Laza 75ddec20d3 Backed out 2 changesets (bug 1716675) for causing mochitest failures on test_group_touchevents-2.html. CLOSED TREE
Backed out changeset 9c31f03fa2ba (bug 1716675)
Backed out changeset 041fb25cf007 (bug 1716675)
2021-06-22 10:08:24 +03:00
Mats Palmgren c701d0e232 Bug 1708007 - Make sure we always reflow flex items that have a continuation. r=dholbert
The root cause of the crash was that FlexItem::NeedsFinalReflow
returned false even though the item had a non-empty next-in-flow.
This made the flex container skip the item's reflow and consider
the item's reflow status as COMPLETE, which triggers the removal
of the container's own next-in-flow, which causes the assertions
and eventually the crash.

Differential Revision: https://phabricator.services.mozilla.com/D118420
2021-06-22 01:59:42 +00:00
Butkovits Atila 8a0cd56061 Backed out changeset b7e1a728dfd2 (bug 1717161) for causing failures at perspective-zero-2.html. CLOSED TREE 2021-06-22 05:07:47 +03:00
Matt Woodrow 711df33fa5 Bug 1717161 - Clamp perspective() values to a minimum of 1px. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118250
2021-06-22 00:49:54 +00:00
Kagami Sascha Rosylight 5bce02c01c Bug 1717435 - Enable selectionchange listener without dom.select_events.textcontrols.enabled r=masayuki
`select` event is now fired from selectionchange listener and thus the listener should be enabled regardless of the flag.

Differential Revision: https://phabricator.services.mozilla.com/D118400
2021-06-22 00:08:56 +00:00
Boris Chiou 327fcd4a7f Bug 1716675 - Move Gecko's internal tests of audio with controls into wpt. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118100
2021-06-21 22:36:15 +00:00
Boris Chiou 4ed41cabbb Bug 1716675 - Set 'display:none' with important rule for audio element without controls. r=emilio
If the audio element doesn't have controls attribute, it is not exposing a
user interface, so the user agent is expected to force its display property
to compute to none, irrespective fo CSS rules.

This patch makes sure Gecko's behavior matches other browsers.

spec: https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules

Differential Revision: https://phabricator.services.mozilla.com/D118093
2021-06-21 22:36:15 +00:00
Daniel Holbert 1b97657168 Bug 1678089 diagnostic: Add some logging to mochitest test_bug851485.html, to provide more info when it fails. (no review)
Differential Revision: https://phabricator.services.mozilla.com/D118415
2021-06-21 21:45:23 +00:00
Butkovits Atila 73519d40db Backed out changeset b4e4f16482fe (bug 1715783) for causing failures at backplate-bg-image-006.html. CLOSED TREE 2021-06-22 00:32:21 +03:00
Emilio Cobos Alvarez a659996a08 Bug 1715783 - Use nsCSSRendering::DetermineBackgroundColor in backplate color computation. r=morgan
This is more correct as it takes care about falling back to white as needed in
printing mode.

This is still not perfect because themed frames still get black-on-black text.

I'm not super-sure what's the right way to fix that, will
file a follow-up for that. In particular, when you have a themed
button, we use the system colors (i.e., black) to paint
it, but nsLayoutUtils::DarkenColorIfNeeded doesn't know it
and darkens the text color anyways.

Easiest fix is just not use the system colors when
printing, but that feels not-amazing...

Differential Revision: https://phabricator.services.mozilla.com/D118275
2021-06-21 19:56:13 +00:00
Andrew Osmond 98f810e4e4 Bug 1715515 - Part 1. Switch Windows 32 and mingwclang tests to WebRender. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117287
2021-06-21 12:46:32 +00:00
Kagami Sascha Rosylight 1a8150e79d Bug 1677253 - Part 2: Detect direction change in SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101246
2021-06-21 00:58:36 +00:00
Glenn Watson 4f5a747e61 Bug 1716925 - Remove use of DefineClip in ClipManager r=gfx-reviewers,jrmuizel
This removes the last use of DefineClip from Gecko, which will
allow removing and simplifying a lot of the clip handing code
during scene building in WR.

Differential Revision: https://phabricator.services.mozilla.com/D118121
2021-06-20 22:26:53 +00:00
Emilio Cobos Álvarez fb069248c0 Bug 1716045 - Unify font-family storage. r=mats,jfkthame
This changes font-family storage to reuse the rust types, removing a
bunch of code while at it. This allows us to, for example, use a single
static font family for -moz-bullet and clone it, rather than creating a
lot of expensive copies.

Differential Revision: https://phabricator.services.mozilla.com/D118011
2021-06-18 19:35:50 +00:00
Emilio Cobos Álvarez 94ce0999ad Bug 1716045 - Optimize ArcSlice equality operator for pointer equality. r=jfkthame
Just drive-by, but seems reasonable to avoid the per-element comparison
if the pointers are the same.

Depends on D118015

Differential Revision: https://phabricator.services.mozilla.com/D118016
2021-06-18 19:35:49 +00:00
Emilio Cobos Álvarez 96038c61cc Bug 1716045 - Implement ArcSlice copy/move-assignment operators. r=jfkthame
We're going to use them.

Differential Revision: https://phabricator.services.mozilla.com/D118015
2021-06-18 19:35:49 +00:00
Alexandru Michis 3477ca89c8 Backed out changeset f7016db57a2e (bug 1459526) for causing reftest failures.
CLOSED TREE
2021-06-18 07:49:06 +03:00
Matt Woodrow ab659be5a3 Bug 1716904 - Make css perspective use DOM parent instead of containing block. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118103
2021-06-18 03:35:10 +00:00
Matt Woodrow 71f5026230 Bug 1715803 - Paint blend mode temporary surfaces in device space. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117492
2021-06-18 03:35:07 +00:00
Kagami Sascha Rosylight 673eb02a8f Bug 1713334 - Part 4: Always select the text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117474
2021-06-18 00:36:55 +00:00
Kagami Sascha Rosylight 8bbe7f3f11 Bug 1713334 - Part 1: Keep a text node inside text controls even if empty r=masayuki,Jamie
Doing so prevents confusion when detecting selection change.

Differential Revision: https://phabricator.services.mozilla.com/D116303
2021-06-18 00:36:53 +00:00
Brindusan Cristian 97b71ee13f Backed out 2 changesets (bug 1715515) for breaking the decision task.
CLOSED TREE

Backed out changeset 2e674ac39f8f (bug 1715515)
Backed out changeset 39580a1b4188 (bug 1715515)
2021-06-18 03:20:07 +03:00
Andrew Osmond be550ad9c9 Bug 1715515 - Part 1. Switch Windows 32 and mingwclang tests to WebRender. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117287
2021-06-17 23:53:39 +00:00
Jeff Gilbert 920429087b Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-17 23:43:34 +00:00
Alexandru Michis 459d907670 Backed out changeset add5e42aef7e (bug 1716904) for causing multiple failures.
CLOSED TREE
2021-06-18 01:47:14 +03:00
Matt Woodrow ca62537bc3 Bug 1716904 - Make css perspective use DOM parent instead of containing block. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118103
2021-06-17 20:28:12 +00:00
Ryan VanderMeulen c53375f623 Merge m-c to autoland on a CLOSED TREE. a=merge 2021-06-17 11:39:20 -04:00
Ryan VanderMeulen 050b863666 Backed out 3 changesets (bug 1677253) because it depends on bug 1713334 which was backed out.
Backed out changeset 3d30a54409a7 (bug 1677253)
Backed out changeset 1c385b21e0e5 (bug 1677253)
Backed out changeset eb6001404a57 (bug 1677253)
2021-06-17 11:38:53 -04:00
Ryan VanderMeulen 4f76281e3b Merge m-c to autoland. 2021-06-17 11:01:30 -04:00
Ryan VanderMeulen a337a14382 Backed out 5 changesets (bug 1713334) for causing bug 1716714.
Backed out changeset bd1c37ce2c61 (bug 1713334)
Backed out changeset 876ed18c5126 (bug 1713334)
Backed out changeset 5a4f4514d99a (bug 1713334)
Backed out changeset 7d7feef654c7 (bug 1713334)
Backed out changeset 61e15374e617 (bug 1713334)
2021-06-17 10:57:32 -04:00
Emilio Cobos Alvarez f7b37252ad Bug 1715783 - Do not backplate using a background-color that isn't drawn due to print settings. r=morgan
When printing, we lighten backgrounds and darken colors, unless color-adjust:
exact is used. So with the current backplating logic we might end up using a dark
system color background for a backplate, but then darkening the test, ending up
in both more ink being used, and the text being unreadable.

We don't have a great test story for these but I can try...

Differential Revision: https://phabricator.services.mozilla.com/D117729
2021-06-17 11:15:14 +00:00
Florian Quèze dfeb53e219 Bug 1715257 - Remove Task Tracer code from the profiler, r=gerald,necko-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D117996
2021-06-17 09:33:00 +00:00
Iulian Moraru b02492de66 Backed out changeset 617a466d0cce (bug 1715257) for causing build bustages. CLOSED TREE 2021-06-17 10:58:16 +03:00
Florian Quèze 7b4906a6bd Bug 1715257 - Remove Task Tracer code from the profiler, r=gerald,necko-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D117996
2021-06-17 06:12:10 +00:00
Glenn Watson 347ee912da Bug 1716913 - Remove use of DefineClip in nsDisplayList r=gfx-reviewers,jrmuizel
DefineClip is deprecated, this is one of the last two places in
the Gecko code that still use it.

Differential Revision: https://phabricator.services.mozilla.com/D118111
2021-06-17 02:38:55 +00:00
Butkovits Atila 367d829107 Backed out changeset 318f32313091 (bug 1459526) for causing wrench bustages. CLOSED TREE 2021-06-17 04:45:11 +03:00
Jeff Gilbert 72024fcc23 Bug 1459526 - Handle full-range video in Webrender. r=gw,lsalzman
+ Begin to add video tests to ensure we ratchet towards correctness.
+ Test rec709 x (yuv420p, yuv420p10, gbrp) x (tv, pc) x codecs.
+ Just mark fuzziness for now. Better would be e.g. 16_127_233 'bad
  references'.

Differential Revision: https://phabricator.services.mozilla.com/D115298
2021-06-17 01:12:18 +00:00
Kagami Sascha Rosylight bbba56f5a1 Bug 1677253 - Part 2: Detect direction change in SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101246
2021-06-16 11:13:15 +00:00
Emilio Cobos Álvarez 21a95275cd Bug 1716135 - Move a fuzzy annotation to the right place.
Differential Revision: https://phabricator.services.mozilla.com/D117986
2021-06-16 08:21:19 +00:00
Dorel Luca 59f5741185 Backed out changeset 802fef618855 (bug 1715803) for Crashtest failures in gfx/tests/crashtests/1513133.html. CLOSED TREE 2021-06-16 08:41:52 +03:00
Matt Woodrow 18032a6726 Bug 1715803 - Paint blend mode temporary surfaces in device space. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117492
2021-06-16 01:22:23 +00:00
Andrew Halberstadt 7a16af4434 Bug 1700781 - Skip failing mochitest-plain tests with fission + xorigin, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D117704
2021-06-15 18:24:18 +00:00
Joel Maher e715d02b3b Bug 1715586 - add noqr variant and testset. r=ahal,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D117358
2021-06-15 16:13:32 +00:00
Yaron Tausky 768366d7b8 Bug 1496997 - Remove dom.serviceWorkers.parent_intercept pref r=asuth,dom-workers-and-storage-reviewers,perftest-reviewers,jgraham,sparky,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D101788
2021-06-15 08:52:39 +00:00
Marian-Vasile Laza ad6029d91d Backed out changeset 2c4c38e037f0 (bug 1715803) for causing crashtest failures in 1513133.html
CLOSED TREE
2021-06-15 09:06:59 +03:00
Emilio Cobos Álvarez 14d63a75c3 Bug 1715984 - Remove -moz-outline-radius. r=TYLin
It does nothing since 88 and we unshipped it in 89.

Differential Revision: https://phabricator.services.mozilla.com/D117532
2021-06-15 04:16:46 +00:00
Matt Woodrow 8e2b680133 Bug 1715803 - Paint blend mode temporary surfaces in device space. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117492
2021-06-15 03:14:08 +00:00
Hiroyuki Ikezoe 3faa6fa27a Bug 1709460 - Try to initialize a displayport base for OOP iframe's root scroller with its visible rect. r=tnikkel
In the same manner what we initialize a diplayport base for top level contents.

Differential Revision: https://phabricator.services.mozilla.com/D116576
2021-06-15 01:49:32 +00:00
Daniel Holbert 1154db03a0 Bug 1540635: Generalize fuzzy annotation for reftest 1295466-1.xhtml to remove Windows version check. (no review, just tweaking test fuzziness metadata)
This test formerly had a win7-specific fuzzy annotation. I'm generalizing that
annotation to include all Windows versions, since Windows 10 has had similar
fuzzy failures; and I'm also merging with the adjacent "gtkWidget" fuzzy
annotation, since it's got exactly the same fuzzy thresholds.

Differential Revision: https://phabricator.services.mozilla.com/D117719
2021-06-14 23:59:18 +00:00
Matt Woodrow 14a6394257 Bug 1714596 - Don't try to create a temporary DrawTarget for zero-sized blend modes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117592
2021-06-14 23:46:59 +00:00
Mats Palmgren 7b134f9933 Bug 1713730 - Make 'border-image-repeat: space' paint correctly. r=dholbert
Specifically: in DrawBackgroundImage (which we use to draw borders as well),
this patch makes us translate the anchor-point (together with our destination
rect), for each tiled call to DrawImageInternal.

Differential Revision: https://phabricator.services.mozilla.com/D116596
2021-06-14 20:59:46 +00:00
Kagami Sascha Rosylight 7916262845 Bug 1713334 - Part 4: Always select the text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117474
2021-06-14 19:56:23 +00:00
Kagami Sascha Rosylight 52d022e717 Bug 1713334 - Part 1: Keep a text node inside text controls even if empty r=masayuki,Jamie
Doing so prevents confusion when detecting selection change.

Differential Revision: https://phabricator.services.mozilla.com/D116303
2021-06-14 19:56:22 +00:00
stransky 0c67eb1ded Bug 1661516 [Wayland] Don't use context menu shift in nsMenuPopupFrame::SetPopupPosition(), r=jhorak
- Clear mAdjustOffsetForContextMenu at nsMenuPopupFrame when running on Wayland and use move-to-rect to produce the offset.
- Implement nsWindow::WaylandPopupIsContextMenu()
- Use mBonuds directly in NativeMoveResizeWaylandPopupCallback() instead of Gtk query.
- Add some more loggin and code polishing.

Differential Revision: https://phabricator.services.mozilla.com/D117283
2021-06-14 18:01:04 +00:00
Csoregi Natalia 85bb87115a Backed out 5 changesets (bug 1713334) for failures on test_texteditor_keyevent_handling.html. CLOSED TREE
Backed out changeset ab7b2061f5e8 (bug 1713334)
Backed out changeset f4032094748d (bug 1713334)
Backed out changeset 858410646bf7 (bug 1713334)
Backed out changeset 875b520387b8 (bug 1713334)
Backed out changeset 78b0cdebc890 (bug 1713334)
2021-06-14 20:58:37 +03:00
Emilio Cobos Álvarez d28e1b36bf Bug 1715748 - Expose text selection foreground / background colors to chrome code. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D117417
2021-06-14 15:01:26 +00:00
Emilio Cobos Álvarez a8f090b432 Bug 1715748 - Add an internal -moz-system-color() function to expose both light and dark system colors. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D117416
2021-06-14 15:01:25 +00:00
Butkovits Atila a129011aae Backed out changeset 27149a6f3ca9 (bug 1661516) for causing build bustages on nsMenuPopupFrame.cpp. CLOSED TREE 2021-06-14 17:59:09 +03:00
stransky 4da0695dac Bug 1661516 [Wayland] Don't use context menu shift in nsMenuPopupFrame::SetPopupPosition(), r=jhorak
- Clear mAdjustOffsetForContextMenu at nsMenuPopupFrame when running on Wayland and use move-to-rect to produce the offset.
- Implement nsWindow::WaylandPopupIsContextMenu()
- Use mBonuds directly in NativeMoveResizeWaylandPopupCallback() instead of Gtk query.
- Add some more loggin and code polishing.

Differential Revision: https://phabricator.services.mozilla.com/D117283
2021-06-14 14:32:09 +00:00
Emilio Cobos Álvarez ef49f60672 Bug 1716135 - Annotate some fuzz for macOS+webrender+widget.non-native-theme.webrender=false.
Differential Revision: https://phabricator.services.mozilla.com/D117649
2021-06-14 13:40:48 +00:00
Kagami Sascha Rosylight ca55613fb3 Bug 1713334 - Part 4: Always select the text node r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D117474
2021-06-14 13:08:33 +00:00
Kagami Sascha Rosylight b327288d9d Bug 1713334 - Part 1: Keep a text node inside text controls even if empty r=masayuki,Jamie
Doing so prevents confusion when detecting selection change.

Differential Revision: https://phabricator.services.mozilla.com/D116303
2021-06-14 13:08:32 +00:00
Jonathan Kew c7f53b643f Bug 1711479 - Remove metadata annotations for Linux-specific WPT failures that are fixed by more accurate 'ex' computation. r=emilio
We have a couple of tests that fail on tryserver on certain platforms (though they pass for me locally),
apparently because the glyph measurements used to support the various glyph-related metrics may be
affected by resolution and/or hinting settings. So these are annotated as fuzzy for now.

If we undertake a reimplementation of font metrics to better harmonize behavior across platforms
(a longstanding wish!), perhaps we'll be able to eliminate these discrepancies.

Differential Revision: https://phabricator.services.mozilla.com/D116282
2021-06-14 12:32:38 +00:00
Jonathan Kew 553fdd24fc Bug 1711479 - Support various metrics (not only ex-height) as the basis for font-size-adjust calculations in the gfx font implementations. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D115211
2021-06-14 12:32:37 +00:00
Jonathan Kew 00a8f91ec3 Bug 1711479 - Implement CSS support for the optional adjustment-basis metric keywords for the font-size-adjust property (enabled on Nightly only for now). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D115596
2021-06-14 12:32:36 +00:00
Mats Palmgren ee53823e0f Bug 1542807 part 6 - Update test expectations and fix tests that unintentionally depend on bullet ::marker font metrics. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111696
2021-06-14 01:22:07 +00:00
Mats Palmgren 58a3ef1c19 Bug 1542807 part 5 - Don't apply CSP rules for the document to fonts loaded from User and UserAgent origin sheets. r=ckerschb
As for document.fonts, I don't think we intentionally meant to apply
CSP to User/UserAgent fonts.  The document certainly has no authority
to block those from loading.  (We already have a separate principal
for these which is further evidence that this was unintentional
and we can use the same bit (mUseOriginPrincipal) to avoid CSP.)

Differential Revision: https://phabricator.services.mozilla.com/D111695
2021-06-14 01:22:06 +00:00
Mats Palmgren 14bc280a27 Bug 1542807 part 4 - Exclude fonts loaded from User and UserAgent origin sheets from 'document.fonts'. r=jfkthame
Per https://github.com/w3c/csswg-drafts/issues/6126 these were
never intended to be included in the first place so this is just
fixing a bug.  Note that I'm leaving them in the mRuleFaces array
so that the font loading machinery works the same as before.
I'm just excluding them when queried by document.fonts.

Differential Revision: https://phabricator.services.mozilla.com/D111694
2021-06-14 01:22:06 +00:00
Mats Palmgren e4d7dd995a Bug 1542807 part 3 - Add some style quirks for legacy ::markers created from list-style-type/list-style-image. r=emilio
Specifically:
For "bullets", i.e. 'list-style-type:disc|circle|square|
disclosure-closed|disclosure-open', we use a built-in font
(-moz-bullet-font, which has glyphs for those symbols + space) to
retain mostly backwards compatible rendering for those.  Authors may
override that with an explicit 'font-family' ::marker style though.
We also use this font for 'list-style-image' in case it would
fallback to one of the above when the image fails to load (so that
we get the same width space).

When the -moz-bullet-font is used we also set 'font-synthesis' to
avoid synthesizing italic/bold for this font. Authors may override
this with an explicit ::marker declaration.

We also set 'letter-spacing' and 'word-spacing' to the initial value
for bullets for web-compat reasons.  Again, authors may override
this with an explicit ::marker declaration. (This breaks backwards-
compat slightly but makes us compatible with Chrome.  We used to
ignore these for list-style-type:<string> too.)

Differential Revision: https://phabricator.services.mozilla.com/D111693
2021-06-14 01:22:06 +00:00
Mats Palmgren 19f1737894 Bug 1542807 part 2 - Remove (now unused) nsBulletFrame. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D111692
2021-06-14 01:22:05 +00:00
Mats Palmgren a901b05850 Bug 1542807 part 1 - Create generated content and use normal box construction for list-style-type/list-style-image ::markers. r=emilio
The change from 0x25FE to 0x25AA for list-style-type:square
was approved here:
https://github.com/w3c/csswg-drafts/issues/6200#issuecomment-828616747

Differential Revision: https://phabricator.services.mozilla.com/D111691
2021-06-14 01:22:04 +00:00
Emilio Cobos Álvarez f62193272a Bug 1699837 - Follow-up: Fix --disable-printing builds.
Differential Revision: https://phabricator.services.mozilla.com/D117608
2021-06-14 00:39:58 +00:00
Hiroyuki Ikezoe 31c5a48071 Bug 1700245 - Replace IsAncestorFrameCrossDoc with IsAncestorFrameCrossDocInProcess in TransformFrameRectToAncestor. r=emilio
And add a note to clarify IsAncestorFrameCrossDocInProcess doesn't work
across different process documents.

Differential Revision: https://phabricator.services.mozilla.com/D117502
2021-06-13 22:02:23 +00:00
Hiroyuki Ikezoe 4382eac953 Bug 1700245 - Replace IsAncestorFrameCrossDoc with IsAncestorFrameCrossDocInProcess for assertions in AGR related stuff. r=mattwoodrow
As we audited in bug 1523500, the root scrollable frame in the OOP iframe is
always active, so using IsAncestorFrameCrossDocInProcess would be sufficient
for the assertions.

Differential Revision: https://phabricator.services.mozilla.com/D117501
2021-06-13 22:02:23 +00:00
Emilio Cobos Álvarez b196bb7067 Bug 1716139 - Tweak a fuzzy annotation.
Differential Revision: https://phabricator.services.mozilla.com/D117597
2021-06-13 09:38:27 +00:00
Emilio Cobos Álvarez f0a9cca358 Bug 1649367 - Fix some usage of IsRootContentDocument in PresShell. r=tnikkel
This doesn't change behavior, and is consistent with the changes made in
bug 1554832 to this code.

Differential Revision: https://phabricator.services.mozilla.com/D98473
2021-06-13 09:31:17 +00:00
Emilio Cobos Álvarez 9db2aa0440 Bug 1699837 - Make sure that remote iframes honor print settings. r=mattwoodrow
This fixes it since we honor the print resolution properly now.

Differential Revision: https://phabricator.services.mozilla.com/D115263
2021-06-13 09:16:53 +00:00
Boris Chiou b9038da640 Bug 1681958 - Use eReplacedSizing to assert replaced elements for aspect-ratio. r=TYLin
It seems `eReplacedSizing` is much closer to the definition of replaced
elements (defined in [1]), and we override ComputeSize() for those
frames which are set eReplacedSizing or inline/table frames.

Perhaps we have to update the comments for the frame type bits later.

[1] https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements

Differential Revision: https://phabricator.services.mozilla.com/D117372
2021-06-12 00:32:40 +00:00
Kagami Sascha Rosylight 55dbc99e55 Bug 1713491 - Return std::pair from nsIFrame::GetOffsets r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D117520
2021-06-11 23:54:06 +00:00