Commit Graph

1421 Commits

Author SHA1 Message Date
Miko Mynttinen
82395c69d1 Bug 1477693 - Part 3: Refactor FrameLayerBuilder invalidation functions to better handle different coordinate spaces r=mattwoodrow
MozReview-Commit-ID: 1NDcg88a1Ge

--HG--
extra : rebase_source : 97208a584e907473793fd9f4a528bc6166683ebf
2018-07-26 00:22:33 +02:00
Miko Mynttinen
222e57e271 Bug 1477693 - Part 2: Do not allow implicit cast between rect and region with InvalidatePostTransformRegion() r=mattwoodrow
MozReview-Commit-ID: LjIhBb2JjQ

--HG--
extra : rebase_source : 790d92333e2486b243afbde09875c3c9ceccf15f
2018-07-25 22:41:03 +02:00
Miko Mynttinen
ca9f5b45f8 Bug 1477693 - Part 1: Move TransformClipNode and TransformWithNode functions to TransformClipNode.h r=mattwoodrow
MozReview-Commit-ID: 13uSenWdNXJ

--HG--
extra : rebase_source : cd1c6cb203bba00ece5dcae833c0c38e1f1ef322
2018-07-25 21:58:22 +02:00
Coroiu Cristina
09c6bcc2ca Merge mozilla-central to autoland a=merge 2018-07-31 05:05:39 +03:00
Coroiu Cristina
6ba5f27325 Backed out 4 changesets (bug 1477693) for perma-failing reftests at tests/layout/reftests/svg/smil/transform/scale-1-ref.svg a=backout
Backed out changeset 069ad25949f3 (bug 1477693)
Backed out changeset 34f12e5543aa (bug 1477693)
Backed out changeset 864e12713e98 (bug 1477693)
Backed out changeset fa4d0ff6f779 (bug 1477693)
2018-07-31 05:02:33 +03:00
Miko Mynttinen
f0923000a3 Bug 1479092 - Fix comments and whitespace. r=me
--HG--
extra : rebase_source : 2c76ad061319e886659b645efdac7601907050a2
2018-07-30 16:33:07 +02:00
Coroiu Cristina
70216eda0a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-07-31 01:02:15 +03:00
Matt Woodrow
1c14c56cce Bug 1475971 - Copy the building rect into old items when we decide we can reuse them. r=miko
MozReview-Commit-ID: JXHZ17iFaei

--HG--
extra : rebase_source : 42fc06465a644de597f78e46878037b653da046e
2018-07-30 16:03:32 +12:00
Miko Mynttinen
caf9b6a162 Bug 1479092 - Reuse clips for consecutive effects during painting, if possible r=mattwoodrow
MozReview-Commit-ID: 8bpWDa3JTMu

--HG--
extra : rebase_source : 02c3c57c54298dae38fed74432e408d590c2da67
2018-07-27 21:44:10 +02:00
Miko Mynttinen
605b909841 Bug 1479091: Add fast-path for items inside effects r=mattwoodrow
MozReview-Commit-ID: GNMxePW4R9e

--HG--
extra : rebase_source : 74683799fcb5182db2e376d2e9af13eaa6b3832a
2018-07-27 22:17:59 +02:00
Miko Mynttinen
536d27c7f5 Bug 1477693 - Part 3: Refactor FrameLayerBuilder invalidation functions to better handle different coordinate spaces r=mattwoodrow
MozReview-Commit-ID: 1NDcg88a1Ge

--HG--
extra : rebase_source : a4e5c424570239604b285e19bb57fc7a97a63381
2018-07-26 00:22:33 +02:00
Miko Mynttinen
e38b4b8fbd Bug 1477693 - Part 2: Do not allow implicit cast between rect and region with InvalidatePostTransformRegion() r=mattwoodrow
MozReview-Commit-ID: LjIhBb2JjQ

--HG--
extra : rebase_source : bb7273882b4c3db3ef339f2862144f0e8531e625
2018-07-25 22:41:03 +02:00
Miko Mynttinen
83730e5618 Bug 1477693 - Part 1: Move TransformClipNode and TransformWithNode functions to TransformClipNode.h r=mattwoodrow
MozReview-Commit-ID: 13uSenWdNXJ

--HG--
extra : rebase_source : 6847b970fecc141e6968134afcec6aebafdfc3c0
2018-07-25 21:58:22 +02:00
Miko Mynttinen
1f7081c0aa Bug 1477831 - Merge items in FLBDisplayItemIterator r=mattwoodrow
MozReview-Commit-ID: AWxVue3tjN1

--HG--
extra : rebase_source : 94a3a2bbc70b2259c7ad0caeaec62fc10770b872
2018-07-24 16:31:04 +02:00
Emilio Cobos Álvarez
517256e365 Bug 1478391: Autogenerate StyleAppearance. r=jwatt
This builds on bug 1428676 and introduces StyleAppearance, which replaces the
NS_THEME_* constants.

Really sorry for the size of the patch.

There's a non-trivial change in the gtk theme, which I submitted separately as
bug 1478385.

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

MozReview-Commit-ID: DiSmMWK7Krp
2018-07-26 17:06:17 +02:00
Cosmin Sabou
0d3874d7d6 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-21 00:42:01 +03:00
Ryan VanderMeulen
7c56172d60 Backed out 5 changesets (bug 1465616) for causing Fennec scrolling regressions.
Backed out changeset 403ba3d9539a (bug 1465616)
Backed out changeset ea79ddd406f4 (bug 1465616)
Backed out changeset 559c8997eb53 (bug 1465616)
Backed out changeset 3f5ca59998bf (bug 1465616)
Backed out changeset 9e48a27950be (bug 1465616)

--HG--
extra : amend_source : 8cc378d26e9fea0ed6277b69f227191e849001d8
2018-07-20 14:40:51 -04:00
Miko Mynttinen
21ec2cdf13 Bug 1462672 - Move #ifdef/#endif to right place r=me
--HG--
extra : rebase_source : 8a0e9051b22357af45c57e3ea4163bea0f5192ad
2018-07-20 19:55:28 +02:00
Miko Mynttinen
411fe6b5c6 Bug 1462672 - Part 8: Flatten inactive nsDisplayTransform items r=mattwoodrow
MozReview-Commit-ID: 5ushAgOec9U

--HG--
extra : rebase_source : 17d866e038f594f8f544ce4786d1581995824915
2018-07-17 02:14:28 +02:00
Miko Mynttinen
03a67e4d61 Bug 1462672 - Part 7: Add FLBDisplayItemIterator support for flattening inactive transforms r=mattwoodrow
MozReview-Commit-ID: 8cv6qh1s4qy

--HG--
extra : rebase_source : 4c4a6e87bd2701c0ff047d8e41eee88830edadab
2018-07-17 01:34:15 +02:00
Miko Mynttinen
ed0fd2fe79 Bug 1462672 - Part 6: Add MatrixStack and TransformClipNode r=mattwoodrow
MozReview-Commit-ID: JzQwfUmFTxT

--HG--
extra : rebase_source : 6cfd11e51533f1ddac29b739b5383dd4042cf9ea
2018-07-16 21:22:43 +02:00
Miko Mynttinen
0c42827471 Bug 1462672 - Part 5: Add a pref flag to allow flattening inactive nsDisplayTransform items r=mattwoodrow
MozReview-Commit-ID: BQGzaAMzReF

--HG--
extra : rebase_source : 42678409280a795fe891e10eceb86fa269d1d2de
2018-07-16 21:27:08 +02:00
Miko Mynttinen
99cc376922 Bug 1462672 - Part 4: Add nsDisplayTransformGeometry r=mattwoodrow
MozReview-Commit-ID: 47lrPomXs2N

--HG--
extra : rebase_source : 2bde5b4d659e2945514bab74727f3ceb4246189a
2018-07-16 21:25:43 +02:00
Miko Mynttinen
c626df5251 Bug 1462672 - Part 3: Extract transform matrix selection into a separate function nsDisplayTransform::ShouldSkipTransform r=mattwoodrow
MozReview-Commit-ID: 4ZE0vvCucfz

--HG--
extra : rebase_source : c5e141dcef26cf7b01030825b79080cc939611bf
2018-07-16 21:24:13 +02:00
Miko Mynttinen
509284a26b Bug 1462672 - Part 2: Make nsDisplayTransform::GetTransformForRendering and DisplayItemClip::ApplyTo const r=mattwoodrow
MozReview-Commit-ID: B9zpHCDeUq3

--HG--
extra : rebase_source : d73737d6d593dbd498e7c958092ce6e7bf1dd97e
2018-07-16 21:20:21 +02:00
Miko Mynttinen
d2fbe47a2e Bug 1462672 - Part 1: Remove unused parameter aUseClipBounds r=mattwoodrow
MozReview-Commit-ID: IwqEzMKfxZ4

--HG--
extra : rebase_source : ecc2675f3a525957eae60db6e00558a9c1c8fc7d
2018-07-16 21:18:59 +02:00
Cosmin Sabou
099320d8ad Merge mozilla-central to autoland. a=merge 2018-07-18 20:21:59 +03:00
Kashav Madan
0c865cee42 Bug 1465616 - Use layout viewport size to compute visible rect for fixed position elements. r=mstange
Since fixed position elements are now scrollable, we need to ensure that they're
drawn using the layout viewport size instead of only the SPC-SPS, since
otherwise they'd be inaccurately clipped when scrolled.

MozReview-Commit-ID: 4p3pWnwluvz

--HG--
extra : rebase_source : f5bc1eae9bf2c8f4b9f78675e9da071de012160e
2018-07-04 16:10:04 -04:00
Bas Schouten
2ffa4da191 Bug 1476506: Move RoundedRect into Moz2D and convert all callers. r=mattwoodrow 2018-07-18 08:55:43 +02:00
Doug Thayer
29c0e06cd6 Bug 1471381 - Don't give up on rounded rects in DisplayItemClip r=mattwoodrow
Effectively we compute the diff by lopping off the rounded part
of each rect where appropriate. This gets a bit weird to think
about with very mismatched radii, but I think it works out(?)

MozReview-Commit-ID: 472gx7Hw1Br

--HG--
extra : rebase_source : 817a84d78c98ac99797ab73b89f8c667189767d1
2018-07-13 09:11:28 -07:00
Miko Mynttinen
dc2028f5bb Bug 1472465 - Update flattened nsDisplayOpacity geometry despite empty invalidation region r=mattwoodrow
MozReview-Commit-ID: 7mrTuQ6gEoA

--HG--
extra : rebase_source : eba482b61fe298734a0a727dc29453054131f746
2018-07-16 01:09:23 +02:00
Matt Woodrow
aaaba0f931 Bug 1474466 - Convert rounded rect clips into paint geometry if the display item type support it. r=bas,jnicol
MozReview-Commit-ID: EkqgSSLufnp

--HG--
extra : rebase_source : 3c308cd46934107f734b311ea2e2b26251c15bf5
2018-07-15 20:26:46 +12:00
Matt Woodrow
4f18c0f4a2 Bug 1475413 - Prefer using old items for uninvalidated frames during display list merging. r=miko
MozReview-Commit-ID: 14gc2IBJT1o

--HG--
extra : rebase_source : 6de86aec8ef1039b3adf8006cea456efadbed73b
2018-07-13 12:26:36 +12:00
Emilio Cobos Álvarez
1494e3f878 Bug 1474903: Minor static_cast cleanup in nsDisplayList. r=miko
MozReview-Commit-ID: 30vwluk0r39
2018-07-13 17:17:03 +02:00
Coroiu Cristina
681774eb08 Backed out changeset 9851707b13cb (bug 1471583) for Wr4 failures in multiple files e.g. css/CSS2/backgrounds/background-root-010.xht on a CLOSED TREE 2018-07-12 18:07:57 +03:00
Emilio Cobos Álvarez
b00499528d Bug 1471583: Don't record a successful draw result if the image is not complete yet. r=tnikkel
I've tried to unsuccessfully reproduce the same kind of failures locally under
rr with this patch applied, so that's a good sign.

This should fix the case where we don't invalidate from AttemptPartialUpdate
while trying to sync-decode.

This is a clear part of the problem, though not sure yet if it'll fix all the
issues we see in these tests. In any case I want to investigate those
separately.

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

MozReview-Commit-ID: H7OEvbQUues
2018-07-12 14:13:49 +02: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
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
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
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
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
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
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
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
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
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