Граф коммитов

67977 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez da20adc305 Bug 1536451 - Start generating bindings again for some types that bindgen can now handle correctly. r=boris
Rust has repr(align) now, so we can do this.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 02:26:22 +00:00
Andreea Pavel 69f980ffee Backed out 3 changesets (bug 1535507) wr failures e.g. line_1_wrapped_cue_grow_downwards.html on a CLOSED TREE
Backed out changeset 458563d6a69e (bug 1535507)
Backed out changeset 48726c586c4f (bug 1535507)
Backed out changeset 74d9f16af0bf (bug 1535507)
2019-03-20 03:32:51 +02:00
Boris Chiou 267334cb8c Bug 1536392 - Disable multiple transform-like properties animation at 5s on GeckoView. r=hiro
If we have an animation with multiple transform-like properties, it
seems getOMTAStyle(transform) returns an empty string at 50% on
Android x86_64 opt with e10s, so we cannot pass this test case. We
temporarily disable this test case on this platform.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 00:12:50 +00:00
Matt Woodrow 244c79d92a Bug 1535507 - Assume that we have an empty display list building override rect for frames that support it, even if an explicit one isn't present. r=miko
If the frame supports it (stacking context + containing block for fixed), and a descendant was
modified, we would have created an override dirty region with just the area of that descendant.
In the case where no descendants are modified, we should use an empty rect, rather than
the area inherited from our parent.

This fixes the case where we forcibly build position:fixed frames (since they might async
scroll differently to the rest of the page), but we only need to build the container item,
not the whole frame subtree within it.

Added a test that shows us building the non-intersecting position:fixed, but not items within it.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 22:24:36 +00:00
Matt Woodrow 38f1bc0d01 Bug 1535507 - Don't create new display items for InvalidateLayer, since only the Layer tree should need to change. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D23609

--HG--
extra : moz-landing-system : lando
2019-03-19 22:24:20 +00:00
Matt Woodrow 9146a4d43a Bug 1535507 - Don't force display item rebuilding for ActiveLayerTracker expiry, since we should only need to update the Layer tree. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D23608

--HG--
extra : moz-landing-system : lando
2019-03-19 22:24:02 +00:00
Emilio Cobos Álvarez 344ea4ee7c Bug 1516780 - fix rusttests by removing a now-unused declaration.
CLOSED TREE
2019-03-19 22:44:36 +01:00
Emilio Cobos Álvarez 0a3856aa9c Bug 1516780 - Optimize restyles when a font is loaded. r=heycam
Depends on D20729

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

--HG--
extra : moz-landing-system : lando
2019-03-19 21:10:41 +00:00
Emilio Cobos Álvarez fcc161a573 Bug 1516780 - Remove ComputedStyle::mBits. r=jfkthame,heycam
Use the Servo flags instead.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 21:10:30 +00:00
Emilio Cobos Álvarez 12cbe02f9a Bug 1536176 - Share font preferences across documents. r=jfkthame
And also don't blow the preferences away unless they actually change. We were
blowing them away whenever the document language changed or what not, that's not
good.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 16:40:01 +00:00
Emilio Cobos Álvarez 3fa7faebf8 Bug 1536176 - Use nsStaticAtom in nsLanguageAtomService. r=jfkthame
All lang groups are static, no point in doing refcounting.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 12:48:31 +00:00
Glenn Watson 9d856b1091 Bug 1535976 - Add a fast path for common rounded rect clips to WR. r=kvark
Most rounded rect clips in real content are (a) axis aligned and
(b) have uniform radii.

When these conditions are met, we can run a fast path for clip
mask generation that uses significantly fewer ALU shader ops.

This is not typically a bottleneck on desktop GPUs, but can have
a large performance impact on mobile GPUs (and perhaps low end
integrated GPUs).

The Mali shader analyzer reports the slow path for the rounded
rect clip shader to be 94 cycles per fragment, while the fast
path is 10 cycles.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 19:48:13 +00:00
Henri Sivonen 976ad7e3a6 Bug 1524242 - Capture TabParent of out-of-process iframe when creating TextComposition. r=masayuki
Depends on D23641

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

--HG--
extra : moz-landing-system : lando
2019-03-19 13:37:20 +00:00
Henri Sivonen 76985857be Bug 1535537 - Maintain information about focused TabParent on chrome main thread independently of APZ. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D23632

--HG--
extra : moz-landing-system : lando
2019-03-19 13:37:14 +00:00
Jonathan Kew 95ed8b4b59 Bug 1534693 - Bail out of font-family search in GlobalFontFallback once we've found a font with an exact style match. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D23162

--HG--
extra : moz-landing-system : lando
2019-03-19 10:49:53 +00:00
Hiroyuki Ikezoe f5a86384ed Bug 1532850 - Check the return value of LookAndFeel::GetInt() in case of the function failure. r=emilio
Actually the function will fail on Android since on xpcshell tests we don't
initialize AndroidBridge so that we can't query the corresponding system
settings.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 10:10:39 +00:00
Coroiu Cristina 3a2e8a75c8 Backed out 2 changesets (bug 1532850) for apilint failure on a CLOSED TREE
Backed out changeset da87a2079285 (bug 1532850)
Backed out changeset d44836af07e0 (bug 1532850)
2019-03-19 12:01:40 +02:00
Hiroyuki Ikezoe 2b317e35ec Bug 1532850 - Check the return value of LookAndFeel::GetInt() in case of the function failure. r=emilio
Actually the function will fail on Android since on xpcshell tests we don't
initialize AndroidBridge so that we can't query the corresponding system
settings.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 09:43:36 +00:00
Coroiu Cristina 45aa39f3f6 Backed out 2 changesets (bug 1532850) for Android bustage on a CLOSED TREE
Backed out changeset d32559ed093f (bug 1532850)
Backed out changeset 439686eac8d6 (bug 1532850)
2019-03-19 11:20:24 +02:00
Cameron McCormack 716d720e13 Bug 1534399 - Don't allow disabling non-author sheets. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D23624

--HG--
extra : moz-landing-system : lando
2019-03-15 12:54:17 +00:00
Hiroyuki Ikezoe af3b3da60e Bug 1532850 - Check the return value of LookAndFeel::GetInt() in case of the function failure. r=emilio
Actually the function will fail on Android since on xpcshell tests we don't
initialize AndroidBridge so that we can't query the corresponding system
settings.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 22:57:42 +00:00
Boris Chiou 55dfc7b50b Bug 1425837 - Part 8: Test that individual transforms run on the compositor thread. r=hiro,birtles
This also adds the missing preference in test_transition_per_property.html.

Depends on D22567

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:05:04 +00:00
Boris Chiou cbef6a9f42 Bug 1425837 - Part 6: Add individual transform properties into compositor animation list. r=hiro
Now, its time to let individual transform run on the compositor thread.

Depends on D19636

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:05:00 +00:00
Boris Chiou 92fcc151e4 Bug 1425837 - Part 4: Implement compositor animations on translate/rotate/scale. r=hiro,birtles
On the sender side of transactions, we have to convert the individual transforms
to the proper types in layers::Animations, and this includes SetAnimatable and
the definition in LayersMessages.

On the compositor side (i.e. received side of transactions). Basically, we
convert the list of layers::Animation into a list of `PropertyAnimationGroup`,
which is an intermediate value. And then use this list to do interpolation for
each property in `SampleAnimationForEachNode`, which will return a list of
`RefPtr<RawServoAnimationValue>`.

Depends on D23062

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:04:50 +00:00
Boris Chiou 7e88a77926 Bug 1425837 - Part 1: Move ToAnimationValue into AnimationValue. r=hiro
It seems this function uses some FFIs to generate the AnimationValue,
We could move it into AnimationValue class, although what we really need is
RefPtr<ServoAnimationValue>.

Maybe we should use AnimationValue everywhere, instead of the Servo type.
This could be done by other patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:04:44 +00:00
Cameron McCormack 187b9a230c Bug 1535517 - Don't schedule SVG text reflow in response to bidi resolution. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D23615

--HG--
extra : moz-landing-system : lando
2019-03-15 15:29:33 +00:00
Cameron McCormack 9cd8ebef9b Bug 1531890 - Take objectBoundingBox into account when a clipPath's child has its own clip-path. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D23612

--HG--
extra : moz-landing-system : lando
2019-03-19 01:18:21 +00:00
Bogdan Tara 84581c394f Backed out changeset 70440f88051f (bug 1535976) for /reftests/transform-3d/mask-layer* failures CLOSED TREE 2019-03-19 06:02:09 +02:00
Botond Ballo f4b5f0033f Bug 1531057 - In ScrollToRestoredPosition(), clamp the layout scroll offset being restored to the layout scroll range. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D23725

--HG--
extra : moz-landing-system : lando
2019-03-16 00:00:36 +00:00
Emilio Cobos Álvarez 5bf307c2a8 Bug 1535165 - Make the will-change bitfield use cbindgen. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D23414

--HG--
extra : moz-landing-system : lando
2019-03-18 18:08:08 +00:00
Emilio Cobos Álvarez 70e3f8ffcd Bug 1535165 - Use cbindgen for touch-action. r=dholbert
And rename the constants to not be prefixed by TOUCH_ACTION_, since that's part
of the type name anyway.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 18:01:55 +00:00
Emilio Cobos Álvarez e66fb8488c Bug 1535165 - Use cbindgen for text-decoration-line. r=dholbert,boris
Differential Revision: https://phabricator.services.mozilla.com/D23412

--HG--
extra : moz-landing-system : lando
2019-03-18 17:58:16 +00:00
Bogdan Tara df46c029a4 Backed out 3 changesets (bug 1535507) for webvtt/rendering/cues-with-video/processing-model/selectors/cue* failures CLOSED TREE
Backed out changeset f7a60828b0ad (bug 1535507)
Backed out changeset a9c6e9e27b17 (bug 1535507)
Backed out changeset f2061889974a (bug 1535507)
2019-03-19 02:49:55 +02:00
Bogdan Tara ddb22ded49 Backed out changeset c78ae1f1f538 (bug 1534693) for unexpected item fuzzy-if Android in reftest.list CLOSED TREE 2019-03-19 01:33:38 +02:00
Glenn Watson 7e08c517ab Bug 1535976 - Add a fast path for common rounded rect clips to WR. r=kvark
Most rounded rect clips in real content are (a) axis aligned and
(b) have uniform radii.

When these conditions are met, we can run a fast path for clip
mask generation that uses significantly fewer ALU shader ops.

This is not typically a bottleneck on desktop GPUs, but can have
a large performance impact on mobile GPUs (and perhaps low end
integrated GPUs).

The Mali shader analyzer reports the slow path for the rounded
rect clip shader to be 94 cycles per fragment, while the fast
path is 10 cycles.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 16:15:45 +00:00
Matt Woodrow 756b5124bc Bug 1525372 - Add background-clip:text rendering observer so that we get notified of changes to the clipped contents. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D20110

--HG--
extra : moz-landing-system : lando
2019-03-18 16:24:20 +00:00
Jonathan Kew 6746c8f733 Bug 1534693 - Bail out of font-family search in GlobalFontFallback once we've found a font with an exact style match. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D23162

--HG--
extra : moz-landing-system : lando
2019-03-18 16:28:19 +00:00
Matt Woodrow 43b084c81c Bug 1535507 - Assume that we have an empty display list building override rect for frames that support it, even if an explicit one isn't present. r=miko
If the frame supports it (stacking context + containing block for fixed), and a descendant was
modified, we would have created an override dirty region with just the area of that descendant.
In the case where no descendants are modified, we should use an empty rect, rather than
the area inherited from our parent.

This fixes the case where we forcibly build position:fixed frames (since they might async
scroll differently to the rest of the page), but we only need to build the container item,
not the whole frame subtree within it.

Added a test that shows us building the non-intersecting position:fixed, but not items within it.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 21:11:20 +00:00
Matt Woodrow 266099eaea Bug 1535507 - Don't create new display items for InvalidateLayer, since only the Layer tree should need to change. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D23609

--HG--
extra : moz-landing-system : lando
2019-03-18 21:11:06 +00:00
Matt Woodrow 665134f322 Bug 1535507 - Don't force display item rebuilding for ActiveLayerTracker expiry, since we should only need to update the Layer tree. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D23608

--HG--
extra : moz-landing-system : lando
2019-03-18 21:10:46 +00:00
Emilio Cobos Álvarez 09763b1ac3 Bug 1533201 - Make cssPropertySupportsType take an enum. r=heycam,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D22427

--HG--
extra : moz-landing-system : lando
2019-03-18 16:38:48 +00:00
Brad Werth 9a86c02a44 Bug 1501665 Part 10: Modify viewport resize zoom scaling to account for clamped zoom levels. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21291

--HG--
extra : source : 520dd24a73fc1a224c38c93ab91d36eecce727ed
2019-03-18 14:59:12 +00:00
Brad Werth 1f70e7449b Bug 1501665 Part 9: Early exit around an unnecessary call to UpdateVisualViewportSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21287

--HG--
extra : source : 3542bf2b89ddf170efe6c723a64f297868bc7db1
2019-03-18 14:58:49 +00:00
Brad Werth 16be774e5b Bug 1501665 Part 8: Allow MVM::RequestReflow to adjust resolution, and do so when destroying the MVM. r=botond
Currently the MobileViewportManager leaves somethings permanently changed
even after it is destroyed: it may have changed the resolution of
the Document, and it may have set a fixed size for the visual viewport.
Both of these changes need to be un-done to return to normal display of
the Document.

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

--HG--
extra : source : 088dc24eabc75eea96301d50550e0a8817f5f809
2019-03-18 14:58:31 +00:00
Brad Werth ba8e9742ef Bug 1501665 Part 7: Add a new function to allow visual viewport size to be un-set. r=smaug
Once nsIPresShell::SetVisualViewportSize is called, we currently have
no way to restore the default viewport sizing behavior. This corrects that.
We need the default behavior to get correctly-placed scrollbars when
turning off meta viewport handling in Responsive Design Mode panes.

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

--HG--
extra : source : 178210eb72baa05f877b3a35e0c94d0b23880d13
2019-03-18 14:58:07 +00:00
Brad Werth c2c75edc72 Bug 1501665 Part 5: Change UpdateShouldBuildAsyncZoomContainer to check if document is zoomable. r=botond
Also update ScrollFrameHelper::LayoutScrollbars() to correctly handle
overlay scrollbars when zoomed in in RDM.

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

--HG--
extra : source : 6a84e97d0e62839c3028a3c3ac89cd944f8e39e5
2019-03-18 14:57:20 +00:00
Brad Werth 7fc19a53b5 Bug 1501665 Part 4: Use the new function as a replacement for APZAllowZooming. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D19239

--HG--
extra : source : cf42ea4e8443cdcb5f446dfb95d92d5998f55f24
2019-03-18 14:56:55 +00:00
Brad Werth 83ef115c9e Bug 1501665 Part 3: Add a new function to determine if a document can use resolution zooming. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D19238

--HG--
extra : source : 731d7ee06d86794fb9ec58b32f1495ad11205a1c
2019-03-18 14:56:32 +00:00
shindli b7de66af4f Backed out 13 changesets (bug 1501665) for failing a11y tests in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset 2fa518cb0dfc (bug 1501665)
Backed out changeset afaf26d7df42 (bug 1501665)
Backed out changeset 5bdf0ad9dc66 (bug 1501665)
Backed out changeset 520dd24a73fc (bug 1501665)
Backed out changeset 3542bf2b89dd (bug 1501665)
Backed out changeset 088dc24eabc7 (bug 1501665)
Backed out changeset 178210eb72ba (bug 1501665)
Backed out changeset 9eebe767ef20 (bug 1501665)
Backed out changeset 6a84e97d0e62 (bug 1501665)
Backed out changeset cf42ea4e8443 (bug 1501665)
Backed out changeset 731d7ee06d86 (bug 1501665)
Backed out changeset 8e0afe4a041a (bug 1501665)
Backed out changeset be1026de486b (bug 1501665)
2019-03-18 18:08:58 +02:00
Emilio Cobos Álvarez ac54c9333b Bug 1534494 - Try to bring some more sanity into our font code. r=manishearth
It's not very easy to understand on its current state, and it causes subtle bugs
like bug 1533654.

It could be simpler if we centralized where the interactions between properties
are handled. This patch does this.

This patch also changes how MathML script sizes are tracked when scriptlevel
changes and they have relative fonts in between.

With this patch, any explicitly specified font-size is treated the same (being a
scriptlevel boundary), regardless of whether it's either an absolute size, a
relative size, or a wide keyword.

Relative lengths always resolve relative to the constrained size, which allows
us to avoid the double font-size computation, and not give up on sanity with
keyword font-sizes.

I think given no other browser supports scriptlevel it seems like the right
trade-off.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 15:37:03 +00:00