Miko Mynttinen
7d83febd11
Bug 1526970 - Part 3: Remove nsPaintedDisplayItem::mDisplayItemData r=mattwoodrow
...
Depends on D106164
Differential Revision: https://phabricator.services.mozilla.com/D106165
2021-02-24 22:22:18 +00:00
Miko Mynttinen
87ae7c68c4
Bug 1526970 - Part 2: Convert nsIFrame::mDisplayItemData to frame property r=mattwoodrow
...
Depends on D104059
Differential Revision: https://phabricator.services.mozilla.com/D106164
2021-02-24 22:22:18 +00:00
Miko Mynttinen
cf0c7ae9e3
Bug 1534549 - Part 2: Allow all display items to carry hit testing information r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D102515
2021-02-06 22:30:37 +00:00
Noemi Erli
1ea87269a8
Backed out 4 changesets (bug 1534549) for causing mochitest failures in test_group_wheelevents.html CLOSED TREE
...
Backed out changeset a03c745620d6 (bug 1534549)
Backed out changeset 2ac9c5dbe9f5 (bug 1534549)
Backed out changeset dabd0c5d21cf (bug 1534549)
Backed out changeset f1b390459263 (bug 1534549)
2021-02-05 02:41:19 +02:00
Miko Mynttinen
63a9dd596a
Bug 1534549 - Part 2: Allow all display items to carry hit testing information r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D102515
2021-02-04 22:19:56 +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
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
Emilio Cobos Álvarez
5e7fe01b59
Bug 1636731 - Use FunctionRef for animation generation enumeration. r=hiro
...
I see the allocation and deallocation of the std::function show up in
profiles.
Differential Revision: https://phabricator.services.mozilla.com/D74551
2020-05-10 02:17:47 +00:00
Markus Stange
568858e9ed
Bug 1546856 - Group related functions and make GetLastPaintOffset static. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D70243
--HG--
extra : moz-landing-system : lando
2020-04-09 16:32:50 +00:00
Markus Stange
6d0cf4cbed
Bug 1546856 - Store mLastPaintOffset at the end of the previous paint rather than at an arbitrary point during the current paint. r=miko
...
The old code caused GetLastPaintOffset to return an offset from two paints ago if it was called before RecyclePaintedLayer, which can happen when the first item in a painted layer moves to a different layer.
Differential Revision: https://phabricator.services.mozilla.com/D70241
--HG--
extra : moz-landing-system : lando
2020-04-09 16:32:08 +00:00
Eric Rahm
7b7fc1c992
Bug 1610387 - Remove nsAutoPtr usage from layout/. r=dbaron
...
Differential Revision: https://phabricator.services.mozilla.com/D60455
--HG--
extra : moz-landing-system : lando
2020-02-01 09:40:36 +00:00
Matt Woodrow
0d50f63b8f
Bug 1348503 - Retrieve the FrameLayerBuilder pointer from the LayerManager when we need it. r=tnikkel
...
Differential Revision: https://phabricator.services.mozilla.com/D34772
--HG--
extra : moz-landing-system : lando
2019-06-13 17:02:54 +00:00
Ryan Hunt
99aaa4e6c6
Bug 1558482 - Add visibleRect and scaling to EffectsInfo and compute them when using layers. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D34523
--HG--
extra : rebase_source : 3bbef496359ae108e1f4adc2548e0140cfd7b0a8
2019-06-11 07:50:40 -05:00
Ryan Hunt
e7da3a1bef
Bug 1519546, part 7 - Gather EffectsInfo for remote browsers in a paint and apply them. r=mattwoodrow
...
WebRender support will be finished in the following commit.
Differential Revision: https://phabricator.services.mozilla.com/D32476
--HG--
extra : rebase_source : f40ab9946e946d137aa2522f9fce0aa268e22937
extra : intermediate-source : ea63d3d6b85fd3c4456275638e968e0eed045b37
extra : source : 79be6c27e0f9e262b75723c120786e2256ee4700
2019-05-24 09:28:23 -05:00
Matt Woodrow
6a72e9b83c
Bug Bug 1547624 - Start inactive Layer building during ProcessDisplayItems so that any contained hit-test info gets propagated to the outer Layer before we add the next item. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D32261
--HG--
extra : moz-landing-system : lando
2019-05-27 04:28:37 +00:00
Miko Mynttinen
af124f7ea0
Bug 1529698 - Part 3: Move DisplayItemData to nsPaintedDisplayItem r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D30839
--HG--
extra : moz-landing-system : lando
2019-05-18 20:11:27 +00:00
Matt Woodrow
11e9f771db
Bug 1551061 - Don't reuse a single DisplayItemData for all items that were previously part of a merged item. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D31004
--HG--
extra : moz-landing-system : lando
2019-05-13 23:40:47 +00:00
Miko Mynttinen
e74a435226
Bug 1549860 - Make display item merging nsDisplayWrapList specific operation r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D30283
--HG--
extra : moz-landing-system : lando
2019-05-08 15:51:23 +00:00
Emilio Cobos Álvarez
11ea945833
Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert
...
Per the discussion in:
https://groups.google.com/d/msg/mozilla.dev.platform/P79pwa9z5m8/iPYPAWPHCAAJ
They should be CamelCase, and that's what most of them already do. This converts
the rest, which are a few.
For the ones that already used `e` or `k` prefixes, I've mostly done:
for file in $(rg Type::e layout | cut -d : -f 1 | sort | uniq); do sed -i 's#Type::e#Type::#g' $file; done
For the ones that used uppercase, I've removed the prefix if it was already in
the type name, and turn them into CamelCase.
Depends on D28680
Differential Revision: https://phabricator.services.mozilla.com/D28681
--HG--
extra : moz-landing-system : lando
2019-04-25 23:03:04 +00:00
Matt Woodrow
fed842fadd
Bug 1539673 - Remove old code for handling opacity:0 within the consumers. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D25169
--HG--
extra : moz-landing-system : lando
2019-04-01 16:54:07 +00:00
Sylvestre Ledru
4aa92e3091
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Brian Birtles
b956fdbf9f
Bug 1532568 - Don't pass the display item types to FrameLayerBuilder::EnumerateGenerationForDedicatedLayers; r=hiro
...
We always pass the same set of types so it seems simpler to just look it up
within the function itself.
Differential Revision: https://phabricator.services.mozilla.com/D22444
--HG--
extra : moz-landing-system : lando
2019-03-07 05:40:24 +00:00
Timothy Nikkel
b5a536d9ae
Bug 1415987. Use ChooseScale to choose a scale in WebRender. r=jrmuizel
2018-12-21 16:07:21 -06:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Hiroyuki Ikezoe
c592937db4
Bug 1504929 - Further optimizations for RestyleManager::AddLayerChangesForAnimations.. r=birtles,sotaro
...
This change eliminates
- nsLayoutUtils::LastContinuationOrIBSplitSibling calls for each CSS
properties on WebRender
- iterating over each display item for each compositor runnable CSS properties
- a bunch of stuff in the case where the layer manager has not yet created,
i.e. the compositor thread is not ready to receive animations
Depends on D11425
Differential Revision: https://phabricator.services.mozilla.com/D11426
--HG--
extra : moz-landing-system : lando
2018-11-13 10:23:20 +00:00
Miko Mynttinen
2945b5216f
Bug 1503046 - Part 3: Generalize FrameLayerBuilder hit test info handling r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D10132
--HG--
extra : moz-landing-system : lando
2018-11-02 02:20:01 +00:00
Jonathan Watt
0133d476ce
Bug 1494285 p2. Rename nsDisplayMask to nsDisplayMasksAndClipPaths. r=miko
...
Differential Revision: https://phabricator.services.mozilla.com/D7007
--HG--
extra : rebase_source : de16f2d9fe5a0610af12b64603757f4fd8d6eee6
extra : amend_source : 1c932942463586d1dfe09bbf31569adc51efa220
extra : histedit_source : 5a6591e23a84382f1add26b9e81f06b8a2f3205a
2018-08-30 10:51:24 +01:00
Miko Mynttinen
b7eaedb6ea
Bug 1484966 - Part 3: Clang format layout/painting/ r=mattwoodrow
...
Depends on D3870
Differential Revision: https://phabricator.services.mozilla.com/D3871
--HG--
extra : moz-landing-system : lando
2018-09-04 20:46:21 +00:00
Miko Mynttinen
a5d71a93f1
Bug 1484966 - Part 2: Fix virtual/override specifiers and whitespace r=mattwoodrow
...
Depends on D3869
Differential Revision: https://phabricator.services.mozilla.com/D3870
--HG--
extra : moz-landing-system : lando
2018-09-04 20:45:55 +00:00
Csoregi Natalia
5984db0879
Backed out 2 changesets (bug 1484966) for bustage on RefPtr.h:42. CLOSED TREE
...
Backed out changeset 7b246c8f9de8 (bug 1484966)
Backed out changeset 399158a0a9b3 (bug 1484966)
2018-09-04 23:42:36 +03:00
Miko Mynttinen
bb2d78e17e
Bug 1484966 - Part 3: Clang format layout/painting/ r=mattwoodrow
...
Depends on D3870
Differential Revision: https://phabricator.services.mozilla.com/D3871
--HG--
extra : moz-landing-system : lando
2018-09-04 17:21:36 +00:00
Miko Mynttinen
1e1dc727b9
Bug 1484966 - Part 2: Fix virtual/override specifiers and whitespace r=mattwoodrow
...
Depends on D3869
Differential Revision: https://phabricator.services.mozilla.com/D3870
--HG--
extra : moz-landing-system : lando
2018-09-04 17:20:40 +00:00
Miko Mynttinen
2f3ec8cc90
Bug 1484966 - Part 1: Fix most clang-tidy warnings for layout/painting/ r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D3869
--HG--
extra : moz-landing-system : lando
2018-09-04 17:19:36 +00:00
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
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
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
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
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
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
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
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
Botond Ballo
02891402c8
Bug 1459696 - Respect nested inactive layer clips when combining a layer's event regions into its ancestors'. r=mstange
...
MozReview-Commit-ID: GkGSOeDvkvS
--HG--
extra : rebase_source : adb52d7d513789306340b743083b5560bf114ae2
2018-05-25 23:33:41 -04:00
shindli
85ee3e1cda
Backed out changeset 2ea7e45aaaaf (bug 1462584) for reftest failures containing AddressSanitizer: use-after-poison on address on a CLOSED TREE
2018-06-14 03:54:51 +03:00
Jamie Nicol
5954a70999
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.
Rather than calling item->Disconnected(), we can ensure the
DisplayItemData is destroyed when it should no longer be used.
We must also make sure we remove the sDisplayItem's dangling pointer.
Rather than calling data->mLayer->Manager() != mRetainingManager, we
can store a pointer to the manager along with the DisplayItemData on
the nsDisplayItem. The item should be in the cache so grabbing this
pointer to perform this check shouldn't cost us anything.
MozReview-Commit-ID: AAVAs8c0CQY
--HG--
extra : rebase_source : 966f343475dd687153310acb8b33db02e202f46f
2018-05-29 18:10:42 +01:00
Matt Woodrow
33d829994f
Bug 1460491 - Part 2: Only recompute visibility for items if they are newly added to this layer, or intersect one that changed. r=jnicol
...
MozReview-Commit-ID: EAgvVQGsSPE
--HG--
extra : rebase_source : 44bc132a95d6d1b7e9cc3c22adcd4166a099237c
2018-05-16 16:02:37 +12:00
Bas Schouten
c04589f5de
Bug 1458655: Do not copy DisplayItemClip onto AssignedDisplayItemData. r=mattwoodrow
2018-05-09 12:29:01 +00:00
Miko Mynttinen
dc109f80d1
Bug 1442190 - Part 5: Use FLBDisplayItemIterator and flatten inactive nsDisplayOpacity in more cases r=mattwoodrow
...
MozReview-Commit-ID: 9I8YvMDEFHy
--HG--
extra : rebase_source : 0a81f66c97cf4120ee0c5822598e491d0676dc42
2018-03-13 15:55:56 +01:00