Commit Graph

27400 Commits

Author SHA1 Message Date
Botond Ballo
ab2b6fc21f Bug 1397434 - Remove the ActiveElementUsesStyle optimization in ActiveElementManager. r=kats
The optimization avoided a 10ms delay in generating synthesized mouse events
after a touch tap, if the tapped element wasn't styled differently when in
the |:active| state.

This dates back to the B2G days when the delay was in the critical path of
app startup times. It's less important today, and determining whether the
element is styled differently is an expensive operation in the style engine,
so we are removing it.

MozReview-Commit-ID: FYO1GlCR3gS

--HG--
extra : rebase_source : 1b7ce6eec77d0260b153bfcd93e81bccb3558107
2017-09-11 16:44:52 -04:00
Jonathan Kew
162dd2e4e1 Bug 1395061 - patch 4 - Refactor checks in the gfxPlatformFontList::GetFontList loop to use a single virtual method call instead of three separate calls. r=jrmuizel 2017-09-11 19:24:01 +01:00
Jonathan Kew
82bdaf03b2 Bug 1395061 - patch 3 - Clean up vestigial code that existed to support setting the gfxFontEntry::mSymbolFont flag. r=jrmuizel 2017-09-11 19:23:30 +01:00
Jonathan Kew
379ddad597 Bug 1395061 - patch 2 - Implement default gfxFontFamily::IsSymbolFontFamily, and provide override for GDI font backend. r=jrmuizel 2017-09-11 19:22:57 +01:00
Myk Melez
aa59a13010 Bug 1395061 - patch 1 - Refactor gfxFontEntry::SupportsLangGroup and MatchesGenericFamily into gfxFontFamily. r=jfkthame 2017-09-11 19:22:15 +01:00
Jonathan Kew
24e13c5d2e Bug 1398458 - Ensure we don't leave null gfxFontEntry records in a formerly 'simple' gfxFontFamily when adding extra faces. r=heycam 2017-09-10 08:49:09 +01:00
Jeff Muizelaar
23df55f0ef Bug 1397922. Correctly set the opacity of blob images. r=Gankro
Currently we're always marking them opaque even when they're not.
2017-09-09 17:43:45 -04:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Daosheng Mu
ae7ecb064c Bug 1397397 - Detect vrdisplayconnect/vrdisplaydisconnect events with IsTrackedDeviceConnected() in OpenVR; r=kip
MozReview-Commit-ID: 1Q8zyCZhQuC

--HG--
extra : rebase_source : eb7befe980cb70b8c86adb379190b8aa0a76d973
2017-09-08 15:35:53 +08:00
Jeff Hajewski
65f131cb7f Bug 1383816 - Removes FocusTargetType ParamTraits specialization; r=botond
MozReview-Commit-ID: Gao4O3eJKmp

--HG--
extra : rebase_source : 339e5029ccb7ab49ad1cf6d0e2ea2cc23c18fb2c
2017-09-03 08:11:59 -05:00
Jeff Hajewski
91957254d0 Bug 1383816 - Adds IPC Read and Write methods for FocusTarget and NoFocusState structs and creates EmptyStructSerializer helper class; r=botond
Since NoFocusState is am empty struct used in the |mData| variant in
FocusTarget, we need to add a Reader and a Writer for IPC for NoFocusState so we
can properly read and write the |mData| variant. The NoFocusState Read and Write
methods do not read or write anything, since NoFocusState does not contain any
data. This is done by creating a helper class EmptyStructSerliazer and
inheritting from EmptyStructSerializer for the NoFocusState specialization.

The |Read| and |Write| methods for FocusTarget are updated by removing the read
and write code for the individual types of |mData| and instead makes use of the
IPC read and write methods for Variant.

MozReview-Commit-ID: 3159sp6FLek

--HG--
extra : rebase_source : ff82797c26abffbd8bbcc465dc40c621be3257d0
2017-09-02 14:10:40 -05:00
Jeff Hajewski
521f2c7947 Bug 1383816 - Updates FocusState to use variant matcher; r=botond
Updates FocusState::Update to use a matcher on the the mData variant. This
replaces a switch statement that was used to unpack the mData union, prior to
making mData a variant.

FocusTargetDataMatcher has three match methods, which are largely unmodified
from the three cases of the original switch statement. The constructor takes two
arguments: a reference to |this| (FocusState) and a copy of the
|sequenceNumber|. |sequenceNumber| was added to the constructor to avoid passing
in a reference to |target|, since we only needed the |sequenceNumber| property
from |target|.

MozReview-Commit-ID: FkjQm8oGysM

--HG--
extra : rebase_source : 4ef8da00fe0925ed5a477063449e83bf601f49ee
2017-09-02 14:05:16 -05:00
Jeff Hajewski
43927bb0f1 Bug 1383816 - Adds Variant in implementation of FocusTarget and removes union; r=botond
FocusTarget.h
* Adds Variant property to FocusTarget
* Adds RefLayerId typedef for uint64_t
* Adds empty struct for the case where there is no focus target
* Adds operator== for ScrollTargets struct
* Updates mData from union to mozilla::variant
* Removes FocusTargetType enum
* Removes FocusTargetData union
* Removes mType property

FocusTarget.cpp
* Updates methods using mData to use proper variant methods
* Removes references to mType, instead using the appropriate
  variant methods

MozReview-Commit-ID: BAarVxSGDtJ

--HG--
extra : rebase_source : 47ca7243619a756408cf1ee406b94890d083da3b
2017-09-03 08:35:08 -05:00
Alexis Beingessner
9c1a7b4766 Bug 1398324 - remove broken optimization from webrender (hotfix). r=jrmuizel
MozReview-Commit-ID: FbgWy74U1e0

--HG--
extra : rebase_source : dd6867f3fe686203baddc8e6eae2b5114ba8df92
2017-09-08 16:20:52 -04:00
Ryan Hunt
f45c53ec90 Bug 1397831 - Update webrender to commit 6cf9cd4075efdf7467bad71b372170f626a8fce4. r=jrmuizel
MozReview-Commit-ID: 8SHrjpb5bKs

--HG--
extra : rebase_source : 4718328943014ef62e7cccc566e0fce4c8199073
2017-09-08 11:53:34 -05:00
David Anderson
b4357df64f Rename the Advanced Layers pref to indicate that it's stable. (bug 1385051 part 1, r=milan) 2017-09-08 10:21:18 -07:00
Jonathan Kew
4f28c7d6bb Bug 1394236 - For Apple fonts that include a 'kerx' table, prefer the Core Text shaping path so that we get kerning support. r=jrmuizel 2017-09-08 15:33:48 +01:00
Jonathan Kew
b43771fc5f Bug 1397238 - Reset the mIsSimpleFamily flag whenever a face is added to a font family, to ensure we will re-check the available faces before making assumptions about face indexes in FindAllFontsForStyle. r=heycam 2017-09-08 10:32:08 +01:00
Sebastian Hengst
e52b8eb6e4 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: E6LQYNHgmiv
2017-09-08 10:53:26 +02:00
Daosheng Mu
8a895d7e7f Bug 1352520 - Add GeckoProfiler markers for WebVR; r=kip
MozReview-Commit-ID: 6j22J0rSw1Y

--HG--
extra : rebase_source : 44f3d0052ab0b608f3b5cea5b977f7a2bba428b6
2017-09-06 16:08:21 +08:00
Bas Schouten
d8964297e9 Bug 1397040: During D3D11TextureData::Create lock the device multithread mutex explicitly when accessing the device. r=mattwoodrow
MozReview-Commit-ID: Ip1c8jnJE7r
2017-09-07 14:39:14 +00:00
Ryan VanderMeulen
ffcd6c269f Bug 1393375 - Update HarfBuzz to version 1.5.1. r=jfkthame
--HG--
extra : rebase_source : fe31a7ee242cb4e76b8a89051cb1e3497f0b8478
2017-09-07 09:36:27 -04:00
Andrew Osmond
64d9b7e1c7 Bug 1389021 - CompositorBridgeChild::ActorDestroy should not prevent CompositorBridgeChild::ShutDown from returning. r=nical
When CompositorBridgeChild::Destroy is called from ShutDown, it will
only call AfterDestroy if it has not been previously destroyed, and if
ActorDestroy has not been called by the IPDL code. AfterDestroy is
always necessary to allow ShutDown to return because it is what clears
the static reference used as a event loop spinning condition in
ShutDown. Now, AfterDestroy is safe to call multiple times, and even
if ActorDestroy was already called, we will try it from Destroy before
returning early.
2017-09-07 09:37:26 -04:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Daosheng Mu
b95528913e Bug 1392476 - Add dropframe telemetry for WebVR; r=francois,kip
MozReview-Commit-ID: IPVnPBkY8CN

--HG--
extra : rebase_source : 437b3528cecb05bc0bb4307447dee3e18c63d762
2017-08-28 18:43:25 +08:00
Bobby Holley
977fd4a02a Bug 1397500 - Disable the ActiveElementUsesStyle optimization for stylo. r=emilio
MozReview-Commit-ID: 20aqaFv9fxE
2017-09-06 15:30:53 -07:00
Jeff Gilbert
607fb42383 Bug 1396521 - Check that we have ANGLE exts for blitting from d3d. - r=daoshengmu
MozReview-Commit-ID: 3eto0R2Cjwa
2017-09-05 20:27:16 -07:00
Jeff Gilbert
dc84c31d74 Bug 1396704 - Support GLBlitHelper without VAOs. - r=daoshengmu
MozReview-Commit-ID: HB5p6Kt0zTb
2017-09-05 19:05:23 -07:00
Sebastian Hengst
b278f15c7f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 00:00:04 +02:00
Sebastian Hengst
01c1a3c741 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02:00
Jonathan Kew
20030ac275 Bug 1396453 - (speculative fix) - Remove the registered-fonts-changed notification observer when shutting down Mac font list, to avoid any risk of being called later during shutdown. r=jrmuizel 2017-09-05 20:45:26 +01:00
Sotaro Ikeda
354fb7d239 Bug 1390138 - Add render() error handling to gecko. r=jrmuizel 2017-09-05 15:18:15 -04:00
Kartikaya Gupta
7b7ba095dd Bug 1395637. Update webrender to commit 0875e21c4e80e19a3faeabf46c445a7a1cd59212. r=jrmuizel 2017-09-05 15:17:57 -04:00
Lee Salzman
0edfbc2d51 Bug 1395127 - fix Skia's AAA to work with even rounding. r=jrmuizel
MozReview-Commit-ID: FCzINJvD1Md
2017-09-05 13:38:49 -04:00
cku
f1fd114ae6 Bug 1396489 - Part 3. Use gfxContext::GetClipExtents(false) when clipped rect in device space is needed. r=mstange
MozReview-Commit-ID: YO4JACFK9O

--HG--
extra : rebase_source : 068eb69d634cfc5150d7cb864c366e719a025859
2017-09-04 14:04:17 +08:00
cku
56e29f215c Bug 1396489 - Part 2. Make gfxContext::GetClipExtents can return clipped rect in either user space or device space. r=mstange
MozReview-Commit-ID: 8orKmq1vz8K

--HG--
extra : rebase_source : 4d9ef1bd6154f7bf4195e7aa51221d5cfa7e67f8
2017-09-04 12:32:03 +08:00
cku
ed2ded9d29 Bug 1396489 - Part 1. Change gfxContext::GetClipExtents to a const function. r=mstange
MozReview-Commit-ID: ANFDAxeL5G0

--HG--
extra : rebase_source : 1ce7dec9ce121522caec3f316b71092634d5cdb0
2017-09-04 12:56:13 +08:00
Ryan Hunt
e429c35c34 Bug 1396972 - Update webrender to commit fe83b424e7b8bce3d3661c3561cfd58a6cd186fe. r=jrmuizel
MozReview-Commit-ID: 3JKxqbbq129

--HG--
extra : rebase_source : 9c443982edc0138f3a89f8df16e8e950b7120d0b
2017-09-06 14:30:08 -05:00
Jonathan Kew
a0c6466aaa Bug 1397292 - Activate all fonts from the "Language Support" folder in a single batch instead of individually, to reduce font-list churn. r=jrmuizel 2017-09-06 17:05:26 +01:00
David Keeler
9df1db2e87 Bug 1369560 - Avoid potentially unsafe snprintf usage in FPSCounter. r=mchang
snprintf returns the number of bytes it would have written when it runs out of
space. This patch makes sure we properly handle this unlikely event in
FPSCounter. This patch also makes sure we don't print out the contents of an
uninitialized buffer.

--HG--
extra : rebase_source : 3b0efdc90aeb1ee17e10a75493af51f2878bfcda
2017-06-02 14:39:15 -07:00
Lee Salzman
dff88e38e4 Bug 1393956 - ensure NativeFontResourceDWrite is thread-safe. r=bas
MozReview-Commit-ID: 4uME7zNmXrg
2017-09-05 15:30:13 -04:00
Bas Schouten
41a643c958 Bug 1396474: When aSetTransform is false, do not rely on the current DT transform when returning the output transform. r=mattwoodrow
MozReview-Commit-ID: 8DbS6dzFVtp
2017-09-05 15:13:40 +02:00
Andrew Osmond
6afddd6d86 Bug 1370412 - Part 1. Add preference to control "factor of 2" mode for ImageSurfaceCache. r=tnikkel 2017-09-05 07:58:44 -04:00
Jonathan Kew
6ceb7d87f9 Bug 835204 - Accept styled font-family names as used in the legacy GDI model, for compatibility with content that assumes GDI-style font naming. r=heycam 2017-08-01 11:25:35 +01:00
Nicolas Silva
70528e34f1 Bug 1393031 - Apply external image commands in webrender transactions. r=sotaro 2017-09-04 13:59:47 +02:00
Nicolas Silva
38b33aa593 Bug 1393031 - Separate WebRenderAPI and ResourceUpdateQueue. r=sotaro 2017-09-04 13:59:42 +02:00
Nicolas Silva
4b7b1e5992 Bug 1393031 - Use the ResourceUpdateQueue API on the content side. r=jrmuizel 2017-09-04 13:59:36 +02:00
Nicolas Silva
09e43ac029 Bug 1393031 - Expose webrender transactions at the ipc boundary. r=jrmuizel, r=kanru 2017-09-04 13:59:26 +02:00
Nicolas Silva
b4671ccb28 Bug 1393031 - Stop tracking active resource keys on the parent side. r=sotaro 2017-09-04 13:59:21 +02:00
Nicolas Silva
2830bb5952 Bug 1393031 - Make ResourceUpdateQueue move-only. r=sotaro 2017-09-04 13:59:17 +02:00