Botond Ballo
2029f1cf93
Bug 1349750 - Store the entire ScrollThumbData in HitTestingTreeNode. r=kats
...
This is preparation for future changes that will add fields to ScrollThumbData
that will be accessed via HitTestingTreeNode.
To accomplish this, this patch also exposes the entire ScrollThumbData via
LayerMetricsWrapper and WebRenderScrollDataWrapper.
MozReview-Commit-ID: 1Ed8Z80Wk1V
--HG--
extra : rebase_source : 86cce84eab0cd8bcd2998f1682137e9514bb1fb5
2017-05-03 20:25:09 -04:00
Botond Ballo
6c0eea50b3
Bug 1349750 - Group scroll thumb-related information in Layer into a ScrollThumbData structure. r=kats
...
The patch also renames Layer::SetScrollbarData() to Layer::SetScrollThumbData()
for clarity.
MozReview-Commit-ID: DVwJ3DMl3Zs
--HG--
extra : rebase_source : 7b2bfccf1351c82bb16296635e69d5488c87a50f
2017-05-10 14:02:15 -04:00
Kartikaya Gupta
b21511b7c0
Merge m-c to graphics
...
MozReview-Commit-ID: GdyXEYZsVuX
2017-04-25 08:32:48 -04:00
Kartikaya Gupta
f566883468
Bug 1357754 - Replace LayerMetricsWrapper::AsRefLayer with GetReferentId. r=botond
...
This further abstracts away the direct dependence on particular layer
types. This is needed in particular for the APZCTreeManager call site
since it will need to operate on non-layer-tree data which is hard if it
relies specifically on RefLayer.
MozReview-Commit-ID: zbK3oTNHJc
2017-04-20 10:38:05 -04:00
Botond Ballo
db703a3ed0
Bug 1355374 - Remove the no-longer-used LayerMetricsWrapper::GetScrollThumbLength() and HitTestingTreeNode::mScrollThumbLength. r=kats
...
MozReview-Commit-ID: ICm2Q1hnKD6
--HG--
extra : rebase_source : 3152714a349ce134d30dc48c94b40b59053ab195
2017-04-21 13:59:32 -04:00
Kartikaya Gupta
5590927943
Bug 1357530 - Remove unused code in LayerMetricsWrapper.h. r=botond
...
MozReview-Commit-ID: EkZsUapSqWO
--HG--
extra : rebase_source : 3fb544cbdcf30afa4a15136a2e9f5463b9d30f7f
2017-04-18 16:09:37 -04:00
David Anderson
baf1f78d98
Move ScrollDirection to LayersTypes.h and make it a proper enum. (bug 1332567 part 1, r=kats)
2017-01-24 16:41:17 -08:00
Kevin Wern
e4d8f7fbe8
bug 1249162 - Fix unwanted thumb shifts when starting APZ drag r=botond
...
Fix thumb position determination in these places:
- nsSliderFrame::StartAPZDrag() -- Constrain sliderTrack using
GetXULClientRect() to match dimensions used in
SetCurrentThumbPosition() and DoXULLayout(). This is what caused
the scaling/offset mismatch.
- nsSliderFrame::StartAPZDrag() -- Adjust nonsensical calculation of
cssSliderTrack. Should be sliderFrame + scrollbarFramePosition -
compositionBoundsPosition, to get coordinates relative to the same
region as that of APZ event coordinates.
- AsyncDragMetrics -- Make mScrollTrack and mScrollbarDragOffset float
instead of int coordinates.
- AsyncPanZoomController::HandleDragEvent() -- Use
GetAxisLength(scrollTrack) instead of GetAxisEnd(scrollTrack) in
calculation of scrollMax.
- AsyncPanZoomController::HandleDragEvent() -- Only change position on
MOUSE_MOVE.
Additional refactors:
- Rename HitTestingTreeNode::GetScrollSize() to GetScrollThumbLength(),
along with related functions/variables.
- Rename AsyncPanZoomController::GetAxisSize() to GetAxisLength().
- Rename cf to scrollFrame in nsSliderFrame::StartAPZDrag().
MozReview-Commit-ID: CIsU8Pj6qfa
--HG--
extra : rebase_source : 29548fb95ec3e958d903d964753857ee949753ba
2016-11-27 20:48:08 -05:00
Kartikaya Gupta
a5b8dc0091
Bug 1219296 - Followup to fix stale code comments. r=me and DONTBUILD
...
MozReview-Commit-ID: 65hNR0nUQP
2016-10-24 13:07:01 -04:00
Michelangelo De Simone
0b2d2c0e55
Bug 1120059 - Remove unnecessary MOZ_EXPLICIT_CONVERSION macros. r=jwalden
...
MozReview-Commit-ID: 7CX1VnBRDpk
--HG--
extra : rebase_source : 36be7e6c91d2767c5a610a2806f89efa69ff1c74
2016-07-13 15:07:52 -07:00
Botond Ballo
29ef36444d
Bug 1267438 - Use the layer's scrolled clip during compositor hit testing. r=mstange
...
MozReview-Commit-ID: 2nodwaZHeWZ
--HG--
extra : rebase_source : 4a61e20fa5ea6de457132aa7e06c27e48286f28c
extra : source : 6618e805fce8e1b45241783d8ba3b5bec5ad182a
extra : histedit_source : 4b27d55d0f26de7a13ef741feef9df6f8e6c4f13
2016-05-04 17:30:26 -04:00
Kartikaya Gupta
4e803a8887
Bug 1270955 - When hit-testing on fixed-pos layers, find the root APZC for the scroll container rather than the layers id. r=botond
...
MozReview-Commit-ID: IvcMbpINOBI
2016-05-11 17:28:04 -04:00
Botond Ballo
54e53e75c4
Bug 1257288 - Have APZ hit testing respect scroll clips. r=kats
...
MozReview-Commit-ID: AZU5TEMvySG
--HG--
extra : rebase_source : f435fa574a52bdf90690c1ede739f248d2f0d99f
2016-04-20 18:38:25 -04:00
Kartikaya Gupta
0b2d4ef75f
Bug 1258851 - Update HitTestingTreeNode::IsScrollbarNode to include the scrollbar track layers. r=rbarker
...
MozReview-Commit-ID: CmyeeEPPYAq
--HG--
extra : rebase_source : f6b01531e45881409b6c4796a8b5ecff135217d4
2016-04-14 16:42:24 -04:00
Botond Ballo
77cebd9dd2
Bug 1219296 - Make ScrollMetadata::sNullMetadata a StaticAutoPtr so that ScrollMetadata can admit nsTArray members. r=kats
...
MozReview-Commit-ID: LOZdnAhL5xH
--HG--
extra : rebase_source : 39b619a7945e9f3c867dbe67e700e8b83d7c3699
2016-03-30 17:04:10 -04:00
Botond Ballo
a74ec8c79b
Bug 1219296 - Split fields not needed for repaints out from FrameMetrics. r=kats
...
MozReview-Commit-ID: DymHOSI6yYK
--HG--
extra : rebase_source : 1996bcb7f005c02b94031fe1c73d5136814b0296
2016-03-28 19:14:52 -04:00
Botond Ballo
b22e5adb20
Bug 1236750 - Add typed getters for layer transform matrices. r=kats
...
--HG--
extra : source : bf19963d10d6cc021092662176845192764f9cf0
2016-01-06 18:56:58 -05:00
Kartikaya Gupta
7df84c3309
Bug 1228602 - Ensure that we pick up the presShell resolution from the layer if there isn't a metrics. r=botond
...
--HG--
extra : commitid : BXooH3Gj0wh
2015-12-09 17:29:03 -05:00
Sunny Sidhu
cfa8942015
Bug 1220873
- Make Layer::mVisibleRegion a LayerIntRegion. r=botond
...
--HG--
extra : source : dc46048f7a9e9cc008c97e2d9e0a100944743055
extra : amend_source : 63783bc076e5969ebacdc8c74f9b5194a1891d9e
2015-11-29 02:07:55 -05:00
Botond Ballo
136d0a9d64
Bug 1168263 - Exclude perspective transforms from the transform used to convert from screen coordinates to an APZC's coordinate space. r=kats
2015-11-02 15:08:01 -05:00
Benoit Girard
eb3b891bbc
Bug 1199885 - Part 4: Let the hit testing tree know about the scroll thumb. r=kats
...
--HG--
extra : commitid : 2sY04WntME0
extra : rebase_source : 98008b1dcc3236ef65e1809fd849fae6c31c76f7
2015-09-28 14:44:36 -04:00
Kearwood (Kip) Gilbert
5b2ac66a0c
Bug 1181240 - Part 3: Replace gfx3DMatrix with Matrix4x4 in gfx,r=vlad
...
- Refactored code to use Matrix4x4 instead of gfx3DMatrix.
- There is not expected to be any functional effect.
2015-07-10 17:06:35 -07:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Ying-Ruei Liang (KK)
f17daf9c2a
Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
...
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.
* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect
--HG--
extra : rebase_source : ca0c60404a28b7418df88104b863760033289910
2015-04-11 22:03:00 -04:00
Kartikaya Gupta
5116d7c5a8
Bug 1130982 - Ensure the clip rect on a multi-metrics layer belongs to the bottommost layer. r=botond
...
--HG--
extra : rebase_source : e4ccf248d3bd4ef4084e0077dc36a90cde4122a6
2015-03-11 13:36:12 -04:00
Kartikaya Gupta
80cdf96476
Bug 1137203 - Ignore the critical displayport when a layer is subject to OMTA relative to the scrolling ancestor. r=BenWa
2015-02-26 17:45:37 -05:00
Ryan VanderMeulen
3b9c7e5d7f
Backed out changesets ddf965a90c07 and 305e676779f8 (bug 1137203) for being the likely cause of bug 1137952.
...
CLOSED TREE
2015-03-02 12:34:39 -05:00
Kartikaya Gupta
33c914a549
Bug 1137203 - Ignore the critical displayport when a layer is subject to OMTA relative to the scrolling ancestor. r=BenWa
2015-02-26 17:45:37 -05:00
Kartikaya Gupta
7fd26daa4a
Bug 1131840 - Replace the shouldForceDispatchToContent flag with a bitset enum. r=roc,botond
2015-02-16 21:30:02 -05:00
Kartikaya Gupta
e060658784
Bug 1125422 - Read the force-dispatch-to-content flag from the layer tree and use it in the APZ code. r=botond
2015-02-10 16:28:07 -05:00
Ehsan Akhgari
47c67459e2
Backed out changeset 11aebde6e809 (bug 1120059) because of build bustage on Windows
2015-01-13 00:26:16 -05:00
Birunthan Mohanathas
3bbc9f5d8f
Bug 1120059 - Remove MOZ_{HAVE_,}EXPLICIT_CONVERSION. r=Waldo
2015-01-13 06:41:15 +02:00
Kartikaya Gupta
a4e48972ee
Bug 1090398 - Add support for using the layer event regions for hit testing. r=botond
...
When the event-regions are provided by layout, use them to populate the APZ-side
hit testing regions. The existing code is still used when event-regions are not
provided by layout.
2014-11-14 07:40:14 -05:00
Markus Stange
7d5a3be591
Bug 1073103 - Rename ThebesLayer to PaintedLayer. r=roc
...
--HG--
rename : gfx/layers/basic/BasicThebesLayer.cpp => gfx/layers/basic/BasicPaintedLayer.cpp
rename : gfx/layers/basic/BasicThebesLayer.h => gfx/layers/basic/BasicPaintedLayer.h
rename : gfx/layers/client/ClientThebesLayer.cpp => gfx/layers/client/ClientPaintedLayer.cpp
rename : gfx/layers/client/ClientThebesLayer.h => gfx/layers/client/ClientPaintedLayer.h
rename : gfx/layers/client/ClientTiledThebesLayer.cpp => gfx/layers/client/ClientTiledPaintedLayer.cpp
rename : gfx/layers/client/ClientTiledThebesLayer.h => gfx/layers/client/ClientTiledPaintedLayer.h
rename : gfx/layers/composite/ThebesLayerComposite.cpp => gfx/layers/composite/PaintedLayerComposite.cpp
rename : gfx/layers/composite/ThebesLayerComposite.h => gfx/layers/composite/PaintedLayerComposite.h
rename : gfx/layers/d3d10/ThebesLayerD3D10.cpp => gfx/layers/d3d10/PaintedLayerD3D10.cpp
rename : gfx/layers/d3d10/ThebesLayerD3D10.h => gfx/layers/d3d10/PaintedLayerD3D10.h
rename : gfx/layers/d3d9/ThebesLayerD3D9.cpp => gfx/layers/d3d9/PaintedLayerD3D9.cpp
rename : gfx/layers/d3d9/ThebesLayerD3D9.h => gfx/layers/d3d9/PaintedLayerD3D9.h
2014-09-26 13:06:08 -04:00
Robert O'Callahan
021e1aa7f6
Bug 967844. Part 2: Move mContentDescription from Layer to FrameMetrics. r=kats
...
--HG--
extra : rebase_source : b616a0ab2e5bb203a66a5f0b3644bdcbe5f17ce7
2014-08-30 00:23:25 +12:00
Phil Ringnalda
a8940eb5c6
Backed out 3 changesets (bug 967844) for robopan bustage
...
Backed out changeset 6b53305f1c42 (bug 967844)
Backed out changeset dff3eb181f33 (bug 967844)
Backed out changeset 4d4b03442eaf (bug 967844)
2014-09-01 15:20:13 -07:00
Robert O'Callahan
a67165f077
Bug 967844. Part 2: Move mContentDescription from Layer to FrameMetrics. r=kats
...
--HG--
extra : rebase_source : d5a2d8ea13369db215e96e721efc3ce0b354a523
2014-08-30 00:23:25 +12:00
Kartikaya Gupta
cf3bee3fd4
Bug 1055760 - Update AsyncCompositionManager's scrollbar-adjusting code to deal with multiple FrameMetrics. r=botond
2014-08-27 22:13:42 -04:00
Kartikaya Gupta
6cf11ad811
Bug 1055760 - Update AsyncCompositionManager's async-transform application code to deal with multiple FrameMetrics. r=botond
2014-08-27 22:13:41 -04:00
Kartikaya Gupta
81379297b8
Bug 1055760 - Replace GetPrimaryScrollableLayer with functions that are more appropriate. r=BenWa
2014-08-27 22:13:41 -04:00
Kartikaya Gupta
baed559ce3
Bug 1055760 - Update tiling code to use LayerMetricsWrapper. r=botond,BenWa
2014-08-27 22:13:41 -04:00
Kartikaya Gupta
4e8832c9dd
Bug 1055760 - Add a LayerMetricsWrapper and fix up APZCTreeManager FrameMetrics accessing. r=botond,BenWa
2014-08-27 22:13:41 -04:00