Commit Graph

13358 Commits

Author SHA1 Message Date
David Zbarsky
c73ec42d2d Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Carsten "Tomcat" Book
79e021d647 Merge mozilla-central to b2g-inbound 2015-02-04 15:09:23 +01:00
Jeremy Chen
204d20964d Bug 1127661 - Disable long tap event from APZ while dragging the touch caret. r=roc 2015-02-03 02:41:00 +01:00
Mats Palmgren
4ec43c85d5 Bug 1123067 - part 2, tests. 2015-02-03 23:54:32 +00:00
David Anderson
fe18c25a8f Remove apz.subframe.enabled and assume it is always true. (bug 1128761, r=kats) 2015-02-03 15:02:04 -08:00
David Anderson
495039e5d4 Make debugging whole-layer invalidation slightly easier. (bug 1128752, r=mattwoodrow) 2015-02-03 14:18:44 -08:00
Kartikaya Gupta
d4001130db Bug 1126876 - Prevent subdocuments inside a pointer-events:none frame from building event regions. r=roc,tn 2015-02-03 10:52:51 -05:00
Carsten "Tomcat" Book
3d0ff2ad63 Backed out changeset c80e36def0ad (bug 1128356) for bustage on a CLOSED TREE 2015-02-03 09:58:14 +01:00
Seth Fowler
e4beedf018 Bug 1128356 - Add template functions for common frame property destructors. r=dbaron 2015-02-03 00:24:13 -08:00
Brian Birtles
fca835eddc Bug 1123196 part 2 - Don't resolve pending animations for nested calls to PaintRoot; r=mattwoodrow
We resolve pending animations when painting has finished in
nsDisplayList::PaintRoot. However, in the process we can trigger nested calls to
PaintFrame (e.g. due to use of -moz-element). In that case, we shouldn't resolve
pending animations until we complete the widget transaction.

This patch adds a check that we're in a widget transaction before we resolve
pending animations.
2015-02-03 14:08:37 +09:00
Brian Birtles
8162708cc1 Bug 1123196 part 1 - While player is waiting to start, return its pending start time; r=jwatt
After starting layer animations we set the same start time on content
animations but we don't apply it until the next tick (see bug 1112480 for
background). However, in some circumstances, we can end up creating layer
animations again within the same refresh driver tick. In this case, we should
initialize the animations with the same start time as we previously used.

This patch exposes the pending start time set on content animations so that,
if set, we can use it when building layer animations.
2015-02-03 14:08:37 +09:00
Wes Kocher
249a7cc50c Backed out 2 changesets (bug 1123067) for mochitest-1 bustage on a CLOSED TREE
Backed out changeset d35d83e9c9f2 (bug 1123067)
Backed out changeset ea4ea5299409 (bug 1123067)
2015-02-02 17:32:28 -08:00
Mats Palmgren
08e3b95bdb Bug 1123067 - part 2, tests. 2015-02-02 22:34:17 +00:00
Markus Stange
8dfdceabf8 Bug 1088605 - Check for root chrome documents instead of just root documents, since e10s content documents are root. r=roc 2015-02-02 15:11:15 -05:00
Markus Stange
385548cb48 Bug 1088605 - Don't create nsDisplayClearBackground in subdocuments. r=roc 2015-02-02 15:10:53 -05:00
Paul Rouget
aeeb621d68 Bug 1118169 - Support -moz-window-dragging:drag in HTML. r=mstange r=bz 2015-02-02 15:10:51 -05:00
Timothy Nikkel
4785d2a14a Bug 1107843. When computing the transform matrix for a preserve-3d child just include the final translation right away, instead of doing two translations that add and subtract to increase the accuracy. r=mattwoodrow 2015-02-01 17:12:14 -06:00
Kartikaya Gupta
33f9c446a1 Bug 950934 - Enable APZ in the B2G root process. r=botond,smaug 2015-01-12 18:13:18 -05:00
Mike Hommey
a35dbaeebf Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Phil Ringnalda
7b3840d642 Back out 5167196c4b98 (bug 1125040) for not compiling on Linux
CLOSED TREE
2015-02-01 15:27:14 -08:00
David Zbarsky
7d34edce07 Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-01 17:27:41 -05:00
David Zbarsky
58a982f86b Bug 1125040: Use LayoutDeviceIntPoint for nsLayoutUtils::GetEventCoordinatesRelativeTo and Touch::mRefPoint r=botond 2015-02-01 17:27:31 -05:00
Kartikaya Gupta
5ce034230b Bug 1124452 - Make it work without containerless-root, too. r=tn
--HG--
extra : rebase_source : 487e678ef5fc1592326a72f279e7e7f9f32a3a71
2015-01-28 13:28:28 -05:00
JerryShih
551c73a023 Bug 1125030 - Handle VsyncChild shutdown in ActorDestroy(). r=bent 2015-01-29 22:19:00 +01:00
Peter Chang
8bd13fc5c7 Bug 1123179 - Bypass touchcaret visibility checking inside scrollable frame when touchcaret drag state is active, r=roc
--HG--
extra : rebase_source : 5370db85347a4ef93d6403e62cf385dc16a23b97
2015-01-28 01:32:00 +01:00
Mason Chang
a2c0a65d52 Bug 1125999 Part 2: Compress vsync notifications in the parent process refresh driver. r=kats 2015-01-29 17:41:03 -08:00
Jim Mathies
7149a4e627 Bug 1095754 - Rather than apply geometry updates to plugins in the content process, collect updates and stash them in the shadow layer forwarder so that on the next composite, they update with the remote layer tree. r=roc 2015-01-29 13:41:54 -06:00
Carsten "Tomcat" Book
579ac07ed5 Merge mozilla-central to mozilla-inbound 2015-01-29 16:17:28 +01:00
Jonathan Watt
712f521262 Bug 1127138 - Remove the declarations of a couple of dead FrameLayerBuilder methods. r=mattwoodrow 2015-01-23 09:17:14 +00:00
Wes Kocher
0efb7c3677 Merge m-c to b2g-inbound a=merge 2015-01-28 18:43:47 -08:00
Kartikaya Gupta
8d93c66cb0 Bug 1116588 - Don't optimize away opacity:0 items if we're building event regions, unless the frame also has pointer-events:none. r=tn 2015-01-28 17:42:23 -05:00
Jeremy Chen
fe8fc4f7aa Bug 1120358 - Part 1: Handle scroll position change that is not triggered by APZ. r=roc 2015-01-15 00:42:00 -05:00
Kartikaya Gupta
f6da43df9d Back out bug 1116588 for introducing the regression in bug 1126427. r=me 2015-01-28 08:58:47 -05:00
Carsten "Tomcat" Book
8aced6dab7 merge fx-team to mozilla-central a=merge 2015-01-28 14:24:09 +01:00
Masayuki Nakano
7a85c69f66 Bug 917322 part.16 Rename COMPOSITION_ATTR_* in EventUtils.js with new constants of nsITextInputProcessor r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
afb256c118 Bug 917322 part.10 Remove unnecessary synthesizeComposition(compositionstart) from all tests r=smaug 2015-01-28 15:27:32 +09:00
Nicholas Nethercote
3163cfc2c1 Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj.
It feels safer to use a function with a new name, rather than just changing the
behaviour of the existing function.

For most of these cases the PL_DHashTableLookup() result was checked with
PL_DHASH_ENTRY_IS_{FREE,BUSY} so the conversion was easy. A few of them
preceded that check with a useless null check, but the intent of these was
still easy to determine.

I'll do the trickier ones in subsequent patches.

--HG--
extra : rebase_source : ab37a7a30be563861ded8631771181aacf054fd4
2015-01-22 21:06:55 -08:00
Ehsan Akhgari
cdf636c674 Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 23:11:29 -05:00
Ehsan Akhgari
4d42b88e0b Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 23:11:26 -05:00
David Anderson
c286b2ea59 Don't snap displayports to tile boundaries if we're not tiling. (bug 1126045 part 2, r=kats)
--HG--
extra : rebase_source : d42768d98541b26a640fdb8c44b87fcce3f61ac8
2015-01-27 16:04:49 -08:00
Ehsan Akhgari
fa44e7387c Backed out 2 changesets (bug 989012) because of test failure on Linux32 opt mochitest-a11y on a CLOSED TREE
Backed out changeset 9698f6f3f72e (bug 989012)
Backed out changeset 22fb05349a10 (bug 989012)
2015-01-27 16:40:30 -05:00
Ehsan Akhgari
e8b3ff1eb5 Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 15:35:48 -05:00
Ehsan Akhgari
084e7e0b3c Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 15:35:32 -05:00
dominique vincent
d15b47438e Bug 663803 - Add hitCluster flag to detect touch in cluster links area r=smaug,kats 2014-11-24 15:33:06 +01:00
Kartikaya Gupta
697928de5e Bug 1116588 - Remove an optimization codepath that prevents building event-regions correctly. r=tn 2015-01-26 09:46:33 -05:00
Carsten "Tomcat" Book
580055cc84 merge fx-team to mozilla-central a=merge 2015-01-26 14:24:08 +01:00
Peter Chang
74db30158c Bug 1121335 - Add the testing of selectioncarets drag with multiple selection ranges, r=roc 2015-01-25 19:36:00 +01:00
Peter Chang
2ce93a45ac Bug 1121335 - Choose the right selection range for drag mode, r=roc 2015-01-23 06:09:00 +01:00
Jim Mathies
8250de3687 Bug 1077085 - Insure puppet widgets don't skip sending resize notifications to the view manager when the user navigates through history items. r=tn 2015-01-25 05:16:59 -06:00
Timothy Nikkel
ce0842d7b9 Bug 1120431. Ensure that the draw region of a painted layer always includes the visible region, even if simplication of the region might try to change that. r=matt.woodrow
Sometimes, in very specific cases,  the visible region gets simplified to one rect and is thus much bigger than the draw region. This becomes a problem if we decide to pull an opaque background color from a lower layer so that we are opaque. In which case we draw the background color over the whole visible region. But we use the draw region to determine if we can place items below this layer, so that background color could cover them incorrectly.
2015-01-25 17:28:51 -06:00