Commit Graph

56947 Commits

Author SHA1 Message Date
Iris Hsiao
553dbd294c Merge mozilla-central to mozilla-inbound 2017-05-04 11:29:49 +08:00
Wes Kocher
4e89a77541 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Wes Kocher
21203b47b5 Merge inbound to m-c a=merge
MozReview-Commit-ID: JgXkqrOwl3N
2017-05-03 13:40:24 -07:00
Jamie Nicol
17d4964c7c Bug 1358185 - Force FixedPosition display items to be active. r=mstange
Fixed backgrounds were not being clipped correctly when rendered using
inactive layers.

MozReview-Commit-ID: 3v8tajr3MoB

--HG--
extra : rebase_source : 25329cb9efb998c64924916d4ea496a439688c8d
2017-05-03 16:49:43 +01:00
Andrew Swan
79a787c063 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : f83472bc1c88dd0deadbe485d9002499027ff07f
2017-05-03 08:02:51 -07:00
Kris Maglione
e77423bec5 Bug 1353060: Use the correct layer manager for frameloaders in <popup>s. r=kats,mattwoodrow
Currently, we only correctly support remote layer trees for frameloaders that
use the same layer manager as their document. Since we need to be able to host
remote <browser> content in popup widgets for remote WebExtensions, we need to
tie the frameloaders to the layer manager of their host element, rather than
the root layer manager for the document.

MozReview-Commit-ID: 4RCsamFBiQw

--HG--
extra : rebase_source : 86bca4ae1c012ff1bb84a9ad796be311cfe580f6
extra : histedit_source : 19577d69430adc8cb38c195f13db2c6de6605c4c
2017-04-17 21:41:18 -07:00
Wei-Cheng Pan
cd1468cb2b Bug 1345540 - Measure input event handling latency. r=bsmedberg,smaug, data-review?bsmedberg
MozReview-Commit-ID: 9mvwMewgIkJ

--HG--
extra : rebase_source : 659976746df68beddfc3281586d03b25a56e0ca0
2017-04-18 11:25:21 +08:00
Botond Ballo
15114b5297 Bug 1359868 - Try to pre-render offscreen portions of scrollbar thumbs. r=mstange
MozReview-Commit-ID: K3TPswpjh3O

--HG--
extra : rebase_source : f71262bf0ce948511ecc53175790beb38a0f6ba5
2017-05-01 20:32:07 -04:00
Botond Ballo
979e3ee035 Bug 1359868 - Move the ComputePartialPrerenderArea() helper to nsLayoutUtils so it can be reused. r=mstange
MozReview-Commit-ID: GVRBUfYwOFP

--HG--
extra : rebase_source : 8e16daf7709cc107f21e3b8b0050df44e83089fb
2017-05-01 19:59:08 -04:00
Jonathan Watt
0c31c793e8 Bug 1360662, part 2 - Test that only properties listed in '-moz-context-properties' are exposed as image context properties. r=dholbert
MozReview-Commit-ID: BsE02V9HXye

--HG--
extra : rebase_source : 84a1421bfd6be4e8a775a916c73673d06cb6c1f2
2017-04-19 15:24:56 +01:00
Jonathan Watt
44c2ccb8ad Bug 1360662, part 1 - Only expose properties that are listed in '-moz-context-properties' as image context properties. r=dholbert
MozReview-Commit-ID: B17M2vQZ92e

--HG--
extra : rebase_source : 3d8a2317ea9f092f2c41e00263135dfc57827e7d
2017-04-19 14:52:25 +01:00
Benjamin Smedberg
df806a1923 Bug 1335475 - Reftest harness needs to check for the test plugin without using navigator.plugins. r=dbaron
Previously the harness would check for navigator.plugins[Test Plug-in] in the browser window, but that is now blocked from working. Instead we can simply use an existing getTestPlugin function that enumerates the plugin through nsIPluginHost

MozReview-Commit-ID: Kp48u5iFkSa
2017-05-03 18:12:44 -03:00
Gabor Krizsanits
eb829f971b Bug 1341008 - Use the preallocated process manager by default. r=billm, r=kmag
To mitigate the delay that a new content process startup might cause, when the
browser reaches a non-busy state we attempt to prelaunch an empty content process
in the background that can be grabbed and used the next time we need one. This patch
enables the preallocated process manager by default and attempts to fix all the
issues that prevented us doing this sooner.
2017-05-03 12:00:20 +02:00
Carsten "Tomcat" Book
b0e1da2a90 merge mozilla-inbound to mozilla-central a=merge 2017-05-03 10:11:26 +02:00
Wes Kocher
e141e24ffb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Wes Kocher
df3f95a52f Merge inbound to m-c a=merge
MozReview-Commit-ID: 4SpokMW1d3I
2017-05-02 17:35:06 -07:00
Emilio Cobos Álvarez
cc46407803 Bug 1361368: Don't unnecessarily nullcheck the parent frame in ReflowInput::InitConstraints. r=mats
That function has a special path for when there's no parent reflow input, and if
there's a parent reflow input there should always be a parent frame.

MozReview-Commit-ID: EYh0aE4ozBg
2017-05-02 18:15:50 +02:00
Brad Werth
a3a59ddf78 Bug 1348481 Part 6: Adjust expected error counts for mochitests (generally greatly reduced). r=heycam
MozReview-Commit-ID: IDek7fUGQPo

--HG--
extra : rebase_source : 7708217f975b7d14b9ed122358b43da57f57cef8
2017-05-01 17:57:01 -07:00
Brad Werth
f7a48d11c2 Bug 1348481 Part 5: Add new reftests to test servo stylesheet set integrity and cloning behavior. r=heycam
MozReview-Commit-ID: CNFH6eqvuhK

--HG--
extra : rebase_source : 1a4691fd613cc7780ed89b01650354ea5f8d959e
2017-05-01 09:55:28 -07:00
Brad Werth
5426d724b2 Bug 1348481 Part 4: Turn back on unexpected pass reftests. r=heycam
MozReview-Commit-ID: DjQ1NaWx7M4

--HG--
extra : rebase_source : 121b7fa4d64aebd1a43207ef1c3810bccbb12575
2017-05-01 09:52:46 -07:00
Thomas Nguyen
6c7694640d Bug 1354563 - Return value of setting referrer could be ignored when loading style. r=heycam
The referrer header is optional field and it should not block loading style

MozReview-Commit-ID: fgm5A2MjRW
2017-04-27 20:34:00 +02:00
Brian Birtles
5267613207 Bug 1334583 - Pass a separate timeOrigin and startTime for compositor animations; r=hiro
By passing the startTime as a TimeDuration we are able to represent times in the
distant past (and with the same range as we can represent on the main thread so
that if we do encounter range errors in future, they should not differ between
the main thread and the compositor).

This patch includes a crashtest. I have verified that, without the code changes
included in this patch, this crashtest fails on debug builds on OSX.

MozReview-Commit-ID: EDuKLzfEC0K

--HG--
extra : rebase_source : 1883080fdfac8c33f70698145f21e67cbdfdd4f2
2017-05-02 16:49:51 +09:00
Wes Kocher
5b73758a65 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ILz91Vj4gT5
2017-05-02 17:39:58 -07:00
Robert Longson
0c1b6c1fcc Bug 1347409 part 2 - serialise fill and stroke fallback properly r=cam 2017-05-02 22:12:59 +01:00
Brad Werth
e2e3019c59 Bug 1348481 Part 3: Fix a dangerous typo in StyleSetHandleInlines (replaced one variable with another) and add assert to catch the problem it created. r=heycam
MozReview-Commit-ID: L2tfMt7TM60

--HG--
extra : rebase_source : 7047ed8922bae65d4ecb30c157559959d5a59e51
2017-04-18 11:29:13 -07:00
Brad Werth
3c02700e0e Bug 1348481 Part 2: Gecko-side track unique IDs for each stylesheet and send them to Servo. r=heycam
MozReview-Commit-ID: 7ZaQYhjdYmG

--HG--
extra : rebase_source : 4f1479ca32a305e16c4da8b3ca1c4532f7040258
2017-05-01 16:46:41 -07:00
Neerja Pancholi
c4d6031bdc Bug 1361207 - Changed appropriate calls to nsIFrame::IsThemed() to use overload with nsStyleDisplay* as argument to avoid redundant calls to StyleDisplay() r=dholbert
MozReview-Commit-ID: 65cmxFOgZeN

--HG--
extra : rebase_source : 98b2ce922b2bde9295ab2fb93cad2c3897a087ee
2017-05-01 18:16:20 -07:00
Aryeh Gregor
db1d64129d Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally; r=smaug
We want to see if we can drop support due to web pages not using it.
Edge and Safari already don't support it, and Chrome reports that usage
is low enough that they're willing to drop it.  But telemetry doesn't
tell us about web usage if we're triggering it via our own internal
code.

MozReview-Commit-ID: 5YBfhQJExHC

--HG--
extra : rebase_source : fd359e3264ba96ef10617f4de767080c94b792fb
2017-04-23 18:18:56 +03:00
Sebastian Hengst
a71bcd1f3c Backed out changeset 46dd4a4338a1 (bug 1352204) for timing out Talos suites g2, o and s. r=backout 2017-05-02 20:19:17 +02:00
Emilio Cobos Álvarez
19033ebd3d Bug 1341102: update expectations for servo/servo#16693. r=me
MozReview-Commit-ID: ChaqxMZyDCD
2017-05-02 19:11:52 +02:00
Emilio Cobos Álvarez
9f4e3916ce Bug 1341102: Test expectation adjustments for servo/servo#16692. r=emilio
MozReview-Commit-ID: A1nJpKcOOHh
2017-05-02 18:18:31 +02:00
Ting-Yu Lin
60af6a6d49 Bug 1361072 - Change caller of RestrictCaretDraggingOffsets() to use getter_AddRefs. r=dholbert
Per description in bug 1361072, this is the standard idiom to assign
outparam pointers of refcounted types.

MozReview-Commit-ID: 6kmDslMs94j

--HG--
extra : rebase_source : c151f0e6050cfd3ce1cf914eeb350166c539d160
2017-05-02 14:24:54 +08:00
Andrew Swan
efb4f22c33 Bug 1352204 Fix test issues with non-MPC extensions r=kmag
Continue to allow non-multiprocessCompatible extensions in automation.
There are a ton of places that would need to be changed, many of which
will be changing soon anyway with the non-webextensions change in 57
so this is mostly the expedient route to keeping the tree green.

MozReview-Commit-ID: EZZoDVdhLfy

--HG--
extra : rebase_source : 34aa762917566b052ade6372280caed72fbfbe9a
2017-05-01 10:34:27 -07:00
Carsten "Tomcat" Book
a439f12e74 merge mozilla-inbound to mozilla-central a=merge 2017-05-02 11:04:56 +02:00
Ting-Yu Lin
918033ba12 Bug 1321754 Part 2 - Update reftest and crashtest expectations for stylo. r=heycam
MozReview-Commit-ID: AunZ2DE209M

--HG--
extra : rebase_source : 4a091cd55581039c8d81f4db9bfbe2af8c0d0863
2017-04-28 14:53:16 +08:00
Ting-Yu Lin
9a6dfb0bc5 Bug 1321754 Part 1 - Add an enum value to SheetParsingMode for agent sheets that use no unsafe rules. r=heycam
scrollbars.css is the only sheet which is parsed as author level, but later
added as agent level in [1]. Add a new enum value so that it can be parsed
as author level in gecko (nsCSSParser::AgentRulesEnabled() will exclude it),
but servo can recognize it as agent level sheet when the sheet is created.

Delete UserRulesEnabled() because no one uses it.

[1] http://searchfox.org/mozilla-central/rev/7419b368156a6efa24777b21b0e5706be89a9c2f/layout/base/nsDocumentViewer.cpp#2326

MozReview-Commit-ID: 2lrV4ogfnHM

--HG--
extra : rebase_source : 02ff7bf64520ec3de5647059f18989a7971a8a5d
2017-04-28 12:17:14 +08:00
Cameron McCormack
42b565d47c Bug 1341102 - stylo: Adjust test expectations for Servo #16683. r=me 2017-05-02 11:57:45 +08:00
Cameron McCormack
0d1233d865 Bug 1361126 - Adjust test expectations. r=me 2017-05-02 10:17:20 +08:00
Mantaroh Yoshinaga
46f5f1d742 Bug 1359281 - Use rounded interpolation value when interpolating the Integer type and Font strech type based on spec. r=birtles
MozReview-Commit-ID: L4aP8MqYpna

--HG--
extra : rebase_source : 350b57c9ee7dbcd0b0261e155191244e64ed3528
2017-05-01 11:07:50 +09:00
Matt Woodrow
82005900e6 Bug 1349418 - Put the unscrolled item in the right place when we're doing container scrolling. r=mstange 2017-04-28 12:45:36 +12:00
Matt Woodrow
c95a73cfc6 Bug 1349418 - Require ASRs to match before allow occlusions between layers. r=mstange 2017-04-21 14:03:40 +12:00
Markus Stange
2a35142b62 Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats 2017-04-21 14:02:15 +12:00
Iris Hsiao
2cf79ec292 Merge mozilla-central to mozilla-inbound 2017-05-02 11:10:52 +08:00
Mats Palmgren
facb121186 Bug 1360867 - Make a few classes final to possibly devirtualize some calls. r=dholbert
MozReview-Commit-ID: EyBsvXbfJvK
2017-05-02 03:50:16 +02:00
Mats Palmgren
fdc1a8031f Bug 1359060 - [css-grid] Disallow fit-content() in repeat(auto-fill/fit) track sizes (per the CSS Grid spec). r=dholbert
MozReview-Commit-ID: Eijlbr8lHjV
2017-05-02 03:50:16 +02:00
Daniel Holbert
74687b05c2 Bug 1361086: Simplify UndisplayedMap::GetListFor/GetOrCreateListFor to take nsIContent* rather than nsIContent**. r=emilio
This patch shouldn't affect behavior -- it just takes a latent opportunity for
simplification and removes an unused layer of indirection. These functions were
set up to look like they took outparams, but none of the callers were using the
value left in the outparam.

MozReview-Commit-ID: LaL7YiyVYS2

--HG--
extra : rebase_source : 28466d6ab36da2e3609e7ed0fdb51618e652c7f7
2017-05-01 09:57:55 -07:00
Wes Kocher
9e5f4793f5 Bug 1341102 - Remove fails-if(stylo) for color-stop-clamp-interpolation.html a=bustage
MozReview-Commit-ID: GdF2GufuvpV
2017-05-01 12:00:24 -07:00
Emilio Cobos Álvarez
1e75c0c5e1 Bug 1361041: Avoid posting ReconstructFrame hints to an uninitialized PresShell. r=bz
The call that's causing the crash seems to be [1], that is, we're trying to
recreate frames for the root element, which should always have a frame created
at the initialization of the PresShell.

So the function I removed in that bug had something like the following:

  if (!mDidInitialize) {
    // Nothing to do here.  In fact, if we proceed and aContent is the
    // root we will crash.
    return NS_OK;
  }

Which PostRecreateFramesFor doesn't guard against (because I thought it was not
needed, per tryserver results).

Sounds a lot like we do need that check, though I'd like to have a testcase
where it happens :(

[1]: http://searchfox.org/mozilla-central/rev/3dc6ceb42746ab40f1441e1e659ffb8f62ae78e3/layout/base/nsCSSFrameConstructor.cpp#2420

MozReview-Commit-ID: Lh6SohNmmI6

--HG--
extra : rebase_source : 5b7076f86d41f5489e47ca16ac2f3620812ee9e8
2017-05-01 18:59:50 +02:00
Boris Chiou
7c0868e25d Bug 1346052 - Part 3: Implement AnimationValue::FromString. r=birtles
AnimationValue::FromString compute the AnimationValue from a string.

MozReview-Commit-ID: CX8wairpnfN

--HG--
extra : rebase_source : 05dbaa84bf40463a0021bd538d7baba5d591f992
2017-05-03 11:15:27 +08:00
Boris Chiou
b3ceb979ce Bug 1346052 - Part 2: Implement AnimationValue::ComputeDistance. r=birtles
We will use this API to compute the distance between two AnimationValues
in the patch series.

MozReview-Commit-ID: 2Tw9xumuz45

--HG--
extra : rebase_source : 298baaf597a81e03191a0468f9d7509e092a5e78
2017-04-26 20:05:04 +08:00
Hiroyuki Ikezoe
751ec1a2f7 Bug 1361632 - Adjust reftest expectation for -moz-appearance. r=bholley
MozReview-Commit-ID: 6sqyA5TCHjk

--HG--
extra : rebase_source : 4957d93a55717850594dabc2650cecf060022f75
2017-05-04 06:39:30 +09:00
Benjamin Smedberg
f5b5c4624c Bug 1335475 - Fix test_chrome_over_plugin_window to not load plugins from a data: URI, r=dvander
MozReview-Commit-ID: 8VAisndGqYI
2017-03-08 14:38:37 -05:00
Robert Longson
9a974578a0 Bug 1352258 - default fallback for context-fill to black to match default fill colour r=jwatt 2017-05-03 22:00:40 +01:00
Wes Kocher
febd210bd9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Lm5sPLbtrs
2017-05-03 13:54:34 -07:00
Mats Palmgren
cfc06fe550 Bug 1361499 - Initialize nsIFrame::mState in the ctor to avoid Coverity warnings. r=jfkthame
MozReview-Commit-ID: 8ly3NZMbuQ8
2017-05-03 22:19:14 +02:00
Mats Palmgren
43e71f49d2 Bug 1361478 - Add a ctor for FrameTextTraversal that initializes all members. r=jfkthame
MozReview-Commit-ID: 9XdG2up2yTi
2017-05-03 22:19:14 +02:00
Emilio Cobos Álvarez
7760981e45 Bug 1361749: Initialize nsTextboxFrame::mAscent. r=mats
MozReview-Commit-ID: CcWhmLy1pbY
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:38 +02:00
Emilio Cobos Álvarez
41d82fb883 Bug 1361659: Initialize BRFrame::mAscent. r=mats
MozReview-Commit-ID: 5jZJAbPb0nG
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:35 +02:00
Emilio Cobos Álvarez
50e406b9a8 Bug 1361513: Initialize nsInlineFrame::mBaseline. r=mats
MozReview-Commit-ID: HGk3wX13ofE
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:33 +02:00
Emilio Cobos Álvarez
13cbafea32 Bug 1361749: Initialize nsSliderFrame::{mDragStart,mThumbStart}. r=mats
MozReview-Commit-ID: 6YeKLkjYrCB
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:31 +02:00
Emilio Cobos Álvarez
2cf3a7138b Bug 1361749: Initialize nsScrollbarFrame::{mIncrement, mSmoothScroll}. r=mats
MozReview-Commit-ID: 8rgUPNr24gF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:29 +02:00
Emilio Cobos Álvarez
4f7cb19d67 Bug 1361749: Initialize nsMenuPopupFrame::{mXPos, mYPos}. r=mats
MozReview-Commit-ID: 3T7ZzFPz0Wa
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:26 +02:00
Emilio Cobos Álvarez
66d00246ee Bug 1361517: Initialize nsBoxFrame::{mFlex,mAscent}. r=mats
MozReview-Commit-ID: H2U2NSswEP2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:25 +02:00
Emilio Cobos Álvarez
8850cff8d0 Bug 1361596: Initialize nsSVGPatternFrame::mSource. r=mats
MozReview-Commit-ID: JHtIRjtNN1k
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:22 +02:00
Emilio Cobos Álvarez
6eb15ae6a9 Bug 1361749: Initialize on construction HTMLColorRule. r=mats
MozReview-Commit-ID: LHdHk2kjWeE
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:20 +02:00
Emilio Cobos Álvarez
6354ad78fb Bug 1361612: Initialize nsPlaceholderFrame::mOutOfFlowFrame. r=mats
MozReview-Commit-ID: CZoX9t8noAv
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:06:14 +02:00
Emilio Cobos Álvarez
ab91c2ef94 Bug 1361656: Initialize nsGridContainerFrame::mDidPushItemsBitMayLie. r=mats
Again, always initialized before use, and debug-only in any case, but worth
doing I think.

MozReview-Commit-ID: BHLReSWUU29
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:42 +02:00
Emilio Cobos Álvarez
6b268e09c2 Bug 1361749: Initialize all the fields in nsFrameContinuationState. r=mats
Not all of them are initialized/used in all the paths, but worth doing it just
for sanity.

MozReview-Commit-ID: 2EsHQCc0U8P
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:41 +02:00
Emilio Cobos Álvarez
b36b5b0ec6 Bug 1361749: Remove unused empty constructor of ScrollbarStyles. r=mats
MozReview-Commit-ID: 6UHSSr4Imiu
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-05-03 22:05:41 +02:00
Hiroyuki Ikezoe
641e49c579 Bug 1359669 - Update mochitest and reftest expectations for multiple properties in a keyframe. r=birtles
MozReview-Commit-ID: FC2N33pLySy

--HG--
extra : rebase_source : c08118cc6137729341edfff07104a0fd721c4001
2017-05-02 18:21:44 +09:00
Cameron McCormack
476ddf32bb Bug 1361303 - Part 2: Update test expectations. r=xidorn
MozReview-Commit-ID: 2T23OneWKG0

--HG--
extra : rebase_source : 74a4c12abe9383bfc97be6105c5190f6898c7e44
2017-05-02 16:47:12 +08:00
Carsten "Tomcat" Book
2a74ba4261 Merge mozilla-central to autoland 2017-05-02 11:23:38 +02:00
KuoE0
3b7d5554e3 Bug 1356104 - (Part 2) Update stylo-failures. r=xidorn
MozReview-Commit-ID: 8WuXXHhmfQ4

--HG--
extra : rebase_source : 4dab7ac02431c7d2a813bf8b0f4b2d5c43e518df
2017-04-25 16:43:48 +08:00
KuoE0
6107d7ca3c Bug 1356104 - (Part 1) The implementation inn Gecko of the FFI function Gecko_GetAppUnitsPerPhysicalInch. r=xidorn
MozReview-Commit-ID: IVmmpQIw0JG

--HG--
extra : rebase_source : cc994caaff5143a888e02605ef991424bbf37e8d
2017-04-25 16:29:46 +08:00
Emilio Cobos Álvarez
23bce99ae1 Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
This avoids conflicts with mozilla::dom::FrameType.

MozReview-Commit-ID: 7aEMbHRaTFk

--HG--
extra : rebase_source : 2d01321f5ce0ec8c0e3f70984674f82678034b3c
2017-05-01 19:32:52 +02:00
Cameron McCormack
2fadc51f72 Bug 1352531 - Make dom::FontFace cache its gfxCharacterMap instead of rebuilding it every time. r=dbaron
MozReview-Commit-ID: INmKPdC9dq5

--HG--
extra : rebase_source : a7f0636168784227fb2b6a381fa72cf652038c12
2017-04-20 17:00:59 +10:00
Masatoshi Kimura
b299a459d1 Bug 1358524 - Load userContent.css on both style backends in e10s. r=bholley
MozReview-Commit-ID: 54HOAnm73dz

--HG--
rename : layout/reftests/usercss/usercss-ref.html => layout/reftests/usercss/usercss-moz-document-ref.html
rename : layout/reftests/usercss/usercss.html => layout/reftests/usercss/usercss-moz-document.html
rename : layout/reftests/usercss/usercss.html => layout/reftests/usercss/usercss-xbl.html
extra : rebase_source : f2653dc4f89f8be7ab54c666a82861f3048f2d4d
2017-05-03 20:48:48 +09:00
Manish Goregaokar
31d5d4a29e Bug 1361550 - Make font-size: larger/smaller a simple ratio; add stylo support; r=dbaron
MozReview-Commit-ID: DMmFc2i2OIA
2017-05-04 14:26:12 -07:00
Cameron McCormack
d7a98f45a2 Bug 1356103 - Part 11: Adjust text expectations. r=bholley
MozReview-Commit-ID: 7psm1XCGQ8I

--HG--
extra : rebase_source : cf638bbbe982fa366562b135c098c8e960e8b984
2017-04-30 15:20:42 +08:00
Cameron McCormack
a3bfc246a5 Bug 1356103 - Part 10: Re-enable font metrics querying for ch and ex units in Servo traversal. r=bholley
MozReview-Commit-ID: 9rKsTyfgEIl

--HG--
extra : rebase_source : 818937cb2ca540cd78fce82e3d432e95cfe4d8b6
2017-05-04 16:20:14 +08:00
Cameron McCormack
756d5f5a9a Bug 1356103 - Part 9: Use a PostTraversalTask to deal with downloadable fonts in gfxUserFontSet. r=bholley,jfkthame
Here we add a new UserFontLoadState value, STATUS_LOAD_PENDING, which
represents the state just after a gfxUserFontEntry's url()-valued source
would being loading, except that we can't start the load due to being
on a Servo style worker thread.  In that case, we defer the work of
initiating the load until just after the Servo traversal is finished.

URLs that can normally be loaded synchronously, such as data: URLs
and script-implemented protocols marked as synchronous, must be
handled asynchronously when encountered during Servo traversal, since
various main-thread only work (in FontFaceSet::SyncLoadFontData) must
happen.  This is a user visible change from stock Gecko, but should
only happen when font metrics for a data: URL font are requested
due to ch/ex unit resolution when layout hasn't previously requested
the font load.  Hopefully nobody relies on synchronous resolution of
ch/ex units with data: URLs.

We unfortunately also can't pick gfxUserFontEntry objects out of the
UserFontCache during Servo traversal, since validating the cache
entry involves doing content policy checking, which is not thread-safe
(due in part to taking strong references to nsIPrincipals).

Platform fonts and ArrayBuffer-backed DOM FontFace objects continue
to be handled synchronously.

The PostTraversalTask does not take a strong reference to the
gfxUserFontEntry object, since it is held on to by the DOM FontFace
object, which itself won't go away before the PostTraversalTask
is run.

MozReview-Commit-ID: J9ODLsusrNV

--HG--
extra : rebase_source : d3e3d1dc187cb252750b57bcecd0b1ed77a15a7c
2017-04-30 14:57:25 +08:00
Cameron McCormack
cbeb477e95 Bug 1356103 - Part 8: Use PostTraversalTasks to deal with FontFaceSet's Promise and DOM event dispatch during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFaceSet
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFaceSet is held on to
by the nsIDocument, and only cleared during cycle collection, which
should not occur between the font metrics request and the
PostTraversalTask running.

MozReview-Commit-ID: 5aKIg4DIQ4w

--HG--
extra : rebase_source : a7b63582b3610491fbcb4e2b931d55681e626513
2017-04-30 14:55:22 +08:00
Cameron McCormack
23a9137f03 Bug 1356103 - Part 7: Use PostTraversalTasks to deal with FontFace's Promise during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFace
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFace objects that we
encounter are all held on to by the FontFaceSet, and none of the
work that we do during font loads should drop FontFace objects
from the FontFaceSet.  (That only happens under
nsIDocument::FlushUserFontSet, which is only called on the
main thread.)

MozReview-Commit-ID: 5CdtGQYC9aL

--HG--
extra : rebase_source : 8ce5ff0c4ca306ccc240a86e7cacb588cc6c94c7
2017-04-30 14:51:29 +08:00
Cameron McCormack
1eb02fae6c Bug 1356103 - Part 4: Add a mechanism for C++ functions to perform post-Servo traversal tasks. r=bholley
MozReview-Commit-ID: 5Gx1qZzQxAK

--HG--
extra : rebase_source : af569f460fb7039faf481e393a34c04bc4c36bb9
2017-04-30 14:45:32 +08:00
Cameron McCormack
b23bdd20ae Bug 1356103 - Part 3: Make it easy to access the ServoStyleSet currently in traversal. r=bholley
In a later patch, we'll want to queue up some tasks to run when the
Servo traversal is one, and the ServoStyleSet seems like the natural
place to store those tasks.  We could probably find the ServoStyleSet
by chasing a bunch of pointers from the task-adding call sites, but
it seems simpler just to make it available directly.

MozReview-Commit-ID: AJoFZEoNaGm

--HG--
extra : rebase_source : 78389d72ba6dfb4301ba75bd39bbdc51d13cb4d5
2017-04-30 14:41:11 +08:00
Cameron McCormack
115e900d63 Bug 1356103 - Part 2: Add functions to assert the Servo font metrics mutex is locked. r=bholley
MozReview-Commit-ID: QtydYSYvxW

--HG--
extra : rebase_source : 50adc555668ae7c24fc01b6a32fc006fe609b0d5
2017-04-30 13:15:42 +08:00
Iris Hsiao
0a6db9e69f Backed out 12 changesets (bug 1356103) for build bustage at PostTraversalTask.h
Backed out changeset 9fb487252c28 (bug 1356103)
Backed out changeset 301237c65945 (bug 1356103)
Backed out changeset 7bc3a4861a39 (bug 1356103)
Backed out changeset 2f383d89184b (bug 1356103)
Backed out changeset a03112e1c9d5 (bug 1356103)
Backed out changeset c60b4c9cbd83 (bug 1356103)
Backed out changeset 34280baeaabe (bug 1356103)
Backed out changeset 31a0881cfb47 (bug 1356103)
Backed out changeset 529d037f9c33 (bug 1356103)
Backed out changeset 1c7831db6b07 (bug 1356103)
Backed out changeset 559f06e32df3 (bug 1356103)
Backed out changeset 784865d234cd (bug 1356103)
2017-05-04 17:56:25 +08:00
Cameron McCormack
06970669b1 Bug 1356103 - Part 11: Adjust text expectations. r=bholley
MozReview-Commit-ID: 7psm1XCGQ8I

--HG--
extra : rebase_source : 70ca0331145d31f85e2e21eb1036485d15b9ce8a
2017-04-30 15:20:42 +08:00
Cameron McCormack
63d057a7b8 Bug 1356103 - Part 10: Re-enable font metrics querying for ch and ex units in Servo traversal. r=bholley
MozReview-Commit-ID: 9rKsTyfgEIl

--HG--
extra : rebase_source : 69d06a1857cf687d8b1857c1d243c3dce756b953
2017-05-04 16:20:14 +08:00
Cameron McCormack
d3acda35aa Bug 1356103 - Part 9: Use a PostTraversalTask to deal with downloadable fonts in gfxUserFontSet. r=bholley,jfkthame
Here we add a new UserFontLoadState value, STATUS_LOAD_PENDING, which
represents the state just after a gfxUserFontEntry's url()-valued source
would being loading, except that we can't start the load due to being
on a Servo style worker thread.  In that case, we defer the work of
initiating the load until just after the Servo traversal is finished.

URLs that can normally be loaded synchronously, such as data: URLs
and script-implemented protocols marked as synchronous, must be
handled asynchronously when encountered during Servo traversal, since
various main-thread only work (in FontFaceSet::SyncLoadFontData) must
happen.  This is a user visible change from stock Gecko, but should
only happen when font metrics for a data: URL font are requested
due to ch/ex unit resolution when layout hasn't previously requested
the font load.  Hopefully nobody relies on synchronous resolution of
ch/ex units with data: URLs.

We unfortunately also can't pick gfxUserFontEntry objects out of the
UserFontCache during Servo traversal, since validating the cache
entry involves doing content policy checking, which is not thread-safe
(due in part to taking strong references to nsIPrincipals).

Platform fonts and ArrayBuffer-backed DOM FontFace objects continue
to be handled synchronously.

The PostTraversalTask does not take a strong reference to the
gfxUserFontEntry object, since it is held on to by the DOM FontFace
object, which itself won't go away before the PostTraversalTask
is run.

MozReview-Commit-ID: J9ODLsusrNV

--HG--
extra : rebase_source : 1651e2917bd31b87fc1c1be94b0eced1273df86a
2017-04-30 14:57:25 +08:00
Cameron McCormack
9133a05c63 Bug 1356103 - Part 8: Use PostTraversalTasks to deal with FontFaceSet's Promise and DOM event dispatch during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFaceSet
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFaceSet is held on to
by the nsIDocument, and only cleared during cycle collection, which
should not occur between the font metrics request and the
PostTraversalTask running.

MozReview-Commit-ID: 5aKIg4DIQ4w

--HG--
extra : rebase_source : 50ca5f2d8af42cfbeb6808aa755a4670bdf293bd
2017-04-30 14:55:22 +08:00
Cameron McCormack
2870acb23f Bug 1356103 - Part 7: Use PostTraversalTasks to deal with FontFace's Promise during Servo traversal. r=bholley
The PostTraversalTask does not take a strong reference to the FontFace
object, since as a DOM object, we can't call AddRef/Release on it
from the Servo style worker threads.  The FontFace objects that we
encounter are all held on to by the FontFaceSet, and none of the
work that we do during font loads should drop FontFace objects
from the FontFaceSet.  (That only happens under
nsIDocument::FlushUserFontSet, which is only called on the
main thread.)

MozReview-Commit-ID: 5CdtGQYC9aL

--HG--
extra : rebase_source : 8e4f21a12ae5ca81017293d5b06f1551e307ea5d
2017-04-30 14:51:29 +08:00
Cameron McCormack
b3951ab999 Bug 1356103 - Part 4: Add a mechanism for C++ functions to perform post-Servo traversal tasks. r=bholley
MozReview-Commit-ID: 5Gx1qZzQxAK

--HG--
extra : rebase_source : d3c119e2a71833462d67bb373674bbd38a7aa47d
2017-04-30 14:45:32 +08:00
Cameron McCormack
64ee30fc47 Bug 1356103 - Part 3: Make it easy to access the ServoStyleSet currently in traversal. r=bholley
In a later patch, we'll want to queue up some tasks to run when the
Servo traversal is one, and the ServoStyleSet seems like the natural
place to store those tasks.  We could probably find the ServoStyleSet
by chasing a bunch of pointers from the task-adding call sites, but
it seems simpler just to make it available directly.

MozReview-Commit-ID: AJoFZEoNaGm

--HG--
extra : rebase_source : d8afe0c2cdf1ea4b1681c6e57aea48c9efddea00
2017-04-30 14:41:11 +08:00
Cameron McCormack
f6dd5eb7bb Bug 1356103 - Part 2: Add functions to assert the Servo font metrics mutex is locked. r=bholley
MozReview-Commit-ID: QtydYSYvxW

--HG--
extra : rebase_source : 50adc555668ae7c24fc01b6a32fc006fe609b0d5
2017-04-30 13:15:42 +08:00
Emilio Cobos Álvarez
419344d78b Bug 1341102: Adjust expectations for servo/servo#16672. r=emilio
MozReview-Commit-ID: 62z9JiY9m1N
2017-05-01 18:06:32 +02:00
Nazım Can Altınova
3614d47845 Bug 1360659 - stylo: Support other unit types in computed angle r=emilio
MozReview-Commit-ID: 7pwoXpHAxlz

--HG--
extra : rebase_source : 4bbb6fcb542ac61415f734dca6e0a4abbf034b1c
2017-04-28 18:33:00 +03:00
Emilio Cobos Álvarez
1d754815d3 Bug 1341102: Update expectations for servo/servo#16673. r=emilio
MozReview-Commit-ID: 3647fXHGel5
2017-05-01 16:47:39 +02:00
Hiroyuki Ikezoe
d8fafebff7 Bug 1360776 - Pass AnimationValueMap raw pointer instead of Arc to Gecko_GetAnimationRule(). r=emilio
MozReview-Commit-ID: 5o8NuJolG2R

--HG--
extra : rebase_source : 13d732112dfe5614a83657c7bf7703944050c0f4
2017-05-01 18:45:41 +09:00
Cameron McCormack
7c0403b62c Bug 1360991 - stylo: Adjust text expectations. r=emilio
MozReview-Commit-ID: IEibtkHgyLI

--HG--
extra : rebase_source : 3a670b96685e3c5a03efa6a176384ab03632e17f
2017-05-01 17:23:56 +08:00