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

65248 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 27250792bc Bug 1479240: Make system metric queries always return false instead of not matching for fingerprinting-resistance. r=heycam
Looks like these used this mechanism for no great reason, and actually doing
this exposes trivially whether fingerprinting-resistance is enabled, which looks
like an anti-goal (if a media query parses correctly, and doesn't match either 1
or 0, then fingerprinting-resistance is enabled).

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

MozReview-Commit-ID: 76tIIkwlpeP
2018-07-31 12:55:59 +02:00
shindli eb2f38acfb Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-31 13:09:14 +03:00
Emilio Cobos Álvarez 6c81e2e79c Bug 1479450: Convert GetStringValue to use Servo. r=xidorn
And remove gPropertyTable / kCSSRawProperties while at it.

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

MozReview-Commit-ID: 8U87BcBkrJF
2018-07-31 12:05:00 +02:00
Emilio Cobos Álvarez 2996813963 Bug 1479450: Implement nsCSSProps::LookupProperty using Rust. r=xidorn
Always assume allowed-for-all-content. There are a couple callers which weren't
doing that:

 * A unit test -> removed.

 * ComputeAnimationDistance: Used for testing (in transitions_per_property), and
   for the animation inspector. The animation inspector shouldn't show
   non-enabled properties. The transitions_per_property test already relies on
   getComputedStyle stuff which only uses eForAllContent.

 * GetCSSImageURLs: I added this API for the context menu page and such. It
   doesn't rely on non-enabled-everywhere properties, it was only using
   eInChrome because it was a ChromeOnly API, but it doesn't really need this.

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

MozReview-Commit-ID: 4VOi5Su3Bos
2018-07-31 12:00:15 +02:00
Emilio Cobos Álvarez 1ad081c136 Bug 1479681: Fix the loop in nsTransitionManager dealing with stopping `all` transitions. r=hiro
The loop was mutating the nsCSSPropertyID used to guard the exit, which is
obviously wrong.

This branch is pretty rarely taken, since people don't usually specify `all` as
a transition property other than the first, for which case we take the fast path
with `checkProperties = false`. Our test-suite failed to catch this.

Added a crashtest that hangs without this patch.

The reason bug 1478990 regressed this is because it changed the order of
nsCSSPropertyID so that `p` actually went backwards causing the infinite loop,
but the bug was introduced (by me, whoops) in bug 1309752.

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

MozReview-Commit-ID: Ii3D1FaZ31R
2018-07-31 11:54:41 +02:00
Emilio Cobos Álvarez 196560b95f Bug 1479681: Fix the loop in nsTransitionManager dealing with stopping `all` transitions. r=hiro a=aryx
The loop was mutating the nsCSSPropertyID used to guard the exit, which is
obviously wrong.

This branch is pretty rarely taken, since people don't usually specify `all` as
a transition property other than the first, for which case we take the fast path
with `checkProperties = false`. Our test-suite failed to catch this.

Added a crashtest that hangs without this patch.

The reason bug 1478990 regressed this is because it changed the order of
nsCSSPropertyID so that `p` actually went backwards causing the infinite loop,
but the bug was introduced (by me, whoops) in bug 1309752.

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

MozReview-Commit-ID: Ii3D1FaZ31R

--HG--
extra : source : 78be4bbf4b050f6614bb9f4115f57fb61f4890df
2018-07-31 11:32:53 +02:00
Coroiu Cristina 09c6bcc2ca Merge mozilla-central to autoland a=merge 2018-07-31 05:05:39 +03:00
Coroiu Cristina 6ba5f27325 Backed out 4 changesets (bug 1477693) for perma-failing reftests at tests/layout/reftests/svg/smil/transform/scale-1-ref.svg a=backout
Backed out changeset 069ad25949f3 (bug 1477693)
Backed out changeset 34f12e5543aa (bug 1477693)
Backed out changeset 864e12713e98 (bug 1477693)
Backed out changeset fa4d0ff6f779 (bug 1477693)
2018-07-31 05:02:33 +03:00
Ryan Hunt 0992c716bf Bug 1476724 - Follow up. Mark the css-ui-invalid/**/button.html as fuzzy, not css-invalid/**/button.html. r=me
--HG--
extra : rebase_source : 2087cf1f9676d96b8b841eb914098f3dca6d5e71
extra : source : 9eeb3d73d697574708978995a26549dc73df4050
2018-07-30 10:43:57 -05:00
Miko Mynttinen f0923000a3 Bug 1479092 - Fix comments and whitespace. r=me
--HG--
extra : rebase_source : 2c76ad061319e886659b645efdac7601907050a2
2018-07-30 16:33:07 +02:00
Coroiu Cristina 70216eda0a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-07-31 01:02:15 +03:00
Matt Woodrow 1c14c56cce Bug 1475971 - Copy the building rect into old items when we decide we can reuse them. r=miko
MozReview-Commit-ID: JXHZ17iFaei

--HG--
extra : rebase_source : 42fc06465a644de597f78e46878037b653da046e
2018-07-30 16:03:32 +12:00
Emilio Cobos Álvarez 4d76331dcf Bug 1479012: Improve logging for attribute changes. r=xidorn
And general Element logging. We now print all the attributes for comparison.

If this turns out to be too verbose we can change it to diff them or something.

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

MozReview-Commit-ID: 1Gl9AumdnvZ
2018-07-30 14:19:30 +02:00
Emilio Cobos Álvarez dbf24cdab5 Bug 1478990: Make NonCustomPropertyId <-> nsCSSPropertyId conversions fast. r=xidorn
We have a different order in nsCSSPropertyId for no good reason. The only
invariant there is that longhands come before shorthands, and shorthands before
aliases.

Luckily that's also an invariant that NonCustomPropertyId has, so we can reuse
them.

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

MozReview-Commit-ID: 1hsQu6hmqiN
2018-07-30 12:51:19 +02:00
Emilio Cobos Álvarez f8c5ea739f Bug 1466614: Remove a no longer used function. r=me CLOSED TREE
MozReview-Commit-ID: GBFaR3SNY0F
2018-07-30 12:00:57 +02:00
Andreea Pavel 048663ea0a Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-30 12:56:08 +03:00
Emilio Cobos Álvarez 3aaf4c171a Bug 1466614: Remove -moz-windows-theme. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D2492

MozReview-Commit-ID: 70vOmLH7C27
2018-07-30 11:38:46 +02:00
Emilio Cobos Álvarez 051e9a8579 Bug 1479239: prefers-reduced-motion should be sensible re. unsupported platforms / resistFingerprinting. r=hiro
With the current early-returning behavior, the expression will unconditionally
evaluate to false, which is a bit of a footgun.

Make sure to always return no-preference in unsupported platforms or when
resisting fingerprinting.

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

MozReview-Commit-ID: 41uUudut7b4
2018-07-29 04:46:34 +02:00
Hiroyuki Ikezoe 9cb3bb79e5 Bug 1479133 - Use AnimationInfo::GetGenerationFromFrame to get the animation generation for WebRender. r=birtles
WebRender has no layers at all.

MozReview-Commit-ID: 7qYE8vONfU9

--HG--
extra : rebase_source : 58e0853ce4f694bfb32e7fa34ef37db6db511185
2018-07-30 11:20:53 +09:00
Hiroyuki Ikezoe 0ffcf23607 Bug 1478643 - Apply change hints for transform animation in the case where the current transform style is 'none' and no change hint produced in AddLayerChangesForAnimation. r=birtles
The applying change hints are the same as what we apply for transform style
changed from something to 'none'.

All test cases pass with this fix fail without the fix.

MozReview-Commit-ID: 7HStU26lRPq

--HG--
extra : rebase_source : 701361d477ab7954ab15fde75fd40d98724e47b3
2018-07-30 11:13:54 +09:00
Hiroyuki Ikezoe 66cfd53581 Bug 1478643 - Introduce a new change hint set for added or removed transform style. r=birtles
MozReview-Commit-ID: GfK1e5QaOu6

--HG--
extra : rebase_source : c6e28e7fabb43f54d04e756865a652fc4752ce30
2018-07-30 10:51:18 +09:00
Miko Mynttinen caf9b6a162 Bug 1479092 - Reuse clips for consecutive effects during painting, if possible r=mattwoodrow
MozReview-Commit-ID: 8bpWDa3JTMu

--HG--
extra : rebase_source : 02c3c57c54298dae38fed74432e408d590c2da67
2018-07-27 21:44:10 +02:00
Miko Mynttinen 605b909841 Bug 1479091: Add fast-path for items inside effects r=mattwoodrow
MozReview-Commit-ID: GNMxePW4R9e

--HG--
extra : rebase_source : 74683799fcb5182db2e376d2e9af13eaa6b3832a
2018-07-27 22:17:59 +02:00
Miko Mynttinen 7bd6d0d2a6 Bug 1477693 - Part 4: Add a reftest r=mattwoodrow
MozReview-Commit-ID: 3xGRchvAKeC

--HG--
extra : rebase_source : 1543f92e3b123c1316183c961dcc40121db779cb
2018-07-26 00:25:08 +02:00
Miko Mynttinen 536d27c7f5 Bug 1477693 - Part 3: Refactor FrameLayerBuilder invalidation functions to better handle different coordinate spaces r=mattwoodrow
MozReview-Commit-ID: 1NDcg88a1Ge

--HG--
extra : rebase_source : a4e5c424570239604b285e19bb57fc7a97a63381
2018-07-26 00:22:33 +02:00
Miko Mynttinen e38b4b8fbd Bug 1477693 - Part 2: Do not allow implicit cast between rect and region with InvalidatePostTransformRegion() r=mattwoodrow
MozReview-Commit-ID: LjIhBb2JjQ

--HG--
extra : rebase_source : bb7273882b4c3db3ef339f2862144f0e8531e625
2018-07-25 22:41:03 +02:00
Miko Mynttinen 83730e5618 Bug 1477693 - Part 1: Move TransformClipNode and TransformWithNode functions to TransformClipNode.h r=mattwoodrow
MozReview-Commit-ID: 13uSenWdNXJ

--HG--
extra : rebase_source : 6847b970fecc141e6968134afcec6aebafdfc3c0
2018-07-25 21:58:22 +02:00
Miko Mynttinen 1f7081c0aa Bug 1477831 - Merge items in FLBDisplayItemIterator r=mattwoodrow
MozReview-Commit-ID: AWxVue3tjN1

--HG--
extra : rebase_source : 94a3a2bbc70b2259c7ad0caeaec62fc10770b872
2018-07-24 16:31:04 +02:00
Kris Maglione 031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Kris Maglione 02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Emilio Cobos Álvarez 726673649b Bug 1479230: Remove useless condition in GetPrefersReducedMotion. r=hiro
This query is always enabled in content, so this check is always true.

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

MozReview-Commit-ID: 5etk5TM0agz
2018-07-29 03:01:08 +02:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Kris Maglione 636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Emilio Cobos Álvarez 8c4ec8b3ba Bug 1479216: Restore the order of Scrollbarbutton appearance values. r=xidorn
The patch at bug 1478391 comment 6 changed the way the math in Scrollbarbutton*
worked, which pretty surely caused this.

Restore the original order and math to be the same as before bug 1478391.

MozReview-Commit-ID: CK3iOqeX2NW
2018-07-29 01:02:44 +02:00
Emilio Cobos Álvarez 638c015ba9 Bug 1477198: Remove Document.obsoleteSheet. r=bz
Not used anywhere, not even comm-central or bluegriffon.

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

MozReview-Commit-ID: LGefiaYSZjT
2018-07-29 00:34:33 +02:00
Jonathan Kew 3cc77c781a Bug 1476437 - Correct original-text indexing when checking for explicit hyphens in text where auto-hyphenation is enabled. r=dbaron 2018-07-28 09:23:36 +01:00
Jonathan Kew 4e010be0d4 Bug 1476437 - Further reftest for multi-line content with whitespace/explicit-hyphen/autohyphenation. r=dbaron 2018-07-28 09:23:30 +01:00
Jonathan Kew d849719565 Bug 1476437 - Reftest for interaction between whitespace collapsing, explicit hyphen, and auto-hyphenation. r=dbaron 2018-07-28 09:23:26 +01:00
Jonathan Kew 1f26457015 Bug 1478574 - Fix off-by-one error in marking explicit hyphens, so we don't introduce spurious pre-hyphen breaks. r=dbaron 2018-07-28 09:23:11 +01:00
Jonathan Kew 0760fbe9f0 Bug 1478574 - Reftest for interaction of explicit hyphen and auto-hyphenation in the same word. r=dbaron 2018-07-28 09:22:44 +01:00
Tiberius Oros 339c5c47b4 Backed out 5 changesets (bug 1476437, bug 1478574) for failing hyphenation-control-5.html on windows builds on a CLOSED TREE
Backed out changeset d8d3c9e7b832 (bug 1476437)
Backed out changeset 280aff154491 (bug 1476437)
Backed out changeset e17db916959e (bug 1476437)
Backed out changeset 144a3d2b7da9 (bug 1478574)
Backed out changeset edb45de7ff9d (bug 1478574)
2018-07-28 13:22:54 +03:00
Jonathan Kew 5a78d19b4f Bug 1476437 - Correct original-text indexing when checking for explicit hyphens in text where auto-hyphenation is enabled. r=dbaron 2018-07-28 09:23:36 +01:00
Jonathan Kew ab90d74d3e Bug 1476437 - Further reftest for multi-line content with whitespace/explicit-hyphen/autohyphenation. r=dbaron 2018-07-28 09:23:30 +01:00
Jonathan Kew 52a0a53efd Bug 1476437 - Reftest for interaction between whitespace collapsing, explicit hyphen, and auto-hyphenation. r=dbaron 2018-07-28 09:23:26 +01:00
Jonathan Kew cb26a6d16d Bug 1478574 - Fix off-by-one error in marking explicit hyphens, so we don't introduce spurious pre-hyphen breaks. r=dbaron 2018-07-28 09:23:11 +01:00
Jonathan Kew f0c754d00d Bug 1478574 - Reftest for interaction of explicit hyphen and auto-hyphenation in the same word. r=dbaron 2018-07-28 09:22:44 +01:00
Cosmin Sabou d71fce60ce Merge mozilla-central to mozilla-inbound. a=merge 2018-07-28 01:56:40 +03:00
dvarga d8ac8507c9 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 25781a5ccee21a19f5c6ccacc2c96ab7eb4ed6b5
2018-07-28 01:32:38 +03:00
Jeff Gilbert 0e128a3868 Bug 1470985 - s/PodEqual/ArrayEqual/ from ArrayUtils.h. - r=waldo
We can't use memcmp to compare PODs, largely because of undefined
padding. The rest of the Pod* functions are fine though, since we're
replicating or zeroing PODs.

MozReview-Commit-ID: LSspAi8qCWw
2018-07-27 14:11:18 -07:00