Commit Graph

27256 Commits

Author SHA1 Message Date
Sebastian Hengst
ab6a6e1367 merge mozilla-central to autoland. r=merge a=merge 2017-08-24 13:30:00 +02:00
Sebastian Hengst
aeacc34883 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6TGQRm8SSk0
2017-08-24 13:28:57 +02:00
Jonathan Kew
0ef13f6a7e Bug 1392659 - Activate fonts available in the macOS "Language Support" directory so that they are available in Gecko. r=jrmuizel 2017-08-24 09:33:38 +01:00
Jonathan Kew
c8d112cc49 Bug 1393185 - Annotate gfxFT2LockedFace as a stack-based helper, and avoid touching the refcount of the font. r=lsalzman 2017-08-24 09:33:34 +01:00
sotaro
3e6b55cd91 Bug 1392163 - Remove ImageBridgeChild::DispatchReleaseTextureClient() r=nical 2017-08-24 11:05:59 +09:00
sotaro
d89ca5a049 Bug 1392556 - Initialize DWriteFactory in GPUParent::RecvInit() r=jrmuizel 2017-08-24 10:47:30 +09:00
Wes Kocher
fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Ethan Lin
d5901012b5 Bug 1391541 - Correct the transform for layers-free fallback. r=kats
MozReview-Commit-ID: v9hVeUmY3E

--HG--
extra : rebase_source : 11f63f57d083d9d464f81b54cb99c58aeed8119b
2017-08-22 13:55:49 +08:00
Eric Rahm
a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Alexis Beingessner
edd35f0255 Bug 1368120 - Enable webrender border handling by default. r=kats
We largely handle borders correctly except for two major classes of error:

* https://bugzilla.mozilla.org/show_bug.cgi?id=1363060 - gecko doesn't feed webrender transforms properly (major)
* https://github.com/servo/webrender/issues/1280 - webrender's 3D border colours are too naive (minor)

MozReview-Commit-ID: 42JtbLYzqKn
2017-08-23 12:00:57 -04:00
Nathan Froyd
963e700142 Bug 1393019 - remove mozilla::gfx::Swap; r=jrmuizel
We have mozilla::Swap, which is more likely to be specialized, and it's
more efficient by virtue of using moves.
2017-08-23 10:40:05 -04:00
Sebastian Hengst
99e5cb9c14 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSKVB94r7Kk
2017-08-23 16:29:51 +02:00
Nicolas Silva
9f6f1a7d88 Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-23 12:00:37 +02:00
Wes Kocher
655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07:00
Wes Kocher
6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Masatoshi Kimura
5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09:00
Ethan Lin
376639c99a Bug 1392921 - In TopmostScrollId(), return FrameMetrics::NULL_SCROLL_ID when the scroll id stack is empty. r=kats
MozReview-Commit-ID: 3kmgsisMhW5

--HG--
extra : rebase_source : d9e20940fcc5c1790dbf4f3b6b2769b1fd054121
2017-08-23 14:46:38 +08:00
Kartikaya Gupta
fda8ec623e Bug 1358771 - Don't set the resolution on the main-thread from an APZ repaint request that was triggered by a main-thread update. r=tnikkel
Conceptually, a repaint request that arrives in APZCCallbackHelper with
!GetScrollOffsetUpdated() is a repaint request that the APZ is sending in
response to a main-thread update it received. The purpose of the repaint
request is mainly to update the displayport margins; the scroll position
and resolution should not have changed. Therefore actively trying to set
the scroll position or resolution as a result of these repaint requests
should at best be a no-op but often triggers unnecessary clobbering of things
that are in-flight, or extra reflows. This can result in buggy behaviour.
Bug 1286179 avoided doing this for the scroll position, and this patch does
the equivalent thing for zooming.

MozReview-Commit-ID: 91RbRP0ZHBe

--HG--
extra : rebase_source : 7bb97075619f5435705d369a695d37aa1c972278
2017-08-21 12:51:43 -04:00
sotaro
8687f49efa Bug 1387845 - Add more NS_BUILD_REFCNT_LOGGING in AtomicRefCountedWithFinalize r=nical 2017-08-23 13:49:29 +09:00
sotaro
0fdce34238 Bug 1390731 - Add pointer check to GetRootCompositorBridgeParent() r=kats 2017-08-23 13:44:22 +09:00
Bevis Tseng
0835c5a619 Bug 1392213 - Label nsIThread::AsyncShutdown. r=billm
--HG--
extra : rebase_source : eb6b01ee6bce442108e6126b2fa2e962df57cad5
2017-08-21 17:54:32 +08:00
Kevin Chen
9fa0238d13 Bug 1362321 - Do not crash in gfxPlatform:Init if there is a TDR happening; r=bas
MozReview-Commit-ID: 9gJCErHosg1

--HG--
extra : rebase_source : 6fc0e95b18ee795f2571d82ca81f3a72970142b3
2017-08-09 18:00:01 +08:00
Sebastian Hengst
c5b98b786f merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 138539eda803df4aa7fa2d161e78ad36cf3f55ef
2017-08-23 16:31:21 +02:00
Kevin Chen
0ea8e971ce Bug 1390452 - Check texture compatibility when ensuring the texture source; r=bas
MozReview-Commit-ID: LjFvMezb1TV

--HG--
extra : rebase_source : 1b8da7ed75da9da547aef22b1f535fc0567e1b7f
2017-08-17 15:31:09 +08:00
Sebastian Hengst
2f56a032cd merge mozilla-central to autoland. r=merge a=merge 2017-08-22 11:50:08 +02:00
sotaro
05fe97938e Bug 1391557 - Remove LayerTransactionParent::layer_manager() r=nical 2017-08-22 10:16:51 +09:00
sotaro
9ec0764889 Bug 1387659 - Add Layer::Disconnect() calling in LayerTransactionParent::Destroy() r=nical 2017-08-22 10:10:20 +09:00
Wes Kocher
7459418fd6 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4
2017-08-21 16:16:29 -07:00
Nicholas Nethercote
8a72cf2251 Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
--HG--
extra : rebase_source : 69d58b0cfb56efc6b03d8e2d7be2ce3c3e6cd843
2017-08-21 20:01:27 +10:00
Ethan Lin
a5fdb1e628 Bug 1392502 - Fix 2d/3d transform check in StackingContextHelper. r=mtseng
MozReview-Commit-ID: DYY7wBWrrlv

--HG--
extra : rebase_source : 2a539f3c23cbe54f63c3e443db2cea6808b28277
2017-08-22 14:40:39 +08:00
Jeff Muizelaar
fe9318a51b Bug 1390290. Use default stride for blob images. r=kats
This lets tiled images work.
The bindings code turns 0 into None
2017-08-21 12:57:15 -04:00
Sebastian Hengst
029f702dfd Backed out changeset 483991689217 (bug 1390840) for bustage at dist/include/mozilla/webrender/webrender_ffi_generated.h:1199: expected ',' before ')' token. r=backout 2017-08-21 18:39:59 +02:00
Sebastian Hengst
441fc1a176 Backed out changeset b9c53ad8893b (bug 1390840) 2017-08-21 18:38:22 +02:00
Nicolas Silva
55bbef54aa Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-21 18:22:56 +02:00
Nicolas Silva
27126ac4d3 Bug 1390840 - Use cbindgen 0.1.21 in webrender's binding. r=jrmuizel 2017-08-21 18:22:45 +02:00
Jonathan Kew
36864d9d74 Bug 1364714 followup, use precise fuzzy-if() range in APZ scroll reftest annotations. r=me 2017-08-21 14:59:42 +01:00
Jonathan Kew
6c0ec2b9ea Bug 1364714 - Adjust fuzzy() annotations on async-scrollbar tests. r=dholbert 2017-08-21 14:37:50 +01:00
Stone Shih
dd2e7962f3 Bug 1361067 Part3: Tweak test_touch_listeners_impacting_wheel.html to synthesize mousemove before taking control of refresh driver. r=kats.
MozReview-Commit-ID: HLPcPFXxvAz
2017-08-18 07:32:52 +08:00
Kevin Hsieh
dedf384ca4 Bug 1391855 - OTS: Match signedness in GlatEntry loop. r=jfkthame
MozReview-Commit-ID: IzzWbNVEwh

--HG--
extra : rebase_source : 04c1dcebc8570231d2f1c47bf2f0057a0e3543ac
2017-08-19 15:26:11 -07:00
Kartikaya Gupta
7fe3b1b02c Bug 1391770 - Don't allow a faraway second tap to start a one-touch-pinch gesture. r=botond
This patch adds a new tolerance pref, which controls how far the second touchdown
is allowed to be from the first touchdown when detecting a multi-tap gesture
such as double-tap or one-touch-pinch. This stops the one-touch-pinch code
from inadvertently triggering when the user does a tap followed by a second tap
far away from the first.

The default value for the new pref is 5x the touch-start tolerance pref. This
seems to provide a reasonable behaviour for me, although this value could
probably be tuned.

MozReview-Commit-ID: 63aAyGCbvoN

--HG--
extra : rebase_source : 36e9bd66d165c8d746ea7b5d6c33e9cf2771194a
2017-08-19 08:50:55 -04:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm
79e2533076 Bug 1389598 - Part 1: Remove gonk references from gfx/ r=jrmuizel
--HG--
extra : rebase_source : f53ae270c09892d65d9119a109a29317834f81b1
2017-08-11 17:45:50 -07:00
Wes Kocher
f10eee4259 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4

--HG--
extra : source : bccc691242c5460e58c6aac1bd3fd63d15037b4a
2017-08-21 16:16:29 -07:00
Kartikaya Gupta
7017055b92 Bug 1390804 - When pushing a mask clip, don't record it in DisplayListBuilder's clip stack. r=ethlin
Recording mask clips in the clip stack changes the value of TopmostClipId()
which confuses the code in ScrollingLayersHelper. The mask clip can be
thought of as an "out-of-band" clip that ScrollingLayersHelper doesn't
need to know about. This patch adds a mechanism for pushing such
"out-of-band" clips without touching the clip stack.

MozReview-Commit-ID: 8Zeqtigk0cj

--HG--
extra : rebase_source : 35176f3c9d98d186f78d7a0ff44845c7c3c9f67e
2017-08-17 13:54:25 -04:00
Alexis Beingessner
9c4535798f Bug 1357545 - handle text-shadows/decorations with webrender (layers-free) r=jrmuizel
This replaces our DrawTargetCapture hack with a similar but more powerful TextDrawTarget
hack. The old design had several limitations:

* It couldn't handle shadows
* It couldn't handle selections
* It couldn't handle font/color changes in a single text-run
* It couldn't handle decorations (underline, overline, line-through)

Mostly this was a consequence of the fact that it only modified the start and end
of the rendering algorithm, and therefore couldn't distinguish draw calls for different
parts of the text.

This new design is based on a similar principle as DrawTargetCapture, but also passes
down the TextDrawTarget in the drawing arguments, so that the drawing algorithm can
notify us of changes in phase (e.g. "now we're doing underlines"). This also lets us
directly pass data to TextDrawTarget when possible (as is done for shadows and selections).

In doing this, I also improved the logic copied from ContainsOnlyColoredGlyphs to handle
changes in font/color mid-text-run (which can happen because of font fallback).

The end result is:

* We handle all shadows natively
* We handle all selections natively
* We handle all decorations natively
* We handle font/color changes in a single text-run
    * Although we still hackily intercept draw calls
    * But we don't need to buffer commands, reducing total memcopies

In addition, this change integrates webrender's PushTextShadow and PushLine APIs,
which were designed for this use case. This is only done in the layerless path;
WebrenderTextLayer continues to be semantically limited, as we aren't actively
maintaining non-layers-free webrender anymore.

This also doesn't modify TextLayers, to minimize churn. In theory they can be
augmented to support the richer semantics that TextDrawTarget has, but there's
little motivation since the API is largely unused with this change.

MozReview-Commit-ID: 4IjTsSW335h

--HG--
extra : rebase_source : d69f69648ade5c7a8e6bb756f4b8ab9e2543e576
2017-06-19 10:58:28 -04:00
Kevin Hsieh
572c3c94d2 Bug 1369672 - Update OTS to support Graphite table sanitization. r=jfkthame
MozReview-Commit-ID: 4WU4nQcsQgt

--HG--
extra : rebase_source : 8a27c738aaccb5bd47bf057de181c4abe210ba93
2017-08-11 16:36:12 -07:00
Wes Kocher
c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
Wes Kocher
1e9388e012 Backed out changeset 15956a990499 (bug 1369672) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: 40Rckwto87s
2017-08-17 13:51:05 -07:00
Kartikaya Gupta
57563f2293 Bug 1389138 - Push scroll layers in layers-free WR. r=mstange
This patch takes the existing code (which allows recursively pushing the necessary
part of a clip chain) and folds it into another recursive function that
operates on the ASR chain. Now the ASR recursion is the primary one, and
clips are pushed for each ASR as needed.

This code was partly modelled after the code in
ContainerState::SetupScrollingMetadata, which also iterates over the
ASRs and clips.

MozReview-Commit-ID: 1qaFPY7Ja7

--HG--
extra : rebase_source : 623b116c293e86d063e5acfa4a01f5104719f560
2017-08-17 11:07:03 -04:00