Commit Graph

62921 Commits

Author SHA1 Message Date
Sebastian Hengst
fd38b477e1 Backed out changeset d8d5e1376664 (bug 1426797) because it doesn't fail anymore on Windows 2018-02-26 01:38:10 +02:00
Sebastian Hengst
1fb0bc492f Backed out changeset ba4ac537f9a4 (bug 1428087) because the assertion didn't reproduce anymore 2018-02-26 01:35:54 +02:00
Adrian Wielgosik
de1e0827c0 Bug 1440441 - Remove nsIDOMFormData. r=kmag,qdot
MozReview-Commit-ID: 9Y8YQBqbSnM

--HG--
extra : rebase_source : 205a3341771d99cb252516f0ffffd107e1c82e5d
2018-02-22 20:42:12 +01:00
Ting-Yu Lin
4415223066 Bug 1432017 - Remove AccessibleCaretEventHub::PostScrollState. r=mats
In the era of B2G, we wanted to hide the carets during scrolling, and
PostScrollState was designed to avoid carets flicking during momentum
scrolling.

These days, we no longer hide carets during scrolling, so PostScrollState
can be removed to make the code simpler and easier to maintain.

MozReview-Commit-ID: Bf6ZgYVlt1q

--HG--
extra : rebase_source : 272bf91b8acaae6d81a3291b6ad85703ff2696dc
2018-02-23 22:05:49 +08:00
Andreea Pavel
1aac7df383 Backed out 3 changesets (bug 1434376)for failing browser chrome at browser/base/content/test/performance/browser_urlbar_search_reflows.js on a CLOSED TREE
Backed out changeset b636251b75ab (bug 1434376)
Backed out changeset fccbba9cb959 (bug 1434376)
Backed out changeset b5128504011c (bug 1434376)
2018-02-25 12:44:28 +02:00
Zhang Junzhi
3492fb331e Bug 1438794 - Makes single-line text controls in vertical-writing mode vertically scrollable if they overflow vertically; and makes them horizontally unscrollable no matter whether they overflow horizontally. r=kats
As for now, the scrollable direction with a mouse wheel for a single-line text
control is hard-coded; that is, only horizontal wheel scrolls are able to take
effect while vertical ones aren't. However, this isn't the desired case for
vertical writing mode, where the opposite case definitely suits better.

This commit refines the hard-coded scrollable direction for a single-line text
control to be writing-mode-adaptive.

MozReview-Commit-ID: 4Zkoe2ExPCZ

--HG--
extra : rebase_source : 113b2ea80b6bbbcd2d8379b438de97eedd616551
2018-02-23 02:40:44 +08:00
Xidorn Quan
d6a3786a64 Bug 1440221 - Track stale computed values and style structs held by undisplayed maps in memory report. r=emilio,njn
MozReview-Commit-ID: 8eXowQvUjyi

--HG--
extra : rebase_source : cb5ba6598e90d9600983aad7f1fff4ff361e8af7
2018-02-22 23:19:50 +11:00
Mike Conley
a7df06446a Bug 1434376 - Introduce ChromeOnly window.promiseDocumentFlushed to detect when refresh driver ticks have completed. r=bz
This is particularly useful for knowing when it's safe to query for style and
layout information for a window without causing a synchronous style or layout
flush.

Note that promiseDocumentFlushed was chosen over promiseDidRefresh or promiseRefreshed
to avoid potential confusion with the actual network-level refresh of browsers or
documents.

MozReview-Commit-ID: Am3G9yvSgdN

--HG--
extra : rebase_source : 20bdd2d6f624767d919d95a6601fc1c890aadf10
2018-02-11 20:14:49 -05:00
Emilio Cobos Álvarez
3eb90874c6 Bug 1432490: followup: Fix mac-only bustage on a CLOSED TREE. r=me
MozReview-Commit-ID: TNquyPQhkL
2018-02-25 02:44:18 +01:00
Emilio Cobos Álvarez
7dffe29d8f Bug 1432490: Make nsComputedDOMStyle::GetStyleContext / GetStyleContextNoFlush not take a presShell. r=bz
Everyone calls them with the shell of the current composed document, and this
allows the multi-presShell stuff to just be in UpdateCurrentStyleSources /
DoGetStyleContextNoFlush.

The only reason we need to use OwnerDoc()->GetShell() instead of the composed
doc in GetStyleContext / GetStyleContextNoFlush is Element::GetBindingURL, which
does expect to get the binding URL for stuff outside of the composed doc (and
changing that gave me a useless browser).

That's technically a behavior change on the cases that used to pass nullptr, but
I think all callers are fine with that. I could also just add a special function
for that particular case, it may be worth it.

MozReview-Commit-ID: 2XlnkgdgDCK
2018-02-25 02:23:59 +01:00
Mike Conley
24b3c1ade3 Bug 1434376 - Introduce ChromeOnly window.promiseDocumentFlushed to detect when refresh driver ticks have completed. r=bz
This is particularly useful for knowing when it's safe to query for style and
layout information for a window without causing a synchronous style or layout
flush.

Note that promiseDocumentFlushed was chosen over promiseDidRefresh or promiseRefreshed
to avoid potential confusion with the actual network-level refresh of browsers or
documents.

MozReview-Commit-ID: Am3G9yvSgdN

--HG--
extra : rebase_source : 20bdd2d6f624767d919d95a6601fc1c890aadf10
2018-02-11 20:14:49 -05:00
Emilio Cobos Álvarez
19c880a480 Bug 1438467: Don't reconstruct the parent when tearing down display: contents nodes with pseudo-elements. r=mats,bz
We just need to use the existing StyleChildrenIterator which iterates over them.

We need to be a bit careful though, since ::before and ::after are owned by
their own frame, and thus could be unbound from the tree or even dead after
removing the frame.

Hopefully the only access to the node being removed is unnecessary (anon roots
don't have siblings anyway).

There's also the weird thing of the thing we're iterating changing under the
hood. It works fine for this case, but maybe it would be better to handle them
explicitly like:

  if (Element* before = nsLayoutUtils::GetBeforePseudo(aChild)) {
    bool didReconstruct = ContentRemoved(aChild, ...);
    if (didReconstruct) {
      return true;
    }
    MOZ_ASSERT(!nsLayoutUtils::GetBeforePseudo(aChild));
  }

  // Same for ::after.

  StyleChildrenIterator iter(aChild);
  for (..) {
    // Do the rest of the kids, which can't get unbound.
  }

That'd repeat a bunch of code, so not a fan neither... I pointed this out more
explicitly in a comment instead.

MozReview-Commit-ID: HBsjLH01Db3
2018-02-25 02:06:05 +01:00
arthur.iakab
fc6411f333 Merge mozilla-central to autoland 2018-02-24 23:56:46 +02:00
Botond Ballo
9bafb4c0f9 Bug 1440112 - Support CompositorHitTestInfo::eRequiresTargetConfirmation with EventRegions-based hit testing. r=kats
This is only hooked up for the codepath where the event regions are built
from nsDisplayCompositorHitTestInfo display items, not for when they're
build from nsDisplayLayerEventRegions display items.

--HG--
extra : rebase_source : 4f6fedcd9522362e2e62678428987180399bb796
2018-02-23 17:37:55 -05:00
Sebastian Hengst
7be9fed7d0 merge mozilla-inbound to mozilla-central. a=merge 2018-02-24 02:58:35 +02:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Cosmin Sabou
43c66219ab Backed out 3 changesets (bug 1434376) for build bustages on SystemTimeConverter.h(177)
Backed out changeset 2ed5aefc5bc2 (bug 1434376)
Backed out changeset 1b474fb6d798 (bug 1434376)
Backed out changeset 4e6a21e50be0 (bug 1434376)
2018-02-23 23:17:42 +02:00
Emilio Cobos Álvarez
098eb77437 Bug 1439036: Stop passing bogus next sibling values into restyling / frame construction. r=bz
I think this is a regression from https://hg.mozilla.org/mozilla-central/rev/4a8294c6b8e33ba08ef767bede8deeb28234b5b8.

Before that, the only caller with NAC used to pass -1 as an index, which means
we didn't get a node back.

MozReview-Commit-ID: 7HYPaa2V3OB

--HG--
extra : rebase_source : 3f836c0de95159a4a5ece85dee1a8a26dfb2ba1f
2018-02-17 01:25:05 +01:00
Mike Conley
767455c35f Bug 1434376 - Introduce ChromeOnly window.promiseDocumentFlushed to detect when refresh driver ticks have completed. r=bz
This is particularly useful for knowing when it's safe to query for style and
layout information for a window without causing a synchronous style or layout
flush.

Note that promiseDocumentFlushed was chosen over promiseDidRefresh or promiseRefreshed
to avoid potential confusion with the actual network-level refresh of browsers or
documents.

MozReview-Commit-ID: Am3G9yvSgdN

--HG--
extra : rebase_source : 5e502d5d077dd764ca1a43e7c3f06855858fe735
2018-02-11 20:14:49 -05:00
Emilio Cobos Álvarez
b26f7c3694 Bug 1440258: Flag doc level anonymous content instead of guessing. r=bholley
Poking at the frame tree has problems: If we poke in negative (using
eSkipNativeAnonymousContent), as we were doing, we mess up the case where we're
actually _not_ doc-level, and _not_ ::before or ::after. This can't happen for
content documents, but can happen for chrome (since nsDocElementBoxFrame
implements nsIAnonymousContentCreator).

If we poke in positive, as we used to, you get that right, but mess up the
root scrollbar case.

Instead, use a node property to mark doc level anon content. This is a case rare
enough that it seems worth to not steal a node bit.

To recap the failure:

 * The initial value of -moz-control-character-visiblity is different on beta
   and nightly.

 * XUL has a global rule setting -moz-control-character-visibility on the root,
   to a value so that it's the initial one on nightly, but the non-initial one
   on beta.

 * Changes to this property cause a reframe.

 * Reframes of a nsIAnonymousContentCreator anon content reframe the container.

 * We were failing to inherit correctly for the nsIAnonymousContentCreator
   content for the root XUL element on the initial styling, inheriting from the
   default computed values instead, since we failed to reach the root element's
   primary frame from GetFlattenedTreeParentForDocumentElementNAC ->
   AppendDocumentLevelNativeAnonymousContentTo, since the primary frame is set
   _after_ processing children.

   This seems somewhat risky to change, and inconsistent with any other stuff
   the frame constructor does, see bug 973390.

 * Given that, the next restyle of the root element, in this case caused due to
   the customizable UI, we _found_ the actual correct parent, recomputed the
   style, saw that -moz-control-character-visiblity had changed, and reframed.
   But we were reframing the whole window, not just the NAC, because of the
   fourth bullet point. Reframing the whole window caused us to lose the popup
   state (that's bug 1440506).

   Worse than that is the fact that given we reframe and reconstruct the
   anonymous countent again, we go back to the initial bogus state, just
   awaiting for the next restyle to reframe the whole window.

I wish there was a bullet-proof way to test it that isn't just counting reframes
and relying on which properties reframe or not, but due to the nature of
nsIAnonymousContentCreator's NAC, it's not possible in any easy way I can think
of.

MozReview-Commit-ID: IPYB5trsN8R
2018-02-23 20:31:52 +01:00
Coroiu Cristina
30b07a253a Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-02-23 20:05:10 +02:00
Coroiu Cristina
88e89261ea Merge inbound to mozilla-central a=merge 2018-02-23 19:44:19 +02:00
shindli
b4de1c12ce Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-23 11:46:58 +02:00
Jonathan Kew
2c5f2dc22f Bug 1439937 - For font-matching reftests that test localized names, force the font-name loader to run eagerly so that we aren't dependent on how long the browser has been running. r=jrmuizel 2018-02-23 09:43:32 +00:00
shindli
f042b243a8 Merge inbound to mozilla-central. a=merge 2018-02-23 11:40:37 +02:00
Hiroyuki Ikezoe
ad663efa0b Bug 1439428 - Call UpdateCascadeResults() directly instead of RestyleRestyle() at the end of Gecko_UpdateAnimations(). r=birtles
Calling RequestRestyle() for update cascade results is weird since in general
RequestRestyle() is a result of updating cascade results (e.g. when an
!important style is changed).  In the case where we already know that we need
to update cascade results we can do it right after all the other processes that
may need to update cascade results has done so that we don't need to worry about
the cases additional cascade results update happens.

MozReview-Commit-ID: 6lh0NgTPF9j

--HG--
extra : rebase_source : 4dbec85f55a14776907b677f2876421abc141384
2018-02-23 09:05:26 +09:00
Hiroyuki Ikezoe
c9ba9539cc Bug 1439803 - Add reftest-no-flush flag to stacking-context-transform-none-animation-before-appending-element.html. r=birtles
If reftest-no-flush is not specified, reftest harness flushes layout in a
callback of setTimeout() that happens after paint process happened in the next
refresh driver's tick.  Thus, the paint process triggered by the layout flush
causes no invalidation changes, so reftest harness ends up waiting for the
animation end until the animation finishes.

MozReview-Commit-ID: GXvmyXh0kfV

--HG--
extra : rebase_source : 091a91122b7337ff05032bd64fa2597e59bed3a4
2018-02-23 07:22:10 +09:00
Kartikaya Gupta
8d8c2a8d92 Bug 1439565 - Update reftest annotations for changes in WR PR 2445. r=jrmuizel
MozReview-Commit-ID: FbrBN2vxZOV

--HG--
extra : rebase_source : 70e36f6bfcbd32545ce9066bbeb5f89ab1bc933e
2018-02-23 09:29:59 -05:00
Ciure Andrei
c08e760449 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-23 00:01:10 +02:00
Ciure Andrei
852a0c8890 Merge inbound to mozilla-central. a=merge 2018-02-22 23:55:25 +02:00
Emilio Cobos Álvarez
5b971b4703 Bug 1439285: Hack around bug 1406134. r=bholley
MozReview-Commit-ID: Cg2HxB99cGD

--HG--
extra : rebase_source : 8e455d4868fbe0c257ab4cdeced0b543001e9759
2018-02-22 20:03:43 +01:00
Emilio Cobos Álvarez
52623f52d9 Bug 1439285: Make the old image request arrive to FinishStyle if we come from ResolveSameStructsAs. r=bholley
MozReview-Commit-ID: H1N9jNql9tl

--HG--
extra : rebase_source : f6f2ab9edb5b558f0fc0d91c0caa9c0d7e0e0973
2018-02-22 19:44:44 +01:00
Emilio Cobos Álvarez
8010ae3a8d Bug 1439155: Be consistent about what does readonly apply to. r=smaug
MozReview-Commit-ID: 4NiDe7pUzGa

--HG--
extra : rebase_source : 97c42c12cbeffaf360c9b91f4ee8bc7b95e4e48e
2018-02-22 08:07:55 +01:00
Matt Woodrow
bb086de151 Bug 1436904 - Part 2: Lookup DisplayItemData during display list building when the frame is already in cache. r=Bas,mstange
* * *
[mq]: fix

MozReview-Commit-ID: Fs64qPl0JQb
* * *
[mq]: fix2

MozReview-Commit-ID: HkDGYMfcNA4
* * *
[mq]: fix

MozReview-Commit-ID: KWy5ZCe0Yel
* * *
[mq]: fix2

MozReview-Commit-ID: GLNjYy87hcz
2018-02-13 13:43:36 +13:00
Matt Woodrow
4183152e2d Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas 2018-02-13 13:43:28 +13:00
Ciure Andrei
befcb6cb4f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-23 02:06:26 +02:00
Ciure Andrei
d068047dfa Merge autoland to mozilla-central. a=merge 2018-02-23 02:02:51 +02:00
Ben Kelly
75bf35692e Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
Ciure Andrei
855b730941 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-23 00:03:06 +02:00
Jonathan Kew
d9de89cb70 Bug 1439954 - Make gfxPlatform::ForceGlobalReflow when called in a content process trigger reflows only within that process; it should not try (and fail, with an assertion) to affect the parent or other content processes. r=jrmuizel 2018-02-22 20:55:36 +00:00
Dorel Luca
28282d4309 Merge mozilla-central to autoland
--HG--
extra : rebase_source : 56ab9b17d93972662082b358c651e7031750a98f
2018-02-22 17:35:26 +02:00
Dorel Luca
bd05e3853c Backed out 3 changesets (bug 1436904) for many crashes see bugs: 1440281, 1440302, 1440303, 1440313. a=backout
Backed out changeset 27f0762d4472 (bug 1436904)
Backed out changeset 27640f52e188 (bug 1436904)
Backed out changeset 2b4d117c27dc (bug 1436904)
2018-02-22 17:28:59 +02:00
Dorel Luca
6ad641c5c4 Merge mozilla-inboud to mozilla-central. a=merge 2018-02-22 11:59:54 +02:00
Xidorn Quan
b56fe8d244 Bug 1440141 part 3 - Avoid invoking GetAsGecko when old style system is disabled. r=emilio
MozReview-Commit-ID: CisRhBr83jc

--HG--
extra : rebase_source : 92eb1810fb57e0677a65aab2f6aa3d1e257b22da
2018-02-22 11:53:07 +11:00
Xidorn Quan
c70b3f5dad Bug 1440141 part 2 - Move some headers around. r=dholbert
MozReview-Commit-ID: LvzU9ara8KV

--HG--
extra : rebase_source : 7731c649141dad3c257f5a154235682d07a65df4
2018-02-22 11:52:31 +11:00
Xidorn Quan
f66a5d4e41 Bug 1440141 part 1 - Move GeckoStyleContext::TakeRef to nsStyleContextInlines.h so that header doesn't depend on the Inlines.h. r=emilio
MozReview-Commit-ID: GdARP4HUAIY

--HG--
extra : rebase_source : 02ff6c6840f0989aa09c94022e42e0144fa4b5bc
2018-02-22 11:51:38 +11:00
Matt Woodrow
0ea04a7a2f Bug 1436904 - Followup to part 2, add hunk that got lost during rebasing. 2018-02-22 13:09:41 +13:00
Geoff Brown
c86636e65f Bug 1433485 - Update test prefs for telemetry; r=mythmon,dexter
Set pref datareporting.healthreport.uploadEnabled=false during mochitests
and set pref toolkit.telemetry.server to a dummy server during reftests
(uploadEnabled was already false for reftest and the telemetry server was
already set for mochitests - now these prefs are consistent).

Some mochitests failed with this change; they are updated to
set datareporting.healthreport.uploadEnabled where required.
2018-02-21 10:57:04 -07:00
Gurzau Raul
67898ab5c2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-21 19:32:45 +02:00
Gurzau Raul
9a8d3f8191 Merge inbound to mozilla-central. a=merge 2018-02-21 18:46:07 +02:00
Joel Maher
1fa5c74e78 Bug 1439637 - skew-1.svg fails to pass on new windows 10 hardware. r=dholbert 2018-02-21 09:38:33 -05:00
Emilio Cobos Álvarez
914f744eb1 No bug - Remove always-false argument from a binding function. r=me
MozReview-Commit-ID: EyRtQ92HjsV
2018-02-21 13:04:24 +01:00
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
Adrian Wielgosik
2d4df58ad8 Bug 1439751 - Remove all members from nsIDOMHTMLInputElement. r=qdot
MozReview-Commit-ID: JVagEzvSONN

--HG--
extra : rebase_source : a7e1cf2e5ccc1925f3a11c7d935438ef6307c70c
2018-02-20 23:10:44 +01:00
Hiroyuki Ikezoe
8f3060510e Bug 1439269 - Call RequestRestyle() if the display property is changed from 'none' in the case the element has script animations. r=birtles
MozReview-Commit-ID: 1anUTbvw3k4

--HG--
extra : rebase_source : 68ca22f8db7112ac3d73c5331ff39b0780cece6e
2018-02-22 09:10:00 +09:00
Hiroyuki Ikezoe
fd8d148e3c Bug 1439269 - Add a new sequential task flag for display propery changes from 'none'. r=emilio
Unlike CSS animations/transitions, script animations keep alive on display:none
elements, so once the display property was changed to others in normal
styling, we need to do styling for the script animations in the second
animation traversal.  Otherwise, the styling for the script animations will
be deferred to the next frame.

MozReview-Commit-ID: 9ikg9N8X73a

--HG--
extra : rebase_source : 8b6a7a75a084eec2b3f276fd498f098bc9ed05bc
2018-02-22 06:09:46 +09: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
Dorel Luca
38d47e8876 Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : bba716d2df74c82b65cafc84d8bcc41c8d9fdbde
2018-02-22 17:39:38 +02:00
James Willcox
a47a1c6678 Bug 1291387 - Make mochitest and reftest work against TestRunnerActivity r=gbrown,jchen
Pass --appname org.mozilla.geckoview.test to 'mach mochitest' or
'mach reftest'. This runs the tests without e10s currently.

MozReview-Commit-ID: 7TIvA3zRCw2
2018-02-22 09:18:37 -06:00
Zhang Junzhi
ede866e8ca Bug 1259168 - Resolves the table cell misplacement problem when row group width exceeds table's computed width in vertical-rl writing mode r=jfkthame
A table's used width may be different with its computed width. In the past, this
situation wasn't taken into account in process of table reflow, this patch
corrects the positioning of children of a table in this situation.

MozReview-Commit-ID: 4siu2ba0pqG

--HG--
extra : rebase_source : b713baa825151e9a789abcc772d081ff065acaed
2018-02-22 14:32:40 +08:00
Dorel Luca
e43ba9dc0b Merge mozilla-central to autoland 2018-02-22 12:08:42 +02:00
Emilio Cobos Álvarez
0ea28a9b9d Bug 1439837: Hide ::-moz-math-anonymous from content. r=xidorn
See bug 1000879 for the last time the MathML pseudo-elements were touched. After
this I want to see if it's easy to remove completely, since it will also remove
the biggest usage of the AdditionalStyleContext API.

MozReview-Commit-ID: 60Z4oAwujsU
2018-02-22 10:51:10 +01:00
Emilio Cobos Álvarez
af439c8f5d Bug 1439837: Fix logic to disable pseudo-elements. r=xidorn
Otherwise the test fails on the old style system.

MozReview-Commit-ID: 9wGgFsFvsPf
2018-02-22 10:46:34 +01:00
Gurzau Raul
13030d55c1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-21 12:06:01 +02:00
Matt Woodrow
dd015cb66e Bug 1436904 - Part 2: Lookup DisplayItemData during display list building when the frame is already in cache. r=Bas,mstange
* * *
[mq]: fix

MozReview-Commit-ID: Fs64qPl0JQb
* * *
[mq]: fix2

MozReview-Commit-ID: HkDGYMfcNA4
2018-02-13 13:43:36 +13:00
Matt Woodrow
e485bba27f Bug 1436904 - Part 1: Add a static constructor function for display items. r=Bas 2018-02-13 13:43:28 +13:00
Matt Woodrow
df0359273e Bug 1435648 - Part 2: Preallocate the mAssignedDisplayItems array to the size it was last time. r=mstange 2018-02-13 13:40:21 +13:00
Matt Woodrow
c415ea1075 Bug 1435648 - Part 1: Share storage between mClippedDisplayItems and mAssignedDisplayItems. r=mstange 2018-02-13 13:39:49 +13: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
Botond Ballo
513f03b0b3 Bug 1425573 - Require target confirmation for events that hit unlayerized scroll frames with non-default overscroll-behavior. r=kats
MozReview-Commit-ID: K88tXahKg8H

--HG--
extra : rebase_source : 5edc6d20150feac46ce1dd70030c677520b41ace
2018-02-16 20:16:41 -05: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