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

13315 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu 4c1c2d2005 Bug 1433958 - Change code that sets nsIURI.ref to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 4caicZFBkcQ

--HG--
extra : rebase_source : fe32f156392a9e0ce69fa6030278eaca43a69482
2018-02-26 20:43:46 +01: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
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
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
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
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
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
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
Ciure Andrei befcb6cb4f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-23 02:06:26 +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
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
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
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
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
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
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
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
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
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
Emilio Cobos Álvarez ba08cbdbdd Bug 1438811: Remove the remaining bits of the traversal telemetry stuff. r=manishearth
MozReview-Commit-ID: 2dA5usbGQRt

--HG--
extra : rebase_source : 47cc26f581e6b774de3ac27ef47d749ad1944dfe
2018-02-16 13:14:13 +01:00
Emilio Cobos Álvarez c37c40b47d Bug 1436059: Cleanup a bit after ourselves. r=xidorn
on a CLOSED TREE

MozReview-Commit-ID: DWWmdtigIkk
2018-02-16 16:56:26 +01:00
Emilio Cobos Álvarez 37e9a4f2a2 Bug 1436059: Fix inspector. r=xidorn
This removes a hack, but adds slightly more complex code in inspector-only code.

I'm not excited about this code, but this fixes ServoStyleRuleMap for XBL.

MozReview-Commit-ID: 6h0dCsiIWKU
2018-02-16 16:54:55 +01:00
Emilio Cobos Álvarez d39c5388fc Bug 1436059: Make XBL / Shadow DOM use AuthorStyles. r=xidorn
It's just a struct aggregating stylesheets + CascadeData, with a quirks_mode
parameter because XBL sucks so bad.

MozReview-Commit-ID: 7q99tSNXo0K
2018-02-16 16:54:34 +01:00
Timothy Guan-tin Chien a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Emilio Cobos Álvarez deee29c647 Bug 1405087: Also nix -moz-user-input: enabled. r=bz
It only has one use, has the same effect that "auto", and should have no effect
in <a> elements anyway (plus it's not overridden or used in that file at all
anyway), so we can remove its only use instead.

I can also change that use to "auto" if you want, but bug 760876 doesn't mention
-moz-user-input at all, so I think this is quite useless...

See the intent to unship for research on out of the tree usage:

  https://groups.google.com/d/msg/mozilla.dev.platform/E6tfP__wkwg/YVW6nPX9CQAJ

MozReview-Commit-ID: 8EzQlzu9drE
2018-02-15 21:49:04 +01:00
Emilio Cobos Álvarez 82778d6954 Bug 1405087: Nix -moz-user-input: disabled. r=bz
It does nothing, and there's only one use of it anyway.

See the intent to unship for research on out of the tree usage:

  https://groups.google.com/d/msg/mozilla.dev.platform/E6tfP__wkwg/YVW6nPX9CQAJ

MozReview-Commit-ID: 5XnsewYdvgQ
2018-02-15 21:48:59 +01:00
Jonathan Kew 252d458bf8 Bug 1436997 - When variation-font support is enabled, accept new CSS Fonts 4 format-hint strings for variation fonts. r=jwatt 2018-02-15 10:56:42 +00:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Dorel Luca 75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Xidorn Quan 1eaf423aa5 Bug 1437774 - Mark stylist dirty when author style disabled state changes. r=emilio
This is a workaround for regression from bug 1436798.

MozReview-Commit-ID: BJzk5cjjPd5

--HG--
extra : rebase_source : 456c88c7b26e077e4503bc1aa8a751f73fae4cef
2018-02-13 18:33:00 +11:00
Daniel Holbert 7f66b8109f Bug 1438020: Add some includes for "Inlines" headers to address clang build warnings in non-unified build. r=mats
MozReview-Commit-ID: HRHnjznPjx1

--HG--
extra : rebase_source : f0500a1c68a823a4583093a25f1a9fcf97aa1515
2018-02-13 14:38:20 -08:00
Jonathan Kew 8cc473a34a Bug 1435984 - patch 4 - Expose variationSettings on the FontFace webidl interface. r=bz,jwatt
--HG--
extra : source : 987305fa2a5faba6da86f8f0d494a6ce3dc77b33
2018-02-14 22:02:05 +11:00
Jonathan Kew 5bb5607380 Bug 1435984 - patch 3 - Store variation settings from the @font-face rule in the gfxFontEntry for user fonts. r=jwatt
--HG--
extra : source : 66947639ccc3236ff3e81b535e6a4e5173a8e05f
2018-02-14 22:02:05 +11:00
Jonathan Kew cdb40ca922 Bug 1435984 - patch 2 - Support the font-variation-settings descriptor when parsing @font-face in the old Gecko style system. r=jwatt
--HG--
extra : source : 26f5d57cfa903ffd52e03e329d8a76e45cb6dfb9
2018-02-14 22:02:05 +11:00
Jonathan Kew 7e99aa819c Bug 1435984 - patch 1 - Cache the font-variations.enabled pref in StylePrefs for ready access in descriptor parsing. r=jwatt
--HG--
extra : source : 76e5042012c9c2f9c94953c62ea6f758f128e6f3
2018-02-14 22:02:05 +11:00
Xidorn Quan a1e51ad3ec Bug 1435984 - patch 0 - Add binding function for setting float value to nsCSSValue. r=emilio
--HG--
extra : source : fbdfaaa58005e1dbd45d34de5a6429a7557a20f2
2018-02-14 22:02:05 +11:00
Daniel Holbert 10b8b4cdb3 Bug 1437723: Preemptively fix unified bustage in layout/style by adding missing includes/namespaces/forward-decls. r=emilio
MozReview-Commit-ID: 8ljZkAqgT4N

--HG--
extra : rebase_source : bea400511aa6c6c10e76c8418d6dfc8df2b31d17
2018-02-12 16:53:44 -08:00