Commit Graph

62763 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
432d45b460 Bug 1439027: Simplify PresShell::Initialize. r=bz
Most of the callers pass the already-existing pres-context visible area. The few
that don't can set it themselves.

MozReview-Commit-ID: KRi4ShrgOrE
2018-02-21 12:42:17 +01:00
Emilio Cobos Álvarez
e6a341ed3b Bug 1439793: Remove unneeded nullcheck, and ifdef a debug-only loop. r=xidorn
We assert the same in nsCSSFrameConstructor::RecreateFramesForContent, which
asserts aContent.

MozReview-Commit-ID: 5r0ZjfTJ4zZ

--HG--
extra : rebase_source : dcf3ecaa2f7bd6fc8887f84d1f85018ebcae5cd3
2018-02-21 09:52:02 +01:00
Raymond Forbes
99faa7ac37 Bug 1439793: Crashtest. r=xidorn
MozReview-Commit-ID: 9szcIWSRxDX

--HG--
extra : rebase_source : 43565f5b15da5c0c30f40f11a804bea15bbe77ea
2018-02-21 09:42:54 +01:00
Emilio Cobos Álvarez
e17b06c739 Bug 1439793: Handle correctly a reconstruct generated from additional style contexts. r=xidorn
Much like we do in nsIFrame::UpdateStyleOfOwnedChildFrame.

There's also the fact that ::-moz-math-anonymous shouldn't probably be
content-exposed... Oh well.

MozReview-Commit-ID: 8mthwW7Nivy

--HG--
extra : rebase_source : b772ca036ac3817d8e5f54b029892e9ece957d40
2018-02-21 09:32:53 +01:00
Emilio Cobos Álvarez
8b48a6c367 Bug 1439793: Simplify nsStyleChangeList::PopChangesForContent. r=xidorn
MozReview-Commit-ID: Hnd06USHP3N

--HG--
extra : rebase_source : 4cec54742007ccaa2fc4efb3ae0461321acc5899
2018-02-21 09:32:28 +01:00
Gurzau Raul
082f8e6d89 Merge inbound to mozilla-central. a=merge 2018-02-21 12:01:33 +02:00
Geoff Brown
da3fbf11ae Bug 1439115 - (follow-up) Annotate more css-disabled/select reftests so they pass reliably on Android; r=me,a=test-only 2018-02-20 16:24:09 -07:00
Hiroyuki Ikezoe
1b0cba9367 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr

--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
shindli
f1c5255ad4 Merge inbound to mozilla-central. a=merge 2018-02-20 21:09:49 +02:00
Joel Maher
a8569999bf Bug 1438944 - 3 tests from layout/reftests/w3c-css/submitted/shapes1 fail to pass on new windows 10 hardware. r=dholbert 2018-02-20 10:45:21 -05:00
Ciure Andrei
50b2c43e29 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-20 12:20:31 +02:00
Jonathan Watt
176a890dbf Bug 1432409 part 2 - Make RemotePrintJobChild::OnStatusChange no-op if initialization failed. r=dholbert
After the part 1 fix, we can still (asynchronously) call some generic cleanup
code that tries to let the parent process's RemotePrintJobParent know that
printing failed under the stack:

  RemotePrintJobChild::OnStatusChange
  nsPrintData::DoOnStatusChange
  nsPrintJob::FirePrintingErrorEvent
  nsPrintJob::CleanupOnFailure

We crash on trying to use the RemotePrintJobChild to message the parent process
since the delete message from the parent has been processed.  This change makes
RemotePrintJobChild::OnStatusChange check that it's initialized before trying
to send any messages.

Pushing to CLOSED TREE since this passed a full Try build and is a topcrash
we want to land for beta ASAP.

MozReview-Commit-ID: FfizRMj2s2m
2018-02-19 23:25:30 +00:00
Miko Mynttinen
1eaf901efb Bug 1439375 - Always create a new nsDisplayCompositorHitTestInfo for stacking contexts r=mattwoodrow
MozReview-Commit-ID: 4yq6naptE0H

--HG--
extra : rebase_source : 214c2094df941e877195f01f13e6f9b72b344dc5
2018-02-19 19:17:01 +01:00
Andreea Pavel
4f8782dc6e Backed out changeset 3ab4e934cd7f (bug 1439395) for crashtest failures at tests/layout/style/crashtests/1400936-2.html on a CLOSED TREE 2018-02-20 17:43:31 +02:00
Kartikaya Gupta
c7fdd8480d Bug 1438892 - Update reftest results for changes from WR PR 2423. r=jrmuizel
MozReview-Commit-ID: LAqklCRsg8Y

--HG--
extra : rebase_source : f3fdba25f6735d2f045a98828223edeafd609a81
2018-02-20 09:06:41 -05:00
Kartikaya Gupta
db2d71434a Bug 1438892 - Update annotations from WR PR 2426. r=jrmuizel
MozReview-Commit-ID: 5o3YCJKxlje

--HG--
extra : rebase_source : 33112ce4cc0ab11abb7413058f13ae320cba98ad
2018-02-20 09:06:32 -05:00
Kartikaya Gupta
22df9f1405 Bug 1438892 - Update reftest fuzziness for WR PR 2405. r=jrmuizel
MozReview-Commit-ID: HcOke96a4Z2

--HG--
extra : rebase_source : fbd375d3607764500465fbfd694bf525037130e6
2018-02-20 09:05:54 -05:00
Emilio Cobos Álvarez
eb044841b5 Bug 1439395: Clear Servo data only when the DOM is in a consistent state. r=bholley
We used to do it this way effectively until I fixed it in bug 1400936.

Per the list of fuzz bugs that bug has in the "Depends on" field, some of those
without a super-clear fix, and others that aren't listed in there, and all the
complexity we had to deal with while receiving restyle requests mid-unbind, etc,
I think this is the right call.

This clears data on RestyleManager::ContentRemoved for non-anonymous nodes, and
on UnbindFromTree for subtrees rooted at anonymous nodes.

This will hopefully yield enforceable invariants.

MozReview-Commit-ID: IMwX5Uh1apv
2018-02-20 15:19:03 +01:00
Emilio Cobos Álvarez
1300727b08 Bug 1438911: Avoid doing changeset changes off a runnable for stylo. r=bz
MozReview-Commit-ID: Kgu9OxjtY5v

--HG--
extra : rebase_source : ae14355731b10c026f526b564d7eee23a57d2da5
2018-02-16 18:55:27 +01:00
Emilio Cobos Álvarez
a5c61458d0 Bug 1439016: Crashtest. r=bholley
The crashtest will crash whenever the shell is destroyed, which is annoying,
but...

MozReview-Commit-ID: 1JkLy5K98bS

--HG--
extra : rebase_source : 063ca56df3db72940dbb3537a36da561528a5949
2018-02-19 18:08:06 +01:00
Xidorn Quan
b378bc1325 Bug 1417138 part 2 - Enable stylo-chrome by default. r=bholley
MozReview-Commit-ID: D19QBD4nqWf

--HG--
extra : rebase_source : 614ee44f14447ad6719b5c1c55073a736da88533
extra : source : 8e0394db471fdc75cdee12013944ed9a2873cd62
2018-02-13 16:30:43 +11:00
Geoff Brown
e0ef6649b8 Bug 1439115 - Annotate css-disabled/select reftests so they pass reliably on Android; r=me,a=test-only 2018-02-20 14:02:41 -07:00
Jonathan Kew
9f0ef942b4 Bug 1439629 - Add testcase to check that element with visibility:hidden is skipped when reporting used font faces. r=dholbert 2018-02-20 20:46:51 +00:00
Jonathan Kew
cb40096278 Bug 1439629 - When collecting used-fontFace information, skip textframes where IsVisible() is currently false. r=dholbert 2018-02-20 20:46:51 +00:00
Jonathan Kew
8343c79b56 Bug 1439524 - Add testcase for getUsedFontFaces that exercises multiple DOM nodes and whitespace collapsing. r=dholbert 2018-02-20 20:46:51 +00:00
Jonathan Kew
84f4d3dc1d Bug 1439524 - Clamp glyph-run offsets appropriately for the current frame's content to avoid potential failure to create the Range. r=dholbert 2018-02-20 20:46:51 +00:00
Emilio Cobos Álvarez
7ceaea0673 Bug 1438297: Unship the legacy syntax for -moz-transform. r=xidorn
Intent to unship link:

  https://groups.google.com/d/msg/mozilla.dev.platform/T3PGm97MPNU/59XUavMlCgAJ

MozReview-Commit-ID: 6ybGBasPAWU
2018-02-19 13:06:20 +01:00
Emilio Cobos Álvarez
cc5a1b6c85 Bug 1439224: Make shadow root style changes not restyle the whole document. r=xidorn
Also, make them not rebuild the CascadeData synchronously, via the
FlushSkinSheets call, since that's broken. That fixes bug 1413119.

This is a little step in getting rid of XBL usage for Shadow DOM.

MozReview-Commit-ID: HJ7FeUZlRTW

--HG--
extra : rebase_source : 0fcd0ed461856c1e87e45ef63c9e1d2e81281469
2018-02-18 14:35:57 +01:00
Xidorn Quan
a23cb7d912 Bug 1438497 - Add bindings into memory report. r=bholley,njn
MozReview-Commit-ID: FrFEUlrqcs8

--HG--
extra : rebase_source : 4ead07cb6854ef816a1d6b31aa9028220a14ec89
2018-02-16 23:02:28 +11:00
Hiroyuki Ikezoe
9721d084da Bug 1439279 - Drop needless requestAnimationFrame in reftest for web-animation. r=birtles
Refrests without specifing reftest-no-flush flush all pending styles so that
we don't need to wait for a requestAnimationFrame to apply the final style
changes.

MozReview-Commit-ID: lAFsFG8CrE

--HG--
extra : rebase_source : 46ba219da0ccbb1bee0d8243b7e2ee5f8d81a13f
2018-02-19 10:57:53 +09:00
Hiroyuki Ikezoe
5342ead8c3 Bug 1439279 - Append animating element after animation gets ready. r=birtles
This test is supposed to append *animating* element to the document.

MozReview-Commit-ID: 39kvw6IYRF9

--HG--
extra : rebase_source : 510e99190fb60067b0bf404c37d7250e2d994ff0
2018-02-19 10:57:53 +09:00
Hiroyuki Ikezoe
b08072ea30 Bug 1439279 - Drop needless requestAnimationFrame that waits for applying new transition. r=birtles
getComputedStyle() ensures triggering new transitions, so we don't need to wait
for a requestAnimationFrame callback.

MozReview-Commit-ID: Bes1vQeHohI

--HG--
extra : rebase_source : fdb8face312a471be5f93229a9fbbfd4fc59418f
2018-02-19 10:57:53 +09:00
Cosmin Sabou
6e3859bfa5 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-19 00:00:43 +02:00
Cosmin Sabou
0548f006a3 Merge inbound to mozilla-central. a=merge 2018-02-18 23:54:56 +02:00
Margareta Eliza Balazs
5536f71c38 Merge inbound to mozilla-central. a=merge 2018-02-18 18:41:41 +02:00
Robert Longson
728a3f36fc Bug 1435477 - Make the SVG dom code use the WebIDL constants from the bindings r=jwatt 2018-02-18 15:53:13 +00:00
Miko Mynttinen
b33fd91dae Bug 1438527 - Use non-empty bounds for nsDisplayCompositorHitTestInfo to ensure proper layer assignment r=mattwoodrow
MozReview-Commit-ID: 5CCN8t7ytP5

--HG--
extra : rebase_source : 64bebe22a166a3b26d6b42d9ef9f4a8178afd910
2018-02-16 02:01:18 +01:00
shindli
6afe060566 Merge inbound to mozilla-central. a=merge 2018-02-18 11:35:16 +02:00
Daniel Holbert
dca25b1820 Bug 1433339: Apply single-item fallback behavior for 'space-between' more directly, in flexbox code. r=mats
MozReview-Commit-ID: BRx4xGaJS6y

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-content-horiz-001-ref.xhtml => layout/reftests/flexbox/flexbox-align-content-horizrev-001-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-content-horiz-001a.xhtml => layout/reftests/flexbox/flexbox-align-content-horizrev-001.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-content-vert-001-ref.xhtml => layout/reftests/flexbox/flexbox-align-content-vertrev-001-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-content-vert-001a.xhtml => layout/reftests/flexbox/flexbox-align-content-vertrev-001.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-horiz-001-ref.xhtml => layout/reftests/flexbox/flexbox-justify-content-horizrev-001-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-horiz-001a.xhtml => layout/reftests/flexbox/flexbox-justify-content-horizrev-001.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-vert-001-ref.xhtml => layout/reftests/flexbox/flexbox-justify-content-vertrev-001-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-vert-001a.xhtml => layout/reftests/flexbox/flexbox-justify-content-vertrev-001.xhtml
extra : rebase_source : 61fbefa6758677dd90872b02deb636a3d6c6887b
2018-02-17 16:59:01 -08:00
Miko Mynttinen
7a19c4858c Bug 1438165 - Ensure that all display items have a unique type r=mattwoodrow
MozReview-Commit-ID: HIlSQFcvG9A

--HG--
extra : rebase_source : aba9cdf8e578ed3fd98a77aef8a183dac08baea1
extra : amend_source : 329ff3b9124c05b35ff1e0807afe9ac455bbebce
2018-02-15 15:26:56 +01:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Chris Peterson
fe5cd3d5d9 Bug 1436263 - Part 3: Remove virtual from final virtual function declarations. r=froydnj
MozReview-Commit-ID: 8pjYjEvQF42

--HG--
extra : rebase_source : 5eb0bea2ef5f06a811b4f3daf57ce8720f12dd07
2018-02-08 21:22:43 -08:00
Chris Peterson
0129d900f3 Bug 1436263 - Part 2: Replace override final virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: 70gt5SUu4Dv

--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson
d09123f248 Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Dorel Luca
07d2af4219 Merge mozilla-inbound to mozilla-central. a=merge 2018-02-17 11:55:38 +02:00
Bas Schouten
628d3b7134 Bug 1437492 - Part 2: Based on profile data, use the simple-matrix optimized matrix class in some places. r=mattwoodrow
MozReview-Commit-ID: EBRrGXc2wEj
2018-02-17 00:43:38 +01:00
Gurzau Raul
3daf5ac131 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-17 00:13:16 +02:00
Jeff Muizelaar
167ea61674 Bug 1438631. Use a similar drawtarget when painting masks. r=mstange
Avoiding an offscreen drawtarget will avoid using Direct2D with webrender,
let us record the masking operation, and also give us OMTP.
2018-02-16 15:52:45 -05:00
Emilio Cobos Álvarez
e1b381f3d6 Bug 1439009: Declare a function in ServoBindingList to keep --disable-stylo happy. r=me
MozReview-Commit-ID: GbJXyA42CSs
2018-02-17 00:02:08 +01:00
Geoff Brown
d69f427e52 Bug 1427236 - Disable mochitest layout/base/tests/test_bug607529.html on Android/opt for frequent intermittent failures; r=me,a=test-only 2018-02-16 12:09:16 -07:00