Commit Graph

282 Commits

Author SHA1 Message Date
Kartikaya Gupta
40983eccc4 Bug 1180295 - Disconnect scrolling notifications going to LayerMarginsAnimator. r=rbarker
--HG--
extra : commitid : FegoJSTWCqP
2015-08-18 14:27:18 -04:00
Kartikaya Gupta
5408448758 Bug 1180295 - Introduce the skeleton of a DynamicToolbarAnimator class alongside LayerMarginsAnimator. r=rbarker
--HG--
extra : commitid : DYB3bubPCEK
2015-08-18 14:27:18 -04:00
Kartikaya Gupta
b4105053c9 Bug 1180295 - Rip out the Fennec code to set the screen render offset. r=rbarker
--HG--
extra : commitid : 3e4iu6iVnfs
2015-08-18 14:27:18 -04:00
Kartikaya Gupta
056c55b10f Bug 1180295 - Rip out call to setContentDocumentFixedPositionMargins. r=rbarker
--HG--
extra : commitid : 7uU6xgPVZom
2015-08-18 14:27:18 -04:00
Mark Capella
b865699f7f Bug 1191872 - Move annotations to org.mozilla.gecko.annotation package, r=jchen
--HG--
rename : mobile/android/base/mozglue/JNITarget.java => mobile/android/base/annotation/JNITarget.java
rename : mobile/android/base/mozglue/RobocopTarget.java => mobile/android/base/annotation/RobocopTarget.java
rename : mobile/android/base/mozglue/WebRTCJNITarget.java => mobile/android/base/annotation/WebRTCJNITarget.java
2015-08-10 19:19:51 -04:00
Mark Capella
f3a5fca399 Bug 1191161 - p3 - Rename / Shorten WrapElementForJNI to WrapForJNI, r=jchen
--HG--
rename : mobile/android/base/mozglue/generatorannotations/WrapElementForJNI.java => mobile/android/base/annotation/WrapForJNI.java
2015-08-07 02:09:08 -04:00
Robert O'Callahan
84a1b0dd5a Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.

--HG--
extra : commitid : 3t3xqRdZs24
extra : rebase_source : b23749613663ca805484776ccf5e36b4ff00e3fe
2015-06-12 03:20:04 +12:00
Danilo Cesar Lemes de Paula
7e66ac4a43 Bug 1162701 - Fix panning on Fennec built with C++ APZ. r=kats 2015-05-11 05:22:00 +02:00
Jim Chen
6c508727e2 Bug 1160349 - Fix NPE due to no selected tab; r=kats 2015-05-05 14:24:09 -04:00
Geoff Brown
811a8bd0fb Bug 982106 - Avoid intermittent NPE in Android x86 crashtests; r=kats 2015-02-18 16:16:19 -07:00
dominique vincent
9a17661533 Bug 1127909 - Nits in ZoomedView code r=kats 2015-02-01 12:19:48 +01:00
dominique vincent
67724cb7a7 Bug 663803 - Zoomed view implementation using render document r=mcomella,snorp 2015-01-21 05:59:23 +01:00
Chris Kitching
2425aa80a2 Bug 1081582: Fix spelling. r=rnewman 2014-10-12 00:28:29 +01:00
Chris Kitching
214c5a4c82 Bug 1081397: Finalise large numbers of fields. r=rnewman
* * *
Bug 1081397: Finalise large numbers of fields. r=rnewman
2014-10-11 00:17:01 +01:00
Kartikaya Gupta
2e8831888f Bug 1049887 - Ensure we properly restore the scissor rect state in the GL context after running Java code. r=snorp
The C++ GLContext wrapper doesn't know about the changes to the GL state that the
Java code does, so Java must be careful to restore the GL state to the way
it was. The ScopedGLState RAII code doesn't quite accomplish this because of caching
in the C++ GLContext wrapper, so we have to do this directly from Java code.
2014-08-20 10:38:51 -04:00
Kartikaya Gupta
96362eb56b Bug 1046344 - Unbitrot and rearrange the old APZ glue code in Fennec. r=snorp 2014-08-08 17:42:20 -04:00
Chris Kitching
0c8dff00b8 Bug 1047971: Delete redundant initialisers-to-default-values from constructors r=rnewman 2014-08-03 21:06:05 -07:00
Kartikaya Gupta
161c8400d7 Bug 859683 - Allow scrolling in full-screen mode if and only if the full-screen element is the document element. r=wesj 2014-05-07 15:22:14 -04:00
Ryan VanderMeulen
f0e2260c0b Backed out changeset 14a43400007e (bug 859683) for robocop failures. 2014-05-06 15:38:28 -04:00
Kartikaya Gupta
a0e4ae7476 Bug 859683 - Allow scrolling in full-screen mode if and only if the full-screen element is the document element. r=wesj 2014-05-06 13:33:13 -04:00
Kartikaya Gupta
8beb92e033 Bug 995316 - Make GeckoLayerClient package-scoped. r=snorp 2014-04-11 20:49:46 -04:00
Kartikaya Gupta
7f16346f70 Bug 995316 - Expose the OnMetricsChangedListener via LayerView instead of GeckoLayerClient. r=snorp 2014-04-11 20:49:44 -04:00
Mark Capella
ffd4bb0e0c Bug 895463 - (p2) Expose DrawListener in LayerView, r=kats 2014-04-11 10:38:14 -04:00
Kartikaya Gupta
650dde0466 Bug 988800 - Catch and ignore situations where we try to composite on a destroyed LayerRenderer instance. r=Cwiiis 2014-04-03 11:01:07 -04:00
Chris Lord
45202a4dfb Bug 960146. r=kats,wesj 2014-02-20 09:36:48 -05:00
Brian Nicholson
e5fcb133eb Backout ab25dcdc319b (bug 960146) for touch event regressions 2014-02-28 13:26:08 -08:00
Kartikaya Gupta
10c6a0d4ee Bug 960146. r=kats,wesj 2014-02-20 09:36:48 -05:00
Wes Johnston
c1bd2f002f Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats
--HG--
rename : mobile/android/base/util/EventDispatcher.java => mobile/android/base/EventDispatcher.java
2014-02-11 09:16:00 -08:00
Kartikaya Gupta
3614852956 Bug 936008 - Avoid NPE when getting a zoom constraints update before the LayerView is fully initialized. r=wesj 2014-01-16 16:14:08 -05:00
Chris Lord
1f0078633a Bug 956420 - Fix fixed margins on shorter-than-the-viewport pages. r=kats
If a page is shorter than the screen, but taller than the screen with margins,
and has a fixed position top or bottom bar, it would be offset incorrectly
when scrolling downwards.
2014-01-15 16:58:48 +00:00
Kartikaya Gupta
0b8bb93d3e Bug 949132 - Use the FrameMetrics flag on the layers update to update APZC scroll offset instead of tracking it in widget code. r=Cwiiis 2013-12-16 12:04:46 -05:00
Chris Kitching
7105a00506 Bug 709230 - Part 3: annotate the remaining Robocop entry points. r=gbrown,rnewman 2013-11-18 21:09:00 -08:00
Chris Kitching
a0d772e2ad Bug 913985: Part 2 - Add annotations to all remaining JNI entry points, marking them for generations. r=kats 2013-11-12 10:41:00 -08:00
Ryan VanderMeulen
2c440594a5 Backed out 7 changesets (bug 913985) for intermittent Android crashes.
Backed out changeset 53513a959cf0 (bug 913985)
Backed out changeset d23d1e678417 (bug 913985)
Backed out changeset a9c9187b4f4a (bug 913985)
Backed out changeset c6b02e4a3e35 (bug 913985)
Backed out changeset 895dae322e3c (bug 913985)
Backed out changeset 3d97e6a53313 (bug 913985)
Backed out changeset 892bb017f8ba (bug 913985)

--HG--
rename : build/annotationProcessors/AnnotationInfo.java => build/annotationProcessors/MethodWithAnnotationInfo.java
rename : build/annotationProcessors/utils/AlphabeticAnnotatableEntityComparator.java => build/annotationProcessors/utils/AlphabeticMethodComparator.java
rename : build/annotationProcessors/utils/GeneratableElementIterator.java => build/annotationProcessors/utils/GeneratableEntryPointIterator.java
rename : mobile/android/base/mozglue/generatorannotations/WrapElementForJNI.java => mobile/android/base/mozglue/GeneratableAndroidBridgeTarget.java
rename : mobile/android/base/mozglue/generatorannotations/OptionalGeneratedParameter.java => mobile/android/base/mozglue/OptionalGeneratedParameter.java
2013-11-19 10:56:09 -05:00
Chris Kitching
b034e15277 Bug 913985 - Part 2: add annotations to all remaining JNI entry points, marking them for generations. r=kats 2013-11-12 10:41:00 -08:00
Benoit Jacob
e68c9e0ae6 Bug 925608 - 6/8: rename createCompositor to updateCompositor - r=kats 2013-11-15 11:28:57 -05:00
Lucas Rocha
c3c0dcea4b Bug 935523 - Remove setShadowVisibility() as it's not needed anymore (r=sriram) 2013-11-08 15:04:18 +00:00
Kartikaya Gupta
b6add35df3 Bug 732971 - For Fennec move the resolution from the top-level presShell to the content presShell. r=BenWa
The bulk of this patch is fixing up pieces of code that infer the resolution
as the inverse of the scaling transform on the root layer. This used to be
how various bits of gfx code obtained the resolution, but now that we can set
the resolution on the actual presShell that contains the content, we can also
just read the resolution from the FrameMetrics directly.
2013-10-29 09:27:50 -04:00
Brad Lassey
d3ac1ff71a bug 930070 - GeckoView should handle not having fennec-specific classes r=mfinkle 2013-10-23 18:33:56 +02:00
Chris Kitching
e0ce640cda Bug 914296: Add more intelligent caching to the Favicons system. r=rnewman 2013-10-11 16:42:39 -07:00
Wes Johnston
5edd4c1dab Bug 918079 - Show highlight when overscrolling. r=kats 2013-09-26 22:57:57 -07:00
Augustin Trancart
1d8dcbd4e7 Bug 711959 - Adapt JavaPanZoomController to use the RenderTask mechanism. r=Cwiiis, kats 2013-09-04 14:07:11 -04:00
Kartikaya Gupta
67889faa26 Bug 898877 - Prevent pages from getting stuck without the dynamic toolbar. r=Cwiiis
The problematic scenario is when the page is exactly the height of the screen
(with dynamic toolbar not visible). In this case, the scrollable() function in
Axis.java returns false on the vertical axis, and so the JavaPanZoomController
never does any scrolling. This in turns means that the scrollBy code in
LayerMarginsAnimator never gets to run, so you can never drag the toolbar back
into being visible. The patch ensures that scrollable() returns true when some
or all of the margins are not visible, ensuring that in these scenarios the
user can still scroll the toolbar back onto the screen. This patch also adds
some comments/asserts to verify the new code is threadsafe.
2013-08-16 08:42:23 -04:00
Botond Ballo
1cdb67fea9 Bug 859929 - Make AsyncPanZoomController work with progressive tile painting on Fennec. r=kats 2013-07-22 22:33:05 -04:00
Chris Lord
4a19924c66 Bug 892246 - Allow subdocument scrolling to reveal margins. r=kats
This adds a notification callback to PanZoomTarget that the PanZoomController
can call to notify GeckoLayerClient that a subdocument is being scrolled. This
allows GeckoLayerClient to call LayerMarginsAnimator and alter the margins
accordingly, stopping a page from trapping the toolbar on/off the screen with
a screen-covering subframe.
2013-07-15 17:03:24 +01:00
Kartikaya Gupta
709894d739 Bug 882120 - Apply rounding to the layer-pixel rect in Java to fix robopan regression. r=kentuckyfriedtakahe 2013-06-18 09:27:45 -04:00
Kartikaya Gupta
dc77049db1 Bug 785929 - Kill FrameMetrics.mContentRect. r=kentuckyfriedtakahe 2013-06-11 09:46:51 -04:00
Kartikaya Gupta
059609fb24 Bug 797615 - Guard against isBrowserContentDocumentDisplayed returning true prematurely. r=Cwiiis
Prior to this change, isBrowserContentDocumentDisplayed returned false
from the time that the isFirstPaint flag was set in layout to the time
that layout handed off the rendered document to the compositor. However
the way the function is used meant that it needs to return false until
the compositor actually composites the "first-paint" rendering,
otherwise other events can sneak in and run before the compositor. This
patch moves the tracking for the flag into GeckoLayerClient so that it
can be queried and modified synchronously from both the Gecko thread in
browser.js and the compositor thread in setFirstPaintViewport.
2013-05-30 09:55:23 -04:00
Kartikaya Gupta
0b742ebed4 Bug 797615 - Cosmetic cleanup for the getDisplayPort JNI wrapper. r=Cwiiis 2013-05-30 09:55:08 -04:00
Chris Lord
b2f308ce7c Bug 868998 - Expose the dynamic toolbar after a certain distance. r=kats
Instead of only exposing the toolbar when scrolling from the top quarter of the
screen, always expose the toolbar, but only after a certain distance.
2013-05-30 12:53:24 +01:00