Commit Graph

61803 Commits

Author SHA1 Message Date
Xidorn Quan
bdd541a0a1 Bug 1326514 followup - Handle null prefix in namespace rule gracefully for Gecko backend.
MozReview-Commit-ID: BULWqcb33k4
2017-12-21 19:43:25 +11:00
Xidorn Quan
65122eed20 Bug 1326514 - Implement the CSSOM bits for CSSNamespaceRule. r=bz
MozReview-Commit-ID: 5UpvH4osOfn

--HG--
extra : rebase_source : 9b04b92e1c270217e068ce72e6c64884067500b7
2017-12-21 12:17:37 +11:00
Emilio Cobos Álvarez
bae0ffb7be Bug 1420547: Fix removal of <area> elements from an image map. r=bz
This code was relying on nsImageFrame::ContentRemoved running before it.

MozReview-Commit-ID: Imjhd9exjQS

--HG--
extra : rebase_source : 7c6367f515dc140176e50d959c07250057e28354
2017-12-13 01:58:48 +01:00
Emilio Cobos Álvarez
6abaf32af5 Bug 1420547: Notify the pres shell specially, instead of via mutation observers. r=bz
This makes the pres shell be notified as the last observer unconditionally.

In practice this doesn't matter, and it may already be the case if an iframe
goes display: none and back. In practice, the only dependency that requires this
order is that the pres shell needs to be notified _after_ the content sink, so
we don't try to enter frame construction before beginning the shell update.

That may be worth looking into, but definitely not in the scope of this bug... :)

MozReview-Commit-ID: 9WeJ5kaUtBq

--HG--
extra : rebase_source : 6589df0aa8a875dc270894fabb6b4bc170d6b6fe
2017-12-06 05:26:32 +01:00
Emilio Cobos Álvarez
27c288f0e2 Bug 1426536: Remove nsContentUtils::IsContentInsertionPoint. r=smaug
We're not going to need it in Shadow DOM v1.

MozReview-Commit-ID: HOokTPlm2Wt

--HG--
extra : rebase_source : 2f746eafb9fa2b14cfe05233d67bf34b80105a44
2017-12-20 22:45:19 +01:00
Margareta Eliza Balazs
24618e772a Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2017-12-20 12:14:04 +02:00
Margareta Eliza Balazs
060948a574 Merge inbound to mozilla-central r=merge a=merge 2017-12-20 11:47:11 +02:00
Stone Shih
a4f6e53467 Bug 1420589 Part9: Dispatch pointer events to the capturing target even it's frame is destroyed. r=smaug.
MozReview-Commit-ID: DxNx3ByTdCW
2017-11-30 16:10:03 +08:00
Stone Shih
4e51f8e1c5 Bug 1420589 Part7: Using mouse or touch event to do hit test and then generate pointer events with the same target. r=smaug.
MozReview-Commit-ID: 1uM3MxurI9I
2017-11-26 21:54:07 +08:00
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
Stone Shih
1a9d2b9639 Bug 1414204 Part3: Revise test_bug470212.html to drag the correct element. r=smaug.
This test case is broken. The anchor element is drag but not canvas element. Shift the position of mousedown event a little bit so that the canvas element is drag.

MozReview-Commit-ID: 5Ebqtbzwg0d
2017-11-10 11:52:14 +08:00
Ting-Yu Lin
278ab9f9a4 Bug 1426065 Part 2 - Drop mozilla prefix in nsFloatManager.cpp. r=dholbert
The cpp file already has "using namespace mozilla;".

MozReview-Commit-ID: L2OPyBuvg9q

--HG--
extra : rebase_source : d53b9ab09163a2bb03fc1cebe059aca0f6bb53a1
2017-12-19 15:22:36 +08:00
Ting-Yu Lin
6b9beb409e Bug 1426065 Part 1 - Move ShapeInfo and its dervied classes from header to cpp. r=dholbert
ShapeInfo and its derived classes are private to nsFloatManager, which don't
need to be in the header. Move them to cpp to make compile faster after
changing them.

MozReview-Commit-ID: MRkBGoqcPj

--HG--
extra : rebase_source : bc1de4269629f881e49af0d4faba89e8fbd4e460
2017-12-19 15:06:10 +08:00
Neerja Pancholi
3b428a8003 Bug 1417725 - (Gecko) Add -moz-column-span alias for column-span property. r=heycam on a CLOSED TREE
MozReview-Commit-ID: G4a0UTVCw9o

--HG--
extra : amend_source : 1a26aeb6712e68375f42c15ef5623faee59c0e2e
2017-11-15 16:39:21 -08:00
Stone Shih
4b47b52afe Bug 1414204 Part1: Suppress input events when there is a dnd session. r=smaug.
There may be some pending input events in the queue of thread when content starts a dnd operation. Spec says that input events should be suppressed when there is a dnd operation. Add a flag in ESM and turn on/off when start/finish a dnd operation. Checking the flag in PresShell::HandleEvent because we may start a dnd operation with pointermove and we want to suppress the mousemove as well.

MozReview-Commit-ID: 43NZrA7SW4c
2017-11-03 18:25:49 +08: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