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

570317 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote e7c913bc12 Bug 1418156 - Move the PLDHashTable ops into PrefHashEntry. r=glandium
MozReview-Commit-ID: HJfjz2PzW0I

--HG--
extra : rebase_source : 717a3d5121a33ca01da5c0b5298386f4c8345eae
2017-11-17 15:29:29 +11:00
Nicholas Nethercote cb911105fb Bug 1418156 - Merge PrefTypeFlags into PrefHashEntry. r=glandium
PrefTypeFlags is a class with a lot of smarts (i.e. methods). PrefHashEntry is
a class with little smarts. This is silly, because PrefTypeFlags is essentially
an internal implementation detail of PrefHashEntry.

This patch merges PrefTypeFlags into PrefHashEntry, so that PrefHashEntry has
all the smarts. This means lots of `pref->mPrefFlags.Foo()` calls become
`pref->Foo()`.

The patch also changes the representation of the type and flags within
PrefHashEntry to use bitfields, which avoids the need for a Flags type and is
much simpler than the old approach.

MozReview-Commit-ID: 4Yt9OtBzh9e

--HG--
extra : rebase_source : 18fc01217aeaee7057b3d9a54b18cae45be5538f
2017-11-17 15:29:14 +11:00
Nicholas Nethercote a0f04ed4e6 Bug 1418156 - Don't zero newly added PrefHashEntrys. r=glandium
They are guaranteed to be zeroed already by PLDHashTable.

MozReview-Commit-ID: LBeGa9ABYc3

--HG--
extra : rebase_source : f767d0d20cfb1c187496be20fff4cce43c768ccd
2017-11-17 13:30:38 +11:00
Nicholas Nethercote 6b354a0077 Bug 1418156 - Remove forward declaration of PrefHashEntry. r=glandium
MozReview-Commit-ID: 1KRWnjp9VW4

--HG--
extra : rebase_source : 8da909d5e92b71399e1d9981d1e255cdecf9bd75
2017-11-17 13:27:00 +11:00
Ting-Yu Lin 264402226f Bug 1417376 Part 3 - Pass nsPoint parameters by const references instead of values. r=mats
It's good to save some copy constructor calls.

MozReview-Commit-ID: 6TveqwkOvc0

--HG--
extra : rebase_source : 02e678f985c074f6c972cf8478e233aa5e4607db
2017-11-15 17:55:36 +08:00
Ting-Yu Lin 7326c2887e Bug 1417376 Part 2 - Pass nsPoint parameters by const references instead of references. r=mats
MozReview-Commit-ID: 6TveqwkOvc0

--HG--
extra : rebase_source : d4674181a6198279bedbfc2efe4e0b1715c91d51
2017-11-15 18:26:10 +08:00
Ting-Yu Lin 34d8925cd4 Bug 1417376 Part 1 - Change nsPoint parameter to pass by value for DoAutoScroll(). r=mats
This private method DoAutoScroll() modifies aPoint inside of it, and none of
other callers (StartAutoScrollTimer() and nsAutoScrollTimer::Notify()) read
aPoint afterwards, so we make aPoint pass by value rather than pass by
non-const-reference. This is necessary for later parts.

MozReview-Commit-ID: 9PtxFXIka7X

--HG--
extra : rebase_source : 3bd47f071b3cecdc439ebc3b56c6a4f7ef56eff8
2017-11-16 10:32:22 +08:00
Cameron McCormack 3574fc3aac servo: Merge #19292 - style: Add comment about -moz-control-character-visibility initial value (from heycam:moz-cc-comment); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: cea3fd62297e5e61fb6676ff53b2988d378d3c86

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : dbc24b2887fb0c580ab47b032d26aabab6b3b5d0
2017-11-19 20:18:57 -06:00
Markus Stange a0e9560488 Bug 1370040 - Use the public API -[NSVisualEffectView setMaskImage:] instead of the private API -[NSWindow _cornerMask]. r=spohl
The idea is the following:
Behind-window vibrancy is mostly rendered by the window server. For a given
vibrant region of a window, the window server renders a vibrancy "backdrop",
which is a blurred version of everything that's behind that region, modified
with a color tint and blended in some way. Then it puts our actual window
contents on top of that background.
The backdrop's shape is usually a rectangle. If we don't want it to be a
rectangle, we need to tell the window server about the shape that we want it to
be. We can't just "draw" a different shape in our own rendering, because our
own rendering is merely placed on top of the backdrop - but here we want to
modify the shape of the backdrop itself.

NSVisualEffectView lets us set a mask image on the view. If this view is the
content view of a window, then the view will automatically communicate the mask
image to the window server.

Traditionally, our popup windows have had a ChildView as their content view. If
we now want an NSVisualEffectView to be the content view of the window, then we
need to nest the ChildView inside that NSVisualEffectView.
But this NSVisualEffectView is only needed when the window is vibrant and the
vibrancy backdrop needs to have a certain shape. This is the case for our menus
which need to have rounded corners. If the window transitions to being
non-vibrant, or not needing a special shape, then we can go back to the way our
window's NSView hierarchy has worked traditionally. So we need to reparent
NSViews during those transitions.

MozReview-Commit-ID: Bo2VzjhhR0A

--HG--
extra : rebase_source : 9eb463cc68c16c3b9281b57455330969c5e2642c
2017-11-19 18:38:35 -05:00
JW Wang b3feb3794f Bug 1415090. P5 - remove MediaCacheStream::NotifyChannelRecreated(). r=bechen,gerald
NotifyDataEnded() runs off the main thread which might set mChannelEnded
wrongly after NotifyChannelRecreated reset it on the main thread.

We should reset the flags in NotifyDataStarted() which indicate a new load has begun.

MozReview-Commit-ID: Gi6PFXwMJqc

--HG--
extra : rebase_source : 85bb2c25a55cce4b3c3f023bf4c02fe5d1de7552
extra : source : 2f8c5518bf615f9190f87032568fc53037bc6fc1
2017-11-16 14:50:49 +08:00
JW Wang a2fd07c6c9 Bug 1415090. P4 - don't modify mResourceID off the main thread. r=bechen,gerald
There are some works to do when we allow a stream whose download ends abnormally
to continue sharing the resource:

1. Abort Read() when download error happens. We might still have a chance to
   get all the data successfully. However, it doesn't really matter since
   the stream data is incomplete and we will encounter decode errors sooner
   or later.
2. Update() needs to check mChannelEnded since an ended stream will not
   download data needed by other streams.

MozReview-Commit-ID: LGCecQ5rpzq

--HG--
extra : rebase_source : 17a91a1cfd145344c3c0a29b80665cb99ce20746
extra : source : 0947c12b035acc9fba02e89dc87b3a17f84cf2e5
2017-11-15 16:45:57 +08:00
Nicholas Nethercote faa8efadfe Bug 1416980 - Remove nsIExtendedExpatSink. r=erahm.
Because none of the expat users need it.

--HG--
extra : rebase_source : 55a9338fe88073b9278f715e57eef926a638f31e
2017-11-14 17:22:49 +11:00
Bogdan Tara 5fdbf4f3e1 Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-11-20 00:19:22 +02:00
Bogdan Tara 47354c7134 Merge inbound to mozilla-central r=merge a=merge 2017-11-19 23:51:50 +02:00
Bogdan Tara 66daacbb97 Merge autoland to mozilla-central r=merge a=merge 2017-11-19 23:49:12 +02:00
Fernando Jimenez Moreno 4fa89640c0 Bug 1418244 - Add missing headers to MSE SourceBufferResource and TrackBuffersManager. r=cpearce 2017-11-19 15:30:30 -05:00
ffxbld c21102410d No bug, Automated HPKP preload list update from host bld-linux64-spot-039 - a=hpkp-update 2017-11-19 11:40:51 -08:00
ffxbld 502a538775 No bug, Automated HSTS preload list update from host bld-linux64-spot-039 - a=hsts-update 2017-11-19 11:40:47 -08:00
Andrea Marchesini a924e3c5af Bug 925225 - Fixing intermittent failure in test browser_bug676619.js, r=qdot 2017-11-19 20:13:31 +01:00
ffxbld 3fc5579f87 No bug, Automated HPKP preload list update from host bld-linux64-spot-038 - a=hpkp-update 2017-11-19 10:55:01 -08:00
ffxbld 6b1e59b641 No bug, Automated HSTS preload list update from host bld-linux64-spot-038 - a=hsts-update 2017-11-19 10:54:58 -08:00
Olli Pettay cc862266e9 Bug 1416450, ensure IntersectionObservers are deleted when adopting elements, r=mrbkap
--HG--
extra : rebase_source : c8c1300c4d1333c3b37725e1d8b31464cd3b30a7
2017-11-19 16:22:54 +02:00
Tooru Fujisawa 5fc6fb72ed Bug 1418106 - Throw error when resolving or rejecting promise returned by async function with testing function. r=till 2017-11-19 23:32:26 +09:00
Sebastian Hengst 14e2187cb1 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-19 15:07:33 +02:00
Sebastian Hengst c633ffa4c4 Backed out changeset bdab19ff2fef (bug 1415485) for letting web platform tests in /css/CSS2/backgrounds/ frequently fail. r=backout a=backout 2017-11-19 15:05:47 +02:00
Coroiu Cristina 8e2d781184 Merge mozilla-central to inbound r=merge a=merge on a CLOSED TREE 2017-11-19 12:52:18 +02:00
arthur.iakab 5a2831f643 Merge inbound to mozilla-central r=merge a=merge 2017-11-19 11:59:10 +02:00
Andrea Marchesini e011d320e1 Bug 1398229 - Save-link-as feature should use the loading principal - part 4 - Comment updated, r=me 2017-11-19 08:53:47 +01:00
Kartikaya Gupta 4cf3084e60 Bug 1282172 - Detect enum constants generated by macros when generating the Searchfox index. r=billm
MozReview-Commit-ID: 5RUsVSMTU8

--HG--
extra : rebase_source : 32f803de363aaaaa8df9c3d0eac31653ecb3de48
2017-11-18 20:05:53 -05:00
Bill McCloskey dd8af9fa5c Bug 1418434 - Fix return value warning in clang plugin (r=mystor)
MozReview-Commit-ID: 3p7Vs4hZtoO
2017-11-18 15:41:06 -08:00
Jan de Mooij 3b20991960 Bug 1418294 - Remove JSVersion related code from dom/xul. r=bz 2017-11-18 23:16:14 +01:00
Jan de Mooij a8cef631a3 Bug 1417895 part 2 - Use a ValidJSVersion enum instead of JSVersion in script loader. r=bz 2017-11-18 23:16:09 +01:00
Jan de Mooij d66dc34955 Bug 1417895 part 1 - Move ParseJavascriptVersion from nsContentUtils to ScriptLoader.cpp. r=bz 2017-11-18 23:16:05 +01:00
Gurzau Raul 79f64eb568 Merge inbound to mozilla-central r=merge a=merge 2017-11-18 22:48:47 +02:00
Gurzau Raul 6664176f99 Merge autoland to mozilla-central r=merge a=merge 2017-11-18 22:42:22 +02:00
ffxbld 22b9cb8f84 No bug, Automated HPKP preload list update from host bld-linux64-spot-037 - a=hpkp-update 2017-11-18 11:41:00 -08:00
ffxbld 2d07f0f683 No bug, Automated HSTS preload list update from host bld-linux64-spot-037 - a=hsts-update 2017-11-18 11:40:56 -08:00
ffxbld 973e21879e No bug, Automated HPKP preload list update from host bld-linux64-spot-030 - a=hpkp-update 2017-11-18 11:05:10 -08:00
ffxbld aa9e3a35ac No bug, Automated HSTS preload list update from host bld-linux64-spot-030 - a=hsts-update 2017-11-18 11:05:07 -08:00
Sebastian Hengst c9214daa09 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-18 11:58:58 +02:00
Matt Woodrow 23aea3be25 Bug 1417010 - Invalidate MathML display items whenever we invalidate the referenced nsMathMLChar. r=miko 2017-11-18 11:06:49 +13:00
Matt Woodrow 9a888dc0e1 Bug 1417529 - Part 2: Propagate invalidations with a 3d context up to the root, since we don't have valid overflow areas for except for the post-transform overflow on the 3d context root. r=miko 2017-11-18 10:59:23 +13:00
Matt Woodrow bae6122c8a Bug 1417529 - Part 1: Make sure UpdateBounds actually takes effect for transform separator items. r=miko 2017-11-18 10:57:56 +13:00
Matt Woodrow 7e4706b721 Bug 1417411 - Invalidate nsDisplayPerspective items when the inner transform frame changes. r=miko 2017-11-18 10:57:46 +13:00
Oriol Brufau a3f319d3d4 Bug 1418438 - Avoid null deref in nsIDocShell's forcedCharset. r=emk
MozReview-Commit-ID: KsTWmlAhDp8

--HG--
extra : rebase_source : 21e7476103c03488628f72aa517031135cfa4fe7
2017-11-17 21:28:50 +01:00
Christian Gati 7cbed49156 servo: Merge #19182 - Treat application/xml like text/xml in ParserContext::process_response (from cgati:parse-xml); r=KiChjang
<!-- Please describe your changes on the following line: -->

* components/script/dom/servoparser/mod.rs updated to handle application/xml as text/xml, along with hoisting application/xhtml+xml from the unknown mime types match arm.
* tests updated via mach

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #15850  (github issue number if applicable).

<!-- Either: -->
- [X] These changes modify results in test files via the automated: `./mach test-wpt tests/wpt/web-platform-tests/dom/nodes --log-raw /tmp/servo && ./mach update-wpt /tmp/servo`
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 60dca9cc4418b1cd0c21bee89d7b0d0bf657a7ff

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : bf51aededee6d51b599717c0b31c29e49c17dce6
2017-11-18 15:09:15 -06:00
Gurzau Raul 0758d56d18 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-18 22:51:47 +02:00
CYBAI 41815e53e1 servo: Merge #19277 - style: Move font-variant-numeric outside of mako (from CYBAI:font-variant-numeric-out-of-mako); r=emilio
This is a sub-PR of #19015
r? @emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19276
- [x] These changes do not require tests

Source-Repo: https://github.com/servo/servo
Source-Revision: 011e52f6ed06f260c4756a4c8fd04d4cc7912839

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 856d379ee399e0e33a43b695678cdc0ec668f2f4
2017-11-18 13:22:10 -06:00
Marco Castelluccio 4ca9bd92ec Bug 1418252 - Add missing 'sys' import. r=jmaher
--HG--
extra : rebase_source : c35fe0d1289aee2f81af7b67548f8ed98c349e07
2017-11-17 20:12:23 +01:00
Marco Castelluccio 55a92adc2e Bug 1418252 - Allow 'virtualization' key to be keyed by test platform. r=jmaher
--HG--
extra : rebase_source : 978e4705b1082f633301a4462ceb11817f6d1634
2017-11-17 15:22:30 +01:00