Commit Graph

64989 Commits

Author SHA1 Message Date
L. David Baron
a71a9e006e Bug 1474516 - A little cleanup of border-collapse code while reviewing bug 1405929. r=dholbert
MozReview-Commit-ID: A3zoPCvu4jU
2018-07-11 09:34:43 +10:00
Cosmin Sabou
26e792fe42 Merge autoland to mozilla-central. a=merge 2018-07-11 00:50:32 +03:00
Kartikaya Gupta
11b43679d8 Bug 1421825 - Fix crash and re-enable crashtest. r=jrmuizel
In some cases we get a gecko display list that looks like this:

WrapList with asr(<A>, <B>)
  Item with asr (<B>) and clipchain(<something> [A])

In this case, we would initialize the WebRenderLayerScrollData for the
nested item using a stop-at ancestor of A (because that was the leafmost
ASR from the containing WrapList) but the item itself has an ASR of B,
which is an ancestor of A. So when walking up from B we'd never hit the
stop-at ancestor, and so we'd end up duplicating metrics from the
containing WRLSD onto the nested WRLSD. This generated an assertion
failure in the APZ code.

This patch detects this scenario and skips adding metrics on the nested
WRLSD. This produces an APZ tree equivalent to what the non-WebRender
path would produce.

MozReview-Commit-ID: 8eo6pzXXKBd

--HG--
extra : rebase_source : 0581c54c4d9fa6ca08249e42b306c7155022bec7
2018-07-10 09:37:40 -04:00
Andreea Pavel
41fc51d32b Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-10 19:38:34 +03:00
Andreea Pavel
a80651653f Merge mozilla-inbound to mozilla-central. a=merge 2018-07-10 19:33:22 +03:00
Cameron McCormack
7954f12743 Bug 1474513 - Simplify CSS::Supports. r=emilio
MozReview-Commit-ID: Lw9K7uRknfv

--HG--
extra : rebase_source : 78130aad34d76fdb37002db4a299db02c83aa10b
2018-07-10 15:51:38 +10:00
Andrea Marchesini
5fff1762ad Bug 1418236 - Correct EventTarget for CSP violation events, r=ckerschb 2018-07-10 17:40:21 +02:00
Paolo Amadini
850645e816 Bug 1474258 - Remove the "listheader" binding and move the remaining styles to "richlistbox.css". r=bgrins
The content of this element is always overridden and the "xul:button" display mode is unnecessary, so the binding can be removed. The styles that control color are moved to "richlistbox.css" in preparation for the removal of the "listbox" element.

MozReview-Commit-ID: 5pGVE6n34EL

--HG--
extra : rebase_source : 8c5e37736c92382486ac605cc2d30085c16b7de7
extra : source : 8be7c63ea5c620641816664d9be81e58a912f9f3
2018-07-09 12:45:41 +01:00
Andreea Pavel
721e84c658 Backed out changeset 641b02da5961 (bug 1473450) for failing xpchsell and mochitest on a CLOSED TREE 2018-07-10 09:28:59 +03:00
Matt Woodrow
1d8fbc442e Bug 1456111 - Make sure an empty pixel rectangle gets converted to an empty app unit rectangle, regardless of scale factor. r=tnikkel
MozReview-Commit-ID: GGl7ul6aka1

--HG--
extra : rebase_source : 07b620feaa3362b7fb610ba56dbf26d2d1f9c47a
2018-07-10 17:53:22 +12:00
Cameron McCormack
e2ce31efc1 Bug 1473450 - Remove angle values from image-orientation. r=emilio
MozReview-Commit-ID: FB74ILJM6Fm

--HG--
extra : rebase_source : 8c13a67086aedad73a642b5125bbb44f48068f5d
2018-07-05 12:04:58 +10:00
Matt Woodrow
eb7a77e3a7 Bug 1421885 - Part 2: Don't compute APZ touch-action regions on platforms that don't support touch gestures. r=kats
MozReview-Commit-ID: DA5lj6BXh92

--HG--
extra : rebase_source : 675268bd9b3b56a9cc6b1735454f13e3bec7d102
2018-07-10 15:20:38 +12:00
Matt Woodrow
6520bffb3a Bug 1421885 - Part 1: Don't let mNoActionRegion get complex when we've already added it to mDispatchToContentRegion. r=kats
MozReview-Commit-ID: 8oBbyseQsCV

--HG--
extra : rebase_source : 2327df91c4bd9f72a1f2a51d522b46f76608b611
2018-07-10 15:19:43 +12:00
Oriol Brufau
281b4c08f4 Bug 1472567 - Honor logical border colors in visited links r=emilio
MozReview-Commit-ID: IF8yvkFmPc4

--HG--
extra : rebase_source : 56d82de88c9390007a7fea5f2f8ef99292ad61d8
2018-07-05 12:56:34 +02:00
Ciure Andrei
c01c70ada6 Backed out 2 changesets (bug 1421885) for test_group_touchevents-3.html failures CLOSED TREE
Backed out changeset faab566585a2 (bug 1421885)
Backed out changeset cac0b0aa948e (bug 1421885)
2018-07-10 02:59:05 +03:00
Matt Woodrow
c1d6c26906 Bug 1466638 - Implement support for ContainerLayerParameters::mOffset in nsDisplayImageContainer. r=mstange
This gets set to a non-zero value when we have an inactive ContainerLayer ancestor (filter in this case).
The current code assumes we'd never call BuildLayer on an image when that happen, but we force the pseudo-active
state here because background-position is animated (all properties have a transition).

MozReview-Commit-ID: 6pL8EJTNgWy

--HG--
extra : rebase_source : 6370fc79d5f47f0b5c4bbe86c0b605b90256b653
2018-07-09 16:11:08 +12:00
Matt Woodrow
aaf47c33a4 Bug 1421885 - Part 2: Don't compute APZ touch-action regions on platforms that don't support touch gestures. r=kats
MozReview-Commit-ID: 7WfhqemVLGt

--HG--
extra : rebase_source : ce279b07770da3dcb22635ca34e3764d320073c1
2018-07-10 11:02:12 +12:00
Matt Woodrow
3def26fd12 Bug 1421885 - Part 1: Don't let mNoActionRegion get complex when we've already added it to mDispatchToContentRegion. r=kats
MozReview-Commit-ID: 5DwLyJ7qeN0

--HG--
extra : rebase_source : 34740ca99fe1bec2f594c58967e39964026c1014
2018-07-10 10:50:10 +12:00
Ciure Andrei
a3f8fecfd2 Backed out 2 changesets (bug 1421885) for helper_touch_action_complex.html failures CLOSED TREE
Backed out changeset 42f32a0e7508 (bug 1421885)
Backed out changeset 9f106d66d06e (bug 1421885)
2018-07-10 00:35:21 +03:00
Matt Woodrow
03414c2618 Bug 1421885 - Part 2: Don't compute APZ touch-action regions on platforms that don't support touch gestures. r=kats
MozReview-Commit-ID: EdHKXIcPKMd

--HG--
extra : rebase_source : 8576c9367feb93a4d9f25c9bedbe47142029caa6
2018-07-09 16:13:23 +12:00
Matt Woodrow
3988cf0afa Bug 1421885 - Part 1: Don't let mNoActionRegion get complex when we've already added it to mDispatchToContentRegion. r=kats
MozReview-Commit-ID: 11gi2u4bAdJ

--HG--
extra : rebase_source : b3dc98930fb623244689fa15ff6a5275bc212312
2018-07-09 16:12:54 +12:00
Andreea Pavel
fbfb9237c9 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-10 13:11:02 +03:00
André Bargull
19d00748a5 Bug 1466471 - Part 5: Regenerate Unicode files after ICU update. r=jfkthame 2018-06-22 05:02:03 -07:00
Kartikaya Gupta
78dba184db Bug 1461313 - Handle invalid clip-path URIs with WebRender. r=mstange
In the case of an invalid clip-path, the browser is supposed to discard the
mask entirely. In the non-webrender codepath this would happen
implicitly because the computed MaskUsage would have no flags set, and
so no actions would be taken on the gfxContext which contained the
display items rasterized so far. In the WebRender codepath, though, we
invoke the code on a A8 drawtarget that's zero-filled, so if PaintMask
fails to rasterize anything into it, it gets treated as a "mask everything
out" mask. Instead, this patch makes it so that we detect the scenario
where the computed MaskUsage is a no-op, and ensure that we don't apply
the mask in that case.

An alternative approach considered was to initialize the A8 drawtarget to
white instead of black but in cases where there is an actual mask, the
rest of the code assumes it is zero-filled and so that doesn't work.

MozReview-Commit-ID: Hw7nCiUXVJl

--HG--
extra : rebase_source : 241d550fa0ed1b3bd088c73d9565b166acbcece8
2018-07-05 08:05:34 -04:00
Matt Woodrow
f06b4bd62c Bug 1458121 - Don't try to layerize when we have a clip-path mask as well as rounded rect clipping. r=mstange
MozReview-Commit-ID: GhOay2a6z9t

--HG--
extra : rebase_source : 2c3dcf4fe05046da1790a46fb96d7acdf7caf86c
2018-06-21 12:43:22 +12:00
Emilio Cobos Álvarez
141a5774ca Bug 1473651: Track animated image status for generated content and content: url(). r=tnikkel
I thought of just moving the tracking to nsImageFrame instead of
nsImageLoadingContent entirely, though that would mean I need to handle it also
in nsImageBoxFrame and nsSVGImageFrame, which was even more duplicated code.

Ideas for testing this welcome, though all our animated image test-cases are
borked (all reftests in image/test/reftest/apng are disabled, and all the ones
for gifs that have animations as well).

I'll cross-ref this bug and bug 1473651 so that we can write a test for this
once that's fixed.

Differential Revision: https://phabricator.services.mozilla.com/D1994

--HG--
extra : moz-landing-system : lando
2018-07-06 10:22:09 +00:00
Andreea Pavel
2ef6a9ab83 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-08 00:54:23 +03:00
Andreea Pavel
c815b24ed0 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-08 00:52:14 +03:00
Daniel Holbert
29750aed37 Bug 1474093: Annotate reftest contain-size-inline-flex-001.html as slightly fuzzy on Windows WebRender. (test-manifest-only)
--HG--
extra : amend_source : 0df1a924a10b8c8d9609c301d714717cd7b96b33
2018-07-07 09:32:54 -07:00
Matt Woodrow
6f70c89500 Bug 1473908 - Add new telemetry measurement for recording time spent in FrameLayerBuilder. r=bas,francois
MozReview-Commit-ID: 9oilZL1lPGp

--HG--
extra : rebase_source : 6682218e660b9345e020027aa6f445125d070bf2
2018-07-06 19:10:56 -07:00
Olli Pettay
9456afdee0 Bug 1473856 - MediaQueryList could use ProbablyShortLivingWrapper + LastRelease, r=bz
--HG--
extra : rebase_source : 71091f1a58a11648fb87c5639f5ac85bd1e9760e
2018-07-07 03:08:35 +03:00
Cameron McCormack
81599f34a7 Bug 1473735 - Add memory reporting for MediaQueryLists. r=emilio
MozReview-Commit-ID: 87rgRtQOOyG

--HG--
extra : rebase_source : a2ba4e1ed29fd7249378f9496c2059fa26316c3c
2018-07-06 11:09:12 +10:00
Boris Chiou
ffa1da7545 Bug 1467277 - Avoid getting zero normalized vector of rotate3d when setting a rotate matrix. r=nical
For example, if we set a transform to rotate3d(0, 0, 1e50, 45deg), the
expected normalized rotate axis is (0, 0, 1).
However, the length is larger than the maximum of float, so the actual value is
(0/inf, 0/inf, 1e50/inf) == (0, 0, 0). Therefore, we scale the vector before
doing normalization to avoid getting a zero vector.

MozReview-Commit-ID: 5LUDWD4RuNj

--HG--
extra : rebase_source : eb82f0b3979bf6ea3cd11b643ebb30a49edc24f8
2018-07-05 15:40:39 -07:00
Andreea Pavel
3e043423dd Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-07-10 19:36:46 +03:00
Jamie Nicol
ab2277aaa8 Bug 1462584 - Avoid dereferencing DisplayItemData in GetOldLayerForFrame. r=mattwoodrow
It's causing cache misses which are showing up in profiles of the displaylist
mutate test case.

To avoid checking Disconnected(), we can destroy the DisplayItemData
and unset the item's pointer to it, rather than calling Disconnect()
in the first place.

To avoid fetching the LayerManager (to compare with mRetainingManager)
we can store this value on the display item along with the
DisplayItemData.

This change ensures that if a nsDisplayItem holds a pointer to a
DisplayItemData then that DisplayItemData holds a pointer back, and
vice-versa.

MozReview-Commit-ID: AAVAs8c0CQY

--HG--
extra : rebase_source : e60c378877618592f311e690219099b1cfc4c9d4
2018-05-10 16:53:34 +01:00
Morgan Rae Reschenberg
9ab261d6c6 Bug 1467209 - Implement contain:size for flexContainerFrame. r=dholbert
MozReview-Commit-ID: 46BFbEGa7uz

--HG--
extra : rebase_source : 5135a92a82340219f2c3b83287af5929105ab5b7
2018-06-29 10:31:22 -07:00
Morgan Rae Reschenberg
2b431dd034 Bug 1467209 - Implement contain:size for blockFrame. r=dholbert
MozReview-Commit-ID: 852mDXLEpOj

--HG--
extra : rebase_source : f55cb848e798ef38fd501c6ffd6fff238fc126bc
2018-06-29 10:30:07 -07:00
Morgan Rae Reschenberg
d7195a66a7 Bug 1467209 - Implement contain:size for HTMLButtonControlFrame. r=dholbert
MozReview-Commit-ID: Jsjs3jxy4z3

--HG--
extra : rebase_source : 2532d959dbcf4e062f50a00e05a512d549357116
2018-06-29 10:27:55 -07:00
Bas Schouten
a15c335a75 Bug 1473376: Ensure hit test regions never grow excessively complex. r=kats 2018-07-04 18:52:10 +00:00
Margareta Eliza Balazs
af46e30cce Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-06 12:55:40 +03:00
Emilio Cobos Álvarez
34c308c2ec No bug - Make SmallPointerArray opaque. r=me
MozReview-Commit-ID: 9PEsYURxmlg
2018-07-06 04:47:30 +02:00
Cameron McCormack
a051633346 Bug 1473776 - Remove out of date comment. r=emilio
MozReview-Commit-ID: 1FqcJpu5L81

--HG--
extra : rebase_source : 33a21100fcfcbe3afe8f86a357ad3ea6dc08574f
2018-07-06 11:23:09 +10:00
Jamie Nicol
7d9ee61570 Bug 1473379 - Change PaintedLayerData::mAssignedDisplayItems to a std::vector. r=mattwoodrow
This allows us to call emplace_back, saving us a move.

MozReview-Commit-ID: 4wRiAxl7LSN

--HG--
extra : rebase_source : 0ea07c896c2807a65ad7493a22b8e2b61e68aa01
2018-07-03 22:39:04 -04:00
Morgan Rae Reschenberg
29036db401 Bug 1470329 - Change ReflowInput to have unconstrained BSize for size-contained elements, add reftests r=dholbert
MozReview-Commit-ID: 6IRAi8iScwy

--HG--
extra : rebase_source : 13f3de7149f82aa6d742eda957f1327d41fcd5ef
2018-07-02 09:43:03 -07:00
Brendan Dahl
cba4aa7f3a Bug 1466897 - Rename nsIRootBox to nsIPopupContainer. r=mats
MozReview-Commit-ID: D4GgReAEelG

--HG--
rename : layout/xul/nsIRootBox.h => layout/xul/nsIPopupContainer.h
extra : rebase_source : 6670156e9958d6fb51860fe92bbb4ffbf5789267
2018-06-26 17:29:55 -07:00
Brendan Dahl
cd53e83d34 Bug 1466897 - Support context menus in top level chrome privileged HTML pages. r=dbaron,mats
Create an anonymous popupgroup element during the creation of a top level
chrome privileged nsCanvasFrame. Implement nsIRootBox for nsCanvasFrame to store
the popup set frame. Adjust nsIRootBox::GetRootBox to be able to find the
popupset frame in a non-xul frame layout.

MozReview-Commit-ID: HCbPgQb4uil

--HG--
extra : rebase_source : 26c06243a477a07e3df2b1136ac5f636d4363b40
2018-06-04 18:02:32 -07:00
Andreea Pavel
be6dd58462 Backed out changeset 5c9b8478d69d (bug 1473379) for bustages at builds/worker/workspace/build/src/obj-firefox/dist/include/nsTArray.h:693 on a CLOSED TREE 2018-07-05 16:45:05 +03:00
Jamie Nicol
d113489b72 Bug 1473379 - Change PaintedLayerData::mAssignedDisplayItems to a std::vector. r=mattwoodrow
This allows us to call emplace_back, saving us a move.

MozReview-Commit-ID: 4wRiAxl7LSN

--HG--
extra : rebase_source : 48a0eee8f61f568e0910476dbf672cb43827187e
2018-07-03 22:39:04 -04:00
Ciure Andrei
2198f99f97 Merge inbound to mozilla-central. a=merge 2018-07-05 12:51:41 +03:00
Andrea Marchesini
14d462eeb3 Bug 1418246 - Return valid columnNumber value in CSP violation events, r=ckerschb 2018-07-05 08:21:04 +02:00