Commit Graph

62148 Commits

Author SHA1 Message Date
Boris Zbarsky
d8f202f957 Bug 1426525 part 4. Remove uses of 'ref' in XUL trees. r=gijs
MozReview-Commit-ID: He9RTzZMmSr
2018-01-05 13:48:39 -05:00
Csoregi Natalia
bbfcdcd760 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_signed_apps/cose_multiple_signed.zip => security/manager/ssl/tests/unit/test_signed_apps/cose_multiple_signed_with_pkcs7.zip
rename : security/manager/ssl/tests/unit/test_signed_apps/cose_signed.zip => security/manager/ssl/tests/unit/test_signed_apps/cose_signed_with_pkcs7.zip
rename : third_party/rust/cose/src/cbor/mod.rs => third_party/rust/moz_cbor/src/lib.rs
extra : rebase_source : 5f16e3d25e86d41e201b8c28ead361fd6ac25c42
2018-01-10 12:07:47 +02:00
Brad Werth
b61d32f5ef Bug 1423378 Part 1: Specially treat the explicit line names following a repeat auto-fit or auto-fill declaration to ensure they are always applied to the following line. r=mats
MozReview-Commit-ID: iFM5J6wRL6
2017-12-05 14:51:06 -08:00
Emilio Cobos Álvarez
339814eda4 Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz
The whole function doesn't have much sense.

I killed its only DOM use in bug 1427511.

Now it only has two callers in nsCSSFrameConstructor, which basically only want
to know whether the children of the same node can have different flattened tree
parents.

So let's check that directly instead (checking whether the element has a binding
or a shadow root), and simplify a bit other surrounding code while at it.

Leave the XUL popup / menubar code doing the broken thing they were doing
beforehand, because it doesn't look to me like it's trivial to fix... They're
effectively assuming that the children of the menupopup end up in a single
insertion point, which is true, but doesn't need to be. Maybe they should walk
the DOM tree? Don't want to dig into that right now, since XUL insertion points
can be filtered and all that... Not fun.

Also, this removes the broken optimization that used to check
mParentFrame->GetContent()->HasChildren(), because it's pretty broken. It used
to be relevant before bug 653881, because <children> element used to not exist,
but now the insertion point at least needs to contain the <children> element all
the time.

There even used to be a XXX comment saying that the optimization didn't work,
which was removed in:

  https://hg.mozilla.org/mozilla-central/rev/2d8585ec74b3

We could still check for "no insertion points", and optimize that, but it
doesn't seem worth it.

MozReview-Commit-ID: L4lspkxKENr
2018-01-09 20:50:17 +01:00
Kartikaya Gupta
9881d74db7 Bug 1428765 - Fix scenario where display item clip chains hash to different values even though they are equal. r=mstange
MozReview-Commit-ID: KOBNjcuMUn

--HG--
extra : rebase_source : e9eff4dfe7b15bd46a9f02ae2555a96d76af4c37
2018-01-09 12:31:58 -05:00
Emilio Cobos Álvarez
7f790cf77a Bug 1428339: followup: Add missing include that busts some builds on a CLOSED TREE. r=me
MozReview-Commit-ID: AFaC5R2AZ8L
2018-01-09 17:50:39 +01:00
Emilio Cobos Álvarez
92b7f3d80f Bug 1425755: Add HTMLSlotElement to the bindgen-generated files on a CLOSED TREE. r=heycam
This allows to selector-match ::slotted.

MozReview-Commit-ID: ItELHkf2PMl
2018-01-09 17:33:08 +01:00
Henri Sivonen
381880a0e0 Bug 1428771 - Make UCS2_CHAR_IS_BIDI check for lead surrogates corresponding to U+1E800...U+1EFFF and rename to UTF16_CODE_UNIT_IS_BIDI. r=jfkthame
MozReview-Commit-ID: 9ZKF6SaN79n

--HG--
extra : rebase_source : 406f2647e65e2bdb97190b12564bafa6df39e6a8
2018-01-08 16:18:32 +02:00
Emilio Cobos Álvarez
63b7c47b72 Bug 1428339: Make attribute mapping work without a pres context. r=heycam
MozReview-Commit-ID: FisYWoArX0N

--HG--
extra : rebase_source : b47cd6960b9bb44fc4573b295068fec01339322a
2018-01-05 13:47:04 +01:00
Emilio Cobos Álvarez
0541db0072 Bug 1428164: followup: Simplify reftest reference. r=me
MozReview-Commit-ID: 8rgh0waQdAl
2018-01-05 11:59:23 +01:00
Emilio Cobos Álvarez
3e9fdd7ae2 Bug 1428164: Reftest. r=me
MozReview-Commit-ID: 5hm56QmtlnV
2018-01-05 11:57:49 +01:00
Emilio Cobos Álvarez
9cd802936b Bug 1428164: Restyle owned anon boxes after processing children. r=bz
MozReview-Commit-ID: 4QcJPY9hkSm
2018-01-05 11:57:47 +01:00
Tiberius Oros
0a895028f7 Merge inbound to mozilla-central r=merge a=merge 2018-01-05 11:57:58 +02:00
Andreea Pavel
b88f05e893 Backed out changeset 3a55b10a6974 (bug 106327) for build bustage on
/builds/worker/workspace/build/src/layout/xul/nsMenuFrame.cpp r=backout a=backout on a CLOSED TREE

--HG--
extra : amend_source : e09bf154093728898ad2c27dd185108f9ff3b009
2018-01-05 04:46:46 +02:00
Hiroyuki Ikezoe
ff1b1ade87 Bug 1420928 - Templatize functions that ensures nsStyleAutoArray length. r=boris
MozReview-Commit-ID: 7MvW9OCBkCP

--HG--
extra : rebase_source : 723092199ce780058b0f87bfd0c208987c847e47
2018-01-05 06:24:10 +09:00
Hiroyuki Ikezoe
9070574de9 Bug 1420928 - Drop StyleTransition::GetCombinedDuration. r=boris
We no longer call the function directly.  It has been replaced by
nsStyleDisplay::GetTransitionCombinedDuraion(uint32_t).

MozReview-Commit-ID: 9wZExWPmnyG

--HG--
extra : rebase_source : dff6b4e686578e7c79e16148ab3ab63b40444be7
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
3fe9a1ba97 Bug 1420928 - Reuse computed values for transition properties repeatedly if the computed values' length is less than transition-property length. r=boris
MozReview-Commit-ID: BptxzspwoP9

--HG--
extra : rebase_source : a1335be7d9750aadf23e33a7b12114eef53f2e64
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
13133e575b Bug 1420928 - Reuse computed values for animation properties repeatedly if the computed values' length is less than animation-name length. r=boris
MozReview-Commit-ID: DSmUlE9m0UI

--HG--
extra : rebase_source : 7fe6f42edf6da3d3dbb988c7d569272fdd6d56af
2018-01-05 06:24:09 +09:00
Hiroyuki Ikezoe
9f18c8396b Bug 1420928 - Add a function that calculates combined duration with a given position in the transition-property list. r=boris
MozReview-Commit-ID: 9YOII9lqtRq

--HG--
extra : rebase_source : 6c06b3b4f5cdd09b35473c0a19211158252519e2
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
b6d9f2a64e Bug 1420928 - Add getters for each transition property in nsStyleDisplay. r=boris
MozReview-Commit-ID: KMUk5VFmKG7

--HG--
extra : rebase_source : ce4bbcd06f3076a5df582a38b2c762c67e4cb78a
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
146aae5f3b Bug 1420928 - Add getters for each animation property in nsStyleDisplay. r=boris
This is also a prerequisite to use repeated values for the used value.
Note that each count should never be zero since their initial value is 1 and
we never set zero length property value to the member.

MozReview-Commit-ID: 44ZMhopuK6o

--HG--
extra : rebase_source : 6284b2b5beb43bf78c16e0c39e95ec0e5118ed14
2018-01-05 06:24:08 +09:00
Hiroyuki Ikezoe
9fcd2613d3 Bug 1420928 - BuildKeyframes takes animation name and timing function instead of StyleAnimation. r=boris
This is a prerequisite to use repeated values for the used value of the each
animation property instead of the computed values.

In a subsequent patch in this patch series, the timing function will be replaced
with the one which may be a repeated value in computed animation timing function values list.

MozReview-Commit-ID: GOKHE3MH0Ue

--HG--
extra : rebase_source : ecc270eddb648d2915292ec3e219f4e349c6047c
2018-01-05 06:24:07 +09:00
Hiroyuki Ikezoe
e170a44222 Bug 1420928 - Pass a const reference of nsStyleDisplay instead of a raw pointer to DoUpdateTransitions. r=birtles,boris
MozReview-Commit-ID: 91QtuEqlRYv

--HG--
extra : rebase_source : f75813fb7b7d6119272d38fc1cc331084b3b6830
2018-01-05 06:24:07 +09:00
Thomas Duellmann
c27f04ab20 Bug 106327 - Change shortcut label of VK_RETURN to "Enter" on Win/Unix. r=enndeakin, r=Gijs 2018-01-04 13:50:30 +02:00
Hiroyuki Ikezoe
606a9e9a90 Bug 1421507 - Throttle animations in position:fixed element that the element is out of view. r=boris,tnikkel
MozReview-Commit-ID: jLvrcVhTKW

--HG--
extra : rebase_source : e2ff1e0158aa5207f86c47088283c22febe84197
2018-01-05 10:30:46 +09:00
Andreea Pavel
569609f11d Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.html => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.js => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.html => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.js => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.js
rename : taskcluster/docker/android-build/dot-config/pip/pip.conf => taskcluster/docker/recipes/dot-config/pip/pip.conf
rename : toolkit/components/places/tests/bookmarks/test_protectRoots.js => toolkit/components/places/tests/legacy/test_protectRoots.js
extra : rebase_source : 52cfc27d3ad7f31d2cb758802a4e718c08e9ffe2
2018-01-04 23:33:08 +02:00
Mats Palmgren
4b4ce8d720 Bug 1423761 - Make CorrectStyleParentFrame / UpdateStyleOfChildAnonBox deal with abs.pos. anon boxes. r=dholbert
For an OOF frame, the parent frame that's associated with our parent style
context is the *placeholder's* parent -- not the OOF frame's parent.
2018-01-04 22:16:37 +01:00
Mats Palmgren
49526eeeb6 Bug 1403986 part 1 - [css-ui] Treat text frames with only trimmable space as empty for 'text-overflow' purposes. r=jfkthame 2018-01-04 20:43:55 +01:00
Mats Palmgren
bd8e3761b9 Bug 1343980 - [css-ui] Skip anonymous boxes (rather than all pseudos) when looking for the 'overflow' style frame. r=bz 2018-01-04 20:43:55 +01:00
J. Ryan Stinnett
4c9e80f00f Bug 1417978 - Stop packaging layout debugger on Android. r=nalexander
The layout debugger UI is only accessible on desktop platforms, so there's no
need to include it for Android builds.

MozReview-Commit-ID: 8PTDwExU5xz

--HG--
extra : rebase_source : 0cf22b85afd0b036a4899761eca3248ba3ffafbe
2018-01-04 15:22:35 -06:00
Gerald Squelart
b9fc4558b8 Bug 1418840 - Use the modified frames list for the subdoc that painting will use, which isn't always the current subdoc of the FrameOuter. r=mstange
--HG--
extra : rebase_source : a01a93a91da776e3fc43debc5990440f8dc8dafc
2017-11-25 10:02:20 +11:00
Matt Woodrow
878412c69a Bug 1427968 - Don't check for the force descend flag when checking for the presence of OutOfFlowDisplayData. r=miko
--HG--
extra : rebase_source : 4ac2cce6aa0dd6e6299601da880770d938c6a513
2018-01-09 11:59:56 +13:00
Matt Woodrow
b4f9276097 Bug 1427914 - Move the AnyContentAncestorModified check up into ComputeVisibleRectForFrame since it affects the resulting dirty rect. r=miko
--HG--
extra : rebase_source : b450b026ba3e28b76e2176f7e58bbbd138c9d342
2018-01-09 11:56:44 +13:00
Matt Woodrow
71de2763a6 Bug 1427476 - Don't try to retain display lists for popups since their display root isn't the root frame of a document. r=miko
--HG--
extra : rebase_source : a924322e5cae1ba25526bc258ab18af50d37d66a
2018-01-03 18:31:31 +13:00
Emilio Cobos Álvarez
b8950ca8f0 Bug 1428144: Remove some dead nsIFrame code. r=mats
MozReview-Commit-ID: Aaj6XLp3LnA

--HG--
extra : rebase_source : 8c8555f539f29275d570931f0d6bce6817a7d3c3
2018-01-04 20:37:11 +01:00
Jonathan Watt
04cbca1e20 Bug 1425641, part 3 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: EZHNKvyUT42
2017-12-06 16:02:34 +00:00
Jonathan Watt
5f2f637eed Bug 1425641, part 2 - Remove lots of static methods from the nsPrintJob interface. r=bobowen
MozReview-Commit-ID: tuhMTI2Lv8
2017-12-06 12:47:19 +00:00
Jonathan Watt
2bd2161291 Bug 1425641, part 1 - Collect nsPrintJob members and remove some unneeded methods. r=bobowen
MozReview-Commit-ID: 8Z64aE5f61j
2017-12-06 10:12:44 +00:00
Andrea Marchesini
e771eaea7c Bug 1425440 - Get rid of GetChildAt_Deprecated in nsPresContext, r=catalinb 2018-01-05 14:36:47 +01:00
Jonathan Kew
489e9ad994 Bug 1426042 - Ensure we don't forget to set bidi data when required on a zero-length trailing frame. r=dholbert 2018-01-05 13:58:51 +00:00
Jonathan Kew
198def941b Bug 1426042 - Reftest for bidi reordering where line has an empty trailing ::after pseudo-element. r=dholbert 2018-01-05 13:58:42 +00:00
Thomas Duellmann
022433e985 Bug 106327 - Change shortcut label of VK_RETURN to "Enter" on Win/Unix. r=enndeakin, r=Gijs
--HG--
extra : rebase_source : 693918abc095cfca4f80e07855f56b203d65f55e
2018-01-04 13:50:30 +02:00
Ya-Chieh Wu
9bbdbfb532 Bug 1421887 - add reftest. r=dbaron
MozReview-Commit-ID: DqeXkD5r94D
2018-01-04 21:28:00 +02:00
Ya-Chieh Wu
ef4a62d672 Bug 1421887 - fix the row index to get the right cell. r=dbaron
MozReview-Commit-ID: 4wIdFxeETiW
2018-01-04 21:28:00 +02:00
Botond Ballo
7e42a77d38 Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : 0123b921159864518e92077dd81d5185816e063a
2017-12-20 15:16:18 -05:00
Alexis Beingessner
42b068a0b3 Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
MozReview-Commit-ID: 5fmKfkO6hnO

--HG--
extra : rebase_source : 3572bba4d1aec75af2ef19d52351d7ea2137cc53
2017-12-07 17:13:05 -05:00
Noemi Erli
652fbd6270 Merge autoland to mozilla-central r=merge a=merge 2018-01-04 11:44:30 +02:00
Stone Shih
653167e88f Bug 1426728 - Don't cache the event target of pointer events when they are generated from touch. r=smaug.
The event targets of touch events are not necessarily to be the same as their corresponding pointer events. So we don't have to cache the event target of pointer events when they are generated from touch.

MozReview-Commit-ID: 9Gd6ion7NXf
2017-12-22 12:27:05 +08:00
Cosmin Sabou
81a8319b46 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
rename : dom/xul/templates/nsXULSortService.cpp => dom/xul/nsXULSortService.cpp
2018-01-03 23:59:59 +02:00
Cosmin Sabou
eff09826f7 Backed out changeset 9a95b205f3e8 (bug 1427635) for cl failures at dom/browser-element/mochitest/test_browserElement_oop_CopyPaste.html r=backout a=backout 2018-01-03 23:48:48 +02:00
Olli Pettay
811a9c30ca backout Bug 1414204 because of regressions, r=backout
--HG--
extra : rebase_source : 97927ab24b0f24e4cfce8ce9199dda24857cfd3b
2018-01-03 18:42:50 +02:00
Olli Pettay
d86b117d29 backout Bug 1414204 because of regressions, r=backout
--HG--
extra : rebase_source : c35fa4faba8511954bc76630fbcbdf4919d3bd14
2018-01-03 18:42:27 +02:00
Geoff Brown
8e192994f8 Bug 1423771 - Suppress error when no reftests verified; r=jmaher
There are some edge cases in test verification where mozharness requests
reftest verification of a non-reftest. In this case, it is best for the
reftest harness to figure out that the requested file is not a test,
do no work and exit cleanly without complaint.
2018-01-03 09:29:32 -07:00
Andrea Marchesini
06cf5a6213 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsCSSFrameConstructor, r=catalinb 2018-01-03 16:30:15 +01:00
Andrea Marchesini
badda32851 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsTextControlFrame, r=catalinb 2018-01-03 16:29:44 +01:00
Andrea Marchesini
e20eafa0a5 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsListBoxBodyFrame, r=catalinb 2018-01-03 16:29:30 +01:00
Andrea Marchesini
64f62042f8 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsXULTooltipListener, r=catalinb 2018-01-03 16:29:13 +01:00
Andrea Marchesini
6cd6b02755 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsTreeColumns, r=catalinb 2018-01-03 16:28:55 +01:00
Andrea Marchesini
4701577c18 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsTreeContentView, r=catalinb 2018-01-03 16:28:37 +01:00
Andrea Marchesini
cd74e5c191 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsTreeUtils, r=catalinb 2018-01-03 16:28:07 +01:00
Andrea Marchesini
6ee7f4e6f3 Bug 1425321 - Renaming nsINode::RemoveChildAt to RemoveChildAt_Deprecated, r=catalinb 2018-01-03 14:01:03 +01:00
Andrea Marchesini
00e79ef07b Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Jonathan Kew
9d2a5668d2 Bug 196175 - patch 2 - Override category of underscore for word-selection purposes so it is treated as a word-forming character, and update word-movement tests accordingly. r=m_kato 2018-01-03 10:02:39 +00:00
Jonathan Kew
e1b6122dbc Bug 196175 - patch 1 - Add word-movement tests that involve underscore_delimited_words (currently treated as separate words). r=m_kato 2018-01-03 10:02:36 +00:00
Gijs Kruitbosch
a8bb5924c6 Bug 1425356 - remove XUL template support, r=bz
MozReview-Commit-ID: HdBoQ15DFOu

--HG--
rename : dom/xul/templates/nsIXULSortService.idl => dom/xul/nsIXULSortService.idl
rename : dom/xul/templates/nsXULContentUtils.cpp => dom/xul/nsXULContentUtils.cpp
rename : dom/xul/templates/nsXULContentUtils.h => dom/xul/nsXULContentUtils.h
rename : dom/xul/templates/nsXULSortService.cpp => dom/xul/nsXULSortService.cpp
rename : dom/xul/templates/nsXULSortService.h => dom/xul/nsXULSortService.h
extra : rebase_source : e3f3504c529e7bd9aa52aecf34b94bb5b0ff92b4
2017-12-19 14:11:06 +00:00
Gijs Kruitbosch
613d9c6f17 Bug 1425356 - remove some tests that only make sense when XUL templates are supported, r=mrbkap
MozReview-Commit-ID: 6mhHJ6bBkHz

--HG--
extra : rebase_source : d44d7c801d61c53448ff535ed2a3c3221c8f5ddb
2017-12-20 14:28:28 +00:00
Emilio Cobos Álvarez
e43d539775 Bug 1427635: Fix DoCompareTreePosition frame tree version with null aCommonAncestor. r=xidorn
It doesn't fill the ancestors of the first frame if aCommonAncestor is null,
which means that we get garbage afterwards.

MozReview-Commit-ID: G85dv7KM1Xd

--HG--
extra : rebase_source : 80168515b122c60461bf1cde1695fb7b98aaaa99
2017-12-22 11:01:19 +01:00
Emilio Cobos Álvarez
1cda1ad876 Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.

MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Andrew Halberstadt
5b6ee32372 Bug 1421799 - [reftest] Log 'GECKO(<pid>)' instead of 'ProcessReader' for process_output log actions r=gbrown
MozReview-Commit-ID: FsKg5Gtwx9Z

--HG--
extra : rebase_source : 9b29b44fcec93ade12bc7147a04226a234f1d730
2017-12-06 14:11:55 -05:00
Sebastian Hengst
e6dbbae0aa Backed out 5 changesets (bug 1421799) for failing firefox ui functional tests. r=backout on a CLOSED TREE
Backed out changeset f9f32474fdaf (bug 1421799)
Backed out changeset 18b4fa241936 (bug 1421799)
Backed out changeset 88dca5c8cfac (bug 1421799)
Backed out changeset 8c1f1ab754a5 (bug 1421799)
Backed out changeset e028f677bc80 (bug 1421799)
2018-01-03 20:21:28 +02:00
Andrew Halberstadt
0b44c941df Bug 1421799 - [reftest] Log 'GECKO(<pid>)' instead of 'ProcessReader' for process_output log actions r=gbrown
MozReview-Commit-ID: FsKg5Gtwx9Z

--HG--
extra : rebase_source : 0b012271e1673b641c4514714f0ab68b42d2bd0d
2017-12-06 14:11:55 -05:00
Botond Ballo
54882430dc Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : de145e653f553a41763ae1ba461478709cb7d905
2017-12-20 15:16:18 -05:00
Margareta Eliza Balazs
c06fd8b9d6 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-04 10:07:11 +02:00
Alexis Beingessner
c3946e70ab Bug 1406231 - remove the TextLayer class, and all remaining traces of it. r=mattwoodrow
MozReview-Commit-ID: 5fmKfkO6hnO

--HG--
extra : rebase_source : ac74903f6929f21cd70d66a9fb756fcea120f11e
2017-12-07 17:13:05 -05:00
Csoregi Natalia
bed10b400c Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-13 00:02:18 +02:00
Tom Tromey
9992b11faa Bug 1255384 - fix getCSSValuesForProperty for counter-*; r=heycam
This bug notes that getCSSValuesForProperty does not mention the
"none" value for counter-increment and counter-reset.  This fixes the
problem by mentioning the variants in the entries in nsCSSPropList.h.

MozReview-Commit-ID: HpZIMIIejHc
2018-01-12 13:57:58 -07:00
Csoregi Natalia
5167aaf995 Backed out 4 changesets (bug 712130) for Android autofocus failures and for failing browser_formdata.js. on a CLOSED TREE
Backed out changeset e7738f07edae (bug 712130)
Backed out changeset 3774e90777a7 (bug 712130)
Backed out changeset a3cffbfc8395 (bug 712130)
Backed out changeset ba6c2fff9fd5 (bug 712130)
2018-01-12 22:46:22 +02:00
Tom Tromey
7e80328404 Bug 1255401 - fix getCSSValuesForProperty result for "quotes" property; r=heycam
It seemed valid to simply set the expected variants in
nsCSSPropList.h; other properties (e.g., align-content) do this as
well.

MozReview-Commit-ID: HVZGOofkwi1

--HG--
extra : rebase_source : 53388e48c491843a3fd93a3c46fdcd9c9bd3cc41
2018-01-10 14:08:13 -07:00
Tom Tromey
1d509d63c6 Bug 1255401 - fix values allowed for "all" property; r=heycam
The "all" property in the devtools CSS database included all possible
property values; however only a few are truly appropriate.  This patch
adds a special case for "all" to
InspectorUtils::GetCSSValuesForProperty to fix this.

MozReview-Commit-ID: HEnrvCJylHI

--HG--
extra : rebase_source : 4738129974b95e2c231cd92cd5e4bc04e6708409
2018-01-10 11:48:28 -07:00
Bobby Holley
1ce8eb2531 Bug 1398119 - Add machinery to assert single-threadedness from geckolib. r=emilio
MozReview-Commit-ID: 9LBNm2h5Ct3
2018-01-12 12:05:01 -08:00
Kartikaya Gupta
c167fe8ab4 No bug - Convert some tabs to spaces. r=me and DONTBUILD
MozReview-Commit-ID: B6rvSKOXEGG
2017-12-29 10:09:26 -05:00
Mats Palmgren
391a0a5f42 Bug 1426345 - Invalidate MathML display items when we destroy the referenced nsMathMLChar. r=mwoodrow 2017-12-27 08:39:06 +01:00
Emilio Cobos Álvarez
c8eb630ebe Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ffdf5d2cb5 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Emilio Cobos Álvarez
6bb937174a Bug 1426760: Don't let placeholders affect line height. r=jfkthame
MozReview-Commit-ID: IJHerDOKOkj

--HG--
extra : rebase_source : 054503061bcafad8f577bc1f59a12ec8797cc4d0
2017-12-22 17:28:24 +01:00
Ethan Lin
9abacb8834 Bug 1418893 - Check opacity changes when computing mask's invalidation region. r=mattwoodrow
MozReview-Commit-ID: 54XDjoh67Mb

--HG--
extra : rebase_source : b8adaeb32f0d6a93b5a972cb939c526eb877d805
2017-12-20 14:23:06 +08:00
Boris Zbarsky
06a6d6e207 Bug 1407858 part 1. Give DOMString setter APIs clearer names. r=smaug
The renaming here is like this:

  SetStringBuffer -> SetKnownLiveStringBuffer
  SetEphemeralStringBuffer -> SetStringBuffer
  SetOwnedString -> SetKnownLiveString
  SetOwnedAtom -> SetKnownLiveAtom

This should make it clearer what the lifetime expectations are on the caller side.

MozReview-Commit-ID: ERHbB3r6paN
2017-12-22 13:02:51 -05:00
Andreea Pavel
e2b89c47ae Merge mozilla-central to mozilla-inbound r=merge a=merge on a CLOSED TREE 2017-12-22 11:59:03 +02:00
Andreea Pavel
78bc55ae1f Merge inbound to mozilla-centra r=merge a=merge 2017-12-22 11:54:07 +02:00
Jonathan Kew
359a45f9a9 Bug 1426092 - Fix the inflation of the text bounding rect to account for stroke-width correctly. r=xidorn 2017-12-22 08:59:12 +00:00
Jonathan Kew
3a0a9acd7f Bug 1426092 - Reftest for incorrect clipping of thick text-stroke. r=xidorn 2017-12-22 08:59:08 +00:00
Gerald Squelart
7d814daf52 Bug 1423431 - Handle nsTreeBodyFrame row of null height in divisions - r=tnikkel
MozReview-Commit-ID: KxDPVMq3pjV

--HG--
extra : rebase_source : 35414f968e31a6dabd91ef6a4834659b5d585b4b
2017-12-21 12:33:06 +11:00
Emilio Cobos Álvarez
77165a9dc1 Bug 1420533: Add crashtest. r=me
MozReview-Commit-ID: EemfowpZSqp
2017-12-22 00:51:09 +01:00
arthur.iakab
b2d2b2678a Merge mozilla-central to autoland r=merge a=merge on a CLOSED TREE 2017-12-22 00:25:54 +02:00
arthur.iakab
373adc6f0d Merge Inbound to mozilla-central r=merge a=merge 2017-12-22 00:19:24 +02:00
Emilio Cobos Álvarez
033d6b32fc Bug 975644: Enable position sticky in table parts. r=bz
MozReview-Commit-ID: 85nCuChHdTa
2017-12-21 20:29:20 +01:00
Emilio Cobos Álvarez
fb0dc0f67a Bug 975644: Add a hack to skip table row groups for sticky positioning. r=bz
This matches Blink's behavior.

Just skipping table row groups from being containing blocks makes
layout/reftests/table-overflow/table-cell-block-overflow.html render differently
(and way more different than any other browser, actually...), so I avoided doing
that.

Though I'm not really proud of this one, better ideas welcome. Maybe I should
just fix table layout so that we agree with WebKit / Blink... But that seemed
harder, too.

MozReview-Commit-ID: AkUB4MFzwZK
2017-12-21 20:29:19 +01:00
Kartikaya Gupta
764fec3892 Bug 1426200 - Disable crashtests failing on windows QR builds. r=jrmuizel
MozReview-Commit-ID: AFZFoq1P3dI

--HG--
extra : rebase_source : dbd2cf616e856bbbd3827eb6ce39e41842159b57
2017-12-21 14:13:32 -05:00
Cameron McCormack
93b3403772 Bug 1425000 - Use a consistent window for CSP, etc. for FontFace loads. r=jfkthame
MozReview-Commit-ID: F2xhsgTBI1V

--HG--
extra : rebase_source : 4bf73e190ba4e90e1f3b828d1f8e1babf3a512c4
2017-12-21 14:07:31 -05:00
Boris Zbarsky
04324f18ad Bug 1424474 part 3. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag
MozReview-Commit-ID: IjUEG5xwn5
2017-12-20 17:43:18 -05:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Csoregi Natalia
12c47a01be Merge inbound to mozilla-central r=merge a=merge 2017-12-21 12:01:59 +02: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
Narcis Beleuzu
edb8ba34eb Backed out 2 changesets (bug 1424474) for mochitest failures on test_bug494328.html r=backout on a CLOSED TREE
Backed out changeset 39d5991f02ba (bug 1424474)
Backed out changeset da3dec2fce06 (bug 1424474)
2017-12-21 02:55:27 +02:00
Stone Shih
a7f32d5317 Bug 1426388 - Crash in mozilla::TouchManager::SuppressInvalidPointsAndGetTargetedFrame. r=smaug. 2017-12-20 23:32:52 +08:00
Boris Zbarsky
a2696c3c8a Bug 1424474 part 2. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag 2017-12-20 17:43:18 -05: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
Emilio Cobos Álvarez
baf57d28b5 Bug 1426312: Make sure to honor parse_method in transition and animation shorthands. r=birtles
MozReview-Commit-ID: HY3jtdSdaga
2017-12-21 20:41:36 +01:00
KuoE0
1de9a1005f Bug 1428276 - Make ExpectedOwnerForChild deal with abs.pos. anon boxes. r=heycam
For an OOF frame, the parent frame that's associated with our parent
style context is the *placeholder's* parent -- not the OOF frame's
parent.

MozReview-Commit-ID: CUSBkWDqxWz

--HG--
extra : rebase_source : 96dfef60ed87b94fe7ec1ea5c3104658e283b3ea
2018-01-05 16:26:01 +08:00
Kris Maglione
a75561bd62 Bug 1412726: Clean up XPCOM singleton constructor refcount handling. r=froydnj
This is a follow-up to bug 1409249. There are a lot of places where our
factory singleton constructors either don't correctly handle their returned
references being released by the component manager, or do handle it, but in
ways that are not obvious.

This patch handles a few places where we can sometimes wind up with dangling
singleton pointers, adds some explanatory comments and sanity check
assertions, and replaces some uses of manual refcounting with StaticRefPtr and
ClearOnShutdown.

There are still some places where we may wind up with odd behavior if the
first QI for a getService call fails. In those cases, we wind up destroying
the first instance of a service that we create, and re-creating a new one
later.

MozReview-Commit-ID: ANYndvd7aZx

--HG--
extra : rebase_source : acfb0611a028fef6b9387eb5d1d9e285782fbc7c
2017-10-29 16:02:40 -07:00
Andrea Marchesini
e4c986bbbc Bug 1425440 - Get rid of GetChildAt_Deprecated in nsCSSRuleProcessor, r=catalinb 2018-01-12 22:24:14 +01: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
Mantaroh Yoshinaga
b43ceba6b4 Bug 1419775 - Part 2.Notify closing IPC connection to PrintProgressService. r=bobowen
If the content process which is printing target content is closed
during printing, PrintProgressService will continue to display
progress dialog even if Cancel is clicked.

This patch will:
 * If IPC connection is closed, notify to PrintProgressService via
   nsIWebProgressListener.

MozReview-Commit-ID: DoOfJjnk1wJ

--HG--
extra : rebase_source : 861d36fca15fe156645235cdc77bc9461363a0b0
2018-01-10 09:02:45 +09:00
Emilio Cobos Álvarez
c35e2eca7d Bug 1429088, Bug 1429125: Add a comment about why we can't remove the XUL check, at least yet. r=me
MozReview-Commit-ID: wzzzGQpXVV
2018-01-10 05:50:31 +01:00
Emilio Cobos Álvarez
659200a710 Bug 1429125: Enable lazy frame construction in the browser chrome, but not XUL yet. r=heycam,tnikkel
This is on top of the patch to re-enable them in shadow trees for bug 1429088.

MozReview-Commit-ID: 3dwQ9J5nFcS
2018-01-10 05:47:13 +01:00
Emilio Cobos Álvarez
078f548313 Bug 1429088: Enable lazy frame construction for shadow trees. r=bz
There's no reason it wouldn't work after bug 1404789.

MozReview-Commit-ID: 28X5x2rDqYn
2018-01-10 05:47:05 +01:00
Emilio Cobos Álvarez
54036c1eca Bug 1386654: Handle the special case of a flex frame being the absolute containing block correctly from the CSS align code. r=dholbert
MozReview-Commit-ID: 4fJtyX55Ig9

--HG--
extra : rebase_source : 83af05b1f55fdaed9323dd1e7cea1cf11f56160f
2018-01-09 23:50:47 +01:00
Bobby Holley
d7ac201163 Bug 1429126 - Remove the caching bailout for nested anonymous box styles. r=emilio
MozReview-Commit-ID: L5J26pAQ6y1
2018-01-09 18:09:55 -08:00
Bobby Holley
788dd2de1d Bug 1429126 - Rejigger cached anonymous box styles to use a union. r=emilio
MozReview-Commit-ID: I2b3wILKwNp
2018-01-09 18:09:55 -08:00
Bobby Holley
c10cdf7282 Bug 1429126 - Avoid unified bustage. r=emilio
The next patch adds a cpp file, which shuffles the unified buckets and
exposes missing includes.

MozReview-Commit-ID: EP88MXYNEuS
2018-01-09 18:09:55 -08:00
Sebastian Hengst
92ed624d10 merge mozilla-central to autoland. r=merge a=merge
--HG--
extra : rebase_source : db451eb58e88563fe7709c8f4b3e69135df66253
2017-12-21 13:38:16 +02:00
Xidorn Quan
e2d3edd426 Bug 1325940 part 2 - Converted NS_STYLE_BORDER_IMAGE_REPEAT_* to an enum class. r=emilio
MozReview-Commit-ID: Kdzm5D8Dpv

--HG--
extra : rebase_source : 7c6ed8d2e777c7fa07b0486147c48bd98cc477a5
2017-12-21 16:16:40 +11:00
Gajanan
a3cafec7b7 Bug 1325940 part 1 - Added a constructor for nsCSSValue to accept enumerations. r=xidorn
MozReview-Commit-ID: 5Vns9QGA8c5

--HG--
extra : rebase_source : fde6132848ba0c7d5d6e21a8cb063edf2ac10b03
extra : intermediate-source : be602e750e399e19e32a6a06ea22ce090495b4b2
extra : source : 8de1423bee6b7ba9d584419650674a4d4a7ac7b0
2017-12-21 12:23:36 +11:00
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
decltype
222776c45b Bug 712130 - Defer autofocus until after frame construction. r=bz
The autofocus attribute on form elements forces layout in CheckIfFocusable.
To avoid unpleasant FOUCs, defer autofocus processing until frames are
constructed in PresShell::Initialize.

Resolve the race between nsAutoFocusEvent running and page load by checking the
readystate at time of event posting.

MozReview-Commit-ID: 90jiJYJWmRg

--HG--
extra : rebase_source : afff926ba916139b14d60e06db56290c6935673a
2018-01-08 22:35:00 +01:00
decltype
a69876b6af Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r=bz
MozReview-Commit-ID: 75IKOqiqBhL

--HG--
extra : rebase_source : 91a0dcf3187a5951ff633e296679d8e173cf551a
2018-01-10 19:07:21 +01:00
decltype
dcc359eaf7 Bug 712130 - Add reftest to ensure the first autofocus elements gets picked. r=bz
MozReview-Commit-ID: 6UAUbqwVhTm

--HG--
extra : rebase_source : 83969d7ca8389f8672d9618b07d9c6e8c3283489
2018-01-10 00:40:13 +01:00
Dorel Luca
a19f5582cc Merge mozilla-central to mozilla-inbound r=merge 2018-01-11 00:05:23 +02:00
Matt Woodrow
4e9d0d1a06 Bug 1427221 part 2 - Change test to fail every time. r=mats 2018-01-08 14:42:03 +13:00
Mats Palmgren
151539c1e0 Bug 1427221 part 1 - Do nsMathMLmfencedFrame cleanup in DestroyFrom, not in the dtor. r=mattwoodrow 2018-01-10 20:09:18 +01:00
Mats Palmgren
30ae9d36e5 Bug 1246836 part 2 - Reftest. r=me 2018-01-10 20:09:18 +01:00
Mats Palmgren
5a76dfedf8 Bug 1246836 part 1 - Render the <select> dropdown button for -moz-appearance:menulist only. r=louis 2018-01-10 20:09:18 +01:00
Yura Zenevich
c66326e7d0 Bug 1428428 - do not create accessible object for the nsCanvasFrame custom-content container. r=dholbert
MozReview-Commit-ID: 8sQPDAHfFir
2018-01-10 13:11:50 -05:00
Ethan Lin
d08058aeee Bug 1426116 - Update the reftest annotations after we fixed the webrender box shadow problem (WR PR 2261). r=kats
MozReview-Commit-ID: K8FOj6WUlo9

--HG--
extra : rebase_source : fdd1c75ee57ac06c7d23b2e0c2b8e1d54f2c5432
2018-01-08 13:29:09 +08:00
Kartikaya Gupta
b7c9142491 Bug 1426116 - Update reftest results from WR PR 2262. r=jrmuizel
MozReview-Commit-ID: 7uPYdsIo292

--HG--
extra : rebase_source : 507cb93a4b82e5f119d1186bf0989904977a56eb
2018-01-08 09:19:28 -05:00
Kartikaya Gupta
1b35bf9d30 Bug 1426116 - Update reftest results for changes from WR PR 2200. r=jrmuizel
MozReview-Commit-ID: KOaA2G2ng9B

--HG--
extra : rebase_source : 374db125b797359aec9c40d3c852661574693a73
2018-01-08 09:19:28 -05:00
Valentin Gosu
0203cc4abd Bug 1426501 - Change C++ code to use NS_MutateURI when changing URI r=mayhemer
MozReview-Commit-ID: 4VzZlhWrtSJ

--HG--
extra : rebase_source : 9c872dc14c8e5f03e6354ab76c8bf750a7e10260
2018-01-08 15:20:35 +01:00
Emilio Cobos Álvarez
cd74833405 Bug 1420722: Just use GetInFlowParent for now. r=mattwoodrow
display: contents is about to ship in other engines, let's prevent subtle bugs.

MozReview-Commit-ID: C8saQnRvRuI

--HG--
extra : rebase_source : 9501831db98b23e6805e39dca219a94ca59d00a4
2018-01-16 11:19:36 +01:00
Margareta Eliza Balazs
757c55dc4f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-16 23:49:24 +02:00
Margareta Eliza Balazs
76eb08dabe Backed out 3 changesets (bug 1426386) for R2 failing in /layout/reftests/position-sticky/transformed-2.html on Windows on a CLOSED TREE
Backed out changeset 4416e585cf77 (bug 1426386)
Backed out changeset 1e675415a7a0 (bug 1426386)
Backed out changeset 5402e62aaa71 (bug 1426386)
2018-01-16 22:57:00 +02:00
Tom Tromey
eb7d822b0c Bug 1430616 - correctly find end of keyword table in InspectorUtils; r=heycam
Currently, InspectorUtils::GetCSSValuesForProperty will not return
"match-parent" for "text-align".  The bug is that InspectorUtils uses
an out-of-date approach to finding the end of the keyword table; and
this approach conflicts with the special "unsafe" handling in
TextAlignUnsafeEnabledPrefChangeCallback:

https://dxr.mozilla.org/mozilla-central/rev/21ddfb9e6cc008e47da89db50e22697dc7b38635/layout/base/nsLayoutUtils.cpp#317-321

MozReview-Commit-ID: 58qfKQwIyMX

--HG--
extra : rebase_source : 022a8c970c121cbe76533a29d0439a64ead63085
2018-01-15 09:14:55 -07:00
Ethan Lin
85fe1ef2ef Bug 1429806 - Update annotations for the fix of webrender border problems (PR#2292). r=kats
MozReview-Commit-ID: E2L0gIHkDxP

--HG--
extra : rebase_source : 10bbd9fbd0f2ee39561d40720aa36d32d8fb5934
2018-01-16 15:54:37 +08:00
Lee Salzman
4b892d44b0 Bug 1429806 - Initialize new field in WR GlyphOptions introduced in WR PR 2288. r=kats
MozReview-Commit-ID: JRm6VKBeUuL

--HG--
extra : rebase_source : 20ea49bec54e8a99304628348c1fd63b0d950129
2018-01-16 10:28:54 -05:00
Kartikaya Gupta
337643b6eb Bug 1429806 - Update fuzz numbers for changes in WR PRs 2284 and 2285. r=jrmuizel
Both these PRs affected the same test.

MozReview-Commit-ID: GwCXVwY1o1X

--HG--
extra : rebase_source : aced8f19ecd903accab25da68c6c3c3fd0b8295d
2018-01-16 12:32:46 -05:00
Kartikaya Gupta
bd29247144 Bug 1426386 - Add reftests for position:sticky items inside a transform. r=mstange
MozReview-Commit-ID: 5RSOhboUNuC

--HG--
extra : rebase_source : fa91ba688990196c4b6d230618084eff78f5008b
2018-01-16 13:04:56 -05:00
Kartikaya Gupta
9e0346d371 Bug 1426386 - Split the transform sent to webrender back into the transform and positioning components. r=mstange
MozReview-Commit-ID: 40zNgiPnJpQ

--HG--
extra : rebase_source : 7ba554613bed1a0f4011f50776c5f3c4277419e6
2018-01-16 13:04:56 -05:00
Kartikaya Gupta
c160a5bc6a Bug 1426386 - Expose WR stacking context bounds via StackingContextHelper. r=mstange
MozReview-Commit-ID: 2Z2npMkX5vD

--HG--
extra : rebase_source : 241c4c7f3f6b6504797940481d16f6a99092f6ae
2018-01-16 13:04:56 -05:00
Andreea Pavel
25ec44cbbe Backed out 3 changesets (bug 1426386) backed out for failing reftest layout/reftests/position-sticky/transformed-2.html on Android on a CLOSED TREE
Backed out changeset ba85e9043c8a (bug 1426386)
Backed out changeset a233b4ffcfc9 (bug 1426386)
Backed out changeset b14272ea68fd (bug 1426386)
2018-01-16 19:39:12 +02:00
Jessica Jong
4bee56a645 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Kartikaya Gupta
6b3be59637 Bug 1426386 - Add reftests for position:sticky items inside a transform. r=mstange
MozReview-Commit-ID: LtW8TbEClz5

--HG--
extra : rebase_source : 88b19f8a01de4a8a6226435065f5689afd4804cf
2018-01-16 08:41:59 -05:00
Kartikaya Gupta
b2f137ea11 Bug 1426386 - Split the transform sent to webrender back into the transform and positioning components. r=mstange
MozReview-Commit-ID: 4x4OMrWFv9j

--HG--
extra : rebase_source : c0321a3259dac511d49715ba91231589ab51e867
2018-01-16 08:41:59 -05:00
Kartikaya Gupta
4423cdae80 Bug 1426386 - Expose WR stacking context bounds via StackingContextHelper. r=mstange
MozReview-Commit-ID: 97leGF0od1y

--HG--
extra : rebase_source : 27c447b3eb74ad0b2c988e1a4a41ba0f485f7434
2018-01-16 08:41:59 -05:00
Bobby Holley
58fb8865bd Bug 1429529 - Use the same cache for lazy pseudos and anonymous boxes. r=emilio
MozReview-Commit-ID: FaSK8RAlrW2
2018-01-11 11:40:33 -08:00
Bobby Holley
1a733b0d88 Bug 1429529 - Rename CachedAnonBoxStyles to CachedInheritingStyles. r=emilio
MozReview-Commit-ID: xgZbalAJ5x
2018-01-11 11:40:31 -08:00
Kartikaya Gupta
d4774c8857 Bug 1429580 - Remove now-unnecessary inherited_status argument. r=dbaron
Because of the previous patch, the inherited_status is now always
EXPECTED_PASS so we don't need to actually pass it around.

MozReview-Commit-ID: pgMkLgNCOE

--HG--
extra : rebase_source : fce3c66ad7ccaf458befc7c41c9a2a4cdea87875
2018-01-11 09:53:10 -05:00
Kartikaya Gupta
01ae4bfffa Bug 1429580 - Change the semantics of skipping reftest includes. r=dbaron
Without this patch, putting something like
  skip-if(Android) include foo/reftest.list
behaves unexpectedly. Instead of skipping the foo/reftest.list file
on Android, it instead "inherits" the skip-if condition down into each
reftest inside foo/reftest.list. If any of those reftests then have a
fuzzy or fuzzy-if(Android,...) annotation, that will override the
skip-if annotation, and the test will still run.

Based on the occurrences of this pattern in the codebase, I believe the
more intuitive semantics of "skip the foo/reftest.list file completely,
on Android" is more desirable. This patch implements the change in
semantics. It also disallows inheriting other statuses down into
included reftest.list files, such as from a fails or fuzzy annotation on
the include statement. These cases don't currently exist in the tree,
but any attempt to do so will now throw an error.

MozReview-Commit-ID: HLJuSYNHvU5

--HG--
extra : rebase_source : d0d31ab63413aeee31d78226e55726836cd6bebf
2018-01-11 09:53:10 -05:00
Jonathan Kew
b92b616296 Bug 1425480 - Add word-movement testcases that include supplementary-plane (surrogate pair) characters. r=m_kato 2017-12-20 20:32:07 +00:00
Jonathan Kew
c083b84b60 Bug 1425480 - Don't let nsTextFrame's ClusterIterator return an offset in the middle of a surrogate pair from GetAfterOffset()/GetBeforeOffset(). r=m_kato 2017-12-20 20:31:23 +00:00
Swapnil
fff4bd7c7c Bug 785931 - Removed probes GRADIENT_DURATION, GRADIENT_RETENTION_TIME. r=chutten 2017-12-13 23:08:56 +05:30
Margareta Eliza Balazs
4687cec26a Backed out changeset 17660bff0c23 (bug 1423331) for 4 failures in layout/base/tests/test_reftests_with_caret.html r=backout on a CLOSED TREE 2018-01-09 17:49:00 +02:00
Margareta Eliza Balazs
5a9938931a Backed out changeset b047f4782ae2 (bug 1423331) for 4 failures in layout/base/tests/test_reftests_with_caret.html r=backout on a CLOSED TREE 2018-01-09 17:48:14 +02:00