Commit Graph

61789 Commits

Author SHA1 Message Date
Stone Shih
cd8b01e32a Bug 1420589 Part6: Keep those touch points that are not in the same document so that we can use them to dispatch pointer events.
MozReview-Commit-ID: JlXHDwpbcEO
2017-12-09 10:06:18 +08:00
Stone Shih
cfd5f075ba Bug 1420589 Part5: Separate the logic to get shell for touch events into a function. r=smaug.
MozReview-Commit-ID: LbYKBZAqeJM
2017-12-09 09:11:10 +08:00
Stone Shih
777509d199 Bug 1420589 Part4: Revise PointerEventHandler utilities. r=smaug.
MozReview-Commit-ID: DpGrbbYJbzh
2017-12-09 08:56:11 +08:00
Stone Shih
edf50a6c24 Bug 1420589 Part3: Merge PresShell::HandlePositionedEvent to PresShell::HandleEvent. r=smaug.
MozReview-Commit-ID: 9w1DSb5uXME
2017-12-02 22:25:25 +08:00
Stone Shih
e169d04d5d Bug 1420589 Part2: Define a helper class to store the target of pointer events. r=smaug.
MozReview-Commit-ID: IS5MM3gXpC4
2017-11-26 21:38:55 +08:00
Stone Shih
e0e01af2e8 Bug 1420589 Part1: Separate the logic of finding the event target for touch events into a function. r=smaug.
MozReview-Commit-ID: 5IWpVBdiQ3o
2017-11-22 11:36:35 +08:00
Mats Palmgren
bb0f44962b Bug 1425959 - Only allow ::first-letter/line children when the parent frame is a block frame. r=emilio
MozReview-Commit-ID: 4ARPMUCQKKV
2017-12-20 01:08:53 +01:00
Kartikaya Gupta
c60d72d41b Bug 1424631 - Update reftest fuzziness for change in WR PR 2229. r=jrmuizel
MozReview-Commit-ID: 4K6URZ8SiP5

--HG--
extra : rebase_source : 32db827ec69bb76921df82275001a16f51978526
2017-12-19 09:16:37 -05:00
Dorel Luca
bb38f32f41 Merge mozilla-central to autoland r=merge
--HG--
extra : rebase_source : 0c0bfd3276af0539685b4c20bbe62fe3bf084693
2017-12-19 12:11:30 +02:00
Emilio Cobos Álvarez
aff5090202 Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug
This also removes some confusing comments around nsIDocument regarding some kind
of "special" stylesheets, which don't seem to exist anymore, and consolidates
StyleSheetList so that we only have one implementation.

I think that fixes a potential leak on the shadow root code (even though the API
is v0 only), given the pointer from the ShadowRootStyleSheetList to the
ShadowRoot wasn't being CCd.

Also, more stuff could be renamed, methods removed, etc, feel free to suggest
more cleanup, I've done mostly the minimal.

Next steps are moving the stylesets there and stop using the proto binding sheet
list / resources.

MozReview-Commit-ID: D9hnDgPQAS5
2017-12-19 11:09:59 +01:00
Dorel Luca
8d7dc32e0f Merge mozilla-inbound to mozilla-central r=merge a=merge
--HG--
extra : amend_source : ab6e52d7abe431d1530dac3f5b0b09f7a8c18d62
2017-12-19 12:08:53 +02:00
Emilio Cobos Álvarez
252a32cb3c Bug 1425893: Add crashtest. r=me
MozReview-Commit-ID: HEGay8D5gzR
2017-12-19 11:07:15 +01:00
Dorel Luca
e968e809aa Backed out changeset 13faabcf8e96 (bug 1425769) for Linux bustage on build/src/dom/base/nsLineBreaker.h 2017-12-19 11:07:44 +02:00
Emilio Cobos Álvarez
5ae586e759 Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug
This also removes some confusing comments around nsIDocument regarding some kind
of "special" stylesheets, which don't seem to exist anymore, and consolidates
StyleSheetList so that we only have one implementation.

I think that fixes a potential leak on the shadow root code (even though the API
is v0 only), given the pointer from the ShadowRootStyleSheetList to the
ShadowRoot wasn't being CCd.

Also, more stuff could be renamed, methods removed, etc, feel free to suggest
more cleanup, I've done mostly the minimal.

Next steps are moving the stylesets there and stop using the proto binding sheet
list / resources.

MozReview-Commit-ID: D9hnDgPQAS5

--HG--
extra : rebase_source : 0597917521894288c6b749e5d3ac6ac3b7db44a0
2017-12-17 22:29:10 +01:00
Blake Kaplan
7996b144ff Bug 1399400 - Use a strong reference when handling mTextField. r=bz
MozReview-Commit-ID: IqzGDM4ezeW
2017-12-18 19:39:45 -05:00
Manish Goregaokar
81acb4de1a Bug 1424798 - stylo: Add reftest; r=hiro
MozReview-Commit-ID: FsALAIEmHql
2017-12-18 21:23:02 -08:00
Gurzau Raul
bc6e59d2b4 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-19 00:00:36 +02:00
Daniel Holbert
b328472fc2 Bug 1398963 part 7: Add an about:config flag to optionally emulate -moz-box with flexbox. r=mats
This feature is intended to help Firefox frontend developers experiment with
replacing XUL content with modern flexbox.  We might also eventually use
this emulation to *actually* render most or all of our legacy XUL UI.

MozReview-Commit-ID: 3g2W9o3t23H

--HG--
extra : rebase_source : a3e8b443d9b58e5af3287a23de6edc276ed5e847
2017-10-26 11:12:17 -07:00
Daniel Holbert
9070f50509 Bug 1398963 part 6: Make "visibility:collapse" cause flex items to be 0-sized, in emulated -moz-{inline-}box. r=mats
In modern flexbox and in "display:-webkit-box", children with
"visibility:collapse" currently generate "struts" which have 0 main-size but
nonzero cross-size.

But XUL/-moz-box treats these children differently -- it makes them 0-sized in
both axes. So we need to add a custom behavior to modern flexbox in order to
emulate that.

Specifically, this patch makes us:
 - Ignore these children when computing the flex container's intrinsic sizes.
 - Take a simpler codepath with 0-sized struts for collapsed elements when
   laying out a -moz-box (rather than the typical 2-pass layout, with strut
   cross-size being established in the 1st pass).

MozReview-Commit-ID: IpkADpFFBMx

--HG--
extra : rebase_source : d42a291c414c61906a82c2be2b5f1834aa24e4e3
2017-12-18 12:17:11 -06:00
Daniel Holbert
65058982ca Bug 1398963 part 5: Treat XUL Popups like other OOF boxes when generating anon flex items, since they spawn placeholders. r=mats
XUL popups (i.e. FrameConstructionItem instances with mIsPopup==true) behave
like out-of-flow content -- in particular, they generate nsPlaceholderFrame
instances.  So, they need the same placeholder-wrapping behavior that we have
for other out-of-flow frames inside of an emulated legacy box, in order to
satisfy our existing invariants.

MozReview-Commit-ID: KnspN4kTPnx

--HG--
extra : rebase_source : 8487f4ee50b21dc0389514fe34a17a73375a58ab
2017-12-18 12:17:10 -06:00
Daniel Holbert
779ba64d4a Bug 1398963 part 4: Refactor logic in nsCSSFrameConstructor's IsXULDisplayType() function (idempotent patch). r=mats
This patch does not change behavior. This patch just refactors the logic in
IsXULDisplayType so that -moz-box and -moz-inline-box are handled via a
dedicated early-return.  This lets a later patch in this series make a more
understandable targeted tweak to add pref-controlled behavior for these display
values.

MozReview-Commit-ID: 6keGrxJcA5l

--HG--
extra : rebase_source : a4c7a6dd205da7d7c39c172ebb6d0c3bb7cd5458
2017-12-18 12:17:10 -06:00
Daniel Holbert
91270c255f Bug 1398963 part 3: Generalize "webkit-box" variable names and code-comments in nsCSSFrameConstructor.cpp (idempotent patch). r=mats
Now that (per previous patch) NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX isn't just
a webkit-box-specific tag: this patch here generalizes the variable-names and
comments associated with that flag in nsCSSFrameConstructor.cpp.

This patch does not make any changes to behavior; it's simply renaming &
comment tweaks.

MozReview-Commit-ID: DcF5GirAQwD

--HG--
extra : rebase_source : d847c5579399a4cc31dc14a52a93b03ed917034e
2017-12-18 12:17:10 -06:00
Daniel Holbert
0d839c700e Bug 1398963 part 2: Make nsFlexContainerFrame label itself as legacy if it has -moz-box/-moz-inline-box display val. r=mats
To be clear, this is a "paving the way" patch.  At this point in the patch
series, it's not yet possible for us to generate a nsFlexContainerFrame that
has display:-moz-box.  (A later patch in this series will make that possible.)

This patch adds the mechanics to nsFlexContainerFrame instances so that they'll
label themselves appropriately (with NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX)
once it *does* become possible for -moz-box to spawn a nsFlexContainerFrame.
Moreover, this patch updates the state bit's documentation to reflect its new
potential-usage.

MozReview-Commit-ID: ElApieVoTLf

--HG--
extra : rebase_source : 0c59e2a0adc8e060a687e5ffdf6246eb8068eef6
2017-12-18 12:17:10 -06:00
Daniel Holbert
458c3ac132 Bug 1398963 part 1: Rename frame-state bit from NS_STATE_FLEX_IS_LEGACY_WEBKIT_BOX to NS_STATE_FLEX_IS_EMULATING_LEGACY_BOX (idempotent patch). r=mats
This patch isn't changing semantics of this bit at all - it just renames it to
a more general name. In other words, this patch does not change behavior.

MozReview-Commit-ID: 4wb13X4YinJ

--HG--
extra : rebase_source : 9a89ce8782f735d7f4a8ad471606a2af5201ac83
2017-12-18 12:17:10 -06:00
Kartikaya Gupta
4f18e92ffb Bug 1334189 - Enable mochitest-plain for linux64-qr. r=jrmuizel
MozReview-Commit-ID: nbcWhDq5de

--HG--
extra : rebase_source : 25e2c2b8b996ae11cd25dee07d9092ba574a9e40
2017-12-13 18:38:39 -05:00
Kartikaya Gupta
ea60a161ee Bug 1154206 - Don't end the test until all the advanceTimeAndRefresh calls are done. r=jrmuizel
MozReview-Commit-ID: 69losfPM6bk

--HG--
extra : rebase_source : 9f460d5b03d5326d2181a884ee0fc843105f1054
2017-12-13 18:38:37 -05:00
Emilio Cobos Álvarez
dbb3111ff1 Bug 1398492: Remove the grid pref. r=mats
MozReview-Commit-ID: 6Qez8NE8oze
2017-12-17 00:04:35 +01:00
Swapnil
fff4bd7c7c Bug 785931 - Removed probes GRADIENT_DURATION, GRADIENT_RETENTION_TIME. r=chutten 2017-12-13 23:08:56 +05:30
Csoregi Natalia
3ec05888ca Merge inbound to mozilla-central r=merge a=merge 2017-12-16 11:37:48 +02:00
Miko Mynttinen
03b4894819 Bug 1425271 - Improve temporary display item removal r=mattwoodrow
MozReview-Commit-ID: FBDuGice0DU

--HG--
extra : rebase_source : 3e932e2851d9f706e11c56156a5bc48a2df8b1c2
2017-12-15 16:33:03 -06:00
Gerald Squelart
024f843fb6 Bug 1425550 - Output frame tree when RDL checker finds issues - r=mattwoodrow
MozReview-Commit-ID: IGnFpDuk0Sc

--HG--
extra : rebase_source : 28099067dd8bcecd51cdc56a5befcf807f140f89
2017-12-15 14:56:37 -06:00
Cosmin Sabou
d1dc090edc Backed out changeset 3eab9fd44dda (bug 1425550) for build bustages on build/src/layout/base/nsLayoutUtils.cpp:3888:21 r=backout on a CLOSED TREE 2017-12-16 00:56:48 +02:00
Brindusan Cristian
bd96271858 Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-12-15 23:56:03 +02:00
Ciure Andrei
7e4e20da7d Merge inbound to mozilla-central r=merge a=merge 2017-12-15 23:52:00 +02:00
Gerald Squelart
61cd254de0 Bug 1425550 - Output frame tree when RDL checker finds issues - r=mattwoodrow
MozReview-Commit-ID: IGnFpDuk0Sc

--HG--
extra : rebase_source : 659c6ed336493a458bc62c2eb73ebc08fef0a0d4
2017-12-15 14:56:37 -06:00
Botond Ballo
c1cb97c6d8 Bug 1425485 - Propagate overscroll-behavior on a text input to the anonymous scrollable <div> inside it. r=tnikkel
MozReview-Commit-ID: Ey1Ns34GXJL

--HG--
extra : rebase_source : 67676a085787170ff99bae8142890616cc3e774c
2017-12-15 13:23:24 -05:00
Emilio Cobos Álvarez
2c789cb314 Bug 1424952: Modernize a bit more nsImageMap, and make removals a bit more incremental. r=dholbert
Summary: MozReview-Commit-ID: 4iXJtLKEwY7

Reviewers: dholbert

Reviewed By: dholbert

Bug #: 1424952

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

MozReview-Commit-ID: 3FANAhS06Z5
2017-12-15 17:53:41 +01:00
Margareta Eliza Balazs
defd7cd449 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-15 11:52:23 +02:00
Narcis Beleuzu
88be244907 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-15 03:47:38 +02:00
Narcis Beleuzu
b73dac9611 Merge autoland to mozilla-central. r=merge a=merge on a CLOSED TREE 2017-12-15 03:43:08 +02:00
Matt Woodrow
7418541eb3 Bug 1419609 - Always mark the root agr as async. r=jwatt 2017-12-14 17:39:49 -06:00
Matt Woodrow
5d4d20a5a6 Bug 1419021 - Part 2: Don't do a full display list build when there are no modified frames. r=miko 2017-12-14 17:38:21 -06:00
Matt Woodrow
1571d5e823 Bug 1419021 - Part 1: Invalidate display items when we get a size for decoded images since this can change the display items we build. r=tnikkel
This breaks rendering when we try do a sync decode paint since we might not have created the nsDisplayImage/nsDisplayBackgroundImage yet (or cached the empty size) and so we never get to the actual paint call.
2017-12-14 17:37:56 -06:00
Kartikaya Gupta
1a9363bebe Bug 1424782 - Follow-up to remove overzealous assertion I added. r=me
With webrender and gfx.webrender.hit-test enabled, we create
nsDisplayCompositorHitTestInfo items which are subclasses of nsDisplayEventReceiver,
and we do so even for painting display lists. So this assertion trips even though
this is the desired behaviour. I'm taking the assertion out as it is not really
needed.

DONTBUILD because trivial assertion removal

MozReview-Commit-ID: Bs9PjtQSwqQ
2017-12-14 13:55:08 -05:00
Miko Mynttinen
ea3073f5e3 Bug 1425115 - Only add nsDisplayPerspective to mTransformFrame when retaining display list r=mattwoodrow
MozReview-Commit-ID: HKey0DG2r4c

--HG--
extra : rebase_source : 4e3087f2c12751ec129d558127556259b1b12f23
extra : source : 27e11cbb58f2549e3df59aea3f95306613ec6194
2017-12-13 14:38:24 -06:00
Narcis Beleuzu
eda8e08e68 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-15 03:46:15 +02:00
00626c42d9 Bug 1413104 - Drop telemetry probes for layer size; r=botond
MozReview-Commit-ID: FtpTJDC50A8

--HG--
extra : rebase_source : 2e1ba62ae1cb462546ce552efccdde2fe1380a00
2017-12-14 21:36:09 +00:00
Morris Tseng
f4496d23fc Bug 1419546 - Consider mLayer in nsDisplayTableBackgroundImage::GetPerFrameKey(). r=mattwoodrow
MozReview-Commit-ID: Bqk0U4REESW

--HG--
extra : rebase_source : 6519c6df50d282cbeff42b414ac13578347e8586
2017-12-13 10:44:17 -06:00
Gerald Squelart
0c3cf12488 Bug 1416991 - Fix perspective indexing in partial DL builds - r=mattwoodrow
Perspective item indices (used to produce unique per-frame keys) were generated
by incrementing a counter in the builder when building a perspective display
item. This caused problems with retained display lists, because an unmodified
perspective could be skipped during a partial build, causing other perspectives
to be incorrectly numbered and then incorrectly merged with the previous
retained display list.

To fix this, we need to always increment the counter if there is likely to be
a perspective, before that item may be skipped.

MozReview-Commit-ID: Edn7lUOLuPw

--HG--
extra : rebase_source : 5d10d4595576d17a2ac3fa6d6289fb98408c3654
2017-12-13 05:41:13 -06:00
Narcis Beleuzu
cb3d418959 Backed out changeset 6cb9414b5d77 (bug 1425115) for web platform reftests failures on CSS2/borders. r=backout on a CLOSED TREE 2017-12-14 23:21:40 +02:00