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

12392 Коммитов

Автор SHA1 Сообщение Дата
Bobby Holley dd9a4ea85c Bug 1376884 - Add a tweaked version of our existing invalidation stress test that runs parallel in adaptive mode. r=me
MozReview-Commit-ID: 8AjqX6y4FCI
2017-08-25 22:50:44 -07:00
Wes Kocher 7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Wes Kocher 68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
Nazim Can Altinova 9c729626a5 Bug 1367860 (part 4) - Update CSS fallback font when lang changes (stylo). r=manishearth
MozReview-Commit-ID: AeBHXc0mIVn
2017-08-18 14:42:13 -07:00
Kevin Hsieh 13b2e9b2ef Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron
MozReview-Commit-ID: 5kBHhvacxbS
2017-08-18 12:56:02 -07:00
Kevin Hsieh f06719d4ed Bug 1367860 (part 2) - Update CSS fallback font when lang changes. r=dbaron
MozReview-Commit-ID: 1VzxKnJJ1kD
2017-08-18 11:30:21 -07:00
Kevin Hsieh 64b2dce89a Bug 1367860 (part 1) - Handle CSS font-family units using switch instead of if. r=dbaron
MozReview-Commit-ID: DBwSHM8kfGP
2017-08-18 11:26:44 -07:00
Nazım Can Altınova acd63fe809 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : 3dcdbb663e51ddc539c8aabd075e7374f3dbe667
2017-08-13 23:06:33 -07:00
Nazım Can Altınova b2b88364dd Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : 6c774e87b8bd3f30d819302aba5a73a50047981a
2017-08-23 18:05:53 -07:00
Bill McCloskey 9cd553af84 Bug 1350432 - Remove mEventObservers to SynchronizedEventQueue (r=froydnj)
MozReview-Commit-ID: 8Xt1gdxFDr4
2017-08-25 10:28:23 -07:00
Manish Goregaokar 6a71487e1d Bug 1393580 - Add crashtest; r=emilio
MozReview-Commit-ID: CCTkfzhsbAF
2017-08-25 09:35:21 -07:00
Sebastian Hengst 2e163c99b1 Backed out changeset 1bfbae351dd7 (bug 863246) 2017-08-25 16:43:44 +02:00
Emilio Cobos Álvarez c5ba418ffa Bug 1387913: Make sure to update the stylist if needed on EnsureUniqueInnerOnCSSSheets. r=heycam
MozReview-Commit-ID: 3eKd78qMC1T

--HG--
extra : rebase_source : b317f0e12f769d39a7cbae66d9147c52d40cffea
2017-08-22 20:36:14 +02:00
Gregory Szorc 2a5e786286 Backed out changesets b749fc196a50, 2791eac8d760 (bug 1355721) for build bustage
CLOSED TREE

--HG--
extra : amend_source : 7618f27e1cf71347f12384935374d303d5c1ab23
extra : histedit_source : 1143d226673ace563bb5d9ff3c420ded33439791%2C9746a30097304bd2214a0072773dc00c767d31cd
2017-08-24 20:30:17 -07:00
Nazım Can Altınova 75f1f81153 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : c2772a233015b1ff419716ff9e34926d4a1a949f
2017-08-13 23:06:33 -07:00
Nazım Can Altınova 00f1cc4565 Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : c104c2b09ebfbf5cdb98bc5638473cac1bfc40c9
2017-08-23 18:05:53 -07:00
Brad Werth c946e3ebb0 Bug 1387933 Part 2: Gecko-side add a reusable sheets parameter to Servo_StyleSheet_FromUTF8Bytes, and mark a test as passing. r=xidorn
MozReview-Commit-ID: 9wqJW3SqbbM

--HG--
extra : rebase_source : 2d6711c411ec5ef22866a4b3aefcbd9c70619f31
2017-08-22 13:53:53 -07:00
Brian Birtles efd02d2a25 Bug 1339648 - Fix flaky file_transitions_replacement_on_busy_frame.html test; r=hiro
There are two issues with this test:

(a) It fails to flush style when it intends to trigger the first transition.

    Specifically, `getComputedStyle(div)` alone does not flush style. Instead we
    need `getComputedStyle(div).transform`.

    This patch replaces that line with a call to `div.getAnimations()` which
    *does* flush style ensuring the first transition is triggered.

(b) It fails to ensure that the first transition has progressed past the first
    frame on the main thread before triggering the second transition.

    If the first transition is still on its first frame, the computed value of
    'transform' will be 'matrix(1, 0, 0, 1, 0, 0)'. If we then update the
    specified value of 'transform' to 'translateX(0px)', no transition will be
    generated (although the first transition will be canceled) since there is no
    change.

    This patch fixes that by making the end point of the second transition NOT
    match the start point of the first transition (and not be somewhere inside
    the range of the first transition).

As an extra precautionary measure, to be sure that the animation has started
progressing on both the main thread and compositor, this patch alters the
initial wait condition for the first transition to also wait on the first
transition's ready promise.

MozReview-Commit-ID: E1OJuHBSMfr

--HG--
extra : rebase_source : aede0fa00f261e1c7d1be61857b6fd0537a0f7e7
2017-08-23 18:17:31 +09:00
Ting-Yu Chou a472c6ecc1 Bug 1391500 - Fix the new-delete-type-mismatch error that ASan reports. r=Ehsan
MozReview-Commit-ID: 1iGtltDGj3T

--HG--
extra : rebase_source : d667cb31f15978046cec9a5fabd9b246b838a780
2017-08-18 11:39:14 +08:00
Jeremy Chen a5541e04c1 Bug 1375332 - stylo: move minimum font size applying into the default constructor of nsStyleFont. r=emilio
In Stylo, we read font related user prefs to set the default font size only
if we set 'font-size' property. However, users are allowed to set their
preferred minimum font size through the user prefs, even without using
'font-size' property.

Gecko used to do this in nsRuleNode::SetDefaultOnRoot, which calles the
default constructor of nsStyleFont and does the minimum font size applying
right after. Moving the minimum font size applying into the default
constructor of nsStyleFont shoud be no harm to Gecko, but makes Stylo
share the same code path and behave the same.

MozReview-Commit-ID: BDcJX92o0uR

--HG--
extra : rebase_source : 88d9c73d0eb793ffe8a5dc424361f21f6acd078b
2017-08-23 18:14:03 +08:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07: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
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
Bobby Holley 7210bd7226 Bug 1383332 - Track the restyle root and use it to do less work during the traversal. r=emilio
MozReview-Commit-ID: A8O3JOpsv4E
2017-08-22 21:19:24 -07: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
Mantaroh Yoshinaga b6477dc29c Bug 1387986 - Enable stroke-* test of test_transitions_per_property.html on Servo. r=birtles
MozReview-Commit-ID: 6OGzMPAEP6K

--HG--
extra : rebase_source : 6ea430757a0a79b6c3537ec4de208565dd47a149
2017-08-22 13:45:46 +09:00
Nathan Froyd 4524b05ac2 Bug 1387218 - label StyleImageRequestCleanupTask; r=billm 2017-08-22 20:52:22 -04: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
Boris Chiou 3453068a19 Bug 1387990 - Remove skipped transform tests and fix animation utils. r=birtles
Sometimes, we may get a 2d transform matrix like this:
  matrix(0, 1, -1, 0.33, 0, 0)
The reason is we might have "rotate(90deg)" in the test case, so the 1st or
the 4th element could be 0.0, and we shouldn't assume they are 1.0 while
converting matrix2d into matrix3d, or we will get a weird result, like this:
  matrix3d(1, 1, 0, 0,
          -1, 0.33, 0, 0,
           0, 0, 1, 0,
           0, 0, 0, 1)
m11 shouldn't be "1" here.

Add a "defined()" function to return the first defined object as the
matrix element because we should be testing the defined-ness, instead of
truthiness.

MozReview-Commit-ID: HSTt2PR02AU

--HG--
extra : rebase_source : 417438239635f9bbf0eb4818b39c611ab90b9a10
2017-08-18 18:08:34 +08:00
J. Ryan Stinnett 2c635e5c43 Bug 1392447 - Fix up Servo_StyleSheet_GetOrigin for Linux 32-bit ABI. r=emilio
Bindgen bitfield enums don't work as return values with the Linux 32-bit ABI at
the moment because they wrap the value in a struct.

This causes the Rust side to believe the caller will pass along space for the
struct return value, while C++ believes it's just an integer value.

MozReview-Commit-ID: JHDp0XAmQCG
2017-08-22 14:54:20 -05:00
Sebastian Hengst de6f7dc3a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-25 13:21:40 +02:00
Nicholas Nethercote ccabc0fa19 Bug 1393636 (part 5) - Report memory usage of Gecko style structs separately. r=heycam.
A lot of this involves copy-pasting the existing Servo style structs code.

Note that nsArenaSizes had to be moved after nsStyleSizes, because the former
now contains an instance of the latter.

MozReview-Commit-ID: 3hrkobxbX9b

--HG--
extra : rebase_source : f6b29bd7cb9bd60f2da65f5f907e161299333287
2017-08-25 14:59:44 +10:00
Nicholas Nethercote f2751f3072 Bug 1393636 (part 4) - Move ComputedValues measurements from nsStyleSizes to nsWindowSizes. r=heycam.
Another plumbing-only change, which is a precursor for the next patch.
ComputedValues are a Servo-only thing, so in order to use nsStyleSizes for both
Gecko and Servo, the ComputedValues sizes must be moved out.

MozReview-Commit-ID: BOnQSzzV0vC

--HG--
extra : rebase_source : 025c6161e509401a36525349083dd98bfda35621
2017-08-25 14:50:26 +10:00
Nicholas Nethercote 7e120ce35e Bug 1393636 (part 3) - Pass nsWindowSizes to more AddSizeOf*() functions. r=heycam.
This is a purely non-functional plumbing change. Instead of passing a
SizeOfState and an nsStyleSizes a bunch of places, we pass an nsWindowSizes,
which contains both of them.

This is a necessary precursor for the next patch.

MozReview-Commit-ID: Ek03wDM50rB

--HG--
extra : rebase_source : 7b05708bd21dc4e3812ea041647fa74bb413d0b9
2017-08-25 14:47:54 +10:00
Sebastian Hengst 2f56a032cd merge mozilla-central to autoland. r=merge a=merge 2017-08-22 11:50:08 +02:00
Ting-Yu Lin c7dc325aed Bug 1388165 - Clear mPresContext after creating XBL styleset. r=xidorn
MozReview-Commit-ID: VBmKMTt8lc

--HG--
extra : rebase_source : e2b16da8f3d9c55a1485558f76285dc10c39b530
2017-08-22 14:46:25 +08:00
Nicholas Nethercote ac72ddb583 Bug 1390760 - Measure ServoComputedData::visited_style. r=bholley.
For the Obama wikipedia page, this covers about 85% of the unmeasured
ComputedValues structs. The about:memory output looks like this:

> +---2,443,648 B (02.41%) -- computed-values
> |   +--1,088,272 B (01.07%) -- dom
> |   +----945,744 B (00.93%) -- non-dom
> |   +----409,632 B (00.40%) -- visited

I'm not sure why some CVs are still being missed.

MozReview-Commit-ID: 1bYWwSi4ihn

--HG--
extra : rebase_source : 14e4bd36a54bbbd8fd265f559704bec5a5e3b154
2017-08-21 16:07:16 +10:00
Chung-Sheng Fu bb279d6d5e Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8

--HG--
extra : rebase_source : b0cf8d159ba6bfa6e7bcd9528ae2f9851185ac30
2017-06-08 17:52:46 +08:00
James Willcox 2b6d28deca Bug 1369815 - Add mochitest for additional display modes r=heycam
MozReview-Commit-ID: 3ADmC1op4Sj
2017-08-22 09:08:39 -05:00
James Willcox f029ff1bf4 Bug 1369815 - Add display mode to nsIDocShell and use it for media queries r=heycam
MozReview-Commit-ID: EVT0fTk6GfC
2017-08-22 09:08:39 -05:00
Emilio Cobos Álvarez 977a701ae1 Bug 1392093: Remove dead code to get the old style context. r=heycam
Unused since https://github.com/servo/servo/pull/18153.

MozReview-Commit-ID: DtQdm3ONS5E

--HG--
extra : rebase_source : 8a781dfdd4963b73c0f6a0c5bc2de8041bcc0db9
2017-08-20 18:01:25 +02:00
Brian Birtles ac44c390db Bug 1385139 - Expand var() references in keyframes from CSS animations when serializing; r=hiro
This is a temporary step until we implement bug 1391537. It is needed to
maintain consistent behavior with Gecko and provide sensible output,
particularly in the case where we have longhands whose values are drawn from
unparsed shorthands.

MozReview-Commit-ID: 9aD2tsLagBp

--HG--
extra : rebase_source : cdabb26be17b96a574ea8b2e8093e11abb1af430
2017-08-21 12:35:35 +09:00
Brian Birtles a09985ac81 Bug 1385139 - Add test for changes to CSS variables; r=hiro
This test passes both before and after the code changes in the following patch
in this series. However, both tests fail if we try to expand variables in
Servo_StyleSet_GetKeyframesForName.

MozReview-Commit-ID: LHOsK39WDLq

--HG--
extra : rebase_source : 225cfccbf439c35df943d0aed969825051354dec
2017-08-21 10:32:37 +09:00
Sebastian Hengst 54d8b1efae merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1yS8D5e0Ejz
2017-08-20 23:24:15 +02:00
Emilio Cobos Álvarez 2b074ed3a4 Bug 1391787: Mutex out the system color stuff. r=Manishearth
GTK is definitely not thread-safe, and unless proven otherwise, I suspect the
other widgets aren't either.

Mutex the calls to get the system color stuff.

There are chances to make this more fine-grained moving the mutexes into the
specific widget code and when needed. That is more analysis work which I'm not
sure we should waste time on, since the chances on racing here seem quite
unlikely in practice (system colors are uncommon enough in content, I guess).

MozReview-Commit-ID: AOQQ2jtkgpx
2017-08-20 18:19:19 +02:00
Emilio Cobos Álvarez 69bb02b53d Bug 1391577: Crashtest. r=heycam
MozReview-Commit-ID: I8th7nMpwnJ

--HG--
extra : rebase_source : 81342a197eb5bd36dfcd64dc4755a2c5413bfffc
2017-08-20 09:15:58 +02:00
Boris Chiou 019a8f16fa Bug 1389429 - Part 2: Update test_transitions_per_property.html for rotatex and rotatey. r=birtles
MozReview-Commit-ID: DRV4R0JRGkU

--HG--
extra : rebase_source : 0e01dfa613885dc123577e5e4c9fa38604af3f2c
2017-08-16 11:20:53 +08:00
Nazım Can Altınova 1e119a0070 Bug 1391432 - stylo: Add test cases for -moz-linear-gradient with single keyword r=emilio
MozReview-Commit-ID: EohV57mnQKy

--HG--
extra : rebase_source : 0b21d3ac1b302e6af0ae798f4b81f0011b98d97a
2017-08-17 15:57:25 -07:00
Boris Chiou d8f7b71ccb Bug 1362896 - Part 1: Fix the computation of distance for non-normalizable direction vector of rotate3d. r=birtles
MozReview-Commit-ID: GuT9vocccuN
2017-08-18 22:17:41 +08:00