Commit Graph

572 Commits

Author SHA1 Message Date
Sebastian Hengst
d55e18d804 Backed out changeset b954874c5ced (bug 1379344) for failing reftests 1111753-1.html, 1119117-1b.html and clipped-opacity-containing-unclipped-mixblendmode-ref.html. r=backout on a CLOSED TREE 2017-08-04 09:24:42 +02:00
cku
0e18c8bb3c Bug 1386986 - Move nsDisplaySVGEffect::mEffectsBounds to nsDisplayFilter. r=mstange
Put mEffectsBounds in nsDisplyaSVGEffect does not really make sense, since only
nsDisplayFilter need it.

MozReview-Commit-ID: KSvDspZJcMP

--HG--
extra : rebase_source : 9d2f994b40e82e7146358932fbebbc60a4ca01c6
extra : source : cfd8d564c0198239eb029e4984d75a692bd9f9ca
2017-08-03 16:50:06 +08:00
David Anderson
bb8c6e5f61 Handle bounds overflow in consumers of LayerTreeInvalidation. (bug 1345891 part 2, r=mattwoodrow) 2017-08-03 21:22:48 -07:00
Ehsan Akhgari
ce1eea874c Bug 1385182 - Try to avoid dynamic allocations for most arrays created inside nsDisplayList::Sort(); r=mstange 2017-08-03 23:05:26 -04:00
Ehsan Akhgari
8673ee6cd6 Bug 1379344 - Avoid traversing the display list twice inside nsDisplayList::UpdateBounds(); r=mstange 2017-08-03 23:04:48 -04:00
Kartikaya Gupta
c474e2d82f Bug 1386747 - Put the scroll thumb's animation id in the scroll data for APZ. r=ethlin
MozReview-Commit-ID: fELBQVHky6
2017-08-03 15:32:01 -04:00
Kartikaya Gupta
7a68e63770 Bug 1386747 - Ensure that scroll thumb display items generate animation IDs. r=ethlin
We need to create a WebRenderAnimationData item in order to preserve the
animation id on the frame - this allows to re-use the same animation id
over multiple display list building phases.

MozReview-Commit-ID: 5Uj5sv6FUgt
2017-08-03 15:31:50 -04:00
Sebastian Hengst
5cfce14aba merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-03 12:17:50 +02:00
Sebastian Hengst
50d2d60772 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5MywkQxECqB
2017-08-03 11:46:00 +02:00
Ethan Lin
c80dac96f4 Bug 1386188 - Support filter for layers-free mode. r=kats
MozReview-Commit-ID: LuPnaSjhjgk

--HG--
extra : rebase_source : 2cf28919048683cdb446c5456a933651d2689fa1
2017-08-03 17:41:41 +08:00
Ethan Lin
2f3e874c80 Bug 1386553 - Move boundary calculations from each item's CreateWebRenderCommands to StackingContextHelper constructor. r=kats
MozReview-Commit-ID: 7PJIghki2g2

--HG--
extra : rebase_source : cc54e11719239814eee6f6e6f7360fbc0d10f0ad
2017-08-03 17:41:41 +08:00
Sebastian Hengst
a1ff1e3d1d Backed out changeset e5b859d66536 (bug 1386553) for Windows bustage at layers/StackingContextHelper.h(50). r=backout on a CLOSED TREE 2017-08-03 09:57:53 +02:00
Sebastian Hengst
2caa31713d Backed out changeset 4020e23649ea (bug 1386188) for Windows bustage at layers/StackingContextHelper.h(50). r=backout on a CLOSED TREE 2017-08-03 09:56:54 +02:00
Ethan Lin
d2103026b7 Bug 1386188 - Support filter for layers-free mode. r=kats
MozReview-Commit-ID: LuPnaSjhjgk
2017-08-03 15:24:25 +08:00
Ethan Lin
a05d601f59 Bug 1386553 - Move boundary calculations from each item's CreateWebRenderCommands to StackingContextHelper constructor. r=kats
MozReview-Commit-ID: 7PJIghki2g2
2017-08-03 15:24:25 +08:00
cku
cfc9533381 Bug 1378710 - (followup) Correct typo in the comment. r=me DONTBUILD
MozReview-Commit-ID: 9dCcRx4heLz

--HG--
extra : amend_source : 0ff279a86b8943e101db6423fe605aaef8e49734
2017-08-03 11:42:54 +08:00
Morris Tseng
fbee651cc7 Bug 1378606 - Support mix-blend-mode in layers-free mode.
MozReview-Commit-ID: LNORKj1bUYq
2017-08-03 11:27:45 +08:00
Morris Tseng
59fc42a812 Bug 1384000 - Call TriggerPendingAnimations in layers-free mode. r=ethlin,kats
MozReview-Commit-ID: 6Jae5rfQ8k2
2017-08-03 11:25:07 +08:00
Jamie Nicol
ff2a920fd4 Bug 1360306 - Clamp layer scale if it has recently been animated. r=mstange
When a container layer's transform has an animated scale, we clamp it
to a near power of two so that descendent layers' resolutions do not
keep changing and we minimize repainting. The current behaviour only
clamps the scale when it has not changed with respect to the previous
transaction. In animations where the scale usually changes, but
happens to remain constant between two consecutive transactions, this
is bad.

Rather than only checking against the previous scale value, use
ActiveLayerTracker::IsScaleSubjectToAnimation() to determine whether
to clamp, as it takes into account a longer period.

--HG--
extra : rebase_source : 6bc773e387c5750746722d4a0cc5864ebf7757e2
2017-07-27 11:52:27 +01:00
Boris Chiou
8e1fff1e15 Bug 1384656 - Use GeckoStyleContext in nsStyleTransformMatrix::ProcessTranslatePart. r=emilio
The unit of nsCSSValue is always number/pixel/percent or eCSSUnit_Calc,
so we don't need the style context for Servo backend.
Besides, ReadTransform is a public API used in many places, so we keep
its argument type as nsStyleContext.

MozReview-Commit-ID: KLdrJ5BJXg8

--HG--
extra : rebase_source : 778ca38b06e2a13d3db0465b9e74bd0c33c62a88
2017-07-31 17:31:27 +08:00
Ethan Lin
fa25e69f8d Bug 1384839 - Part3. Implement nsDisplayMask::CreateWebRenderCommands. r=kats
MozReview-Commit-ID: D6eOYP29XlN

--HG--
extra : rebase_source : 052360f9c7583b2e74880fbb0687b88e3765568f
2017-07-31 13:57:10 +08:00
Wes Kocher
3c2dc39278 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BgPWEtPV0sy
2017-07-31 17:49:47 -07:00
Matt Woodrow
3f444dd59f Bug 1378455 - Don't minimize the visible region for the scrollbar thumb in FrameLayerBuilder since it can move asynchronously. r=mstange 2017-08-01 11:09:53 +12:00
Kartikaya Gupta
c3e4aef0b4 Bug 1384616 - Save APZ-relevant scrollbar data into the WR scroll data for layers-free transactions. r=jrmuizel
MozReview-Commit-ID: 6DQz9N6Wq0H

--HG--
extra : rebase_source : 8a113d4a53e1562b55cc05a0bc411675a2ca9eb1
2017-07-31 15:27:30 -04:00
Kartikaya Gupta
4ed905c664 Bug 1384616 - Save APZ-relevant data from fixed-pos items in the WR scroll data for layers-free transactions. r=jrmuizel
MozReview-Commit-ID: HAFnrCVM9pZ

--HG--
extra : rebase_source : 9b7f5f7a3487501061b0526bfc92b06ef5593a88
2017-07-31 15:27:29 -04:00
Kartikaya Gupta
3b8aaa896a Bug 1384616 - Change how display items put their APZ-relevant info into the WebRenderScrollData. r=jrmuizel
Instead of the WebRenderLayerScrollData code knowing about all the
different display item types, it makes more sense to move this logic
into the display items.

In addition to avoiding dis-encapsulating the data from nsDisplayItem subclasses,
this makes it easier to handle two specific scenarios:
(1) the case where an nsDisplayItem A subclasses another nsDisplayItem B, but A
and B have different types returned by GetType(). Previously A and B would have
to be handled explicitly in the WebRenderLayerScrollData switch statements,
which doesn't scale well if new types are added. With the new approach the
virtual function is shared down from A to B and so takes care of it. This is
particularly relevant for types like nsDisplayOwnLayer which have a number of
subclasses.

(2) the case where a display item *might* have APZ-relevant information.
In this case the type of the item alone is not sufficient to determine
if we need to create a new WebRenderLayerScrollData for it. Instead, we
need to access specific state inside the display item. This is now
handled by the UpdateScrollData function returning true when passed
nullptr arguments, and replaces the switch statement in
WebRenderLayerManager that updated forceNewLayerData.

MozReview-Commit-ID: FlfHlgSccSn

--HG--
extra : rebase_source : d1fe841724cc6020433aea31ffb5214d8a44d0a9
2017-07-31 15:27:29 -04:00
Kartikaya Gupta
72688d935e Bug 1384616 - Fix indentation. r=jrmuizel
MozReview-Commit-ID: ArkCmZieGum

--HG--
extra : rebase_source : de6d006d63947b9ca8b972c70e6e8517073cd28c
2017-07-31 15:27:29 -04:00
Kartikaya Gupta
a1f87cfcac Bug 1385070 - Remove the WebRenderOMTAEnabled pref. r=ethlin
MozReview-Commit-ID: CWdrpzorNxq

--HG--
extra : rebase_source : c244c3d09579a9f5cb40ac8dd503217e7f96e4c5
2017-07-27 16:11:17 -04:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Wes Kocher
ad35031103 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07:00
cku
321461fb26 Bug 1301245 - Part 2. Do not resolve a style image if the given url has a fragment. r=heycam
MozReview-Commit-ID: 18LFjlWZBLl

--HG--
extra : rebase_source : afbba14c09f937340bd506859cbcc829100f9e8d
2017-07-26 11:21:30 +08:00
Ya-Chieh Wu
4acbeaf8d1 Bug 1375518 - Fix border-radius on table row groups, rows, column groups, or columns. r=dbaron
Before bug 929484, border-radius on row groups, rows, column groups,
or columns don't apply to the background of each cell, yet the
border-radius on the cell itself does. After bug 929484, the behaviors
changed. In this patch, I tried to revert the behaviors of border-radius
on table row groups, rows, column groups, or columns back to
what happened before bug 929484.

MozReview-Commit-ID: 1Xg1qHde3lk

--HG--
extra : rebase_source : ff08f8390ff910fe8c141a75275134f77a1cec3e
2017-07-14 15:50:04 +08:00
Ethan Lin
805e149605 Bug 1384043 - Support solid color for layers free mode. r=mattwoodrow
MozReview-Commit-ID: H4YWgdl1yAV

--HG--
extra : rebase_source : ea2920a5b25c2fde2950af189c7245c90d370934
2017-07-26 10:03:23 +08:00
Ethan Lin
5f21b07b7e Bug 1384387 - Clear frame's invalidation state bits in layers-free mode. r=kats
MozReview-Commit-ID: DRv5IcRQVs0

--HG--
extra : rebase_source : 9235e8f45a5fe7a200e63b572be61e9906ded5cc
2017-07-26 12:05:24 +08:00
Carsten "Tomcat" Book
bdf7db3d13 Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d74c74a654cd977d35e35de2768ada4ebe659ae4
2017-07-25 14:38:43 +02:00
Carsten "Tomcat" Book
679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Kartikaya Gupta
9c8e5912d3 Bug 1383204 - Allow layers-free webrender mode in chrome prescontexts. r=ethlin
MozReview-Commit-ID: 44OBpd0R5fX
2017-07-25 08:18:52 -04:00
Wes Kocher
fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Wes Kocher
2673406be5 Merge inbound to central, a=merge
MozReview-Commit-ID: 1oTeP8uycV2
2017-07-24 18:06:39 -07:00
Wes Kocher
a1eadef812 Merge m-c to autoland, a=merge
MozReview-Commit-ID: B7oWq7qfpJ0
2017-07-24 18:13:05 -07:00
cku
4c21546c79 Bug 1382257 - (followup) Draw border image if nsCSSBorderImageRenderer was created successfully. r=me.
MozReview-Commit-ID: 7SJwCt9XUBF

--HG--
extra : rebase_source : 5d674d2d5d2c22b0383b90d73a3aab96c603daae
2017-07-24 13:27:54 +08:00
Mason Chang
b4e1afb9e9 Bug 1365876. Blur text shadows on the CPU. r=lsalzman 2017-07-24 13:48:14 -07:00
Wes Kocher
051dc17e6c Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GYc8r8gnS0j
2017-07-21 18:12:55 -07:00
Ethan Lin
7aa3422a0a Bug 1378602 - Part3. Add OMTA support for nsDisplayTransform and nsDisplayOpacity. r=kats
MozReview-Commit-ID: CP4WEZgy83a
2017-07-21 14:21:47 +08:00
Ethan Lin
a48f3ac6fe Bug 1378602 - Part2. Move animation data from layer to AnimationInfo. r=kats
MozReview-Commit-ID: 4gv8EfPgsii
2017-07-21 14:21:47 +08:00
Ethan Lin
9a75620fae Bug 1378602 - Part1. Add WR support for nsDisplayOpacity. r=kats
MozReview-Commit-ID: 8aH3pJ0oiGc
2017-07-21 14:21:46 +08:00
Kartikaya Gupta
23c0f3a60b Bug 1382682 - Move ViewIDForASR into nsLayoutUtils for reuse. r=mstange
MozReview-Commit-ID: IcYqDO1D2SB

--HG--
extra : rebase_source : b1aa811facf533f4f30ae4e432f73737e1a4528b
2017-07-20 12:33:09 -04:00
Ryan VanderMeulen
d229288071 Merge m-c to autoland. a=merge
CLOSED TREE

--HG--
extra : amend_source : 2ab51304cc7df444f22c3aac001a1aba61faee3a
2017-07-21 09:42:41 -04:00
cku
27356c8da4 Bug 1382257 - Correct returning value of PaintBorderWithStyleBorder. r=mstange
We overwrites DrawResult returning from
nsCSSBorderImageRenderer::CreateBorderImageRenderer by the returning value of
DrawBorderImage, which is not right.

MozReview-Commit-ID: 1EeqU5hLyln

--HG--
extra : rebase_source : a78aa841795afa830b66da650a619f46230b10dd
2017-07-21 09:50:36 +08:00
Nicolas Silva
a9bf06994d Bug 1377595 - Mark display items that should be painted on the content side. r=jnicol 2017-07-20 11:34:15 +02:00