Commit Graph

66349 Commits

Author SHA1 Message Date
Margareta Eliza Balazs
86f56d08a0 Merge inbound to mozilla-central. a=merge 2018-11-01 11:12:55 +02:00
Brindusan Cristian
c0b91fe1ee Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-31 23:45:55 +02:00
Narcis Beleuzu
a2300d08e1 Backed out changeset 62d95b920270 (bug 1502761) for reftest failures on image-rendering-css.html. CLOSED TREE 2018-10-31 22:35:31 +02:00
Boris Chiou
72e9ae1148 Bug 1501116 - Part 8: Drop "mozilla" prefix in cbindgen_types in ServoBindings.toml. r=emilio
A minor update to drop the redundant "mozilla" namespace prefix in
`cbindgen_types` array.

Depends on D10305

Differential Revision: https://phabricator.services.mozilla.com/D10325

--HG--
extra : moz-landing-system : lando
2018-10-31 10:58:24 +00:00
Boris Chiou
4be373db13 Bug 1501116 - Part 7: Use alias for StyleUnicodeRange. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D10305

--HG--
extra : moz-landing-system : lando
2018-10-31 06:20:52 +00:00
Boris Chiou
3219a21d7b Bug 1501116 - Part 6: Use alias for StylePathCommand. r=emilio
So we could drop transmute in svg_path related functions.

Differential Revision: https://phabricator.services.mozilla.com/D10140

--HG--
extra : moz-landing-system : lando
2018-10-31 06:20:32 +00:00
Boris Chiou
2b5db49d22 Bug 1501116 - Part 5: Use alias for StyleFillRule. r=emilio
This needs to update the "fill-rule" and "clip-rule" to use
predefined_type to avoid some compilation errors.

Differential Revision: https://phabricator.services.mozilla.com/D10142

--HG--
extra : moz-landing-system : lando
2018-10-31 10:57:48 +00:00
Boris Chiou
3ff7857977 Bug 1501116 - Part 4: Use alias for font related types. r=emilio
Map the following types:
1. StyleComputedFontWeightRange.
2. StyleComputedFontStretchRange.
3. StyleComputedFontStyleDescriptor.
4. StyleFontDisplay.
5. StyleFontFaceSourceListComponent
6. StyleFontLanguageOverride.

Differential Revision: https://phabricator.services.mozilla.com/D10143

--HG--
extra : moz-landing-system : lando
2018-10-31 06:20:15 +00:00
Boris Chiou
82b7d6a4e9 Bug 1501116 - Part 3: Use alias for StyleDisplay and StyleDisplayMode. r=emilio
Map these two types to their original rust type in rust-bindgen.

Differential Revision: https://phabricator.services.mozilla.com/D10141

--HG--
extra : moz-landing-system : lando
2018-10-31 06:20:07 +00:00
Boris Chiou
e09f87319f Bug 1501116 - Part 2: Use alias for StyleAppearance. r=emilio
So we could avoid generating it in rust-bindgen and drop transmute.

Differential Revision: https://phabricator.services.mozilla.com/D10304

--HG--
extra : moz-landing-system : lando
2018-10-31 06:20:00 +00:00
Boris Chiou
7e0bfa77d7 Bug 1501116 - Part 1: Add a special list for cbindgen types to avoid generating redundant rust types. r=emilio
We will blacklist this type and add a module raw line to map the gecko
type to its rust type (as an alias).

Differential Revision: https://phabricator.services.mozilla.com/D10303

--HG--
extra : moz-landing-system : lando
2018-10-31 06:19:52 +00:00
Jonathan Kingston
873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
arthur.iakab
d8d1207f16 Merge autoland to mozilla-central a=merge 2018-10-31 18:32:50 +02:00
arthur.iakab
eac6295c39 Merge inbound to mozilla-central a=merge 2018-10-31 11:44:44 +02:00
Lee Salzman
6aefc4e30e Bug 1502152 - more fuzz. r=me 2018-10-31 00:02:27 -04:00
Lee Salzman
c2b504684d Bug 1502152 - Skia m71 fuzzing. r=rhunt 2018-10-30 22:17:35 -04:00
Arnaud Bienner
a354c4ec9c Bug 1503228 - Move PaintWorkletGlobalScope from dom/worklet to layout/style. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D10212

--HG--
rename : dom/worklet/PaintWorkletGlobalScope.cpp => layout/style/PaintWorkletGlobalScope.cpp
rename : dom/worklet/PaintWorkletGlobalScope.h => layout/style/PaintWorkletGlobalScope.h
extra : moz-landing-system : lando
2018-10-31 03:47:04 +00:00
Ciure Andrei
608de3193c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-31 00:14:49 +02:00
Kartikaya Gupta
d261d9402d Bug 1501046 - Set a displayport on the root document's root scrollframe if we paint it before ChromeProcessController sets the displayport. r=botond 2018-10-30 08:20:51 -04:00
Cameron McCormack
53d47bc1b0 Bug 1496617 - Part 2: Fix inconsistent CRISPEDGES constant name r=emilio
Depends on D10451

Differential Revision: https://phabricator.services.mozilla.com/D10452

--HG--
extra : moz-landing-system : lando
2018-11-01 01:37:26 +00:00
Arnaud Bienner
6c33998bfb Bug 1503236 - Move WorkletImpl reference from WorkletGlobalScope to classes inheriting WorkletGlobalScope r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D10215

--HG--
extra : moz-landing-system : lando
2018-10-31 23:03:39 +00:00
Cameron McCormack
562313a39a Bug 1503738 - Simplify WITH_COMPARATOR macro slightly r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D10440

--HG--
extra : moz-landing-system : lando
2018-11-01 01:25:16 +00:00
Gabriele Svelto
266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Henrik Winnemöller
2b2b880128 Bug 1502762 - Add reftests for ImageRendering on list-style-image property. r=nical
Add reftests that test the ImageRendering property on list-style-images, JS-based ImageRendering changes and inequality of results between different ImageRendering settings.

--HG--
extra : rebase_source : a3c6298364dd5c099d6e1a851b2f20e1a2b48ab9
2018-10-29 00:47:59 +01:00
Henrik Winnemöller
141eb43b59 Bug 1502761 - Add reftests for ImageRendering on video (NativeTexture external images). r=nical
Add reftests that test the ImageRendering property on video (NativeTexture external images), JS-based ImageRendering changes and inequality of results between different ImageRendering settings. Also include a simple h264 mp4 with minimal lossy encoding. OSX fuzzing values determined by try run.

--HG--
extra : rebase_source : 7eafbc57935659f73894cab83757dffe1f7e7c60
2018-10-29 00:51:50 +01:00
Henrik Winnemöller
ce69c9b864 Bug 1502759 - Add additional reftests for ImageRendering on Canvas (NativeTexture external images). r=nical
Add additional reftests that test for JS-based changes to the ImageRendering field. Also test for differences between different ImageRendering settings.

--HG--
extra : rebase_source : 3b839704392f0c7b7b91bdaf8f978eb3778409b9
2018-10-29 00:40:10 +01:00
Emilio Cobos Álvarez
249491eb67 Bug 1502609 - followup: Add a missing ifdef. 2018-10-30 22:41:43 +01:00
Hiroyuki Ikezoe
8d7b51d943 Bug 1486960 - Pretend there is only a touch screen device if touch similation is enabled on RDM. #firefox-style-system-reviewers r=emilio
When the touch similation is enabled on RDM, TOUCHEVENTS_OVERRIDE_ENABLED is
propagated to all descendants docShells, so that we can just query it and return
PointerCapabilities::Coarse for the case.

Differential Revision: https://phabricator.services.mozilla.com/D10203

--HG--
extra : moz-landing-system : lando
2018-10-30 21:24:04 +00:00
Emilio Cobos Álvarez
ce32511d99 Bug 1502609 - Assert that we don't mess up pseudo-element / anon-box restyling. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D9990

--HG--
extra : moz-landing-system : lando
2018-10-30 20:28:51 +00:00
Ryan Hunt
358ef761e3 Bug 1502059 - Don't always cancel a scroll animation when we have a relative scroll offset update. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D9871

--HG--
extra : source : 2a457617fbf2ca133af18e9972e505f86dd90dd2
extra : amend_source : 119ab67b6c2c9a09a98cfb2f4c4ca20f82c64b9f
2018-10-25 17:21:29 -05:00
Gurzau Raul
42ed3a7d97 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-30 07:32:36 +02:00
Boris Chiou
e3e3d6b80a Bug 1500627 - Fix some potential bugs of sizing properties for keywords in the block axis r=mats
1. Drop {Width|MinWidth|MaxWidh}DependsOnContainer() and
   {Height|MinHeight|MaxHeight}DependsOnContainer() because they are bogus
   after introducing the writing mode. Dropping these functions needs
   update nsLineLayout because it is the only one who still use
   these functions.
2. There are still some potential assertions and bugs on handling keywords
   in the block size, so we should update them as well.

Depends on D9438

Differential Revision: https://phabricator.services.mozilla.com/D9439

--HG--
extra : moz-landing-system : lando
2018-10-29 22:56:42 +00:00
Boris Chiou
56e8afca3d Bug 1500627 - Treat min-main-size:[keyword] as "auto" for flex items, if main axis is the item's block axis r=dholbert
Keywords on the sizing properties in the block axis should behave as
initial values in the flex frame. We store the keywords as enum, instead
of auto or none in nsStyleCoord, so we have to handle it explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D9438

--HG--
extra : moz-landing-system : lando
2018-10-29 22:56:35 +00:00
Gurzau Raul
8f82fd493f Merge inbound to mozilla-central. a=merge 2018-10-30 00:00:56 +02:00
Kartikaya Gupta
c277149ab9 Bug 1501062 - Set the visible region on scrollthumb WebRenderLayerScrollData items. r=botond
This field is used by APZ to implement the feature where the scrollbar snaps
back to the starting position if the mouse gets too far away.
2018-10-29 15:40:09 -04:00
Sean Voisen
a3b735e085 Bug 1430969: Add tests for border-image-source blocking r=emilio
Depends on D10017

Differential Revision: https://phabricator.services.mozilla.com/D10024

--HG--
extra : moz-landing-system : lando
2018-10-29 10:40:32 +00:00
Daniel Holbert
e7d21b64b2 Bug 1502510: Provide missing image file for calc-background-position and calc-background-size reftests. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D9951

--HG--
rename : layout/reftests/backgrounds/blue-32x32.png => layout/reftests/w3c-css/submitted/values3/support/blue-32x32.png
extra : moz-landing-system : lando
2018-10-29 00:57:16 +00:00
Emilio Cobos Álvarez
968454aa33 Bug 1502185 - Don't allow auto in grid line names. r=mats
See https://github.com/w3c/csswg-drafts/issues/2856.

Differential Revision: https://phabricator.services.mozilla.com/D9882

--HG--
extra : moz-landing-system : lando
2018-10-28 23:26:53 +00:00
Emilio Cobos Álvarez
9f8636dee7 Bug 1500885 - Remove tests and other similar bits. r=mats
Also remove specified-value-only keywords, since those are handled
only in Rust code and C++ doesn't need to know about them.

Differential Revision: https://phabricator.services.mozilla.com/D9634

--HG--
extra : moz-landing-system : lando
2018-10-24 20:32:16 +00:00
Emilio Cobos Álvarez
d4ae853741 Bug 1502658 - Remove SVG use attribute change handling code from nsSVGUseFrame to SVGUseElement. r=longsonr
Most of those shouldn't rely on a frame to run.

Differential Revision: https://phabricator.services.mozilla.com/D9996

--HG--
extra : moz-landing-system : lando
2018-10-28 23:20:43 +00:00
Arshad Kazmi
7e335e61a5 Bug 1494255 - Date input: disabled CSS: Shows correct style for whole text r=Gijs,emilio
Differential Revision: https://phabricator.services.mozilla.com/D9557

--HG--
extra : moz-landing-system : lando
2018-10-27 21:53:50 +00:00
Boris Chiou
f3cf4b21e4 Bug 1496619 - part 8: Tests r=birtles
Add new mochitests, and web-platform tests, and devtool tests.

Depends on D9314

Differential Revision: https://phabricator.services.mozilla.com/D9315

--HG--
extra : moz-landing-system : lando
2018-10-26 18:12:31 +00:00
Boris Chiou
3015824e8d Bug 1496619 - part 7: Implement steps(jump-*) functions r=birtles
1. Add a new preference, layout.css.step-position-jump.enabled, for
   step(_, jump-*) timing functions.
2. We still keep JumpEnd and End tags, even though there is no difference
   between them. Therefore, we could disable the preference if needed.
3. Update the calculation of StepTiming to match the algorithm in the spec.
4. For servo, we implement the correct step function algorithm except
   for the handling of before_flag. This could be fixed later.

Depends on D9313

Differential Revision: https://phabricator.services.mozilla.com/D9314

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:37 +00:00
Boris Chiou
04b273259e Bug 1496619 - part 6: Generate StyleTimingFunction and drop ns_timing_function.rs r=emilio,birtles
First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use
it in nsTimingFunction, so we could copy it directly without handling
the different memory layout. However, we have to rewrite the
nsTimingFunction and mozilla::ComputedTimingFunction for this.

Second, the rust-bindgen seems cannot generate the correct generic members
from complex C++ templates, especially for the nested template struct,
(https://github.com/rust-lang-nursery/rust-bindgen/issues/1429)
So we have to hide StyleTimingFunction to avoid the compilation errors.

Depends on D9312

Differential Revision: https://phabricator.services.mozilla.com/D9313

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:35 +00:00
Boris Chiou
adff31eff9 Bug 1496619 - Part 1: Drop frames() timing function r=birtles
frames() timing function was removed from the spec, so we drop it.
Besides, some devtool tests are removed because they use frame(). I will
add them back by using new step function later.

Differential Revision: https://phabricator.services.mozilla.com/D9309

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:24 +00:00
Emilio Cobos Álvarez
622bf3097d Bug 1502936 - Fix SVGUseElement::GetFrame to not get confused. r=heycam
Should've noticed in bug 1502658 that GetFrame() was dead, to verify its
assumptions... Oh well.

Differential Revision: https://phabricator.services.mozilla.com/D10109
2018-10-29 23:27:10 +01:00
Andrea Marchesini
13bf7aa219 Bug 1432429 - Clean up a few random areas of code to accomodate Fuzzyfox: Performance and RefreshDriver. r=froydnj,baku
1: Correct the Performance API 'NowUnclamped' to obtain a non-Fuzzed Timestamp

2: Do not compare fuzzed and non-fuzzed timestamps in a Refresh Driver assert,
since this happens so early on that we will eventually compare them and
asserting would be bad.
2018-09-18 13:05:48 -05:00
Tom Ritter
b83b9c5b11 Bug 1432429 - Add FuzzyFox class and prefs. r=baku,froydnj
Creates a FuzzyFox class for implementating the core of the step/sleep
algorithm. Starts it in nsLayoutStatics::Initialize()

Adds the fuzzyfox prefs.

Moves the ms2mt macros from TimeStamp_windows.cpp to TimeStamp_windows.h
and creates a new public function GetQueryPerformanceFrequencyPerSec() to
expose a static variable in the .cpp file. This is necessary to support
the macros being usable anywhere.  (And we use the macros in FuzzyFox.)
2018-09-18 13:05:26 -05:00
Steve Fink
b5b78d5525 Bug 1321014 - Respect MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS for the purpose of identifying GC types and pointers, r=jonco
--HG--
extra : topic : hazard
extra : rebase_source : bdaf0ae60a6b45c9d44294aa9c2bc31a8811bdbd
extra : source : c7b32ffa822e353b5479b6224194e3cdfd135e65
2018-07-20 18:36:20 -07:00
Daniel Holbert
039305b565 Bug 1488762: Soften an assertion about sign of free space in flex layout, since absurdly large sizes can cause it to fail. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D9876

--HG--
extra : moz-landing-system : lando
2018-10-26 00:58:40 +00:00