Commit Graph

878 Commits

Author SHA1 Message Date
Ehsan Akhgari
221d1382df Bug 1357656 - Part 1: Expose an nsIDOMWindowUtils method for retrieving the direction of a piece of text based on the first-strong character algorithm; r=mystor 2017-06-09 17:26:14 -04:00
Kartikaya Gupta
5ff3df5354 Bug 1369840 - Support content-side APZ test data in WebRenderLayerManager. r=botond
This mostly just copies the functional parts of the APZTestData code from
ClientLayerManager into WebRenderLayerManager, and propagates the paint sequence
number over to the compositor using the existing WebRenderScrollData machinery.

MozReview-Commit-ID: LHupFpqtWTX
2017-06-04 22:29:35 -04:00
Kartikaya Gupta
18c81fd561 Bug 1369840 - Support getting the compositor-side APZ test data over PWebRenderBridge. r=botond
This is fairly straightforward plumbing. The webrender equivalent of PLayerTransaction
is PWebRenderBridge and we can use that to get the compositor-side APZTestData.

MozReview-Commit-ID: Bn8WjKW5GoI
2017-06-04 22:29:35 -04:00
Emilio Cobos Álvarez
4d3cf46756 Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley
MozReview-Commit-ID: AKsEWc7Wpip
2017-05-30 11:38:53 +02:00
Ryan VanderMeulen
faca05b4d4 Backed out 2 changesets (bug 1347270) for browser_toolbariconcolor_restyles.js permafail on a CLOSED TREE.
Backed out changeset 445cb4d47d4f (bug 1347270)
Backed out changeset f2b7f1d599e3 (bug 1347270)
2017-05-30 18:11:02 -04:00
Emilio Cobos Álvarez
5b871805a8 Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley
MozReview-Commit-ID: AKsEWc7Wpip
2017-05-30 11:38:53 +02:00
Kartikaya Gupta
7f0abc5c45 Merge m-c to graphics, a=merge
MozReview-Commit-ID: IU4SJ95MVHH
2017-05-30 07:50:05 -04:00
Kartikaya Gupta
d1a74b63a4 Bug 1367837 - Implement some APZ test util APIs for webrender. r=botond,dvander
This implements some methods exposed on DOMWindowUtils and used by
reftests, for the WebRender codepath. The implementation is very similar
to the implementation in LayerTransactionParent.

MozReview-Commit-ID: HP8OxzIzS7P
2017-05-28 07:48:36 -04:00
Kartikaya Gupta
2d14f346c5 Merge m-c to graphics
MozReview-Commit-ID: Fq2lBUWyr0m
2017-05-19 13:19:35 -04:00
Jeff Muizelaar
d956204224 Bug 1364626. Ensure our transaction arrives at the compositor before asking the parent to paint. r=dvander
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:45:33 -04:00
Jeff Muizelaar
ec0554b372 Revert "Ensure our transaction arrives at the compositor before asking the parent to paint"
This reverts commit e0ec2a72700f.
2017-05-17 10:44:33 -04:00
Jeff Muizelaar
bbc7de80a8 Ensure our transaction arrives at the compositor before asking the parent to paint
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:42:09 -04:00
Emilio Cobos Álvarez
374821252e Bug 1357583: Add an API to get the restyle generation from the pres context. r=heycam
MozReview-Commit-ID: b7j0CpPimC
2017-05-29 23:53:25 +02:00
Xidorn Quan
74745cbfcc Backed out changeset 94b5ea8bed5c (bug 1355683)
MozReview-Commit-ID: AJJ7hSuOQNX
2017-05-19 14:57:35 +10:00
Ray Lin
3fe6efff48 Bug 1361244 - Add an internal -moz-autofill-preview pseudo class for styling preview fields. r=heycam
MozReview-Commit-ID: 6siKEgBPTKt
2017-05-04 13:54:34 +08:00
Carsten "Tomcat" Book
31f9a8236d merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Boris Chiou
fcf16638aa Bug 1361951 - Add null check for nsIDocument in ComputeAnimationDistance. r=birtles
MozReview-Commit-ID: GFMmT8bMKzP
2017-05-05 11:25:03 +08:00
Tim Taubert
bbc0d503f3 Bug 1361974 - Add nsIDOMWindowUtils API to check usage of a given storage r=mayhemer 2017-05-04 14:29:36 +02:00
Boris Chiou
57a1379d17 Bug 1346052 - Part 4: Implement ComputeAnimationDistance for Servo backend. r=birtles
Implement servo's computed values version of
nsDOMWindowUtils::ComputeAnimationDistance

MozReview-Commit-ID: 8fggxuUxne8
2017-03-20 18:18:41 +08:00
Emilio Cobos Álvarez
7e1330401f Bug 1355351: Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos. r=heycam
This also happens to fix other bugs, like making display: contents pseudos
animatable, which weren't before.

MozReview-Commit-ID: LhwTPNbFvSZ
2017-04-19 12:53:57 +02:00
Morris Tseng
65622d3268 Bug 1358961 - IsPartOfOpaqueLayer should consider ColorLayer as well. r=mattwoodrow
MozReview-Commit-ID: 9PUKdz7m1uJ
2017-04-25 11:02:48 +08:00
Carsten "Tomcat" Book
63fbb13aec merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
Luke Chang
0d9567d3a2 Bug 1355438 - [Form Autofill] Implement an internal-only pseudo-class for highlighting elements with an autofilled value. r=heycam
MozReview-Commit-ID: BUqAWSekPsh
2017-04-20 17:44:14 +08:00
Randall Barker
c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
Daisuke Akatsuka
4e8abff7f9 Bug 1210796 - Part 1a: Add GetUnanimatedComputedStyle into nsIDOMWindowUtils to use in animationinspector of devtools. r=birtles,heycam
In this patch, we implement nsIDOMWindowUtils::GetUnanimatedComputedStyle
which returns computed value of given CSS property without animation rule.  This
method is used from the DevTools animation inspector to fill in keyframe values
when the property value is null (indicating that the underlying/base value is
being used).

In order to implement this, we extend nsComputedDOMStyle constructor to fetch
the computed style minus animation style (i.e. the base style). This is somewhat
complicated by the fact that for discrete animation.
StyleAnimationValue::ExtractComputedValue may return ‘unset’, ‘initial’ or
‘inherit’. For example, if the author uses the 'unset' 'initial' or 'inherit'
keyword for a discrete property (e.g. 'align-content’), ExtractComputedValue
returns the keywords as-is. Furthermore, if the user does not set any specific
keyword, ExtractComputedValue returns ‘unset’.  We use this new
nsComputedDOMStyle mechanism to resolve these keywords into a valid keyword for
computed style in the same way as other properties (e.g. ‘opacity’).

MozReview-Commit-ID: HffJ9SCDf2k
2017-04-18 12:15:47 +09:00
Daisuke Akatsuka
5157eea31d Bug 1210796 - Part 1: Add GetAnimationTypeForLonghand into nsIDOMWindowUtils to use in animationinspector of devtools. r=hiro
MozReview-Commit-ID: 5uxQr4hH0WP
2017-04-18 11:12:12 +09:00
Ehsan Akhgari
1052e966ba Bug 1354412 - Remove nsIDOMWindowUtils.beginTabSwitch(); r=jrmuizel 2017-04-12 23:31:39 -04:00
Brian Birtles
4de61d72aa Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F
2017-04-05 14:39:23 +09:00
Brendan Dahl
85f151ac59 Bug 1338004 - Add headless browser mode. r=jrmuizel, r=ted
Supports creating a windowless browser on Linux without an X server. Most of the
changes are just adding branches to avoid calls in to GTK which calls
into X. Some of the bigger additions were adding a separate headless widget
which implements just enough to render a page. A headless look and
feel were also added since there are many calls into GTK in the platform
specific one.
2017-04-04 10:22:00 -04:00
Randall Barker
9eaeb627c5 Bug 1334676: Prevent nsDOMWindowUtils::ZoomToFocusedInput from panning and zooming when focused element is fixed position r=tnikkel 2017-03-10 14:17:21 -08:00
peter chang
dc497a1152 Bug 1337889 - use CompositorAnimationsId to query Opacity/Transform animation, r=hiro,kats
MozReview-Commit-ID: 3s1kzOQAfrd
2017-02-09 17:30:11 -05:00
Carsten "Tomcat" Book
708777dd78 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
Cameron McCormack
d8bce55950 Bug 1341230 - Part 3: Add nsIDOMWindowUtils API to add/remove manually managed EventStates bits. r=smaug
MozReview-Commit-ID: 8brJct2tkTo
2017-03-06 12:49:04 +08:00
Iris Hsiao
6a15defe7c Backed out changeset 0a4869ea6249 (bug 1341230) for build bustages 2017-03-06 11:48:44 +08:00
Cameron McCormack
ccdf17102f Bug 1341230 - Part 3: Add nsIDOMWindowUtils API to add/remove manually managed EventStates bits. r=smaug
MozReview-Commit-ID: 8brJct2tkTo
2017-03-06 10:44:14 +08:00
Andrea Marchesini
cd61c907da Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-03-03 09:42:54 +01:00
Jan Varga
deee894326 Bug 1311057 - Part 2: Remove isApp from quota manager and its clients; r=asuth 2017-03-06 18:38:42 +01:00
Jessica Jong
be4c818826 Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap 2017-02-22 01:00:00 -05:00
Sebastian Hengst
0dd56967f5 Backed out changeset c32c74847eb6 (bug 1335539) 2017-02-21 17:53:45 +01:00
Andrea Marchesini
10d85bf63f Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-02-21 15:04:47 +01:00
Carsten "Tomcat" Book
62425aaabb Backed out changeset 952f0a7824ad (bug 1335539) 2017-02-21 10:30:06 +01:00
Andrea Marchesini
83ac311d0c Bug 1335539 - Get rid of nsIDOMWindowUtils.wrapDOMFile, r=smaug, r=Gijs 2017-02-21 07:51:35 +01:00
Matt Woodrow
03b6309c72 Bug 1302071 - Part 2: Remove ClearMozAfterPaintEvents since it's unused. r=tnikkel
MozReview-Commit-ID: FCy5y6cDXrY
2017-02-17 11:50:28 +13:00
Sylvestre Ledru
e3d60e5b2e Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/base/ r=Ehsan
MozReview-Commit-ID: 5sCNbqC4ew3
2017-02-09 15:44:02 +01:00
Kartikaya Gupta
05ab5e41a7 Merge m-c to graphics
MozReview-Commit-ID: Gds3AlDHXgY
2017-01-20 10:07:40 -05:00
Boris Zbarsky
cdbd6b5265 Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam 2017-01-19 23:49:44 -05:00
Kartikaya Gupta
3d70f1ee98 Merge m-c to graphics
MozReview-Commit-ID: LPeWBwbK82h
2017-01-12 12:40:09 -05:00
Kartikaya Gupta
c72106b831 Merge m-c to graphics
MozReview-Commit-ID: HGa7QgtJVwu
2017-01-06 11:24:57 -05:00
Morris Tseng
565444eb81 Merge m-c to graphics. 2016-12-29 18:26:24 +08:00
Kartikaya Gupta
3050106083 Merge m-c to graphics
MozReview-Commit-ID: 6XqNGxF5EiQ
2016-12-23 10:14:44 -05:00