Commit Graph

63704 Commits

Author SHA1 Message Date
Bobby Holley
5c354190dc Bug 1451421 - Stop using Gecko namespace ids in servo. r=xidorn
MozReview-Commit-ID: 2532dHCGPXW
2018-04-06 15:30:58 -07:00
Noemi Erli
758bc8158f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-07 01:02:43 +03:00
Cameron McCormack
80e0b61efb Bug 1079292 - Re-enable test 18 of test_font_loading_api.html. r=xidorn
MozReview-Commit-ID: IPcebw8CC4i

--HG--
extra : rebase_source : a80cd84bfc5c736d464d10eb9fc33d54b20f9883
2018-04-05 18:31:47 +10:00
Sebastian Hengst
adbdb76dd0 merge mozilla-central to mozilla-inbound 2018-04-06 18:38:19 +03:00
Andrew Halberstadt
2ce99e8054 Backout hunk from a9c5a53970bf (bug 1451384) which accidentally turned off reftest run-by-manifest, r=me 2018-04-06 11:30:07 -04:00
Emilio Cobos Álvarez
92232a9bc4 Bug 1451239: Remove resolved namespace id and tag from FCItems. r=bz
Tag is unused.

This changes how some mixes of MathML and html get wrapped in anonymous table
boxes (in particular, it changes whether it uses a MathML or an HTML table
frame). The main thing this affects is whether the frame responds to certain
attributes. Responding to mathml attributes on its mContent when that mContent
is not a MathML element is weird. So arguably this is also more correct.

However, that seems acceptable to me, and you can already get that mixing
manually. On a few (arguably simple) manual test-cases mixing MathML and HTML
tables I couldn't manage to get the patched build to render differently.

Plus, neither our reftests nor the WPT MathML test-suite upstreamed by Fred Wang
for WebKit rely on this.

MozReview-Commit-ID: 8IV3iF5xIs0
2018-04-06 11:51:47 +02:00
Ben Kelly
e8a484cfaa Bug 1451467 Check for nullptr mDocument->GetWindow() in a few more places in nsPresContext. r=smaug
--HG--
extra : rebase_source : a6ac4af614b261ec44162011daddfff0c8536f0c
2018-04-05 18:33:00 +03:00
Sebastian Hengst
5f003efbc6 merge mozilla-central to autoland. CLOSED TREE 2018-04-06 18:37:03 +03:00
Andreea Pavel
eed7d2803f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 17:54:45 +03:00
Emilio Cobos Álvarez
f1145db772 Bug 1339656: [css-align] Upstream our shorthand serialization tests. r=mats
MozReview-Commit-ID: 2EYnkBavecs
2018-04-06 14:27:40 +02:00
Emilio Cobos Álvarez
2dbc4842b7 Bug 1339656: Make the shorthand serialization test account for 'unsafe' serialization. r=mats
This should make the test upstreamable.

MozReview-Commit-ID: DeJt5HzMJHE
2018-04-06 14:27:31 +02:00
Emilio Cobos Álvarez
fff326ce5c Bug 1339656: [css-align] Don't restrict shorthand parsing now that's not ambiguous. r=mats
MozReview-Commit-ID: AnYBt6zwnPl
2018-04-06 14:27:12 +02:00
Jonathan Watt
af9d95013e Bug 1452057 - Remove remaining AsGecko() cruft. r=emilio 2018-04-04 08:53:06 +01:00
Jonathan Watt
3a5bebcfbf Bug 1452052 - Remove nsCSSRules.h. r=emilio 2018-04-03 12:47:20 +01:00
Hiroyuki Ikezoe
e38ae704a5 Bug 1412716 - Drop forward declarations of GeckoComputedStyle. r=emilio
MozReview-Commit-ID: CeI958wmdPE

--HG--
extra : rebase_source : 36b7fcb8dbcaaef118dc07cd691da1fb1199115f
2018-04-10 07:03:05 +09:00
Hiroyuki Ikezoe
f910ea3c3b Bug 1412716 - Drop redundant forward declarations of ComputedStyle. r=emilio
MozReview-Commit-ID: ALMQ9Ws6eE1

--HG--
extra : rebase_source : 82222446e1ee52a05b4234855f07a400792f4e96
2018-04-10 07:03:03 +09:00
Hiroyuki Ikezoe
4db8cda1bf Bug 1412716 - De-templatize functions in nsTransitionManager. r=emilio
MozReview-Commit-ID: 6u1fOrIH8PA

--HG--
extra : rebase_source : f1401719ba8afb509edad84d610a7cf5e4077dc3
2018-04-10 07:03:00 +09:00
Hiroyuki Ikezoe
8d59f30dfa Bug 1412716 - De-templatize functions used for in nsAnimationManager. r=emilio
MozReview-Commit-ID: Kj4pLgmgF0x

--HG--
extra : rebase_source : fb3789bbcfb90c6f20765bc7d093ce4680090bf0
2018-04-09 20:16:00 +09:00
Miko Mynttinen
09ad9f120d Bug 1440690 - Don't build WebRender display list if the gecko display list hasn't changed r=kats
MozReview-Commit-ID: BQidturR8x8

--HG--
extra : rebase_source : f773a40c19c9c698fc81121413fbc36605d3ec4a
2018-04-09 16:53:38 +02:00
Kartikaya Gupta
87c5ab8f3d Bug 1452236 - Follow-up to increase pre-existing fuzz slightly. r=kats
MozReview-Commit-ID: GwBtJHil0Ci

--HG--
extra : rebase_source : d6f91cd5eb93fd6657984743ff82e14bc72986ab
2018-04-06 17:30:08 -04:00
Kartikaya Gupta
2eefaf54ec Bug 1344350 - Mark reftests passing with webrender on Windows. r=jrmuizel
This covers all the reftests that have lower fuzz (or zero fuzz) and
were producing an UNEXPECTED-PASS result with webrender on windows. In
many cases I just adjusted the lower bound of the existing webrender
fuzz. In other cases existing fails-if conditions had to be tweaked to
exclude webrender.

MozReview-Commit-ID: 49LvS0vuYWR

--HG--
extra : rebase_source : d194e24affb87fe4560a127ff4016f9c38f414fd
2018-04-06 11:58:44 -04:00
Kartikaya Gupta
9a9c13a09f Bug 1344350 - Mark reftests failing with webrender on windows. r=jrmuizel
Many of these could probably be fuzzed but in the interests of getting
the reftest suite turned on sooner I'm doing a blanket fails-if. This
covers all the reftests where there is more fuzz with webrender on
windows than any of existing annotations account for. In some cases the
fuzz is only a few pixels more than the equivalent Linux fuzz already
annotated, but I'll clean that up in a future bug.

MozReview-Commit-ID: IaKarbnL46d

--HG--
extra : rebase_source : 71889340305b0b12fa8eace722e42bb3faf14419
2018-04-06 11:58:43 -04:00
Daniel Holbert
28f04532eb Bug 1451723: Annotate first load of reftest 'font-matching/1394311-ref.htm' as random on Win7.
This test started failing after a reftest rebucketing.  It's likely a
particularly-bad special case of known win7 intermittent bug 1392106.  For now,
let's mark it as random on Win7 and continue investigating the general issue in
bug 1392106.

MozReview-Commit-ID: KX707Y9ycIC
2018-04-05 21:57:49 -07:00
Ryan VanderMeulen
e4e015b51b Bug 1449976 - Add a pinch more fuzz on Windows. r=me 2018-04-05 20:40:54 -04:00
Daniel Holbert
479a00ac23 Bug 1441348: Add Win10 fuzzy annotation to reftest flexbox-resizeviewport-1.xhtml.
MozReview-Commit-ID: LdSjKPWBAR0
2018-04-04 10:20:47 -07:00
Bas Schouten
994ab9fbd6 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Ryan VanderMeulen
91454f0b4c Bug 1449976 - Add fuzz for OSX and Windows. r=me 2018-04-05 15:06:44 -04:00
Geoff Brown
146ff5998a Bug 1440714 - Convert Android mach commands to adb.py; r=bc 2018-04-05 12:50:29 -06:00
Lee Salzman
ff2a78845b Bug 1448667 - use ColorMatrix effect instead of LuminanceToAlpha effect for DrawTargetD2D1::IntoLuminanceSource. r=bas
MozReview-Commit-ID: LHbSiFBx6HK
2018-04-05 14:07:18 -04:00
Jonathan Kew
c66fb1e660 Bug 1451296 - Make enabling of font-variation-settings and font-optical-sizing properties dependent on adequate platform support at runtime. r=lsalzman 2018-04-05 18:53:56 +01:00
Alexis Beingessner
912939d028 Bug 1449976 - Add regression test for fast-shadow clipping. r=jrmuizel
--HG--
extra : amend_source : c72fa00d3895d87d6802488673e4ceee023e7ca6
2018-04-03 13:01:00 -04:00
Boris Zbarsky
a0b6e32bba Bug 1449631 part 12. Remove the Nullable smuggling from nsIDOMEventTarget. r=smaug
MozReview-Commit-ID: 73qhRSCpr3S
2018-04-05 13:42:42 -04:00
Boris Zbarsky
88937275cc Bug 1449631 part 9. Remove nsIDOMEventTarget::AddEventListener. r=smaug
Also switch the XPCOM-y version of EventTarget::AddEventListner to a
Nullable<bool> for aWantsUntrusted.

The three-arg overload of AddEventListener in ContentFrameMessageManager was
never called, so all the AddEventListener overloads there are not needed.

MozReview-Commit-ID: 4IhqHmPVWzE
2018-04-05 13:42:42 -04:00
Boris Zbarsky
4292bca4ee Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky
1dce94cf16 Bug 1449631 part 2. Remove nsIDOMEventTarget::RemoveEventListener. r=smaug
We can't have a null content in
ScrollbarActivity::StopListeningForScrollAreaEvents, because only viewport
frames have a null GetContent().

MozReview-Commit-ID: 9iAg0ivVqqG
2018-04-05 13:42:40 -04:00
Noemi Erli
d0413b711d Merge inbound to mozilla-central. a=merge 2018-04-05 18:15:37 +03:00
Boris Zbarsky
71517dfd71 Bug 1451199. Fix the handling of .onchange in MediaQueryList to match the handling of addEventListener('change'). r=emilio
MozReview-Commit-ID: 4YvJ0m0BOnQ
2018-04-05 08:34:46 -04:00
Noemi Erli
f4d2c09aba Backed out changeset c9db3f332a19 (bug 1440753) for content sometimes not being rendered (bug 1451597). a=backout 2018-04-05 13:15:35 +03:00
Noemi Erli
ff466e94c1 Merge inbound to mozilla-central. a=merge 2018-04-05 13:02:11 +03:00
Jeff Muizelaar
dbb95d3a78 Bug 1450162. Add a crash test that invalidates our previous assumptions. r=mstange 2018-04-04 23:05:00 -04:00
Nicholas Nethercote
e0c05abb10 Bug 1451169 - Reduce indirection for PseudoParentData::mPseudoType. r=xidorn
MozReview-Commit-ID: CiXGCKrpfCB

--HG--
extra : rebase_source : a2c22543668887d1fd20065e71f359aaf33795d9
2018-04-03 22:15:31 +10:00
Nicholas Nethercote
bfe00b7ed4 Bug 1451169 - Reduce indirection for FrameConstructionDataByTag::mTag. r=xidorn
MozReview-Commit-ID: 4qNZF7SS2bS

--HG--
extra : rebase_source : b6bda58ac9bf80c45f41427bcec53538fb927f1a
2018-04-03 22:15:31 +10:00
Nicholas Nethercote
65653d8de1 Bug 1451169 - Reduce indirection for static atom pointers in nsCSSFrameConstructor.h. r=xidorn
MozReview-Commit-ID: Kt3QfZsk0zD

--HG--
extra : rebase_source : e4bd0efe51064bb18a446655a52f5b75807ba696
2018-04-03 22:15:30 +10:00
Nicholas Nethercote
a560608963 Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku
And then fix up everything else that needs to change as well.

MozReview-Commit-ID: GDMfERqdQAc

--HG--
extra : rebase_source : 01fe06c3182245a409099a53383d92bf4fa0155c
2018-04-03 13:21:06 +10:00
Botond Ballo
602996ef6c Bug 1449738 - Propagate backface-visibility information when building WebRender commands for CompositorHitTestInfo. r=kats
MozReview-Commit-ID: LJWMOGiFrsk

--HG--
extra : rebase_source : 49f8a730d80f84e6367bb526aa13eb8a2bd92d66
2018-03-28 17:02:23 -04:00
Narcis Beleuzu
58b4822076 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-05 01:09:42 +03:00
Narcis Beleuzu
f860c2bf00 Merge inbound to mozilla-central. a=merge 2018-04-05 01:02:17 +03:00
Brendan Dahl
45606c3a4e Bug 1448162 - Remove all XUL overlay tests. r=Gijs
MozReview-Commit-ID: 1hSLa2goMLt

--HG--
extra : rebase_source : 643a82bfab12f2534ad39ca9f95f5e0c0afcbd1a
2018-03-22 16:21:26 -07:00
Cosmin Sabou
9783b68517 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-04 21:05:46 +03:00
Emilio Cobos Álvarez
e42b195001 Bug 1451217: Remove VerifyStyleTree stuff. r=xidorn
MozReview-Commit-ID: DDXMq9WkUkE
2018-04-04 13:34:11 +02:00
Margareta Eliza Balazs
ca277b407b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-04 12:51:48 +03:00
Margareta Eliza Balazs
210797c4c1 Merge inbound to mozilla-central. a=merge 2018-04-04 12:43:55 +03:00
Jonathan Kew
ee9b08a330 Bug 1341088 - Enable validation of opentype variation tables in downloadable fonts, and replace the keep_variation_tables pref with validate_variation_tables (default=true). r=jrmuizel 2018-04-04 10:08:05 +01:00
Emilio Cobos Álvarez
46e051dd40 Bug 1450705: Don't go through the binding manager to see if our parent is an SVG element. r=bz
We don't extend svg elements, except in a lone test, that isn't really impacted
by this.

I agree this should look at the frame btw, though that looks a bit out of scope
for this bug.

MozReview-Commit-ID: MbvIE5TszB
2018-04-04 07:49:21 +02:00
Emilio Cobos Álvarez
93307076b0 Bug 1450617: No need to ResolveTag to disable first-line on fieldsets. r=bz
We don't extend HTML fieldsets with XBL, and I don't think we want to start
doing that now.

MozReview-Commit-ID: GiltTWXUBzZ
2018-04-04 07:48:31 +02:00
Emilio Cobos Álvarez
364d1d533b Bug 1450617: Only allow extending from / to XUL elements. r=bz
MozReview-Commit-ID: JaFKQDkLGgw
2018-04-04 07:48:31 +02:00
Emilio Cobos Álvarez
f004e39cd6 Bug 1441136: Add a fast way to enumerate ShadowRoots in a document. r=smaug
MozReview-Commit-ID: 7QffP56jsyk
2018-04-04 07:40:34 +02:00
Matt Woodrow
0c3b21fb32 Bug 1370575 - Do less manual invalidation when tables changes, and rely on DLBI instead. r=mstange 2018-04-04 16:17:49 +12:00
Matt Woodrow
199c2a649c Bug 1450189 - Don't invalidate display items when we get a new style context. r=miko 2018-04-04 16:17:25 +12:00
Matt Woodrow
cc659a75b9 Bug 1442844 - Don't mark display items invalid when temporarily setting the frame size in FinishAndStoreOverflow. r=dbaron 2018-04-04 16:17:01 +12:00
Matt Woodrow
8eb6516c62 Bug 1443380 - Don't mark all descendant frames modified for display list building when invalidating a frame subtree since marking just the root is sufficient. r=miko 2018-04-04 16:15:49 +12:00
Ciure Andrei
5ffac2bcd3 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-04 00:58:50 +03:00
Ciure Andrei
7208a2fee8 Merge inbound to mozilla-central. a=merge 2018-04-04 00:54:16 +03:00
Emilio Cobos Álvarez
f14ee0f38e Bug 1450657: Remove ResolveTag usage in nsMenuPopupFrame. r=bz
We never extend xul:tooltip, xul:menupopup or xul:popup, so this can go away.

MozReview-Commit-ID: LZsGYRdI5tW

--HG--
extra : rebase_source : 7d520fa9729f27b1a6a0b2ad3f4eed55f9729aeb
2018-04-02 13:42:50 +02:00
Xidorn Quan
67fd806b66 Bug 1449087 part 2 - Use Servo data to back @font-face rule. r=emilio
This patch does the following things:
* Create a new class ServoFontFaceRule for CSSOM of @font-face rule
  which mostly follows how nsCSSFontFaceRule was implemented.
* Remove the old nsCSSFontFaceRule and binding code to create it.
* Have FontFace backed by Servo data via making mRule and mDescriptors
  of the class hold RawServoFontFaceRule like ServoFontFaceRule.

To keep this patch small, it effectively just delays the conversion
from Servo data to nsCSSValue from parsing to using. This may cause
worse performance if the font set is flushed repeatedly. Supposing we
don't flush font set very frequently, it may not be a big deal.

We may still want to remove the intermediate nsCSSValue conversion at
some point, and have everything converted to their final form directly
when used, but that can happen in followups.

There are some unfortunate bits from this change:
* We lose style sheet for logging in FontFaceSet. This is probably not
  all that worse, because we wouldn't have that before either if the
  page doesn't use CSSOM to visit it. But we should figure out some
  approach to fix it anyway.
* InspectorFontFace no longer shares the same rule object as CSSOM.
  This isn't really a problem if the @font-face rule isn't very mutable.
  Unless we want to make the rule returned from InspectorFontFace to be
  mutable (i.e. via inspector), not using the same object probably isn't
  too bad.

This patch switches the code we use to serialize stuff in FontFace and
CSSFontFaceRule, which leads to some failures in tests. Specifically,
the expected changes including:
* Value of font-family now can be serialized to identifier sequence like
  font-family property. The old code always serializes it to string,
  but it doesn't seem to have different requirement than the property.
  Blink can serialize to identifier as well.
* Family name inside local() is also changed to use the same way as
  family names elsewhere (i.e. can be identifier sequence). Blink has
  the same behavior as the old code, but I don't think it's a big deal.
* The order of descriptors serialized gets changed. I don't think it
  matters at all.
* Empty string as font-family via using string syntax is no longer
  considered invalid for FontFace. I don't find it is mentioned anywhere
  that it should be specifically treated invalid.


MozReview-Commit-ID: 32Fk3Fi9uTs

--HG--
extra : rebase_source : 6221ec8fc56de357b06dd27e770fb175348a2f77
2018-04-04 08:42:10 +10:00
Matt Woodrow
3cd23bdc29 Bug 1450360 - Reland chunk that got accidentally removed during a branch merge. r=mattwoodrow
MozReview-Commit-ID: 7gVvlsNcJnn

--HG--
extra : rebase_source : 3431ceb7ac784b378c7723b4d4f38a5770ee3f9c
2018-04-04 11:30:35 +12:00
Andreea Pavel
9048f2f6cb Backed out changeset 08c9beb155d5 (bug 1450360) for build bustages at builds/worker/workspace/build/src/layout/painting/RetainedDisplayListBuilder.cpp:1118 on a CLOSED TREE 2018-04-04 02:22:21 +03:00
Matt Woodrow
9a7f6d89b0 Bug 1443027 - Fix the merging algorithm to pass the new tests correctly. r=mstange
MozReview-Commit-ID: JnglCbdhZzE
* * *
[mq]: update-test

--HG--
extra : rebase_source : c9e861bcf811575aedeef5ab9b6fe9d963036740
2018-03-23 16:47:37 +13:00
Matt Woodrow
edb36524ee Bug 1443027 - Add two new tests for merging behaviour. r=mstange
MozReview-Commit-ID: G5vgtSCdRZP

--HG--
extra : rebase_source : 2775e9a67e8262144f572d369873eb133dfbc6e5
2018-03-23 12:20:40 +13:00
Matt Woodrow
2d4435d3af Bug 1450360 - Reland chunk that got accidentally removed during a branch merge. r=mattwoodrow
MozReview-Commit-ID: MvE411GaHO

--HG--
extra : rebase_source : a696e0d77c41cd01f8991a76c9762b3f75284499
2018-04-04 10:56:55 +12:00
Daniel Holbert
1875600259 Bug 1450390 part 2: Add reftest to verify that "flex-basis" doesn't affect layout of abspos flex children. r=mats
MozReview-Commit-ID: KnGmIgk2DFa

--HG--
extra : rebase_source : bd979ed9453170abbfc9771976c976c7fda75ffa
2018-04-03 15:10:13 -07:00
Daniel Holbert
6ef9cafcf6 Bug 1450390 part 1: Extend mochitest to cover transitions to/from flex-basis "content" keyword. r=emilio
MozReview-Commit-ID: ABZn5GgH9Kr

--HG--
extra : rebase_source : 17e83cd4434773d2ed97ad2e4c2cb03830f2a24c
2018-04-03 15:09:43 -07:00
Ben Kelly
d44ca0b854 Bug 1450358 P4 Add a MediaQueryList event listener leak test. r=baku 2018-04-04 11:25:43 -07:00
Xidorn Quan
d7f3530f07 Bug 1449068 part 2 - Use Servo data to back @counter-style rule. r=emilio
This patch basically does:
* Add descriptor setters and generation count to CounterStyleRule in
  Servo. (This code is mostly based on the old code inside
  nsCSSCounterStyleRule for handling mutation.)
* Use RawServoCounterStyleRule in CounterStyleManager.
* Add ServoCounterStyleRule and remove nsCSSCounterStyleRule.

Test change:
* "fixed" was parsed as and thus serialized to "fixed 1", but Servo
  doesn't do so. It preserves whether the number presents. Either way
  is probably fine.

MozReview-Commit-ID: EtKTeu32isi

--HG--
extra : rebase_source : ec44f01c581003ce4b6ef69435a05de7f3da5469
2018-04-05 08:41:28 +10:00
Xidorn Quan
0be3ea5159 Bug 1449068 part 1 - Wrap content of ServoStyleSetInlines.h in mozilla namespace. r=emilio
MozReview-Commit-ID: HiIZdZwdTeZ

--HG--
extra : rebase_source : b731a0b5dd7cad68afcd6caf944e62fbf02a0b01
2018-04-05 08:41:28 +10:00
Hiroyuki Ikezoe
1c7db68b8d Bug 1447874 - Use flushLayoutWithoutThrottledAnimations in the state of STATE_WAITING_TO_FIRE_INVALIDATE_EVENT. r=birtles,kats
In the state of STATE_WAITING_TO_FIRE_INVALIDATE_EVENT, we flush all pending
styles and layout and wait for a MozAfterPaint that caused by the flush.  This
will be repeated until neither pending styles nor layout exists.  But if there
is any throttled animation, flush for the throttled animation might
cause a new MozAfterPaint.  That means that we will get stuck until the
throttled animation finished.

In this patch, to avoid this situation, we don't flush throttled animations in
the state of STATE_WAITING_TO_FIRE_INVALIDATE_EVENT.

MozReview-Commit-ID: LUz279w3Yoj

--HG--
extra : rebase_source : 9a1f0fa791645d46c3105c1ba56a2cf5914ffa9d
2018-04-02 18:01:41 +09:00
Ting-Yu Lin
b8ed325fb0 Bug 1347049 - Remove the ability to hide AccessibleCaret when scrolling. r=mats
This feature is B2G only. Remove it to make AccessibleCaret simpler to
maintain.

MozReview-Commit-ID: 7JZw5XtaUeU

--HG--
extra : rebase_source : aba249d361723feeaf769a3b802564dbcd6ca9ea
2018-04-04 15:45:52 +08:00
Bas Schouten
6cee50b1b0 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Bas Schouten
2cd7fc9aa0 Bug 1444332: Guarantee an initial paint to make sure the test passes consistently. r=dholbert
MozReview-Commit-ID: IzszQlq8kDm
2018-04-04 20:17:20 +02:00
Cosmin Sabou
eb23be2903 Backed out 2 changesets (bug 1450307) for reftest failures on fieldset-columns-001.html. CLOSED TREE
Backed out changeset 9436102afb18 (bug 1450307)
Backed out changeset aa8bcc37d888 (bug 1450307)
2018-04-04 20:50:00 +03:00
Ryan Hunt
9fbcb9b4f4 Bug 1450307 - Mark tests as fuzzy. r=me on a CLOSED TREE
--HG--
extra : amend_source : ffcd775393ef6ce9b53fafa0660c8b0076b13ce0
2018-04-04 11:33:06 -05:00
Sebastian Hengst
6b9a810251 merge mozilla-central to autoland 2018-04-03 20:04:13 +03:00
Sebastian Hengst
a0665934fa Backed out 2 changesets (bug 1443027) for frequent crashes on OS X. a=backout
Backed out changeset 1e3dc6112e76 (bug 1443027)
Backed out changeset d2734042605a (bug 1443027)
2018-04-03 19:51:49 +03:00
arthur.iakab
b310d9523e Merge inbound to mozilla-central. a=merge 2018-04-03 12:31:23 +03:00
Nicholas Nethercote
94289ab246 Bug 1448225 - Convert StylePrefs to StaticPrefs. r=emilio
The new StaticPrefs machinery means that StylePrefs can be removed.

Note that this approach mirrors all static prefs into Rust, but I have only
updated structs.rs for the prefs that Stylo uses.

On a CLOSED TREE, since a sheriff closed the tree while I was about to land this
via autoland.

MozReview-Commit-ID: G1SY0987WJ7
2018-04-03 09:06:20 +02:00
Cameron McCormack
c14a8ffa84 Bug 1450859 - Remove layout.css.expensive-style-struct-assertions.enabled pref. r=emilio
With the old style system removed, this pref has no effect.

--HG--
extra : rebase_source : ddc8462a0044225a46522f53f4bbb131627fb7f1
2018-04-03 15:58:32 +10:00
Boris Zbarsky
9bb77bdfc7 Bug 1450418. Get rid of nsIDOMScreen. r=qdot
MozReview-Commit-ID: A5Rq0BSQt4V
2018-04-03 00:42:41 -04:00
Dorel Luca
ae1dc5307b Merge mozilla-central to mozilla-inbound 2018-04-03 07:24:53 +03:00
Dorel Luca
d8a4cfd361 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-03 07:04:18 +03:00
Matt Woodrow
82c740d1b1 Bug 1450360 - Respect the z-index property set on scrollbars. r=mstange
--HG--
extra : rebase_source : 0288513aaa2216c14de501417ff3b9f405ee97a5
2018-04-03 12:13:48 +12:00
Ryan VanderMeulen
d9d59209a6 Backed out changeset d85b5825a721 (bug 1440753) for frequent OSX iframe-scrolling-attr-2.html failures on a CLOSED TREE. 2018-04-02 17:59:30 -04:00
Ryan VanderMeulen
e5ec40f40c Backed out 11 changesets (bug 1404222) for static analysis failures on a CLOSED TREE.
Backed out changeset a6a99136300c (bug 1404222)
Backed out changeset 7183b8104399 (bug 1404222)
Backed out changeset a1e4294c1c59 (bug 1404222)
Backed out changeset b79d6e8318db (bug 1404222)
Backed out changeset 0450620fdabd (bug 1404222)
Backed out changeset 026c74a92d04 (bug 1404222)
Backed out changeset 50ac4167f702 (bug 1404222)
Backed out changeset 59038f2db68a (bug 1404222)
Backed out changeset f6b9096da915 (bug 1404222)
Backed out changeset 4e0baffdd79b (bug 1404222)
Backed out changeset 57eeb849ab88 (bug 1404222)
2018-04-02 17:57:27 -04:00
Daniel Holbert
2f5d7919b0 Bug 1404222 followup: add 'explicit' keyword to fix static analysis build error. (no review, trivial bustagefix) 2018-04-02 14:08:33 -07:00
Nicholas Nethercote
9ea93c4f7b Bug 1449395 - Remove nsStaticAtomSetup. r=froydnj
Each nsStaticAtomSetup contains a pointer to a static atom, and also a pointer
to the canonical pointer to that static atom. Which is pretty weird! The
notable thing thing about it is that these structs are in an array, and that
gives us the only way to iterate over all static atoms in a single class, for
registration and lookups.

But thanks to various other recent changes to the implementation of static
atoms, we can now put the static atoms themselves into an array, which can be
iterated over. So this patch does that. With that done, nsStaticAtomSetup is no
longer necessary.

According to the `size` utility, on Linux64 this reduces the size of libxul.so
by the following amounts:

> text:  62008 bytes
> data:  20992 bytes
> bss:   21040 bytes
> total: 104040 bytes

- The bss reduction is one word per atom, because the canonical static atom
  pointers (e.g. nsGkAtoms::foo) have moved from .bss to .data, because they're
  now initialized at compile time instead of runtime.

- The data reduction is one word per atom, because we remove two words per atom
  for the nsStaticAtomSetup removal, but gain one word per atom from the
  previous bullet point.

- I'm not sure about the text reduction. It's three words per atom. Maybe
  because there is one less relocation per atom?

Other notable things in the patch:

- nsICSSAnonBoxPseudo and nsICSSPseudoElement now inherit from nsStaticAtom,
  not nsAtom, because that's more precise.

- Each static atoms array now has an enum associated with it, which is used in
  various ways.

- In the big comment about the macros at the top of nsStaticAtom.h, the pre-
  and post-expansion forms are now shown interleaved. The interleaving reduces
  duplication and makes the comment much easier to read and maintain. The
  comment also has an introduction that explains the constraints and goals of
  the implementation.

- The SUBCLASS macro variations are gone. There are few enough users of these
  macros now that always passing the atom type has become simpler.

MozReview-Commit-ID: 1GmfKidLjaU

--HG--
extra : rebase_source : 2352590101fc6693ba388f885ca4714a42963943
2018-03-29 11:48:18 +11:00
Nicholas Nethercote
4b941e22d0 Bug 1449395 - Remove unnecessary nsStaticAtom.h includes. r=froydnj
For nsCSSAnonBoxes.cpp, nsCSSPseudoElements.cpp, nsDirectoryService.cpp, the
corresponding .h file includes nsStaticAtom.h. For the other files in this
patch, nsStaticAtom.h is not needed at all.

MozReview-Commit-ID: IpMmbXwZHhu

--HG--
extra : rebase_source : 46d0a6b40a41ee233adad7c205cf907fa27de34a
2018-03-29 09:08:54 +11:00
Dorel Luca
465b8a1f5d Merge mozilla-central to autoland 2018-04-03 01:12:17 +03:00
Ben Kelly
9d0c860356 Bug 1450271 Make MediaQueryList bind to its document's inner window. r=baku 2018-04-02 08:35:52 -07:00
Hiroyuki Ikezoe
2b9a5049f3 Bug 1443358 - Consider that the target frame is scrolled out if scrollable parent frame size is empty. r=birtles
This patch adds three test cases;

1) Animation on position:absolute element in a zero-height iframe
  This animation should be throttled.
2) Animation on a non-zero width and hight position:absolute element but whose
   parent has a zero height
  This animation should NOT be throttled since the animation is visible
3) Animation on a zero-height position:absolute element whose parent also has
   zero height.
  This animation should be throttled since the animation is invisible

The first test fails without this fix and passes with the fix.
The second one passes regardless of the fix
The third one is marked as 'todo' since it doesn't pass with this fix.

MozReview-Commit-ID: 8pNUFQ71ivj

--HG--
extra : rebase_source : d1d37e5324247efc20a39d86a0f8849450cc7533
2018-04-02 13:34:14 +09:00
Daniel Holbert
88257ab3d9 Bug 1105111 part 5: Add reftests for 'flex-basis:content' in column-oriented flex container. r=mats
MozReview-Commit-ID: 6TMrmisHOUr
2018-04-02 04:30:39 +02:00
Daniel Holbert
a3d3fde5cc Bug 1105111 part 4: Add reftests for 'flex-basis:content' in row-oriented flex container. r=mats
MozReview-Commit-ID: 93pZdfzai93
2018-04-02 04:30:39 +02:00
Daniel Holbert
3074065ec2 Bug 1105111 part 3: Add support for 'flex-basis:content' in layout. r=mats
BACKGROUND:
Early in flex layout, we have to resolve the 'flex-basis' value to produce the
"flex base size" (basically, the flex-basis resolved to an absolute length).

This resolution happens in two "phases" (which both happen within
nsFlexContainer::GenerateFlexItemForChild()):

First phase: we try to resolve the flex-basis by creating a ReflowInput for the
flex item (which gets us some other things as well).  Under the hood, we use
the flex-basis when resolving this ReflowInput's main-axis size.  The code for
this lives in nsFrame::ComputeSize (and in
nsFrame::ComputeSizeWithIntrinsicDimensions, via some frame classes' overrides of
ComputeSize).

Second phase: If the first phase didn't get us a definite size, then that means
we have to do reflow to measure the content size & produce a resolved flex base
size, which we do via ResolveAutoFlexBasisAndMinSize().

NOTES ON THIS PATCH:
To add 'flex-basis:content' support to layout, this patch only needs to modify
the first phase discussed above. If it turns out we also have some second-phase
work to do (i.e. if we need to do reflow to resolve 'flex-basis:content'), this
patch causes that reflow to happen by simply making us use eStyleUnit_Auto in
the main axis's nsStyleCoord in the first phase.  (And then, if that 'auto'
nsStyleCoord really does require reflow, then that first phase will end up
producing an unconstrained main-size in the flex item's ReflowInput, which will
automatically trigger the second phase.)

MozReview-Commit-ID: 2nH4Fh78C81
2018-04-02 04:30:38 +02:00
Daniel Holbert
81c1d19a77 Bug 1105111 part 2: Add support for 'flex-basis:content' in the style system (gecko / getComputedStyle side). r=mats
MozReview-Commit-ID: E0crFCy7Jfk
2018-04-02 04:30:37 +02:00
Mats Palmgren
4fd8ffd48e Bug 1398537 part 2 - [css-multicol] Implement percentages for 'column-gap' (Gecko part). r=dholbert 2018-04-02 01:56:19 +02:00
Robert Longson
f725679a94 Bug 1446617 - support the SVG 2 path attribute for textPath elements r=dholbert 2018-03-31 18:50:10 +01:00
Brad Werth
e5a53e119f Bug 1298008 Part 3: Update ReflowInput::CalculateBlockSideMargins to store computed values in the UsedMargin property. r=dholbert
MozReview-Commit-ID: 74u7rFkiVln

--HG--
extra : rebase_source : 09c1bab7bf09a9db71926a4dc52f95c99ebe197a
2018-03-23 12:09:48 -07:00
Brad Werth
15154e29fb Bug 1298008 Part 2: Make nsFlexContainer update UsedMargin property after final reflow. r=dholbert
MozReview-Commit-ID: HV4uhJqWjfj

--HG--
extra : rebase_source : 8dd4d384ed78dcea6093cb4f86f5a84d03048fa5
2018-03-08 17:35:47 -08:00
Dorel Luca
baf0da3fea Merge mozilla-central to autoland 2018-04-03 07:22:33 +03:00
Jim Chen
de337ec2e1 Bug 1441279 - 6. Register accessible caret observers across docshell tree; r=bz
AccessibleCaretManager uses scroll and reflow observers to detect when
to update the position of carets. However, it currently only registers
the observers on the leaf docshell, so only changes in the innermost
iframe are detected; that is, it fails to update caret position when an
ancestor iframe is scrolled. This patch makes it register observers on
all ancestor docshells so that changes in ancestor iframes are detected
as well.

MozReview-Commit-ID: bwiSjj8936

--HG--
extra : rebase_source : d567f1d8df67f79769c6532b061e2df1e5ab878f
2018-04-02 17:13:46 -04:00
Matt Woodrow
8e39fcdbe0 Bug 1443027 - Fix the merging algorithm to pass the new tests correctly. r=mstange
MozReview-Commit-ID: JnglCbdhZzE
* * *
[mq]: update-test

--HG--
extra : rebase_source : 1db0cc9843edd9654154d400b578a0432e5d765f
2018-03-23 16:47:37 +13:00
Matt Woodrow
7a24890fe5 Bug 1443027 - Add two new tests for merging behaviour. r=mstange
MozReview-Commit-ID: G5vgtSCdRZP

--HG--
extra : rebase_source : e89b192cc6ca0ef48b529d8d38ff665f3327d81d
2018-03-23 12:20:40 +13:00
Cameron McCormack
50e51f792c Bug 1025724 - Add some shadow tree style tests. r=bz
MozReview-Commit-ID: 3d9ewWoM8Mo

--HG--
extra : rebase_source : 94bab6722cb793e354df8611f064ef3c9c4056f0
2018-04-05 15:41:10 +08:00
Ionut Goldan
c7032b6211 Bug 1436018 - Disable Stylo microbenchmark on Windows r=jmaher
MozReview-Commit-ID: 2AJ0lUxMMZb

--HG--
extra : rebase_source : a503d2763c23487a683da8afe926f61b6fb7523b
2018-04-02 15:07:20 +03:00
Brad Werth
d0b51c156c Bug 1404222 Part 7: Turn off a 'todo' in a mochitest. r=dholbert
MozReview-Commit-ID: 18bkqA6rxoZ
2018-02-07 14:59:43 -08:00
Brad Werth
a4dd74b531 Bug 1404222 Part 7: Turn off a 'todo' in a mochitest. r=dholbert
MozReview-Commit-ID: 18bkqA6rxoZ
2018-02-07 14:59:43 -08:00
Marco Castelluccio
bacd0a5f80 Bug 1436413 - Remove inDOMView as it is no longer used. r=bz
--HG--
extra : rebase_source : 8eb8f07f99b9daf33a27b73dcc6fc92d3ef8f172
2018-02-07 15:46:30 +01:00
Dorel Luca
4e6205407f Backed out changeset cd40ea4d0a95 (bug 1446617) for Reftest failure on build/tests/reftest/tests/layout/reftests/svg/textPath-path-attribute-01.svg 2018-03-31 16:02:10 +03:00
Robert Longson
76c8556c39 Bug 1446617 - support the SVG 2 path attribute for textPath elements r=dholbert 2018-03-31 11:55:18 +01:00
Matt Woodrow
bbc9200a88 Bug 1451384 - Check IsChanged on the old item during merging, since that's the one that might have a deleted frame. r=mstange
This happens when an nsIFrame* that builds an nsDisplayWrapList is deleted, but then the memory is immediately reused for another frame that builds the same type display item, within the same display list.

PreProcessDisplayLists chooses not to descend into the nsDisplayWrapList for the deleted frame, and so mOldItems remains uninitialized for the old sublist.
When adding the new instance, IsChanged returns false, since the pointers are the same, and we're checking HasDeletedFrame on the new instance (where it's never true), instead of the old. We then recurse into MergeDisplayLists, with an uninitialized mOldItems array, and crash.

I haven't added a test because I haven't yet figured out how to create a minimal testcase, and the test would rely on implementation details of the frame allocator to remain unchanged to be useful.

MozReview-Commit-ID: pHimEvfAND

--HG--
extra : rebase_source : 10baa8cabf1eca8d592f2be0eb7bc7c9461f9785
2018-04-05 12:20:32 +12:00
Xidorn Quan
12ad13c3fd Bug 1451216 - Remove Rule::Clone method. r=emilio
MozReview-Commit-ID: 6Re8DENmdUT

--HG--
extra : rebase_source : a39ad55f43a8cddccef94e4f0add2c77eb57c245
2018-04-05 18:18:17 +10:00
Xidorn Quan
3356a5f95f Bug 1448763 part 9 - Remove nsCSSRect. r=emilio
MozReview-Commit-ID: BOsjszpdKwt

--HG--
extra : rebase_source : 7061396323ec4e851517a7be2027447e16e8e77f
2018-04-05 18:27:33 +10:00
Xidorn Quan
8c5331160e Bug 1448763 part 8 - Remove CSSCalc.h. r=emilio
MozReview-Commit-ID: eecZRhdxH8

--HG--
extra : rebase_source : a25a8d4de1916a92ff736303848daf259a9b265c
2018-04-05 18:27:33 +10:00
Xidorn Quan
3248eb765c Bug 1448763 part 7 - Remove nsCSSCornerSizes. r=emilio
MozReview-Commit-ID: jjSjoskIB8

--HG--
extra : rebase_source : a6d939852f06e595ad5e2c4ca7115872d30eca8e
2018-04-05 18:27:33 +10:00
Xidorn Quan
7d3cec4977 Bug 1448763 part 6 - Remove nsCSSValueTriplet. r=emilio
MozReview-Commit-ID: 29GtK1gtreU

--HG--
extra : rebase_source : 9b6b5c0a729228112260d3ae51db1207d003111b
2018-04-05 18:27:33 +10:00
Xidorn Quan
71bc0f3fb7 Bug 1448763 part 5 - Remove all color stuff from nsCSSValue. r=emilio
MozReview-Commit-ID: DQX0HOr8R8

--HG--
extra : rebase_source : 7018509d53f36009f7866b6632235b79f6f8c6b5
2018-04-05 18:27:33 +10:00
Xidorn Quan
ede8ad70e2 Bug 1448763 part 4 - Remove nsCSSValueGradient and its friends. r=emilio
MozReview-Commit-ID: JoYZyud2Wtu

--HG--
extra : rebase_source : 15bae5f8bc52253383d5149090a3bbd333bdc1a9
2018-04-05 18:27:33 +10:00
Xidorn Quan
e54445e81c Bug 1448763 part 3 - Remove nsCSSValueTokenStream. r=emilio
MozReview-Commit-ID: 79CPOfWbo7t

--HG--
extra : rebase_source : 825c8b23f7cb2660f57b3d068375dc08cb8351f1
2018-04-05 18:27:33 +10:00
Xidorn Quan
fa7e3f05c4 Bug 1448763 part 2 - Remove serialization code for specified value. r=emilio
MozReview-Commit-ID: 2DTGHb7GH4T

--HG--
extra : rebase_source : 585cbb9b7521fede13a22ff61e02baa6af1dcfd1
2018-04-05 18:27:33 +10:00
Xidorn Quan
65a9ee4d6a Bug 1448763 part 1 - Make DOMIntersectionObserver use nsStyleSides for mRootMargin, and use Servo code to serialize it. r=emilio
MozReview-Commit-ID: 8RsoLflRtzE

--HG--
extra : rebase_source : 7e9c53dafe473e77087c880ab39e5265638f0f7e
2018-04-05 18:27:33 +10:00
Ting-Yu Lin
2a48bcd518 Bug 1404222 Part 6: Add a crashtest. r=dholbert
The browser should not crash if there's no width and height set on the div
with linear-gradient.

MozReview-Commit-ID: 2DbfpV7JT2m
2018-01-25 15:01:08 +08:00
Ting-Yu Lin
441df3bbaa Bug 1404222 Part 6: Add a crashtest. r=dholbert
The browser should not crash if there's no width and height set on the div
with linear-gradient.

MozReview-Commit-ID: 2DbfpV7JT2m
2018-01-25 15:01:08 +08:00
Ting-Yu Lin ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
cf9bd1c885 Bug 1404222 Part 3: Block onload when shape-outside images are requested for a frame, and keep it blocked until the frame is removed, the image fails to load, or reflow is complete. r=dbaron,dholbert
When we finish decoding an image frame, we need to trigger reflow for the
frame containing a float with shape-outside: <image>, and delay the firing
of the document's onload event until that reflow is complete.
2018-01-25 14:56:43 +08:00
Brad Werth
d38c3aac41 Bug 1404222 Part 2: Extend ImageLoader to associate flags with each request-frame relationship. r=dbaron 2018-03-16 11:01:57 -07:00
Ting-Yu Lin ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
fe87490f1a Bug 1404222 Part 3: Block onload when shape-outside images are requested for a frame, and keep it blocked until the frame is removed or reflow is complete. r=dbaron,dholbert
When we finish decoding an image frame, we need to trigger reflow for the
frame containing a float with shape-outside: <image>, and delay the firing
of the document's onload event until that reflow is complete.
2018-01-25 14:56:43 +08:00
Brad Werth
311eb01351 Bug 1404222 Part 2: Extend ImageLoader to associate flags with each request-frame relationship. r=dbaron 2018-03-16 11:01:57 -07:00
Ting-Yu Lin ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
6c72d34781 Bug 1404222 Part 1: Implement shape-outside: <image>. r=dbaron,dholbert
When creating ImageShapeInfo, it's likely that the image is still decoding.
Part 2 will add mechanism to trigger reflow after the image is ready.
2018-01-25 14:55:18 +08:00
Peter Van der Beken
001dd2aa3b Bug 1448850 - Empty nsIMessageSender. r=bz.
--HG--
extra : rebase_source : 267648b64b9fcfc4217cf59aad524a27fecd5b82
2018-02-16 10:34:21 +01:00
Peter Van der Beken
01a1cdcd31 Bug 1448850 - Remove nsIMessageBroadcaster. r=bz.
--HG--
extra : rebase_source : c9ef8d762347b3c71dd5cfeffafbfbb81eb6e042
2018-02-14 17:35:39 +01:00
Peter Van der Beken
355e71640d Bug 1448850 - Remove nsISyncMessageSender. r=bz.
--HG--
extra : rebase_source : a240b840b0514671565bb4980cf7642ff06749ef
2018-02-10 11:20:51 +01:00
Ting-Yu Lin ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
8efec59d87 Bug 1404222 Part 1: Implement shape-outside: <image>. r=dbaron,dholbert
When creating ImageShapeInfo, it's likely that the image is still decoding.
Part 2 will add mechanism to trigger reflow after the image is ready.
2018-01-25 14:55:18 +08:00
Brad Werth
69dd600383 Bug 1298008 Part 1: Update GeometryUtils::GetBoxRectForFrame to use GetMarginRectRelativeToSelf for margin boxes. r=dholbert
MozReview-Commit-ID: HpOi0TnqEgw

--HG--
extra : rebase_source : 46a187e385091c3623fa81b5d0e5e11fbdffe8fa
2018-01-22 15:12:37 -08:00
Sebastian Hengst
b988859a27 merge mozilla-central to mozilla-inbound 2018-04-03 20:06:28 +03:00
Emilio Cobos Álvarez
a4433a4de8 Bug 1420680: Rework how the loadability of font-faces is computed. r=jfkthame,bz
This reworks bug 1440561 so that we only precompute loads that belong to our
user font set, avoiding messing up with fonts in the cache that belong to other
pages.

The loadability of a font is precomputed in PreTraverse in the same way as we
did, but only for the fonts that we may end up loading. This is stored in
FontFaceSet now.

Also, the principal shenanigans that this code did are reworked to be explicit
about when the document principal changes in ResetToURI, instead of having a
member around and a mutable variable. This makes the code easier to follow.

MozReview-Commit-ID: 9ofTbaLDUF7
2018-04-03 16:22:43 +02:00
arthur.iakab
ad2eeb28a0 Merge mozilla-central to mozilla-inbound 2018-04-03 12:41:24 +03:00
smswessem
3814c98b00 Bug 1358240 - Replace EmojiOne with Twemoji, r=jfkthame, timdream
--HG--
extra : rebase_source : cb1d370dc4fbff33f6022acf393126e0965089de
2018-03-08 18:23:19 -06:00
Emilio Cobos Álvarez
496aa11da2 Bug 1450721: Remove special-case in nsCSSFrameConstructor. r=bz
We don't extend these elements, and I don't feel bad making that code depend on
the UA rule at:

  https://hg.mozilla.org/mozilla-central/file/ef717c03ff54d10b2e30df7e63fc11172c69db44/toolkit/content/xul.css#l63

If we don't create frames for these, we bail out due to the lack of an insertion
point. If we do, well, things are buggy already.

MozReview-Commit-ID: DBBo8jBpqFc
2018-04-03 08:07:40 +02:00
Emilio Cobos Álvarez
3e623bcd7c Bug 1450691: Flushing the parent document can kill our shell. r=xidorn
Bug 1443492 made us flush the parent document for cross-doc getComputedStyle
situations. That can kill the shell we're flushing, let's handle that case
gracefully.

MozReview-Commit-ID: HpFsPQvjKcZ
2018-04-03 08:03:35 +02:00
Bas Schouten
d40acb4412 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Daniel Holbert
c090d777c6 Bug 1174003 late-breaking followup: remove obsolete comment about flex align-self:baseline behavior. (no review, comment-only, DONTBUILD)
There's been a clarification to the spec text that this comment was worried about:
  https://github.com/w3c/csswg-drafts/issues/2316
And with that clarification, this comment is no longer applicable.
2018-03-30 16:13:08 -07:00
Brindusan Cristian
1fa25f597f Backed out 3 changesets (bug 1298008) for devtools failures on browser_boxmodel_pseudo-element.js CLOSED TREE
Backed out changeset c18e2aac48a5 (bug 1298008)
Backed out changeset b5a4113f4649 (bug 1298008)
Backed out changeset 40f53976a5b8 (bug 1298008)
2018-03-30 23:10:23 +03:00
Cosmin Sabou
93f710b20d Merge central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : 2b02ec216396e230c27c74ca90fe88584ff29cd3
2018-03-30 21:46:52 +03:00
Noemi Erli
42b34ba196 Backed out 2 changesets (bug 1443027) for breacking Gmail on OSX r=pascalc a=backout
Backed out changeset 5deb310542a9 (bug 1443027)
Backed out changeset e04979dd66be (bug 1443027)
2018-03-30 19:08:30 +03:00
shindli
3bfd0c07fd Merge inbound to mozilla-central. a=merge 2018-03-30 12:56:21 +03:00
Brad Werth
6910a2c333 Bug 1298008 Part 3: Update ReflowInput::CalculateBlockSideMargins to store computed values in the UsedMargin property. r=dholbert
MozReview-Commit-ID: 74u7rFkiVln

--HG--
extra : rebase_source : 896f1ee98c78d94ea47c4a11ba87d4f516d0319e
2018-03-23 12:09:48 -07:00
Matt Woodrow
0ab5810be5 Bug 1443027 - Fix the merging algorithm to pass the new tests correctly. r=mstange
MozReview-Commit-ID: JnglCbdhZzE
* * *
[mq]: update-test

MozReview-Commit-ID: JMIzrnVeSTo

--HG--
extra : rebase_source : 0ea5ff0e79d1eb1a8f13ea4a17e37fe2601d44e7
2018-03-23 16:47:37 +13:00
Matt Woodrow
97e5feb9b8 Bug 1443027 - Add two new tests for merging behaviour. r=mstange
MozReview-Commit-ID: G5vgtSCdRZP

--HG--
extra : rebase_source : df104a7df2c199d9e95025c533f62428dc1a1efc
2018-03-23 12:20:40 +13:00
Ciure Andrei
c38c8d3b28 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-30 01:11:06 +03:00
Ciure Andrei
5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Olli Pettay
57fd877895 Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, r=masayuki
--HG--
extra : rebase_source : 160ef0aae3922cb32b11476650c15a3f55334691
2018-03-29 19:22:59 +03:00
Boris Zbarsky
50af44ded2 Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag
Components and friends should not be exposed to content anyway.

MozReview-Commit-ID: 4kCeBcIf9nt
2018-03-28 22:46:22 -04:00
Daniel Holbert
9b6ad9d929 Bug 1436881: Remove redundant special-case code for treating flex-basis enum values as 'auto' in vertical axis. r=mats
This patch should not affect behavior.

Logic-wise: the idea behind this patch is to behave as if the
'usingFlexBasisForHeight' variable were always false, which in turn lets us
remove an "if (!usingFlexBasisForHeight || ...)" check, because it trivially
passes when that bool is false.

Background on this special case & why we can remove it:
=======================================================
In the original flexbox implementation, we had some special-case code to be
sure we didn't end up swapping in e.g. "flex-basis:-moz-min-content" for
"height" in these ComputeSize functions, because that was a scenario that
previously would've been prevented at the parser level (height:-moz-min-content
is rejected for now), and hence may not have ended up being handled robustly.

However, nowadays it'll be handled just fine in these functions, and will
produce the same result as our special-case exception tries to achieve.

In particular, for a nsFrame that is a flex item in a flex container with a
vertical main axis (the scenario that these special cases are catching):

 - If the (vertical) main axis is this nsFrame's inline axis (i.e. if this
   nsFrame has a vertical writing-mode), then Stylo actually converts
   enumerated flex-basis values like "-moz-min-content" to "auto" when
   producing the computed values that layout sees.  So it's not actually
   possible for layout to see a computed "flex-basis" of -moz-min-content, in
   that scenario.

 - Otherwise, i.e. if the (vertical) main axis is this nsFrame's block axis,
   then these ComputeSize functions will now end up getting an enumerated
   "blockStyleCoord" (really pointing to flexBasis), but that'll still end up
   being treated like 'auto'. This happens by virtue of ComputeSize's calls to
   ComputeAutoSize (which initializes the tentative bsize value to
   NS_UNCONSTRAINEDSIZE) and to nsLayoutUtils::IsAutoBSize (which returns
   "true" for eStyleUnit_Enumerated values and then makes us leave the
   ComputeAutoSize result unperturbed).
2018-03-29 11:46:27 -07:00
Jeff Muizelaar
6e271997a6 Bug 1440694. Make nsDisplayText final. r=mattwoodrow 2018-03-29 10:56:39 -04:00
Neil Deakin
6a995d0462 Bug 1448018, remove ContainerBoxObject which is only used to access the docshell, but bug 1448018 made the docshell accessible from the frameloader instead so the container box object is no longer being used. Change some editor tests which just access the docShell directly rather than through the box object, r=bz 2018-03-29 10:44:52 -04:00
Ryan Hunt
7e1a91f21c Add a fast path for tiled gradients with no pixel alignment or repeat spacing. (bug 1443912, r=mattwoodrow)
MozReview-Commit-ID: 2TKL2ohrex4

--HG--
extra : rebase_source : f458fa129b9448eb3dd196606b3f7268fa578cf0
2018-03-19 13:31:41 -05:00
Ciure Andrei
68bc832e63 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-30 01:09:21 +03:00
Matt Woodrow
1523ce5000 Bug 1448841 - Part 4: Always put the CompositorHitTestInfo for inactive scrollports at the very top. r=mstange
MozReview-Commit-ID: 4SuL4ErQggS

--HG--
extra : rebase_source : 19374304e79d958c93153e9ce5450da2f34463f7
2018-03-29 23:02:25 +13:00
Matt Woodrow
7c50042dae Bug 1448841 - Part 3: Disable partial display list building when we have overlay scrollbars. r=mstange
MozReview-Commit-ID: HeMaqItUJdD

--HG--
extra : rebase_source : 691126fcf2dd1a90d74e7aca16f37127379804b2
2018-03-29 23:01:47 +13:00
Matt Woodrow
db21303c2a Bug 1448841 - Part 2: Only compute the highest z-index for overlay scrollbars. r=mstange
MozReview-Commit-ID: KFw4dbdCHMf

--HG--
extra : rebase_source : 740c1d57ab6faba5bad3fb87157275fb9a1e3a75
2018-03-29 23:01:21 +13:00
Matt Woodrow
4dd278a28b Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange
MozReview-Commit-ID: LkiWFPk6dzV

--HG--
extra : rebase_source : 20189381eff3b0810196a652273856051ac02674
2018-03-29 23:00:49 +13:00
Brad Werth
0c04a5bbab Bug 1298008 Part 2: Make nsFlexContainer update UsedMargin property after final reflow. r=dholbert
MozReview-Commit-ID: HV4uhJqWjfj

--HG--
extra : rebase_source : 61861ec388f184bb715de5bbe2c2d39a4cef9c36
2018-03-08 17:35:47 -08:00
Peter Van der Beken
edd705b1ca Bug 1444119 - Remove XPCOM extensibility of XSLT functions. r=bz.
--HG--
extra : rebase_source : 7ee56e82624d401f62dccd1180ce07b531ae816e
2018-02-27 19:08:46 +01:00
Makoto Kato
eb03688aa8 Bug 1449828 - Don't calculate selection rect if unnecessary. r=jfkthame 2018-03-29 21:12:34 +09:00
Emilio Cobos Álvarez
e81a508a48 Bug 1435632: Fix the logic to do layout stuff after reassigning a slot. r=smaug,xidorn
The dirty bit fiddling is nontrivial, but it's pretty much what we do for
invalidation and allows to keep this incrementally easily.

The only caller that we cared about for the GetFlattenedTreeParent check in
DestroyFramesForAndRestyle was the old ShadowRoot invalidation functions that
went away.

MozReview-Commit-ID: GmgPPJ6d2qX
2018-03-29 12:34:38 +02:00
Christoph Kerschbaumer
4197b7d96d Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Christoph Kerschbaumer
a929955d1f Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
Dorel Luca
eb1ea97541 Merge mozilla-central to mozilla-inbound 2018-03-29 12:57:29 +03:00
Dorel Luca
57bbc1ac58 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-29 12:50:33 +03:00
Xidorn Quan
3e1eaab1ee Bug 1449798 - Remove GenericSpecifiedValues::ShouldComputeStyleStruct and mSIDs. r=emilio
This was useful because nsRuleData in the old style system may not hold
all the data, but the only subclass ServoSpecifiedValues is always able
to hold any data, and thus passes NS_STYLE_INHERIT_MASK to mSIDS. Given
this, this method and mSIDs seems to be useless and can be removed.

MozReview-Commit-ID: 4vWcV4DRS2i

--HG--
extra : rebase_source : 4f364d431821e29838082e391c6dde08af7f5343
2018-03-29 12:39:07 +11:00
Emilio Cobos Álvarez
9cd4eecb3c Bug 1449010: Respect ::selection background styles for image overlays. r=mattwoodrow
I don't have a strong preference about blending with white vs. just doing alpha
0.5, so I kept doing what we were doing, since Blink and WebKit also apply the
blending to the text background, and I'm not sure that's particularly desirable.

MozReview-Commit-ID: AwYtAgdlcxj
2018-03-29 02:53:02 +02:00
Emilio Cobos Álvarez
bf0a6ad75c Bug 1449010: Some minor cleanup in selection-related code. r=matwoodrow
MozReview-Commit-ID: AAhHZmOBc3Z
2018-03-29 02:53:01 +02:00
Boris Zbarsky
0aa422913e Bug 1449404 part 4. Get rid of a few virtual nsIContent methods. r=mccr8
The HasTextForTranslation implementation was just moved, with the nodetype
check up front dropped because that's enforced statically now.
2018-03-28 18:01:47 -04:00
Boris Zbarsky
4370006c40 Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8 2018-03-28 18:01:47 -04:00
Boris Zbarsky
693169e324 Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8 2018-03-28 18:01:46 -04:00
Gurzau Raul
8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Gurzau Raul
d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
Jonathan Kew
54769131c0 Bug 1449157 - Guard against mContent being null in nsFrame::HandlePress. r=dholbert 2018-03-28 14:42:20 +01:00
Cosmin Sabou
619e0c5b90 Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)

--HG--
extra : rebase_source : 212b357a3079dff30845a5f82e47b94e2d7f93cd
2018-03-28 18:10:11 +03:00
Jonathan Watt
a86c2a4a02 Bug 1449565 - Remove the aGeckoParentRule parameter from css::Loader's InsertChildSheet and LoadChildSheet. r=emilio 2018-03-23 17:02:35 +00:00
Jonathan Watt
9e1dc4eece Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio 2018-03-23 16:40:12 +00:00
Jonathan Watt
41622cb3a7 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Tim Nguyen
9458999c51 Bug 1449118 - Force SVGs to load when running the twisty reftest. r=dholbert
MozReview-Commit-ID: HxU0B0Bxwgp

--HG--
extra : rebase_source : dabe4a34d31de13b7d2d42d054463ccef3020913
2018-03-28 21:38:31 +00:00
Robert Longson
432b48c35a Bug 1448774 - part 2 r=dholbert 2018-03-29 04:09:34 +01:00
Robert Longson
f627214d56 Bug 1448774 - part 1 r=dholbert 2018-03-29 03:12:05 +01:00
Robert Longson
46442efe5d Bug 1449075 - comma and/or whitespace should be mandatory to separate transform values r=dholbert 2018-03-28 19:05:39 +01:00
Tom Ritter
449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Xidorn Quan
341a13878b Bug 1448535 part 2 - Remove arena-related code from style structs. r=emilio
MozReview-Commit-ID: LlmauyL3goU

--HG--
extra : rebase_source : b2e0573ebe97c0a470029671c9732ed377e8bbf0
extra : source : 49c1520417187fb218ab4ba6a85d384d93df7da8
2018-03-29 03:45:18 +11:00
Xidorn Quan
d72e78d526 Bug 1448535 part 1 - Make nsMathMLmtdInnerFrame use UniquePtr for its StyleText. r=dholbert
MozReview-Commit-ID: 6tuA3JC1FDV

--HG--
extra : rebase_source : 363ba54fa953abd7708a451524500e2270ffecb1
extra : source : e910fff5e10cc12854936d91585ce4a5b73fde90
2018-03-29 03:45:18 +11:00
Xidorn Quan
efc0cdde02 Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio
MozReview-Commit-ID: 6sh4eKvDpRF

--HG--
extra : rebase_source : 7d83f2b2d4e2739333016ed82754bf3a4a700de4
extra : source : 147ca562a24652c3f30add793213db70aff65e9e
2018-03-29 02:34:34 +11:00
Xidorn Quan
5c55e4b983 Bug 1447828 part 7 - Remove StyleBackendType uses from PreloadedStyleSheet. r=emilio
MozReview-Commit-ID: L37tnRAAJbQ

--HG--
extra : rebase_source : 1d073c4fadcc8372b5afe55f648bcb1c276f4de2
extra : source : 09e1b57c52fbfe3145b47d80ac098c487970d8b4
2018-03-29 02:34:34 +11:00
Xidorn Quan
d81392eca1 Bug 1447828 part 6 - Have only a single nsLayoutStylesheetCache instance. r=emilio
MozReview-Commit-ID: BjCgc8MZjIq

--HG--
extra : rebase_source : 104140c2eed5987b5568aca89a72bc7d5e3ed839
extra : source : cd66e264953865b0604054fb9d0b741d0ae19ebf
2018-03-29 02:34:34 +11:00
Xidorn Quan
d3b8ac27c8 Bug 1447828 part 5 - Remove StyleBackendType uses from nsStyleSheetService. r=emilio
MozReview-Commit-ID: 2yQqwVPnvdE

--HG--
extra : rebase_source : 90f58d5726cb85e9bbcf56bc2eaf29c85940ddbe
extra : source : 8ffba0152d4bd16f87d2ddefefacb7081a46443b
2018-03-29 02:34:34 +11:00