Commit Graph

59482 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
0b1c2eb45e Bug 1389743: Remove various Stylo hacks to deal with XBL edge cases. r=heycam
MozReview-Commit-ID: HN7PfsNrh9e

--HG--
extra : rebase_source : 13a607fbc45285a23a0a107853dcc9be9c1200f7
2017-08-13 20:44:58 +02:00
Emilio Cobos Álvarez
1e6e97fed1 Bug 1389743: Only reconstruct frames synchronously from ContentRemoved when called from frame construction. r=mats
There's only one case of sync frame construction from ContentRemoved now, and
it's not on the element being removed, but on the whitespace siblings if needed,
and _only_ when they don't support lazy frame construction.

Basically, this switches all the RecreateFramesForContent calls to use
`aAsyncInsert` (which I changed to an enum class for readability), except when
we're already reframing.

Also, it switches ReframeTextIfNeeded to opt-in into lazy frame construction,
since it's used only when aFlags == CONTENT_REMOVED.

This allows to simplify the DestroyFramesFor API (which I'm happy to rename to
something more meaningful, since now it's something like
DestroyFramesForAndRecreateThemAsync), and do some other consistency cleanups.

A bunch of the ContentRemoved callsites were pretty random at passing
aAsyncInsert, and that was some kind of a mess. This patch ensures consistency,
and makes it impossible to do O(n^2) work when removing DOM nodes, which is
nice.

The underlying reason for this is explained in the description of bug 1377848,
and basically allows us to remove a bunch of Servo hacks on the longer term (a
few of them are going away already, yay!).

MozReview-Commit-ID: 2DrUTxGV8RX

--HG--
extra : rebase_source : f428d839a5482477dea22c0fea600d54f3e8799c
2017-08-23 09:58:57 +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
Francois Marier
95ce2d4568 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : ae06a028c71eee323307ecd4e62bbf1e8a14fe13
2017-08-22 17:56:20 -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
207dd28c61 Backed out 4 changesets (bug 1385484) for build failures a=backout
Backed out changeset 401c2744f16b (bug 1385484)
Backed out changeset 2ff443a0c744 (bug 1385484)
Backed out changeset 1a1c476a9aaa (bug 1385484)
Backed out changeset 87ec064a3681 (bug 1385484)

MozReview-Commit-ID: D9WGXiXaNoZ

--HG--
extra : rebase_source : ebab6135905e972abf7eeab9af8db41454687373
2017-08-22 17:22:41 -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
Honza Bambas
51907c6b32 Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
Francois Marier
7975ef15d4 Bug 1385484 - Ensure that login reputation checks are disabled in tests. r=hchang
The login reputation checks depend on a server lookup and therefore would
render non-deterministic the performance and correctness of tests.

MozReview-Commit-ID: Bil0rSZsGPT

--HG--
extra : rebase_source : c9a641e4bf49c48bf864ed546bf2ae6eb51c27e4
2017-08-08 16:25:12 -07:00
Masatoshi Kimura
5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09: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
2f56a032cd merge mozilla-central to autoland. r=merge a=merge 2017-08-22 11:50:08 +02:00
Sebastian Hengst
75955d0246 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8fJX1xXgzhD
2017-08-22 11:49:04 +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
Wes Kocher
7459418fd6 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4
2017-08-21 16:16:29 -07:00
Ethan Lin
d592c08612 Bug 1387994 - Ensure the draw target when initializing the canvas context. r=nical
MozReview-Commit-ID: DxqoywKaSbE

--HG--
extra : rebase_source : 142dea1433db50600fa73d5b0ed3d2eb9c584732
2017-08-10 15:04:42 +08:00
Ethan Lin
d9862646f9 Bug 1391996 - Move some checks from nsDisplayText::GetLayerState to constructor to prevent ambiguous status. r=jrmuizel
MozReview-Commit-ID: QPSIqLz56p

--HG--
extra : rebase_source : 1c4db4b0111126b79f4d3e5ab8f693545f1cbd70
2017-08-21 14:52:31 +08:00
Jonathan Kew
234e8a8ef2 Bug 1391717 - Update imported CSS tests in layout/reftests/w3c-css/received. r=dholbert 2017-08-21 21:11:32 +01:00
Jonathan Kew
734895ccf7 Bug 1364714 - Adjust reftest text-emphasis-line-height-001z.html to avoid potential unwanted scrollbar. r=dholbert 2017-08-21 14:37:46 +01:00
Jonathan Kew
aa0d9ce1d7 Bug 1364714 - Adjust dimensions in fixed-table-layout-010 tests to allow for increased font metrics without disrupting layout of test elements. r=dholbert 2017-08-21 14:37:43 +01:00
Jonathan Kew
a996067c9b Bug 1364714 - Increase line-height in some ruby reftests to allow for default font with larger metrics. r=dholbert 2017-08-21 14:37:41 +01:00
Jonathan Kew
6cb6d8d95d Bug 1364714 - Adjust fuzzy() annotation for pre-line-1 test to account for change in freetype's font rendering. r=dholbert 2017-08-21 14:37:37 +01:00
Jonathan Kew
8ecce523ed Bug 1364714 - Adjust fuzzy() annotation for table-background test to allow for change in freetype's rendering. r=dholbert 2017-08-21 14:37:35 +01:00
Jonathan Kew
497c91f7b3 Bug 1364714 - Add fuzzy() annotation to mathml-mmultiscript test to allow for changed freetype rendering. r=dholbert 2017-08-21 14:37:32 +01:00
Jonathan Kew
4ac410c6cd Bug 1364714 - Modify text to avoid possibly-overflowing descender in last line of orthogonal float. r=dholbert 2017-08-21 14:37:29 +01:00
Jonathan Kew
cad3d5c213 Bug 1364714 - Set explicit line-height in position-relative tests, to avoid fragile dependence on default font's metrics. r=dholbert 2017-08-21 14:37:25 +01:00
Jonathan Kew
f3cae15008 Bug 1364714 - Set explicit line-height on background-position-vrl-018-ref file for better reliability. r=dholbert
(Already fixed upstream via https://github.com/w3c/web-platform-tests/pull/6924.)
2017-08-21 14:37:23 +01:00
Jonathan Kew
49bddb0ade Bug 1364714 - Fix fragile reference case for multicol-gap-001 test. r=dholbert
(Already fixed upstream via https://github.com/w3c/web-platform-tests/pull/6879.)
2017-08-21 14:37:19 +01:00
Jonathan Kew
7b1afa5045 Bug 1364714 - Adjust fuzzy() annotation for box-decoration reftest. r=dholbert
Re-ordering fuzzy annotations so that the Android annotation follows (and overrides)
the more general skiaContent one.
2017-08-21 14:37:15 +01:00
Sebastian Hengst
02a34cdd40 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-21 13:43:53 +02:00
Sebastian Hengst
cf6a9260e7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IC9EbX0bomM
2017-08-21 13:41:46 +02:00
Bevis Tseng
6b5c329803 Bug 1390790 - Label ScrollFrameHelper::ScheduleSyntheticMouseMove. r=tnikkel 2017-08-16 17:10:36 +08: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
Sebastian Hengst
786597aec6 Backed out changeset 2f49d825c651 (bug 1363922) for failing mochitest test_transformed_scrolling_repaints_3.html on Windows 7 debug and mochitest test_bug590573.html on Android 4.3. r=backout 2017-08-20 19:21:25 +02:00
Sebastian Hengst
7e610db54c Backed out changeset 3241eaaa608d (bug 1363922) 2017-08-20 19:20:12 +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
Bas Schouten
fc62b0a980 Bug 1363922 - Part 2: Estimate scale of frames based on their PresShell resolution. r=mstange
MozReview-Commit-ID: 8f6T3PiPkF8
2017-08-17 15:45:31 +02:00
Bas Schouten
1a70bab6de Bug 1363922 - Part 1: Remember about the reference frame during BuildDisplayList for ScrollFrameHelper so GetScrolledRect can use it. r=mstange
MozReview-Commit-ID: 8GO6xuSH5xY
2017-08-17 15:45:30 +02:00
Stone Shih
7646d41f1d Bug 1361067 Part2: Coalesce mouse move events to be once per refresh cycle. r=smaug.
MozReview-Commit-ID: 6jwQxxNIC2n
2017-08-11 14:58:08 +08: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
Masayuki Nakano
a7240d8532 Bug 1391538 - nsTextFragment for text nodes in <input> or <textarea> shouldn't store text as single byte characters even if all characters are less than U+0100 r=smaug
nsTextFrame stores text as single byte character array if all characters are
less than U+0100.  Although, this saves footprint, but retrieving and modifying
text needs converting cost.  Therefore, if it's created for a text node in
<input> or <textarea>, it should store text as char16_t array.

MozReview-Commit-ID: 9Z82rketT7g

--HG--
extra : rebase_source : 59f59ac1488c21a57d95d253cc794a011d672c95
2017-08-18 16:05:16 +09:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07: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
Wes Kocher
91f1f19054 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IMdYxijQ9ie
2017-08-21 17:20:06 -07:00
Wes Kocher
f10eee4259 Backed out 16 changesets (bug 1364714) for android reftest failures in out-of-bounds-selectedindex.html a=backout
Backed out changeset b00b74e9d34b (bug 1364714)
Backed out changeset 1f52db2530d3 (bug 1364714)
Backed out changeset e3dda4fe9dae (bug 1364714)
Backed out changeset ff188112de35 (bug 1364714)
Backed out changeset 0e26a8c07cae (bug 1364714)
Backed out changeset e0cf94cb8666 (bug 1364714)
Backed out changeset 6f758a7673d3 (bug 1364714)
Backed out changeset 4b915e42b36d (bug 1364714)
Backed out changeset 80ca8faf1dac (bug 1364714)
Backed out changeset 2bd5a2d0ea09 (bug 1364714)
Backed out changeset aa5a89aac5ea (bug 1364714)
Backed out changeset 7634973c46ad (bug 1364714)
Backed out changeset b02a1d99e603 (bug 1364714)
Backed out changeset a297dc40177e (bug 1364714)
Backed out changeset 40e902ed7dbe (bug 1364714)
Backed out changeset d653fc499c9b (bug 1364714)

MozReview-Commit-ID: AyHF7oPwAs4

--HG--
extra : source : bccc691242c5460e58c6aac1bd3fd63d15037b4a
2017-08-21 16:16:29 -07:00
Botond Ballo
ba4ac53b51 Bug 1340684 - Fire the scroll event before the style flush. r=mstange
This ensures that if the scroll event triggers style changes, they are
reflected on the same paint.

This is accomplished by having the refresh driver fire scroll events as
an explicit step after FlushType::Style observers and rAF callbacks, and
before the actual style flush.

MozReview-Commit-ID: 4kgauD5SgVo

--HG--
extra : rebase_source : 5f2c869c0749c1e1473797f2e202c075907a45fd
2017-08-09 21:08:38 -04:00