Граф коммитов

60711 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 055c3b2ba1 Bug 1407983 - Increase fuzz a bit more on WR-enabled reftest. r=Gankro
MozReview-Commit-ID: 85YOjWPNCq2

--HG--
extra : rebase_source : 4c722907e02f1722f276a798b2342839402f3e2e
2017-10-12 09:45:58 -04:00
Ethan Lin f9cf13cd75 Bug 1406306 - Part2. Update reftest.list after the fix. r=jrmuizel
MozReview-Commit-ID: ILxmYcbFFk1

--HG--
extra : rebase_source : 691c0f51be96eed6cf089daf052c5ea45ecb03a4
2017-10-06 15:39:51 +08:00
Markus Stange 4b4d6f1561 Bug 1402498 - Add ScrollAnimationMSDPhysics, can be enabled using general.smoothScroll.msdPhysics.enabled. r=rhunt
MozReview-Commit-ID: fr8Q9iod5k

--HG--
extra : rebase_source : b9113d40081371872deff6aade13fd226b3e72a9
2017-09-26 20:55:35 -04:00
Markus Stange c2ed209689 Bug 1402498 - Separate out ScrollAnimationBezierPhysics and make ScrollAnimationPhysics an interface. r=rhunt
MozReview-Commit-ID: K3b8vjY5xaO

--HG--
rename : layout/generic/ScrollAnimationPhysics.cpp => layout/generic/ScrollAnimationBezierPhysics.cpp
extra : rebase_source : e112a02b0ce40438375ff48e5bd1911a8ad4da3b
2017-09-29 18:37:14 -04:00
Markus Stange c4ba4ac85d Bug 1402498 - Clean up ScrollAnimationPhysics code after the separation. r=rhunt
MozReview-Commit-ID: Ldm96zHxqWD

--HG--
extra : rebase_source : c5e18772e07425e07221541761af01c55f9db782
2017-09-22 15:08:39 -04:00
Markus Stange 488f43bd92 Bug 1402498 - Rename AsyncScrollBase to ScrollAnimationPhysics and use composition instead of inheritance. r=rhunt
MozReview-Commit-ID: 7UFf0mZsrEr

--HG--
rename : layout/generic/AsyncScrollBase.cpp => layout/generic/ScrollAnimationPhysics.cpp
rename : layout/generic/AsyncScrollBase.h => layout/generic/ScrollAnimationPhysics.h
extra : rebase_source : 66cc26ef54b31d5cfe498d8f23bc678862423aa5
2017-09-22 13:42:29 -04:00
Markus Stange 8e7d24a02d Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA

--HG--
extra : rebase_source : 3ba3859da65d6be929821a7c13d47fd7c090b54e
2017-09-29 17:39:21 -04:00
Markus Stange 387bf73f2e Bug 1404137 - Fix unified-build problem in TextOverflow.cpp r=botond,Gankro
MozReview-Commit-ID: GuJp2rHuHXj

--HG--
extra : rebase_source : e194cb3bcb87997ebfb8c635e6d18caf950df091
2017-09-29 17:56:48 -04:00
Wes Kocher eb9a2ed0f2 Merge inbound to central, a=merge
MozReview-Commit-ID: IqwKWn7ceHC
2017-09-29 14:47:25 -07:00
Wes Kocher 9345eb3842 Backed out changeset fbc75bbbebc1 (bug 1403697) for wptlint issues a=backout
MozReview-Commit-ID: 5gaaqSD7sUa
2017-09-29 11:20:24 -07:00
Wes Kocher 1c60b714fa Backed out changeset 35eef74c99f2 (bug 1404137) for windows build bustage a=backout
MozReview-Commit-ID: 7p79NTmrSSK
2017-09-29 11:18:12 -07:00
Markus Stange d70957bd08 Bug 1403697 - When restricting background colors to the background region, only use clips if we have rounded corners. r=mattwoodrow
MozReview-Commit-ID: F1ked65OBxA

--HG--
extra : rebase_source : a3fe97d550755f4a469bec923991f63becf5daed
2017-09-29 13:30:58 -04:00
Markus Stange 581a74f989 Bug 1404137 - Fix unified-build problem in TextOverflow.cpp r=Gankro
MozReview-Commit-ID: 3r2mkbZCprX

--HG--
extra : rebase_source : 3aabd01c29c92da0cbeac9818641992ed4928b83
2017-09-28 18:08:52 -04:00
Geoff Brown 308a809310 Bug 1403501 - Do not kill non-orphan xpcshell/ssltunnel; r=bc 2017-09-29 10:40:24 -06:00
Sebastian Hengst 5e8bacff75 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-29 13:32:19 +02:00
Sebastian Hengst 5253bb7207 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2gWLO0vz64b
2017-09-29 13:30:42 +02:00
Emilio Cobos Álvarez 78eab7101d Bug 1404167: Properly update the styles of first-letter childs of anon boxes. r=bz
MozReview-Commit-ID: Cyxs4FxGj6B
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-29 13:14:37 +02:00
Ethan Lin 7ca48488d9 Bug 1395501 - Part4. Update reftest annotations for new failures. r=kats
MozReview-Commit-ID: Eqajfc8MnRK
2017-09-29 12:09:52 +08:00
Ethan Lin 2f3f7c5cbd Bug 1395501 - Part3. Update reftest annotations for unexpected-pass tests. r=kats
MozReview-Commit-ID: 8QzoqnrxfhR
2017-09-29 12:09:51 +08:00
Ethan Lin 2902b1bde2 Bug 1395501 - Part1. Store inherited scale in stacking context. r=jrmuizel,kats
MozReview-Commit-ID: 6LsTJa05uFV
2017-09-29 12:09:51 +08:00
Sebastian Hengst 9aa7a73678 Backed out changeset 710b592482ee (bug 1404167) for asserting mOwner == ExpectedOwnerForChild(aFrame) at ServoRestyleManager.cpp:125. r=backout 2017-09-29 11:39:12 +02:00
Nazım Can Altınova 53bc8653d8 Bug 1396102 - Add some testcases to verify that we consistently serialize the default line directions in linear gradients (iff stylo is enabled) r=dholbert
We exclude these testcases from being tested under Gecko, because they fail some
mochitest checks for parse+serialize idempotence.  The failures happen because of
a combination of these factors:
 (a) Gecko's style system is inconsistent about whether an explicitly-specified
(but default) gradient direction should get serialized.
 (b) Gecko's style system is inconsistent about whether the vendor prefix is
preserved, when parsing a prefixed gradient.

Since these prefixed gradients aren't super-important and since Gecko's style-system
is being replaced via stylo, we're not bothering to fix the gecko style-system for
this -- we'll just make these tests stylo-specific.

MozReview-Commit-ID: 8lL1aRnDO2H

--HG--
extra : rebase_source : 86d5eab7097ebf39238859debc5ff5539cb2429a
2017-09-25 22:13:03 +03:00
Emilio Cobos Álvarez 6f5e0eacb8 Bug 1404167: Properly update the styles of first-letter childs of anon boxes. r=bz
MozReview-Commit-ID: Cyxs4FxGj6B
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-29 08:50:47 +02:00
cku 5e785e4fdd Bug 1373750 - Part 1. Except the bottom layer, recompute clip state of each mask layer by a clear clipState object. r=mstange
In nsCSSRendering::PaintStyleImageLayerWithSC, we reuse the same clip-state
object,  clipState, for all bg/mask layers. We hit this assertion if the
border-radius of previous one is not 0, but the the border-radius of the next
one is 0. In this condition, clipState.mHasRoundedCorners is false, but
clipState.mClippedRadii still stores border-radius information of the previous
layer.

MozReview-Commit-ID: KyxD0vPnMb9

--HG--
extra : rebase_source : 198c916c35ecd51a72dc3df83df43d6dc5f6424c
extra : source : e630c34a8b6397a3e8a08e57d400accff392e25f
2017-09-25 15:07:45 +08:00
Bobby Holley bd4be52f46 Bug 1403397 - Add a testing API. r=bz,r=Manishearth
This will allow us to verify the entire detection pipeline in real nightly
builds, which will give us confidence that real heap corruption will be
detected and reported properly.

MozReview-Commit-ID: 43Fp2HT8RYy
2017-09-28 18:23:15 -07:00
Bobby Holley 9163763885 Bug 1403397 - Protect the hashmaps outside of rebuilds. r=Manishearth,r=dmajor,r=ehoogeveen
MozReview-Commit-ID: KACmfw4pZY2
2017-09-28 18:23:13 -07:00
Bobby Holley 55e810d2cf Bug 1403397 - Round hashglobe allocations up to the nearest page size. r=Manishearth,r=dmajor
MozReview-Commit-ID: 34KFtcwCkBB
2017-09-28 18:23:11 -07:00
Wes Kocher 134e495909 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Andrew Halberstadt db3fb1fa34 Bug 1403983 - Fix reftest regression where screenshots aren't being output and add a test, r=jmaher
MozReview-Commit-ID: 8ZqmukDtWpO

--HG--
extra : rebase_source : 86544bda6e79e5e35444b4083e76d2cf8642c408
2017-09-28 12:26:51 -04:00
Ting-Yu Lin a19f7d8471 Bug 1401807 Part 3 - Use a local reflow status when reflowing nsVideoFrame's children. r=dholbert
This ensures the video frame's reflow status is not affect by its children's
reflow result.

MozReview-Commit-ID: 4WwLFyIyV4q

--HG--
extra : rebase_source : 1a2f4c4b4b6508dfda195bceef39a80f9093e117
2017-09-27 23:27:25 +08:00
Ting-Yu Lin 569e748c2f Bug 1401807 Part 2 - Add a crashtest. r=dholbert
MozReview-Commit-ID: 18oPdP1OplJ

--HG--
extra : rebase_source : 18452a683a1dfbcf612778da1287815553db8d20
2017-09-27 23:12:55 +08:00
Ting-Yu Lin 03b735b023 Bug 1401807 Part 1 - Give unconstrained block size when reflowing mPosterImage. r=dholbert
Also, added MOZ_ASSERT to ensure all the video frame's children are fully
complete after reflowing (except for the mVideoControls special case on
Android).

This fixed aStatus.IsEmpty() assertion for the test case added in Part 2.

MozReview-Commit-ID: HKze4EZoaJY

--HG--
extra : rebase_source : d695ee3a7c884450ba7dd9da41e14ab3621c89ed
2017-09-27 23:04:42 +08:00
Kartikaya Gupta 922c91a3bb Bug 1359242 - Update reftest annotations. r=jrmuizel
MozReview-Commit-ID: 7l9eWfzWhw5

--HG--
extra : rebase_source : 4e9fc023a18c8f427e36e737dcc1ab6ad830d5cc
2017-09-28 10:40:08 -04:00
Sebastian Hengst f9569348f8 Backed out changeset a505b6b021dd (bug 1395501) for Windows bustage at gfx/layers/wr/StackingContextHelper.cpp(94). r=backout 2017-09-28 16:36:49 +02:00
Sebastian Hengst 553f43c688 Backed out changeset 75f20de3a189 (bug 1395501) 2017-09-28 16:36:10 +02:00
Sebastian Hengst 10e13858b9 Backed out changeset dccc79e2b399 (bug 1395501) 2017-09-28 16:36:04 +02:00
Manish Goregaokar f1f5fc7cf5 Bug 1403808 - Move mFrameRefCount to GeckoStyleContext; r=emilio
MozReview-Commit-ID: 3ZlvXVlgR6i

--HG--
extra : rebase_source : bbebcfd58f6423c966ca9e0dad1adbed31895c84
2017-09-27 20:22:52 -07:00
Ethan Lin d0e4ce4bae Bug 1395501 - Part4. Update reftest annotations for new failures. r=kats
MozReview-Commit-ID: Eqajfc8MnRK

--HG--
extra : rebase_source : 72cdd11fb3113d40e0a172d0477397d19abad4aa
2017-09-28 17:52:43 +08:00
Ethan Lin 81d80078ea Bug 1395501 - Part3. Update reftest annotations for unexpected-pass tests. r=jrmuizel,kats
MozReview-Commit-ID: 8QzoqnrxfhR

--HG--
extra : rebase_source : 6876408907e440ce43a2fb195da81648873988e7
2017-09-28 15:54:36 +08:00
Brad Werth 5cbceefab7 Bug 1396151: Remove fuzzy on macOS for backgr_layers-opacity.html -- no longer needed. r=xidorn
MozReview-Commit-ID: KTuKUZDVsDm

--HG--
extra : rebase_source : e3ddacf4daf37eb0a1822c3e5499c2b8a2c8056c
2017-09-26 12:25:29 -07:00
J. Ryan Stinnett 521920fe39 Bug 1403465 - Crashtest. r=emilio
MozReview-Commit-ID: 9jYSE2oErnH
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-29 00:05:58 +02:00
Emilio Cobos Álvarez 0d24ce4b72 Bug 1403712: Crashtest. r=bholley
MozReview-Commit-ID: DtOKa8V4deq
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 22:24:56 +02:00
Stone Shih e628cf64e9 Bug 1316251 Part3: Trigger pointer event implementation in EventStateManager. r=masayuki
To manage pointer event "state" in ESM.

MozReview-Commit-ID: HiAwvSmVTwx
2017-09-08 11:01:22 +08:00
Ethan Lin 996d6f7e8d Bug 1395501 - Part1. Store inherited scale in stacking context. r=jrmuizel,kats
MozReview-Commit-ID: 6LsTJa05uFV

--HG--
extra : rebase_source : e9c026cbe1eb67bea3c5c041b801a3f8168a65de
2017-09-07 16:35:06 +08:00
Andrew Halberstadt 35b752c904 Bug 1403325 - Use a single --sandbox-read-whitelist argument in mochitest and reftest, r=Alex_Gaynor
The main bug this fixes is that on reftest, the objdir needs to be added to the
whitelist on Windows. However, this only happens when running on Linux for some
reason.

Changing the --work-path and --obj-path arguments to --sandbox-read-whitelist
was more of a drive-by cleanup than anything necessary.

MozReview-Commit-ID: Dq8ZLETMzeM

--HG--
extra : rebase_source : 3d2cdda125205e76f86235eb373074899fe0789a
2017-09-26 16:36:43 -04:00
Emilio Cobos Álvarez 371f0cc42f Bug 1396073: Simplify and remove some more code. r=xidorn
MozReview-Commit-ID: Ec9pfQw7U6W
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:44 +02:00
Emilio Cobos Álvarez b550117c8d Bug 1396073: Remove some never matching rules for applet. r=xidorn
MozReview-Commit-ID: HSSiPWA0RjI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:34 +02:00
Emilio Cobos Álvarez 88eef10615 Bug 1396073: Remove :-moz-empty-except-children-with-local-name. r=xidorn
<applet> is not a thing anymore, and that selector in our UA sheet will never
match anyway, since an <applet> element will never have the BROKEN state.

MozReview-Commit-ID: 7UOMKOv55uJ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:26 +02:00
Emilio Cobos Álvarez d3c613dea4 Bug 1396073: Hide :-moz-devtools-highlighted from anywhere but UA sheets. r=xidorn
It's always used from a UA sheet already.

MozReview-Commit-ID: J3poQuTD1C7
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 12:26:18 +02:00
Sebastian Hengst 974df9b9e8 Backed out changeset 6a527c7a89a0 (bug 256180) 2017-09-28 11:30:38 +02:00
Sebastian Hengst 5573e8270f Backed out changeset 0ce8d073a16e (bug 256180) 2017-09-28 11:30:33 +02:00
Stone Shih 9ea2b881c8 Bug 1316251 Part2: Revise pointer event implementation. r=masayuki
Revise the pointer event implementation, includes
- Revise the implementation to fetch preference values.
- Separate the logic to get the pointer capturing frame to PointerEventHandler.

MozReview-Commit-ID: 7pdAr0XFNT2
2017-09-06 17:28:28 +08:00
Stone Shih a1d26ab3b4 Bug 1316251 Part1: Separate pointer event implementation from PresShell. r=masayuki
This patch moves pointer event related implementations to a new class.

MozReview-Commit-ID: FdBYl7vYC5I
2017-09-06 15:47:49 +08:00
Boris Zbarsky c842174571 Bug 1402218. Make sure to clone our CSSDeclaration as needed when removing properties. r=emilio
MozReview-Commit-ID: 6LRjLU3QQok
2017-09-28 22:04:34 -04:00
Boris Zbarsky 4f6bea99ba Bug 1403293. Make sure that anonymous table columns and column groups never affect hit testing. r=heycam
Per spec, these boxes shouldn't even exist.

MozReview-Commit-ID: 9tQdqSgXg76
2017-09-28 22:03:54 -04:00
Wes Kocher 253017b382 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9qR4QYHAi2x
2017-09-28 17:08:09 -07:00
Xidorn Quan 75f4e122c9 Bug 1401420 part 5 - Add crashtest for this bug. r=dholbert
MozReview-Commit-ID: 6U9aUdoj4n9

--HG--
extra : source : 163fe606a34732b4347e56ba15d9d637d63bde10
2017-09-29 08:36:36 +10:00
Xidorn Quan 06ddedaf53 Bug 1401420 part 4 - Have ruby frames only push children to overflow list, and reparent floats when adopting children from prev-in-flow. r=dholbert
MozReview-Commit-ID: JmAhY4WnHRV

--HG--
extra : source : 2e38f77752cdbd96c41b39dfac858057aca38924
2017-09-29 08:36:36 +10:00
Xidorn Quan 49586f2e2e Bug 1401420 part 3 - Add nsContainerFrame::PushChildrenToOverflow. r=dholbert
MozReview-Commit-ID: 80kFIJEQjLC

--HG--
extra : source : 8a9c4d3546e36b16b0519c3e171eaf7f395f0a25
2017-09-29 08:36:36 +10:00
Xidorn Quan e8f82c139a Bug 1401420 part 2 - Remove some duplicate function comment from nsContainerFrame. r=dholbert
MozReview-Commit-ID: 197O996oujk

--HG--
extra : source : a210fe66ace0ac58b8e9e0564b9853f7542c2464
2017-09-29 08:36:36 +10:00
Xidorn Quan a431f4013b Bug 1401420 part 1 - Move ReparentFloatsForInlineChild from nsInlineFrame to nsContainerFrame. r=dholbert
So that ruby base/text container can use it.

MozReview-Commit-ID: 1YrWJZKMk7J

--HG--
extra : source : 6e51026558ea6f8b6057c98332deb6636ae320a3
2017-09-29 08:36:36 +10:00
Emilio Cobos Álvarez c3d1112763 Bug 1407952: Use stylo for Element::Closest. r=heycam
MozReview-Commit-ID: 3H2piFT2CfF

--HG--
extra : rebase_source : 8e66d9bb15e91412431178324b37c94fbc20b773
2017-10-12 11:42:17 +02:00
Phil Ringnalda 5406c7c332 Backed out changeset 3cf260e1fb9c (bug 1405349) for Win7 reftest OOMs
MozReview-Commit-ID: 3Ac3gAYdWd0
2017-10-13 07:43:51 -07:00
Andrew Halberstadt fb43663719 Bug 1405349 - [reftest] Refactor manifest parsing from reftest.jsm to standalone module, r=jmaher
There are two motivations for this change.

First, reftest.jsm has become very large and monolithic. It has lots of global
state and is hard to modify without breaking something. This change is a first
attempt at dividing reftest.jsm into multiple standalone(ish) modules. This
will make it easier to comprehend and extend.

Second, we'd like to implement "run-by-manifest" mode for reftest. This means
we'll restart the browser between each manifest run. This means much of the
state which is normally stored in global variables in reftest.jsm, will instead
need to be stored in python. A prerequisite to doing that is parsing the
manifests before starting the test suite. A prerequisite to that is moving the
manifest parsing code into a standalone JSM. This is the first step.

MozReview-Commit-ID: 42epTs8EU1O

--HG--
extra : rebase_source : 3db27445af0969867857fbfe41add13161a01cb8
2017-10-02 12:03:43 -04:00
Sebastian Hengst 847d86fda7 merge mozilla-central to autoland. r=merge a=merge 2017-10-13 11:51:55 +02:00
Xidorn Quan da66155d17 Bug 1403839 - Add a more complicated test for custom properties loop eliminiation. r=SimonSapin
MozReview-Commit-ID: CqafptHWYhc

--HG--
extra : source : ecd5118be1ba331fabf497e44076a8a20a4546e6
2017-10-13 14:37:46 +11:00
Xidorn Quan c2366649a6 Bug 1407888 part 2 - Make ServoStyleRuleMap::FillTableFromStyleSheet not make unique inner. r=heycam
MozReview-Commit-ID: 1I7sawfjcnl

--HG--
extra : rebase_source : 41667c3ff9ef52509b21cdff6495dbe9b85ab1af
2017-10-12 18:56:02 +11:00
Xidorn Quan e0947cc78d Bug 1407888 part 1 - Collect styleset from binding base in inDOMUtils::GetCSSStyleRules. r=heycam
MozReview-Commit-ID: 6vKkQQ4wUvA

--HG--
extra : rebase_source : dd431c770891179bba75cd6cf0779a31ddac7385
2017-10-12 17:41:13 +11:00
Sebastian Hengst 4bf9d6e663 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-14 00:11:06 +02:00
Boris Zbarsky d939b75081 Bug 1397815. Add memory reporting for button frame's mInnerFocusStyle and other additional style contexts. r=emilio
MozReview-Commit-ID: cJar2LDrCt
2017-10-13 14:26:55 -04:00
Sebastian Hengst d45406134c Backed out changeset f713977f1629 (bug 1403694) for crashing in Android mochitests, e.g. layout/style/test/test_additional_sheets.html. r=backout 2017-09-29 17:41:12 +02:00
Brad Werth 17d09b7ae1 Bug 1403694: Fix a case where a NULL stylesheet would be added to the nsStyleSheetService if nsLayoutUtils::StyloSupportedInCurrentProcess() returns false. r=xidorn
MozReview-Commit-ID: COaDbr49B7B

--HG--
extra : rebase_source : c4cb37f2f57444af41eccfb93d0e73895e4ae7b8
2017-09-28 16:45:09 -07:00
Hiroyuki Ikezoe 653e15ba32 Bug 1403433 - Add another variant of SchedulePaint that does not call InvalidateRenderingObservers for PendingAnimationTracker. r=birtles
nsFrame::SchedulePaint() invokes InvalidateRenderingObservers, and
InvalidateRenderingObservers ends up posting change hints during we are
processing sequential tasks for animations, but we don't allow posting any
change hints while we are in the middle of restyling process.

Though the change hints posted by InvalidateRenderingObservers are not harmful
in this case since the change hints will be processed in a second post
traversal without problems.  That's said, InvalidateRenderingObservers stuff
should be processed in display list based invalidation anyway (bug 1284053).

MozReview-Commit-ID: GKVRZ98lvEN
2017-09-29 19:42:13 +09:00
Sebastian Hengst 5a95ac34b4 merge mozilla-central to autoland. r=merge a=merge 2017-09-29 11:49:46 +02:00
Jeremy Chen 0288650258 Bug 1403077 - add tests for the stylo blocklist mechanism. r=heycam,leplatrem
In this patch, we add 3 tests:
1. test for blocked domain
2. test for blocked sub-domain
3. test for non-blocked domain

MozReview-Commit-ID: JzMImsbGoPr

--HG--
extra : rebase_source : 0eed42f6d2815bd8adbb9fb6be54b6feb3b1bcc8
2017-10-05 17:33:10 +08:00
Jeremy Chen 419e2e9b26 Bug 1403077 - add two test-only helper functions to access the stylo blocklist. r=heycam
In the current blocklist implementation, we read the stylo blocklist from the user
preferences very early and only once, even earlier than the test preferences
updating happens.

So, to be able to test the functionality of the stylo blocklist, we add these two
nsIDOMWindowUtils APIs to be able to add/remove a mock domain to the existing
blocklist.

MozReview-Commit-ID: K48ejLBcNbn

--HG--
extra : rebase_source : 354fe9871231f2a94f09bd2612c9d21ced4143e8
2017-10-09 12:07:04 +08:00
Jeremy Chen db85457d66 Bug 1403077 - implement the stylo blocklist mechanism. r=heycam
In this patch, we read the stylo blocklist into nsLayoutUtils's global static
variable during nsLayoutUtils::Initialize(). So, we can decide if we should
fallback to use Gecko backend while updating style backend for a document.

We add "layout.css.stylo-blocklist.blocked_domains" and
"layout.css.stylo-blocklist.enabled" to ContentPrefs.cpp because they are read
very early (during nsLayoutUtils::Initialize).

MozReview-Commit-ID: 8c4n6m9dYD8

--HG--
extra : rebase_source : ca81cd57980d98b9b73f18bb03a8035b161d23ef
2017-09-27 20:35:21 +08:00
Xidorn Quan 5767c9b968 Bug 1406562 - Return first continuation for parent of first-letter in ExpectedOwnerForChild. r=emilio
MozReview-Commit-ID: KkBDMStwQ6r

--HG--
extra : rebase_source : 7e0ffbf2ebff5d7d08d324c61736805adc9ea846
2017-10-09 11:07:17 +11:00
Mats Palmgren c281d3778e Bug 1381134 part 2 - Crashtests.
MozReview-Commit-ID: HmWd39C3fXz
2017-10-11 20:21:27 +02:00
Jesse Schwartzentruber e980fe6ea1 Bug 1350372 - Crashtest.
MozReview-Commit-ID: 4ApJweAr8fL
2017-10-11 20:21:27 +02:00
Jesse Ruderman 4cce36098f Bug 1145931 - Crashtest.
MozReview-Commit-ID: CGhk1gkfaxY
2017-10-11 20:21:27 +02:00
Mats Palmgren 9c667d893f Bug 1381134 - Ensure we're using the correct frame for the :after/:before references. r=emilio
MozReview-Commit-ID: BwoRNsXLbPS
2017-10-11 20:21:26 +02:00
Catalin Badea f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Ryan VanderMeulen 9186f2dee6 Backed out changeset be4d5678923c (bug 1346454) for intermittent crashes. 2017-10-11 12:41:44 -04:00
Ryan VanderMeulen f0f257809c Bug 1344210 - Add crashtest. r=me
--HG--
extra : rebase_source : dac6b45cd4858f905ffb9f68ab967cdbb4d9c302
2017-10-11 11:52:40 -04:00
Ryan VanderMeulen 81354b51c1 Bug 1322852 - Add crashtest. r=me
--HG--
extra : rebase_source : e9d276eea5c2652ae6af164a5ff6dd4cc05c15bb
2017-10-11 11:52:39 -04:00
Ryan VanderMeulen 3ecfc6e3c9 Bug 1346454 - Add crashtest. r=me
--HG--
extra : rebase_source : 3a5cf48b3add31a4886b89f47d9dd510a93cf45a
2017-10-11 11:52:38 -04:00
Jonathan Kew 20380cd23c Bug 1403521 - Reftests for positioning of text-decoration in vertical mode. r=dholbert 2017-10-11 14:02:00 +01:00
Jonathan Kew 83bec7dacb Bug 1403521 - Correct positioning of text-decoration lines in vertical writing modes. r=dholbert 2017-10-11 14:01:53 +01:00
Sebastian Hengst 051f888cef Backed out changeset 759a43ebc6bf (bug 1405541) for asserting in devtools/client/performance/test/browser_perf-console-record-03.js on Windows 7. r=backout
--HG--
extra : amend_source : 3df3e75c561cbc42db104ec1a6f6026ef021e3c7
2017-10-11 13:15:26 +02:00
Nicholas Nethercote add7e65972 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 53c8b43b6a1be06d00618a133e28bf95c46a3ba3
2017-10-11 13:03:34 +02:00
Sebastian Hengst 3c466b2f77 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 11:54:59 +02:00
Jonathan Watt 0ed5f27b33 Bug 1402109. Prevent crashes under SVGTextElement methods when the SVG is under non-displayed HTML. r=heycam
Summary:
The implementations of most SVGTextElement methods flush layout when they're
called.  Any SVG <text> that is displayed normally will be reflowed by
SVGTextFrame::ReflowSVG, and any <text> that is in displayed SVG but is not
displayed directly (such as <text> under a <defs>) will be reflowed by
SVGTextFrame::ReflowSVGNonDisplayText.  Prior to this fix the changed
code always assumed that one of these methods would reflow the text.  However,
in the case that the SVG is under an HTML element that isn't itself ever
reflowed (such as if it's under an HTML <caption>) then the SVG text will
not be reflowed either and the invariants of the code are broken.

This patch modifies the functions that implement the SVGTextElement
methods to return an error code if the text has not been reflowed.

Note: I did try to reuse SVGTextFrame::ReflowSVGNonDisplayText in this
case, but I ran into problems.  Given that this is an edge case and likely one
than normal authors will never run into I gave up trying to make that work for
now.

Reviewers: heycam

Bug #: 1402109

Differential Revision: https://phabricator.services.mozilla.com/D107
2017-10-11 10:09:13 +01:00
Jonathan Watt 60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Phil Ringnalda bd5ca8f40d Backed out changeset 901a16fec9fc (bug 1405541) for Windows assertion failures
MozReview-Commit-ID: DRGWXU4Tbfk
2017-10-10 23:28:33 -07:00
Nicholas Nethercote b23fb68ae3 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 59f77df0124249bfd11fee3585420a17b4201d37
2017-10-04 13:44:24 +11:00
Jonathan Watt 30d24c5be9 Bug 1405684 - Remove AutoBuildingDisplayList::GetPrevAnimatedGeometryRoot. r=mattwoodrow 2017-09-25 08:42:05 +01:00
Tobias Schneider 1a35b24ce7 Bug 1407104 - Use "let" rather than "var" in reftest harness JS. r=dholbert
--HG--
extra : rebase_source : 155681a7cd0b933f4d41cf24b3e21a54690cbf71
2017-10-10 10:46:24 -07:00
Mats Palmgren 6e31492671 Bug 1382213 - Simplify the overflow child frame reparenting in nsInlineFrame::DestroyFrom. r=dholbert
MozReview-Commit-ID: FYVZvNYurIi
2017-10-10 18:45:16 +02:00
Jim Chen 527ff54289 Bug 1357191 - 2. Fix form tests for new mobile date/time controls; r=jessica
Fix some test failures on mobile for the new date/time controls,

* Because mobile does not use the built-in reset button, tests
  involving the reset button are skipped.

* The mobile-only date/time tests in test_input_typing_sanitization.html
  do not apply to the new date/time controls, so they are removed to make
  mobile match desktop.

* test_input_sanitization.html now takes longer to run on Android and
  may time out, so the timeout limit is increased.

* time-content-left-aligned.html may fail because of different drawing
  behavior on Android, so the test is made fuzzy on Android.

MozReview-Commit-ID: EmfGf6JYdpW
2017-10-10 12:15:50 -04:00
Jim Chen ee5f9c3e19 Bug 1357191 - 1. Use Gecko controls for Fennec date/time fields; r=jessica r=nechen
Right now, date/time fields in Fennec appear as regular text fields,
which display the date/time values without formatting. This patch makes
the fields use the Gecko controls, which do support formatting. This
only changes the appearance of the fields; we still display the native
date/time pickers when the fields are tapped on. The reset button is
hidden in the controls because the Fennec date/time picker provides
a separate "clear" button.

MozReview-Commit-ID: EBE2U1zL74Q
2017-10-10 12:15:50 -04:00
cku 3997f2cb11 Bug 1343147 - Part 1. Do not double applying transform vector of the root frame in a glyph mask into the target context. r=mstange
When we generate the glyph mask for a transformed frame in
GenerateAndPushTextMask, the transform vector had been applied into aContext[1],
so we should find a way to prevent applying the vector again when painting the
glyph mask.

In bug 1299715, I tried to prevent double apply at [2], it caused two problems:
1. We only skip generating nsDisplayTransform, but we may still create a
nsDisplayPerspactive bellow. Since the parent of a nsDisplayPerspective must be
a nsDisplayTransform, which have been ignored, so we hit this assertion.
2. We skip all transform for all frames while painting the glyph mask, which is
not correct. We should only skip double applying transform vector of the root
frame.

This patch fixes both of these issues:
a. We will still create a nsDisplayTransform for the root frame if need. But
the transform matrix we apply into the target context will be an identity
matrix, so we fix #1 above.
b. In #a, we change the transform matrix to an identity matrix only for the root
frame of the  glyph mask, so we fix #2.

[1]
https://hg.mozilla.org/mozilla-central/file/59e5ec5729db/layout/painting/nsDisplayList.cpp#l752
[2]
https://hg.mozilla.org/mozilla-central/file/ce2c129f0a87/layout/generic/nsFrame.cpp#l2806

MozReview-Commit-ID: 973lkQQxLB6

--HG--
extra : rebase_source : aef80444e94d3af7eca776c981f8faded03bc985
2017-10-03 11:29:19 +08:00
Kyle Machulis e54a4653ba Bug 1404079 - Remove nsIDOMHTMLFrameElement; r=bz
MozReview-Commit-ID: GSvMwRpl7g4

--HG--
extra : rebase_source : a5e8ee45bae90eaa9ecdcc6f0bac0c9dac0ce2c8
2017-09-28 19:06:14 -07:00
Wes Kocher 6dc323cfe9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Dxbv9TjDlDY
2017-10-04 16:47:41 -07:00
Brad Werth 1e6eb559aa Bug 1376931 Part 4: Before MediaQueryList iteration for event listeners, copy the array before sending any events. r=heycam
MozReview-Commit-ID: 4eDs6viuxvT

--HG--
extra : rebase_source : 83c51cf36f020c9049b715d2461f69beecbffc13
2017-09-19 17:05:16 -07:00
Brad Werth 238373e9d8 Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
MozReview-Commit-ID: DPdz1Tmv24R

--HG--
extra : rebase_source : 529e1414a9017cad3afcacb69bddad1d46d7f9de
2017-09-27 16:53:27 -07:00
Brad Werth cccd100f25 Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
MozReview-Commit-ID: EoVp1DwAl0j

--HG--
extra : rebase_source : 59e5112caa73e675139b5fd93f03afcc13a9745d
2017-09-27 14:06:37 -07:00
Kartikaya Gupta 561b271b7d Bug 1405399 - Update due to API change in WR cset 75216e5. r=Gankro
MozReview-Commit-ID: GM8qA0MKaHv

--HG--
extra : rebase_source : cb8cddeab931e34ad5cc7392308f177970cdabde
2017-10-04 14:54:37 -04:00
Sebastian Hengst b8b7f52566 Backed out changeset 3adba9da5967 (bug 1376931) for bustage at layout/style/nsMediaFeatures.cpp:296: 'class nsPresContext' has no member named 'GetEffectiveFullZoom'; did you mean 'GetDeviceFullZoom'. r=backout on a CLOSED TREE 2017-10-05 00:15:51 +02:00
Sebastian Hengst 4976129381 Backed out changeset 61387758d1c4 (bug 1376931) 2017-10-05 00:15:02 +02:00
Sebastian Hengst 0305764b8c Backed out changeset d17d793f9850 (bug 1376931) 2017-10-05 00:14:57 +02:00
Brad Werth a7c74e8dca Bug 1376931 Part 4: Before MediaQueryList iteration for event listeners, copy the array before sending any events. r=heycam
MozReview-Commit-ID: 4eDs6viuxvT

--HG--
extra : rebase_source : 7759c52155151c4717123d1951c8e9c61fad6e8f
2017-09-19 17:05:16 -07:00
Brad Werth 559b3e4021 Bug 1376931 Part 3: Change Gecko media queries of resolution to compare in dppx units without unit conversion. r=heycam
MozReview-Commit-ID: DPdz1Tmv24R

--HG--
extra : rebase_source : ddf4b4aae7fdc8ca62de714b9f222daee5959743
2017-09-27 16:53:27 -07:00
Brad Werth 1450446d11 Bug 1376931 Part 2: Extend ContentViewer to allow reporting of effective full zoom level as determined by the device context. r=bz,heycam
MozReview-Commit-ID: EoVp1DwAl0j

--HG--
extra : rebase_source : b0bdf52adb0e44b51c4bbeb33668c35f559b8464
2017-09-27 14:06:37 -07:00
Brad Werth 4560a2c23f Bug 1374181 Part 1: Don't attempt EnsureUniqueInner on incomplete sheets in a StyleSet. r=xidorn
One remaining issue is that requesters of CSSRules might also want to know if those rules are complete, and to listen for completion if the rules are incomplete. Bug 1404538 will fix this up at least for devtools.

MozReview-Commit-ID: COnkS40Ooe2

--HG--
extra : rebase_source : 453bed12805fec668e90d5194fcd3df2d48af56e
2017-10-03 11:15:26 -07:00
Emilio Cobos Álvarez 48c5a32dc2 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe

--HG--
extra : rebase_source : 38248c72c8208200735fe4cf4516e374ea721080
2017-10-02 12:07:11 +02:00
Cameron McCormack 0b7960f23a Bug 1397626 - Part 3: Use SharedFontList to store font-family specified and computed values. r=xidorn
MozReview-Commit-ID: J3MNO2un2ov

--HG--
extra : rebase_source : 737943aea3d383669a7103d4e23f109889c09034
2017-10-03 12:27:45 +08:00
Cameron McCormack 7713fdd126 Bug 1397626 - Part 2: Replace uses of FontFamilyListRefCnt with SharedFontList. r=xidorn
MozReview-Commit-ID: 7HoBae9UOks

--HG--
extra : rebase_source : c0938e034847e825cab3684b70d097b0e0b8c9f9
2017-10-02 10:24:25 +08:00
Sebastian Hengst 66c0db70b2 Backed out changeset 1f1ff129684f (bug 1404897) for Android bustage at nsDocument.cpp:1414: undefined reference to 'Servo_SelectorList_Drop'. r=backout 2017-10-04 12:56:00 +02:00
Sebastian Hengst d90f0a5f6d Backed out changeset cfc393773f0d (bug 1404897) 2017-10-04 12:55:11 +02:00
Emilio Cobos Álvarez ff89c00970 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W

--HG--
extra : rebase_source : 4c816bb774ea7c67262a1e73277e3dbaeec060e8
2017-10-02 18:14:15 +02:00
Emilio Cobos Álvarez 6edc4a4c43 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe

--HG--
extra : rebase_source : de0f04b9155e9ad31596d7fd7b89585b8c1d753f
2017-10-02 12:07:11 +02:00
Sebastian Hengst 65ea166a53 Backed out changeset fda0d9bc93f0 (bug 1404897) for build bustage at nsIDocument.h:1181: bad implicit conversion constructor for 'SelectorList'. r=backout 2017-10-04 11:25:27 +02:00
Sebastian Hengst 000d2b584e Backed out changeset 3833f3700021 (bug 1404897) 2017-10-04 11:24:26 +02:00
Sebastian Hengst 7e81b9743d merge mozilla-central to autoland. r=merge a=merge 2017-10-04 11:15:12 +02:00
Emilio Cobos Álvarez aaadd28724 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-04 11:01:42 +02:00
Emilio Cobos Álvarez 3e01f33d28 Bug 1404897: Add bindings to Servo selector lists. r=heycam
MozReview-Commit-ID: 4ZrWawDwuNe
2017-10-04 11:01:26 +02:00
Ethan Lin 0d6bfa48a2 Bug 1391816 - Move layers-free related functions and variables from WebRenderLayerManager to WebRenderCommandsBuilder. r=jrmuizel
We have too many layers-free things in WebRenderLayerManager. I create a new
class WebRenderCommandsBuilder and move some functions and variables from
WebRenderLayerManager to WebRenderCommandsBuilder.

MozReview-Commit-ID: BJi1E51W7ax

--HG--
extra : rebase_source : ddbfb044d467430403a3c480030ef9dec803c9f7
2017-09-25 15:48:29 +08:00
Daniel Holbert 1c34ad7112 Bug 1388230: Make nsColorControlFrame::UpdateColor() a no-op if value is empty (which implies our element is still being appended). r=jwatt
nsColorControlFrame::UpdateColor() looks up the color value from the
corresponding <input> element -- and it expects to receive a valid color
string, regardless of what the user/author has done (or whether they've done
anything), thanks to the HTMLInputElement sanitization code that gets run when
the value is set.

As a basic sanity-check, UpdateColor() has an assertion to verify that the
value it receives is non-empty. However, if it happens to be called while the
element is still being appended (e.g. due to greedy frame construction), then
it *can* legitimately get an empty value.  So, the assertion isn't entirely valid!

Hence, this patch relaxes the assertion to only take effect after the frame has
been reflowed, and it also makes UpdateColor() a no-op in that case.  This
is fine because we can expect that UpdateColor() will be called again (and will
see a non-empty color value at that point) before the frame gets
reflowed/painted.

MozReview-Commit-ID: LOymuwy6gIM

--HG--
extra : rebase_source : 57a2b58cc371ec82f1d2db0334b2236a33056e40
2017-10-03 15:20:07 -07:00
Lee Salzman 7aa828ae26 Bug 1407470 - follow-up - fix crashtests.list condition. r=me CLOSED TREE
MozReview-Commit-ID: KAOLClEZdLN
2017-10-12 16:18:10 -04:00
Lee Salzman 320337bba3 Bug 1407470 - make nsImageRenderer::Draw compute luminance in device space instead of user space. r=mstange
MozReview-Commit-ID: oKtzekYaYI
2017-10-12 14:42:42 -04:00
Jim Chen 8bfda16485 Bug 1357191 - 2. Fix form tests for new mobile date/time controls; r=jessica
Fix some test failures on mobile for the new date/time controls,

* Because mobile does not use the built-in reset button, tests
  involving the reset button are skipped.

* The mobile-only date/time tests in test_input_typing_sanitization.html
  do not apply to the new date/time controls, so they are removed to make
  mobile match desktop.

* test_input_sanitization.html now takes a lot longer to run on Android
  debug and frequently times out, so it's disabled for debug Android builds.

* time-content-left-aligned.html may fail because of different drawing
  behavior on Android, so the test is made fuzzy on Android.

MozReview-Commit-ID: FTzwHTJgVJe
2017-10-12 12:20:14 -04:00
Jim Chen ea127a6715 Bug 1357191 - 1. Use Gecko controls for Fennec date/time fields; r=jessica r=nechen
Right now, date/time fields in Fennec appear as regular text fields,
which display the date/time values without formatting. This patch makes
the fields use the Gecko controls, which do support formatting. This
only changes the appearance of the fields; we still display the native
date/time pickers when the fields are tapped on. The reset button is
hidden in the controls because the Fennec date/time picker provides
a separate "clear" button.

MozReview-Commit-ID: 75QyKmolNuf
2017-10-12 12:20:14 -04:00
Jeff Muizelaar 2bb7fc2c35 Bug 1407356. Use CreateSimiliarDrawTarget for Filters instead of CreateOffscreenTarget. r=mstange
This lets us record and playback filters on the webrender side.
2017-10-12 11:49:31 -04:00
Emilio Cobos Álvarez 27b8091362 Bug 1403592: Crashtest. r=Manishearth
I've made it crash at least once, though it's intermittent-y. I guess it's
better than no crashtest.

MozReview-Commit-ID: 5m2VCrEs8lM
2017-09-28 10:12:57 +02:00
Emilio Cobos Álvarez d389330c2e Bug 1403592: Never flush the user font set when getting font metrics from style resolution. r=Manishearth
In this case, the caller doesn't go through all the PreTraverseSync stuff (we
don't really want it to do so), via GetComputedStyleNoFlush.

It makes sense to not flush the user font set that case, we'll schedule a
restyle properly if / when needed.

Since the set should be flushed otherwise, let's just not flush it from the
styling code.

MozReview-Commit-ID: LLHfxemJ8QQ
2017-09-28 10:12:50 +02:00
Henri Sivonen b245e01efe Bug 256180 parser part - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug
MozReview-Commit-ID: K8fgv3rgklt

--HG--
extra : rebase_source : 3ad91a01805afcd1aeac89a5f2d5ac38dac1797b
2017-09-12 16:57:05 +03:00
Henri Sivonen ef3dabbc29 Bug 256180 layout part - Increase MAX_REFLOW_DEPTH to reduce the probability of content going silently missing. r=bz
MozReview-Commit-ID: 7Ui0tVlLEQM

--HG--
extra : rebase_source : 65657a2542dc8def2e65a1095913839fc32a7dd8
2017-09-14 11:01:06 +03:00
Emilio Cobos Álvarez 0b1b86082e Bug 1403615: Also follow the NODE_DESCENDANTS_NEED_FRAMES bit in ClearRestyleStateFromSubtree. r=bholley
We don't follow this bit intentionally because we know that even if it's set,
when none of the other two bits are set there are no other restyle / change
hints down the tree.

We rely on the frame constructor to clean the mess up, though, and it doesn't
really do a good work about it.

In particular, the case we're hitting on the test-case is:

<body descendant-need-frames change=reconstruct style="display: table-column-group">
  <div descendant-need-frames>
    <div descendant-need-frames>
      <span needs-frame></span>
    </div>
  </div>
</body>

When we see we need to reconstruct the body, we call
ClearRestyleStateFromSubtree, but that doesn't do much now, since we don't
follow the descendant-need-frames bits.

Then, when we reconstruct the content, we arrive at[1] when constructing the
first child <div>. The <div> flags have been cleared, but not the children's!

Then a text-node is inserted in a <div>, breaking all sorts of invariants.

This is the easiest fix. Other fixes include clearing the flags on
SetAsUndisplayedContent. But that implies not clearing them in
ShouldCreateItemsForChild, and doing that somewhere more sensible.

I suspect it's not too hard, but that's a slightly more risky change, will do it
if you prefer it.

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

MozReview-Commit-ID: 7026wkQLQkz
2017-09-28 08:53:51 +02:00
Henrik Skupin abd06348eb Bug 1403616 - Defer logging of Marionette IOError to after post-test checks. r=gbrown
If Firefox crashes while mochitests or reftests are running, Marionette
will trigger an IOError exception which currently gets logged immediately,
and causes no post-test checks to be performed. This results in missing
crash and leak checks, and an unclear failure message on Treeherder.

With this change only the IOError from Marionette gets deferred until
all post-test checks are done. This fixes the failure messages, and will
put PROCESS_CRASH or leak log output first.

MozReview-Commit-ID: JCYP5LlPE1m

--HG--
extra : rebase_source : a4a9455402b01db8ef1dbafccc7a726d2927ec03
2017-09-27 21:07:44 +02:00
Kyle Machulis e6d0a7ad13 Bug 1402180 - Remove nsIDOMHTMLAreaElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAreaElement, replacing it
with binding class usage.

MozReview-Commit-ID: IaX4JFTPZn6

--HG--
extra : rebase_source : 79f9200c6ff9e081a5d9bc21eaa605f88caa99e9
2017-09-21 17:52:28 -07:00
Wes Kocher 13aa1f3a82 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 6Em6JpAgEOF
2017-09-27 17:04:00 -07:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Kartikaya Gupta cb3cf300ac Bug 424274 - Mark some table-background tests as fuzzy-passing instead of failing. r=dholbert
MozReview-Commit-ID: CqkXWtpXESZ

--HG--
extra : rebase_source : 5f4039b9b4a6052a3edebb8b14d99c12f4c47261
2017-09-27 12:07:47 -04:00
Sebastian Hengst dc3edbabca Backed out changeset 379e7e7bf80d (bug 1403615) for failing own crashtest. r=backout 2017-09-27 21:27:08 +02:00
Ryan VanderMeulen d70d8e1773 Merge m-c to inbound. a=merge 2017-09-27 13:24:21 -04:00
David Major cb46df4d86 Bug 1403220 - De-optimize some font functions to work around an MSVC PGO crash. r+a=RyanVM 2017-09-27 10:17:00 -04:00
Sebastian Hengst a3b6b15cef merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BGCq2q6xO1S
2017-09-27 11:47:52 +02:00
Wes Kocher acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Wes Kocher a341b32d06 Merge autoland to central, a=merge
MozReview-Commit-ID: 8B7y2ULc04
2017-09-26 17:11:14 -07:00
Wes Kocher 22a72df7fe Merge inbound to m-c a=merge
MozReview-Commit-ID: 6viJ4wRxLa8
2017-09-26 15:54:51 -07:00
Jonathan Kew 9cd0e4f0c4 Bug 1402861 - Remove ENABLE_INTL_API conditional from nsNumberControlFrame. r=dholbert 2017-09-26 13:28:21 +01:00
Sebastian Hengst 8002077a1e merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-26 12:22:11 +02:00
Sebastian Hengst 3c0f8f3312 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4W52wcX8xBm
2017-09-26 11:54:34 +02:00
Sebastian Hengst 5ed0b93c50 Backed out changeset 26805294a547 (bug 1389650) 2017-09-26 10:47:41 +02:00
Cameron McCormack 57d322dc42 Bug 1403073 - stylo: Fix some bindgen object layout issues. r=xidorn
MozReview-Commit-ID: CnW4J2ZlmfJ

--HG--
extra : rebase_source : 1a5318e75b1cde9a48dcdab689c7983a0b0c89b5
2017-09-26 15:06:33 +08:00
cku 4cc191b68d Bug 1402798 - Part 1. Check the type of an SVGPaint object from the correct frame. r=longsonr+218550
mTargetFrame is not a correct one, we should check the SVGStyle of 'frame'
object.

MozReview-Commit-ID: 3UNfbXkICkz

--HG--
extra : amend_source : 9fa5f095881fc3b92329a7d187f4d5926c43fed7
2017-09-26 14:43:14 +08:00
Kartikaya Gupta 2072043f8f Bug 1403559 - Remove random-if(webrender) annotations for layers-specific reftests and instead skip the layers checks in the reftest harness. r=mstange
MozReview-Commit-ID: 8Xtx3aGIx8

--HG--
extra : rebase_source : 60c22211bc4baeb3292ec76fee6e4c59b9ca105d
2017-09-27 10:12:10 -04:00
Kartikaya Gupta fa1a270dae Bug 1403559 - Remove random-if webrender annotation from test that's consistently passing now. r=jrmuizel
MozReview-Commit-ID: 8SMnWmWwf3h

--HG--
extra : rebase_source : ef17776575f52ee02b293cf92012636831328d1e
2017-09-27 10:12:09 -04:00
Kartikaya Gupta 4ae61b45dc Bug 1403559 - Remove obsolete comments referencing closed webrender bugs. r=jrmuizel
MozReview-Commit-ID: IkbNOL9xWbh

--HG--
extra : rebase_source : e372f1ea3029a0666077443893962f8ba663ee57
2017-09-27 10:12:09 -04:00
Sebastian Hengst 62e24caac1 Backed out changeset a785b7aea1e3 (bug 1403559) 2017-09-27 20:19:22 +02:00
Sebastian Hengst f7e9e7500c Backed out changeset 0e37a70ad7ce (bug 1403559) 2017-09-27 20:19:16 +02:00
Sebastian Hengst a0684d483d Backed out changeset 5572e837e2d0 (bug 1403559) 2017-09-27 20:19:11 +02:00
Emilio Cobos Álvarez db0476916e Bug 1403615: Also follow the NODE_DESCENDANTS_NEED_FRAMES bit in ClearRestyleStateFromSubtree. r=bholley
We don't follow this bit intentionally because we know that even if it's set,
when none of the other two bits are set there are no other restyle / change
hints down the tree.

We rely on the frame constructor to clean the mess up, though, and it doesn't
really do a good work about it.

In particular, the case we're hitting on the test-case is:

<body descendant-need-frames change=reconstruct style="display: table-column-group">
  <div descendant-need-frames>
    <div descendant-need-frames>
      <span needs-frame></span>
    </div>
  </div>
</body>

When we see we need to reconstruct the body, we call
ClearRestyleStateFromSubtree, but that doesn't do much now, since we don't
follow the descendant-need-frames bits.

Then, when we reconstruct the content, we arrive at[1] when constructing the
first child <div>. The <div> flags have been cleared, but not the children's!

Then a text-node is inserted in a <div>, breaking all sorts of invariants.

This is the easiest fix. Other fixes include clearing the flags on
SetAsUndisplayedContent. But that implies not clearing them in
ShouldCreateItemsForChild, and doing that somewhere more sensible.

I suspect it's not too hard, but that's a slightly more risky change, will do it
if you prefer it.

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

MozReview-Commit-ID: 7026wkQLQkz
2017-09-27 20:02:04 +02:00
Ryan VanderMeulen 8ec5b78126 Merge m-c to autoland. a=merge 2017-09-27 13:24:50 -04:00
Kartikaya Gupta ecd18443a0 Bug 1403559 - Remove random-if(webrender) annotations for layers-specific reftests and instead skip the layers checks in the reftest harness. r=mstange
MozReview-Commit-ID: 8Xtx3aGIx8

--HG--
extra : rebase_source : 3d4a95e85ef6dc361f832ad0fc2160e5dcce5f55
2017-09-27 10:12:10 -04:00
Kartikaya Gupta 84950d9cba Bug 1403559 - Remove random-if webrender annotation from test that's consistently passing now. r=jrmuizel
MozReview-Commit-ID: 8SMnWmWwf3h

--HG--
extra : rebase_source : b33d87393bbc235af3e1b8dc5f99823327fa0ef3
2017-09-27 10:12:09 -04:00
Kartikaya Gupta fed74b36de Bug 1403559 - Remove obsolete comments referencing closed webrender bugs. r=jrmuizel
MozReview-Commit-ID: IkbNOL9xWbh

--HG--
extra : rebase_source : 050b362e82464358a6f806038b699aead5b2a8d9
2017-09-27 10:12:09 -04:00
Cameron McCormack 75329a655b Bug 1403030 - stylo: One more followup to fix a build error. r=me 2017-09-26 10:31:10 +08:00
Cameron McCormack ec4e0786a0 Bug 1403030 - stylo: Followup for another missing const. r=me
--HG--
extra : amend_source : 1db1fe5adf61b5cebd653bf0a0a740a7bfc7d2db
2017-09-26 10:21:37 +08:00
Cameron McCormack d3e557a199 Bug 1403030 - stylo: Fix some mismatching FFI declarations. r=xidorn
MozReview-Commit-ID: C5iBTR0OZKy

--HG--
extra : rebase_source : fa8c99f64dc8a78954cee21747a8915a7c04e7bb
2017-09-26 09:13:36 +08:00
Wes Kocher 7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Olli Pettay c80e124562 Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap
--HG--
extra : rebase_source : 2bb600ed1ffd35c195617a7eb70d0ba847a46898
2017-09-25 18:09:26 +03:00
Boris Zbarsky e04143fa91 Bug 1401739. Make sure to always call UpdateStyleOfChildAnonBox with the first continuation as "this". r=emilio
MozReview-Commit-ID: KhfvBuCeoex
2017-09-25 10:58:39 -04:00
Kartikaya Gupta f79a3c53f1 Bug 1389000 - Remove duplicated layers-free tests. r=jrmuizel
We had previously started running some tests in layers-free mode
already, either by setting the default-preferences on the folder to
turn on layers-free, or by duplicating an individual reftest annotation
so that it ran in both layers-full and layers-free mode. This patch
removes these changes since layers-free is now the default and we don't
need to run layers-full at all.

MozReview-Commit-ID: JJwB9iO5clU

--HG--
extra : rebase_source : ea20545945b825d7ff829526d4d263850e6b5b7f
2017-09-26 14:49:20 -04:00
Kartikaya Gupta 818cfd7499 Bug 1389000 - Update reftest annotations for layers-free results. r=jrmuizel
This patch:
- adds fails-if annotations for all the reftests that were consistently failing
  with layers-free turned on.
- removes fails-if or reduces the range on fuzzy-if annotations for all
  the reftests that were producing UNEXPECTED-PASS results with
  layers-free turned on.
- adds skip-if, random-if, or fuzzy-if annotations to the reftests that
  were intermittently failing due to timeout, obvious incorrectness, or
  slight pixel differences, respectively.

MozReview-Commit-ID: A0Aknn6rnjj

--HG--
extra : rebase_source : 420d9cf43f23a5d654fa36eec69138937d13c173
2017-09-26 14:49:19 -04:00
Matt Woodrow 0b12597ec2 Bug 1402204 - Remove NS_SCROLLFRAME_INVALIDATE_CONTENTS_ON_SCROLL as it doesn't appear to be needed any more. r=mats 2017-09-20 13:12:37 +12:00
Timothy Nikkel 9b61794af5 Bug 1402203 - Add a new layout phase for displaylist building. r=mstange 2017-09-26 15:57:57 +13:00
Matt Woodrow 991f510e8b Bug 1402199 - Move code for adding extra background items into a helper. r=mstange 2017-09-26 15:57:56 +13:00
Matt Woodrow 9304acdbbb Bug 1397671 - Don't treat SVG transformed frames as being transformed for the purposes of computing Combines3DTransformWithAncestors. r=dbaron 2017-09-26 15:57:56 +13:00
Matt Woodrow d58801ad81 Bug 1402197 - Add an option for GetTransformToAncestor to stop at stacking contexts and displayport. r=mstange 2017-09-26 15:57:55 +13:00
Alexander Surkov 45edae968f Bug 1321960 - rename nsIPresShell::mSuppressInterruptibleReflows to mWasLastReflowInterrupted to reflect better its purpose, r=dholbert 2017-09-26 16:25:12 -04:00
Alexis Beingessner 6c9882ed08 Bug 1400411 - stop mocking most of DrawTarget. r=jrmuizel
Also fixes a bad debug assertion

MozReview-Commit-ID: 5OV5KkvbRwZ

--HG--
extra : rebase_source : 5de35738733c8f18b2b227109eed7fcd9b4d9ed9
2017-09-16 10:42:11 -04:00
Alexis Beingessner 6803f63105 Bug 1400411 - text-layers: fallback if SVG fonts or tofu is found. r=jrmuizel
MozReview-Commit-ID: 9vUK5r5sKWB

--HG--
extra : rebase_source : 5e4c026cf6c802554772a99064898fde3b414ea8
2017-09-22 10:57:30 -04:00
Ethan Lin 34b1044bbc Bug 1402925 - Reset the animation id passed to the StackingContextHelper if there is no animation. r=kats
MozReview-Commit-ID: 2WM5FeeDAIc
2017-09-25 13:48:57 -04:00
Geoff Brown fb82de2597 Bug 1401035 - Avoid Android reftest restart after max run time exceeded; r=jmaher 2017-09-26 13:20:30 -06:00
Geoff Brown 1e26b50be4 Bug 1390884 - Enable limited test chaos mode in test-verify; r=jmaher
This adds new test verification steps for mochitest/reftest/xpcshell tests
with MOZ_CHAOSMODE=3 (thread scheduling and network thread scheduling).
Enabling all chaos mode features seems to destabilize test verification
so I am only enabling these features for now.
2017-09-26 13:20:28 -06:00
Joel Maher e5023d1194 Bug 1401228 - disable transforms/* on win7 non-e10s to prevent Assertion failure: [GFX1]: Failed to create DrawTarget, Type: 3 Size: Size(800,1000). r=gbrown 2017-09-26 15:16:41 -04:00
Joel Maher f2a88fd5c4 Bug 1388764 - disable layout/reftests/bugs/508908-1.xul to avoid crash in mozilla::ipc::MessageChannel::WillDestroyCurrentMessageLoop(). r=gbrown 2017-09-26 15:16:32 -04:00
Wes Kocher 9d9610f6a3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: Kjjgw1Pdb3U
2017-09-26 17:15:46 -07:00
Kyle Machulis a3876f104a Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.

MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-26 11:41:28 -07:00
Alexis Beingessner cece98d71c Bug 1403259 - TextDrawTarget: fallback on -webrender-text-stroke. r=jrmuizel
MozReview-Commit-ID: 9taTLk0RLQq

--HG--
extra : rebase_source : 2c70334438ba9f59d030096656970362cbf0a7a2
2017-09-26 14:12:12 -04:00
Kartikaya Gupta 8eaaf84f59 Bug 1403288 - Remove redundant reftest lines since border layers are enabled by default with webrender now. r=Gankro
MozReview-Commit-ID: L1iU7pV1CcX

--HG--
extra : rebase_source : 172e22c532e323c67ae7949ac5f5fe7595bfc20a
2017-09-26 15:02:39 -04:00
Kartikaya Gupta 24c0563086 Bug 1403457 - Mark a test as fails-if(webrender). r=me
MozReview-Commit-ID: 2q2Y2AMUIAr
2017-09-27 08:18:58 -04:00
Mats Palmgren d9d785d520 Bug 1398520 part 4 - Rename nsFormControlFrame to nsCheckboxRadioFrame. r=dholbert
MozReview-Commit-ID: 9nwikVD1cd9

--HG--
rename : layout/forms/nsFormControlFrame.cpp => layout/forms/nsCheckboxRadioFrame.cpp
rename : layout/forms/nsFormControlFrame.h => layout/forms/nsCheckboxRadioFrame.h
2017-09-27 14:12:00 +02:00
Mats Palmgren 9d74c12453 Bug 1398520 part 3 - Remove a few unused function declarations. r=dholbert
MozReview-Commit-ID: 7XXRk7hnYDQ
2017-09-27 14:12:00 +02:00
Mats Palmgren e377f37e6e Bug 1398520 part 2 - Remove nsGfxCheckboxControlFrame and nsGfxRadioControlFrame; use nsFormControlFrame instead. r=dholbert
MozReview-Commit-ID: GxnZZXxHDyC
2017-09-27 14:12:00 +02:00
Mats Palmgren d9ccba0026 Bug 1398520 part 1 - Add missing #include for NS_THEME_* constants. r=dholbert
MozReview-Commit-ID: DsWmX7XbzBf
2017-09-27 14:12:00 +02:00
Jonathan Watt 6b07b2d402 Bug 1399853 - Identify the ID of the elements involved in SVG reference loops in the Web Console error messages. r=longsonr
MozReview-Commit-ID: 7SOk2pMEezK
2017-09-11 17:02:35 +01:00
Jonathan Watt 862c8e7e8d Bug 1403345, part 4 - Rename nsReferencedElement to dom::IDTracker. r=longsonr
MozReview-Commit-ID: 3cGMHDHEhx0
2017-09-08 10:02:05 +01:00
Jonathan Watt 0d623a1609 Bug 1403345, part 3 - Move nsReferencedElement.h/.cpp to IDTracker.h/.cpp. r=longsonr
MozReview-Commit-ID: Ki6oS79xuhJ

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-08 10:02:05 +01:00
Sebastian Hengst 2d548eb88a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-27 11:51:06 +02:00
Sebastian Hengst cdcf3bf44b Backed out changeset 59252e3229f1 (bug 1403345)
--HG--
rename : dom/base/IDTracker.cpp => dom/base/nsReferencedElement.cpp
rename : dom/base/IDTracker.h => dom/base/nsReferencedElement.h
2017-09-27 10:43:54 +02:00
Sebastian Hengst ec33e563cc Backed out changeset 1b5d3684ecfb (bug 1403345) 2017-09-27 10:43:49 +02:00
Jonathan Watt 3c6336aaca Bug 1403345, part 3 - Rename nsReferencedElement to dom::IDTracker. r=longsonr
MozReview-Commit-ID: AkNuXab6xQr
2017-09-05 11:17:50 +01:00
Jonathan Watt 462030153c Bug 1403345, part 2 - Move nsReferencedElement.h/.cpp to IDTracker.h/.cpp. r=longsonr
MozReview-Commit-ID: 7yiAaKnXhCq

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-05 10:45:18 +01:00
Nicholas Nethercote 859669c8b0 Bug 1401692 - Add crashtest. r=bholley.
This required adding getMemoryReports() to SpecialPowers.

--HG--
extra : rebase_source : b61d0fb7e01973db45c3e3df64f6f5c324fa3b24
2017-09-26 14:32:30 +10:00
Sebastian Hengst d1d55ab8bc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 517PGVX0wPB
2017-09-25 11:58:15 +02:00
Sebastian Hengst 1a3935a05f merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
vincentliu b9ec3e7267 Bug 1399006 - Add crashtest. r=TYLin 2017-09-25 10:12:24 +08:00
Sebastian Hengst c0203b7b61 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HGJIeJkelZe
2017-09-24 23:52:35 +02:00
Phil Ringnalda c0cc6e5922 Merge m-c to autoland
CLOSED TREE
2017-09-23 19:24:32 -07:00
Phil Ringnalda 5ec4689188 Merge m-i to m-c, a=merge
MozReview-Commit-ID: yR3OcmC4JG
2017-09-23 19:17:00 -07:00
Manish Goregaokar 0b79b6657e Bug 1399228 - stylo: Remove FontComputationData, switch over to using the new font tracking; r=emilio
MozReview-Commit-ID: 66IAynRiUkU
2017-09-23 12:55:43 -07:00
Manish Goregaokar aa9a1e8f52 Bug 1399228 - stylo: Add font keyword info fields on nsStyleFont; r=emilio
MozReview-Commit-ID: ERCnLLiAsFg
2017-09-23 12:55:34 -07:00
Emilio Cobos Álvarez 107ece75f1 Bug 1402472: Crashtest. r=me
MozReview-Commit-ID: 3adJy9IKzK0
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-23 16:41:23 +02:00
Sebastian Hengst 596a1c503e merge mozilla-central to autoland. r=merge a=merge 2017-09-23 11:47:34 +02:00
Sebastian Hengst c0dac760d3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: It9WfByQfV3
2017-09-23 11:38:06 +02:00
Geoff Brown 1c7d68ba94 Bug 1396905 - Support reftests in test-verify; r=jmaher
Complications:
 - had to copy ReftestManifest into a test zip
 - reftest harness was emitting multiple suite_start log entries with --repeat
 - some extra path manipulation required to find reftests
2017-09-23 09:07:03 -06:00
Emilio Cobos Álvarez 33296e863c Bug 1400936: Crashtests. r=bholley
MozReview-Commit-ID: 6Q07StWSog
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-23 04:53:41 +02:00
Emilio Cobos Álvarez eb51751453 Bug 1401706: Crashtest. r=me
MozReview-Commit-ID: Jf0n4f4kMhl
2017-09-23 04:11:15 +02:00
Emilio Cobos Álvarez c1faec30a9 Bug 1401706: Remove redundant UpdateValueDisplay call. r=Ehsan
This was just moved from the old code, but we always call that function in
CreateAnonymousContent, so no need to.

MozReview-Commit-ID: 1zqmQM2KdpW
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : c8884cca80fabf3fbd7ad7580b9755e6c6b1dd3e
2017-09-22 14:48:02 +02:00
Emilio Cobos Álvarez 72b20cdc50 Bug 1401706: Remove redundant boolean members from nsTextControlFrame. r=Ehsan
MozReview-Commit-ID: Ka81vlPMa88
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 281ab4635b1395c133c8ad7c74b8b82bfb21d383
2017-09-22 07:33:41 +02:00
Emilio Cobos Álvarez a79c0b5eae Bug 1401706: Remove unused macro. r=Ehsan
MozReview-Commit-ID: EsvdnJkapgP
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : c681c4393051916aeffa6adc947fb267b88225c8
2017-09-22 07:33:30 +02:00
Emilio Cobos Álvarez b4949a9204 Bug 1401706: Move ownership of editor anon content to nsTextControlFrame. r=Ehsan
MozReview-Commit-ID: 4QpbarX5dvf
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : f2bd73c696bc3e7937a8e6c365c9ef31a6888524
2017-09-22 02:18:30 +02:00
Bobby Holley cb69588ef2 Bug 1402285 - Don't try to cache pseudo styles with an unstyled originating element. r=emilio
MozReview-Commit-ID: C4JNZFtYHBH
2017-09-22 18:02:24 -07:00
Bobby Holley 01fb3786f9 Bug 1401992 - Mark some tests as passing on android. r=me
MozReview-Commit-ID: HJuIX5VXBm5
2017-09-22 17:23:38 -07:00
Kyle Machulis 9b4ac7e03f Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz
Removes the nsIDOMHTMLObjectElement XPCOM interface, replacing it with
HTMLObjectElement and FromContent conversion usage.

MozReview-Commit-ID: dmsjSO97uh

--HG--
extra : rebase_source : 9b2c25b8681f754bc34233afccdb6fc5d38f0804
2017-09-22 17:05:12 -07:00
Bobby Holley 6dfffba33a Bug 1401992 - Make the reftest less flakey. r=me
We don't need the video controls to be painted.

MozReview-Commit-ID: AXsM8Q1vJm4
2017-09-22 17:10:05 -07:00
Bobby Holley a4cf7fbbf5 Bug 1401992 - Reftest. r=me
MozReview-Commit-ID: C7UQEQOkE7q
2017-09-22 15:38:32 -07:00
Wes Kocher 528cd7a92c Merge m-c to autoland, a=merge
MozReview-Commit-ID: BelD7GUGNq6
2017-09-22 15:31:06 -07:00
Wes Kocher 1443004d66 Merge inbound to central, a=merge
MozReview-Commit-ID: 2MDU9VGB9Pg
2017-09-22 14:56:05 -07:00
Ting-Yu Lin 5c26eb9921 Bug 1402246 - Remove unused NS_SPACING_{MARGIN, PADDING, BORDER}. r=heycam
MozReview-Commit-ID: DOW5EnFLQxL

--HG--
extra : rebase_source : 96e9d66661db071395cea3be8831b0ee6f50ffd9
2017-09-22 15:57:14 +08:00
Ting-Yu Lin b6b721ba8f Bug 1402246 - Remove "friend struct" declarations in nsStyleStruct.h. r=heycam
Those structs do not have any private section, so those "friend struct"
declarations are not needed.

MozReview-Commit-ID: BYPPPLAdiEQ

--HG--
extra : rebase_source : 58cb78f8d6f8c60c7345ece204326cf580d5905f
2017-09-22 15:30:36 +08:00
Sebastian Hengst 2479eaedbf merge mozilla-central to autoland. r=merge a=merge 2017-09-22 11:50:19 +02:00
Sebastian Hengst 9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Phil Ringnalda 9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher 733c3896f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 9mZaPGxxjXd
2017-09-21 17:04:03 -07:00
Wes Kocher a7fe048680 Merge inbound to central, a=merge
MozReview-Commit-ID: E7k4xViLm4V
2017-09-21 17:03:29 -07:00
Kershaw Chang 53cf0a2a8e Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
J. Ryan Stinnett 7c2bd5ab17 Bug 1401256 - Crashtest for animating lengths. r=heycam
MozReview-Commit-ID: HiVfx9cg4ZZ
2017-09-21 18:22:46 -05:00
Sebastian Hengst 23a0689548 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-21 15:29:25 +02:00
Sebastian Hengst 7eec7a0a11 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mr7OYuaLKE
2017-09-21 15:23:43 +02:00
Jonathan Kew 2f559c90c7 Bug 1376231 - Reftest for GPOS-feature adjustments to vertical glyph advances. r=jrmuizel 2017-09-21 14:18:18 +01:00
Morris Tseng 9e6b5807aa Bug 1394226 - Add reftests. r=dbaron
MozReview-Commit-ID: FYOYVVKJsRg
2017-09-21 14:42:45 +08:00
Morris Tseng 88f5bda1d6 Bug 1394226 - Correct z-ordering for some table parts. r=dbaron
MozReview-Commit-ID: IdLhMGDmQag
2017-09-21 14:42:44 +08:00
Morris Tseng b233faee80 Bug 1392200 - Turn on some backface-visibility reftests. r=kats
MozReview-Commit-ID: GFPfkfDZYSm
2017-09-21 14:41:38 +08:00
Morris Tseng ce9b629335 Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K
2017-09-21 14:41:38 +08:00
Wes Kocher a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Ethan Lin fb32d577e9 Bug 1398706 - Always create new clip ids in ScrollingLayersHelper if it's inside a mask. r=kats
MozReview-Commit-ID: Hhsbgpqddo1

--HG--
extra : rebase_source : 40507644148da5bfe6ca3dd5f1f438ac9e7e10ff
2017-09-19 17:05:22 +08:00
Kevin Hsieh f7dc9cf879 Bug 1401709 - Do attach base line layout to orthogonal rtc. r=xidorn
MozReview-Commit-ID: JCgaXWD43m5

--HG--
extra : rebase_source : b0c4503315ddef1190897313e990c7e971cbe253
2017-09-21 19:36:12 -07:00
Bobby Holley 3fa173a724 Bug 1401317 - Reftest. r=me
MozReview-Commit-ID: KnGCuU0rcgi
2017-09-20 10:10:00 -07:00
Bobby Holley 51ff1b0b2b Bug 1401317 - Disable lazy pseudo caching when the originating element's primary style was reused via the rule node. r=emilio
MozReview-Commit-ID: IkBa39E1bR1
2017-09-20 10:09:59 -07:00
Sebastian Hengst 6ba627d8ce Backed out changeset 3844ac09ae6a (bug 1392200) 2017-09-20 18:13:07 +02:00
Sebastian Hengst 984ab5088d Backed out changeset a2169b64cac2 (bug 1392200) 2017-09-20 18:13:01 +02:00
Morris Tseng f06de38de0 Bug 1392200 - Turn on some backface-visibility reftests. r=kats
MozReview-Commit-ID: GFPfkfDZYSm

--HG--
extra : rebase_source : de73f0c1ba22e31ca0576366af47c25907261e0b
2017-09-20 15:36:11 +08:00
Wes Kocher 640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Ethan Lin 5dcbfee796 Bug 1402229 - Correct the transform order of canvas in layers-free mode. r=kats
MozReview-Commit-ID: 730mujRk3Lf

--HG--
extra : rebase_source : 6638bcb13f7b2fedf777a3a7d15733903274d3aa
2017-09-22 23:54:43 +08:00
Manish Goregaokar 93c3d2e198 Bug 1402419 - Add crashtest ; r=xidorn
MozReview-Commit-ID: 9Kuxn9edajM

--HG--
extra : rebase_source : 8eab8f035b65aad295de55e6043ec81f8548ac61
2017-09-22 13:47:40 -07:00
Wes Kocher 8afe601b42 Backed out 2 changesets (bug 1376231) for reftest failures in 1376231-vertical-gpos-adjustments-ref.html a=backout
Backed out changeset e4edd97bf01a (bug 1376231)
Backed out changeset b36ff08b10ee (bug 1376231)

MozReview-Commit-ID: IiPIU5iGnWV
2017-09-20 10:41:55 -07:00
Jonathan Kew af29d63449 Bug 1376231 - Reftest for GPOS-feature adjustments to vertical glyph advances. r=jrmuizel 2017-09-20 17:27:54 +01:00
Sebastian Hengst d9cb1f446d merge mozilla-central mozilla-inbound. r=merge a=merge 2017-09-20 14:58:11 +02:00
Sebastian Hengst 9fde47b255 Backed out changeset c863089c7166 (bug 1399853) for changing string texts without altering string ids. r=backout a=backout
MozReview-Commit-ID: 94W0KZjtlbd
2017-09-20 14:55:39 +02:00
Nicholas Nethercote df9964ce9b Bug 1401427 - Fix leak in the UACacheReporter and re-enable it. r=heycam.
The problem was the missing |gUACacheReporter = nullptr;|.

--HG--
extra : rebase_source : 7bfbae138e745ca1292c1fb0308373e85df19f89
2017-09-20 21:17:27 +10:00
Nicolas Silva 61546da339 Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel 2017-09-20 13:36:53 +02:00
Sebastian Hengst bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Morris Tseng 3f12c82847 Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K

--HG--
extra : rebase_source : ae88579f3718884bd4ddd89dfc3885bada3f15a4
2017-09-13 11:25:58 +08:00
Sebastian Hengst cbf485433e Backed out changeset 61a277705d59 (bug 1400438) for heap write hazard. r=backout 2017-09-20 16:52:02 +02:00
Jeremy Chen d29aaa59a6 Bug 1394284 - add fallback discrete procedure for transform animation. r=boris,hiro
According to the spec, if one of the matrices for transform interpolation is
non-invertible, the used animation function must fall-back to a discrete
animation. However, in the current implementation, we always use an identity
matrix as a fallback for the non-invertible matrix.

Decompose2DMatrix and Decompose3DMatrix both return a boolean, but we just
never use it. So, in this patch, we use the returned boolean from the matrix
decomposition as a condition, and do the fallback discrete procedure for the
non-invertible matrices case.

MozReview-Commit-ID: E7i1a1MJOXN

--HG--
extra : rebase_source : 3dc9b777793dd783cd5e1c4ff750b6f8db0d2185
2017-09-13 17:39:07 +08:00
Chris Peterson b98afa1d19 Bug 870698 - Part 11: Replace Insert(NS_LITERAL_STRING("")) with InsertLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: L9UE3gXHG4Q

--HG--
extra : source : 37d74bf745b23542251cc6b021d6aabb5ffadea1
extra : intermediate-source : 0402b4bd34c293b44c76de22418899420c8e405b
2017-09-07 18:08:18 -07:00
Chris Peterson 5698729243 Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: H9I6vNDMdIr

--HG--
extra : rebase_source : cf537a1f65af003c6c4f8919b925b0f305c1dd4d
extra : source : 13b89ce4e6a66c840f82a335c71f5a12938aba22
2017-09-07 18:32:54 -07:00
Kartikaya Gupta 0506667603 Bug 1401997 - Always report pixel difference counts for reftests. r=jmaher
MozReview-Commit-ID: 5f2JPMA1ntP

--HG--
extra : rebase_source : 4c22be392850a2ab3e81b06c5076b8e5a37a2e0c
2017-09-21 11:28:24 -04:00
Chris Peterson 98b2f2fcd6 Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: DbTW5Bhd9E1

--HG--
extra : rebase_source : b27f666e5ca832d814fb6846208474e1ec66e5f4
extra : source : 9ff4e11402a9a43ed90298a9c354b0164cf9414f
2017-09-07 18:15:42 -07:00
Chris Peterson 10073693ba Bug 870698 - Part 3: Replace Insert("") with InsertLiteral(""). r=erahm
MozReview-Commit-ID: 7ERQfcVAiRx

--HG--
extra : rebase_source : de006c4c32f91bf184d9197e920d546253657f82
extra : intermediate-source : 1e875e7bf42881fd1a104501ad379d9f1cdc3c33
extra : source : 9a43a6935a1ce9bd52020fd816cc6c1686aa8564
2017-09-05 12:41:31 -07:00
Samael Wang 99707fb64b Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : de236f40fdf55c877fd7fb4fe7daab963a82d6f0
2017-09-05 18:16:10 +08:00
Geoff Brown 81c675f7bc Bug 1397615 - Skip some long-running mochitests on Android Debug only; r=snorp 2017-09-21 12:39:35 -06:00
Chris Peterson 45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00
Jonathan Watt 4130888dfd Bug 1342951, part 4 - Add a version of SVGTextFrame::GetSubStringLength that can be used independantly of reflow, to avoid sync reflows. r=heycam
MozReview-Commit-ID: CJqUwF3rXP4
2017-09-02 22:22:54 +01:00
Jonathan Watt f28f0d2890 Bug 1342951, part 3 - Support recording of SVGTextFrame correspondence before reflow. r=heycam
MozReview-Commit-ID: IG2etgpZCHN
2017-09-01 18:07:40 +01:00
Sebastian Hengst 6a3f9cab47 merge mozilla-central to autoland. r=merge a=merge 2017-09-20 14:57:10 +02:00
Xidorn Quan 4599882448 Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : source : 418288301c994faded0993a1cd3d73fc3b6521be
extra : amend_source : 7cba1fc0ca13b86782aa05ab4dae4cdc7eb9fbf6
2017-09-20 22:52:20 +10:00
Sebastian Hengst 0dc17cba82 merge mozilla-central to autoland. r=merge a=merge 2017-09-20 11:49:13 +02:00
Sebastian Hengst 1867bfd2c5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-22 11:51:21 +02:00
Jonathan Kew cfe79f23f5 Bug 1308359 - patch 2 - Move trivial ICU-wrapper nsBidi methods to the header file as inlines, and remove unnecessary nsresult return values from methods that cannot fail. r=xidorn 2017-09-22 10:37:17 +01:00
Jonathan Kew f37ab68a28 Bug 1308359 - patch 1 - Remove the nsBidi_noICU implementation of nsBidi, and rename the sources for the _ICU version to the base nsBidi.{h,cpp} filenames. r=xidorn
--HG--
rename : layout/base/nsBidi_ICU.cpp => layout/base/nsBidi.cpp
2017-09-22 10:37:17 +01:00
Bobby Holley 8d10314a67 Bug 1400435 - Use a more precise check in the nsCSSValue destructor. r=xidorn
MozReview-Commit-ID: KFdgtxyOZ01
2017-09-19 22:53:23 -07:00
Ethan Lin b7c9633e30 Bug 1397375 - Part3. Remove the related webrender user data when destroying a frame. r=jrmuizel
MozReview-Commit-ID: IYjfqWiiPZ

--HG--
extra : rebase_source : 81785d6695b830c41ad6d97b5e632f7a655f9cea
2017-09-14 14:40:31 +08:00
Cameron McCormack 402b6433ed Bug 1368922 - Set mIsDirty atomically. r=hiro
MozReview-Commit-ID: Ei3zCECVRFf

--HG--
extra : rebase_source : 0429db876e33329a250dced6e8bfcd965a5dfbc8
2017-09-20 11:30:08 +08:00
Louis Chang 4440d60ddb Bug 1290782 Part 3 - Add test cases for using an SVG image as border-image. r=cjku,dholbert
MozReview-Commit-ID: 4w3tEkVAMWd

--HG--
rename : layout/reftests/border-image/svg-as-border-image-4.html => layout/reftests/border-image/svg-as-border-image-4a.html
extra : rebase_source : 5f9c9860ac0a8ee2786b43c585ad68186225bb9f
2017-09-20 10:06:26 +08:00
Louis Chang 3fbb65bcdf Bug 1290782 Part 2 - Remove redundant destCtx and IsEmpty check of snappedDestSize since it should always have a value. r=cjku
MozReview-Commit-ID: 25IlXeqURVa

--HG--
extra : rebase_source : 6ba07352dce9d1e89ac895043ea2a2c39ec4a46d
2017-09-20 10:05:49 +08:00
Louis Chang 4ad5aa661d Bug 1290782 Part 1 - When drawing a border-image using an SVG image, we should not take into account any transformation of currentMatrix when computing svg viewport size. r=cjku,dholbert
MozReview-Commit-ID: 8rkwQGKJOvo

--HG--
extra : rebase_source : 868a7e0909bf704610a166948186cf5411721540
2017-09-20 10:05:42 +08:00
Nicholas Nethercote 164b3fed67 Bug 1401427 - Temporarily disable UACacheReporter due to a leak.
MozReview-Commit-ID: G8MBeSqYkqa
2017-09-20 12:23:47 +10:00
Nicholas Nethercote 5036b9133e Bug 1400078 - Measure the UA cache. r=njn.
ServoStyleSetSizes now has two uses, one for the Stylist, and one for the UA
cache, and so the patch removes 'Stylist' from the field names.

Example output from about:memory:

> +----1,359,608 B (00.55%) -- layout
> |    +----756,488 B (00.31%) -- style-sheet-cache [2]
> |    +----393,968 B (00.16%) -- servo-ua-cache
> |    |    +--234,496 B (00.10%) -- element-and-pseudos-maps
> |    |    +---59,648 B (00.02%) -- revalidation-selectors
> |    |    +---58,320 B (00.02%) -- invalidation-map
> |    |    +---30,752 B (00.01%) -- other
> |    |    +---10,752 B (00.00%) -- precomputed-pseudos

MozReview-Commit-ID: 8oxuJO0ojp

--HG--
extra : rebase_source : 7d86216967259b71df7280261d025cc65bf00ba4
2017-09-19 09:25:00 +10:00
Mantaroh Yoshinaga 411c90a211 Bug 1362817 - Use PRTime instead of time_t in nsSimplePageSequenceFrame::Reflow. r=m_kato
The nsSimplePageSequenceFrame::Reflow calls DateTimeFormat::FormatTime().
In 32 bit environment, this conversion will overflow. So this patch will use
DateTimeFormat::FormatPRTime() instead of it.

MozReview-Commit-ID: 3b1GhlrJDKM

--HG--
extra : rebase_source : 432c4d7c6081694251b7cba08895e855d7b1e341
2017-09-19 18:35:21 +09:00
Wes Kocher 082e7c650c Merge m-c to autoland, a=merge
MozReview-Commit-ID: BLgnf5zTCU3
2017-09-19 14:54:09 -07:00
Wes Kocher 3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Miko Mynttinen a0880eb261 Bug 1401262 - Allocate DisplayItemClipChain in nsDisplayOpacity::ShouldFlattenAway() from arena r=mstange
MozReview-Commit-ID: HPrFThNX1v5

--HG--
extra : rebase_source : 933b4e0f427b2b17caa76a2217a024ba9907a69a
2017-09-18 22:14:24 +02:00
Markus Stange c00d5ee6fa Bug 1401037 - Propagate nsDisplayList::mForceTransparentSurface to the parent list when recursing into flattened items. r=miko
MozReview-Commit-ID: 9iS9fwtUAaJ

--HG--
extra : rebase_source : 233e2b0b81597d63297d3a9c6be660a12b73c455
2017-09-19 15:52:20 -04:00
Jonathan Watt 341ea5e4f1 Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00