Commit Graph

60287 Commits

Author SHA1 Message Date
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
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
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