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

540460 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 2923be5074 Bug 1290276 Part 8 - Update test expectations after implementing XBL <stylesheet> for stylo. r=heycam
Disable 461917-1.xhtml under dom/xul/crashtests/ because I cannot reproduce
it locally.

Annotate assert-if on some crashtests (bug 1370830). Other modifications are
all removal of fails-if.

MozReview-Commit-ID: 6Q2A5M5rOry

--HG--
extra : rebase_source : b282a919fcda6287fe2eaa6b139a11f2663ad578
2017-05-31 16:44:38 -07:00
Ting-Yu Lin a8f560ec17 Bug 1290276 Part 7 - Restyle element and its descendant after loading XBL bindings. r=heycam
MozReview-Commit-ID: 1WiioW3xxMX

--HG--
extra : rebase_source : fd0820151911e7c1b69ed2524282ecbd72a42c57
2017-06-05 14:21:32 +08:00
Ting-Yu Lin 414fb7a11d Bug 1290276 Part 6 - Add FFI functions to allow various XBL data to be used from servo side. r=heycam
MozReview-Commit-ID: 9yG7xrXXuRn

--HG--
extra : rebase_source : 724c55fb8d424524e5408eead53d7b380197eff6
2017-06-05 14:00:27 +08:00
Ting-Yu Lin 548c53752d Bug 1290276 Part 5 - Add XBL stylesheets to ServoStyleSet so that it can be used in servo cascading later. r=heycam
In gecko style backend, nsXBLPrototypeResources calls GatherRuleProcessor()
after all the XBL stylesheets are loaded. We use ServoStyleSet to implement
the similar functionality for stylo.

MozReview-Commit-ID: 431XGFALtDY

--HG--
extra : rebase_source : 34327d71e1c88717463b2e8f7dfbda804aca0664
2017-06-05 13:06:52 +08:00
Ting-Yu Lin ee880dc08d Bug 1290276 Part 4 - Make ServoStyleSet::RawSet() return a pointer. r=heycam
In next part, we'll use ServoStyleSet to host XBL stylesheets. The raw set
is not available until the resources are loaded, so it's easier to tell that
by checking whether the pointer is nullptr or not.

MozReview-Commit-ID: Hqydd55FPO9

--HG--
extra : rebase_source : 6df6c2666aea2ca8a8065d4f4d9b552ec7b3e6fe
2017-06-05 11:57:13 +08:00
Ting-Yu Lin e2e9e98b3f Bug 1290276 Part 3 - Move nsStyleSet's call to SetBindingManager to PresShell::Init(). r=heycam
Delete the NS_WARNING because it's not needed once this bug is fixed.

MozReview-Commit-ID: Ht3ayjSvYW8

--HG--
extra : rebase_source : 457f011ac64fcd511ec2f15ea2b8ce24a88b0d84
2017-06-05 14:33:30 +08:00
Ting-Yu Lin eee973bf80 Bug 1290276 Part 2 - Pass bound element to Loader through LoadResources(). r=heycam
We'll need the bound element to get PresContext in a later patch.

MozReview-Commit-ID: 2Gcb0yKgbTH

--HG--
extra : rebase_source : 6549eb726c32e25bea6045027805492984521d48
2017-06-05 14:30:52 +08:00
Ting-Yu Lin 107fd64974 Bug 1290276 Part 1 - Make LoadResources() return bool directly. r=heycam
MozReview-Commit-ID: 4z3cHiWXMAh

--HG--
extra : rebase_source : 5ddf298f9208569dc40e1e56c7908e1665e6c215
2017-06-05 14:29:31 +08:00
Ting-Yu Lin 95ea4c3c55 servo: Merge #17221 - stylo: Get rules from Gecko XBL stylesheets in cascading (Bug 1290276) (from aethanyc:support-xbl-stylesheet); r=heycam
The change was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1290276

Source-Repo: https://github.com/servo/servo
Source-Revision: 433b7bf9fab0fb4cd35bcb01670a14da903498a2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e6a70e513cff1bf22f96918df497f9a704110470
2017-06-08 00:19:27 -07:00
DimiL e4d42d14a2 Bug 1359299 - V4 caches in LookupCache need to be copied around in copy constructor. r=hchang
MozReview-Commit-ID: AjzUUmQKiPW

--HG--
extra : rebase_source : 1c30ee5aa3548dce9b861a70660b1e60410f3654
2017-06-06 14:16:57 +08:00
Jean-Yves Avenard 45d7f2628e Bug 1370805: P3. Use whichever extradata is available when constructing the decoder. r=jwwang
Prior bug 1313398, the only time we would call H264Converter::CreateDecoderAndInit was if we encountered AVC3 content where the H264 extradata didn't exist in the metadata.
AVC3 was the only situation where mDecoder would be null after construction.

However, now, it is possible for the construction of the decoder to be interrupted, which would leave mDecoder null. For AVC1 content, if this happened, we wouldn't have in-band SPS/PPS necessary for CreateDecoderAndInit to complete.
So we use whichever extradata is available.

MozReview-Commit-ID: 702xj045LAv

--HG--
extra : rebase_source : e85077cedfece066398e36d8a4dd16f4bd406db6
2017-06-07 15:14:57 +02:00
Jean-Yves Avenard a81b74c44a Bug 1370805: P2. Let current operation completes before continuing. r=jwwang
This is a simpler approach required as both InitPromise and FlushPromise are exclusives.

It's in practice simpler too.

MozReview-Commit-ID: ItaAhC0Bk8T

--HG--
extra : rebase_source : 2c68b8843cfccd784bfcf1ae4fd08407ee891349
2017-06-07 15:10:04 +02:00
Jean-Yves Avenard 09f24e7c7d Bug 1370805: P1. Revert "Bug 1370164: Properly handle flushing during ongoing operations. r=jwwang"
--HG--
extra : rebase_source : d2ed98092313a357912443238d7c48e060c462f7
2017-06-07 13:32:09 +02:00
gasolin 310f612a4a Bug 1369282 - Update the close button style in the onboarding overlay to fit the spec;r=Fischer,mossop,rexboy
MozReview-Commit-ID: 6uLfRFf6GB5

--HG--
extra : rebase_source : bab9c478d6127d8b9bb422fce38239722cfed55a
2017-06-07 13:51:46 +08:00
Nevin Chen 95338eca6d Bug 1334113 - Update the document to reflect 'searches' field in core ping. r=bsmedberg,jchen,sebastian
MozReview-Commit-ID: 2p68ixYOiVH

--HG--
extra : rebase_source : 241cb9ec665da3ba314ab5483f29e78d447fa8cd
2017-04-20 15:00:06 +08:00
Andrew McCreight 8340e0d293 Bug 1371042 - Fix destructuring assignment in sanitize.js. r=Gijs
MozReview-Commit-ID: 4farchkzM60

--HG--
extra : rebase_source : c2b32ffd874e438c591f222312c7194708f31fe1
2017-06-07 14:23:47 -07:00
Cameron McCormack 4963fdc190 Bug 1365162 - Followup: fix reftest annotation. 2017-06-08 16:08:38 +08:00
Makoto Kato 684c70a6ba Bug 1371170 - Add non-virtual EditorBase::GetSelectionController. r=masayuki
GetSelectionController is virtual method, but we should have non-virtual version of GetSelectionController that return value is nsISelectionController since we have a lot of call of GetSelection().

MozReview-Commit-ID: 41JFqTyIh0b

--HG--
extra : rebase_source : 4d40d1a8b31c2b6aff3f3b9ff4609bb3e41ea8f6
2017-06-08 13:58:09 +09:00
Henry Chang 150a885dfa Bug 1362182 - Early return if mUpdateObserver has been nulled out by CancelUpdate(). r=francois
MozReview-Commit-ID: 2fQCtjMJkx

--HG--
extra : rebase_source : 33b16d2c1958d8a4dcd4cfa9eb3b602f2c84aa55
2017-06-06 17:51:51 +08:00
Glenn Watson 093332c149 servo: Merge #17196 - Update WR (move glyph data to gpu cache and halve glyph alloc/uploads) (from glennw:update-wr-cache-glyphs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 12dca42dd703573cff4d231e5043b7f5dcdf06f7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c2c22a4b4e83e30f489a39914cb0d6ec9e3fc8f2
2017-06-07 22:55:53 -07:00
Cameron McCormack 8626db01df Bug 1365162 - Followup: fix reftest annotation. 2017-06-08 15:00:05 +08:00
Kaku Kuo 2afe1fbdbd Bug 1349253 - modify the assertion; r=jwwang
While MDSM calls MFR::Seek(), MFR tries to do video seek first and then the audio seek.

Video-seek and audio-seek are applied sequentially, and if something wrong in video-seek,
MFR discards the whole seek operation without applying audio-seek.

video    | audio     |
waiting  | waiting   | What MDSM receives
-----------------------------------------------------------------------------
   X     |    X      | resove mSeekRequest
-----------------------------------------------------------------------------
   O     |    X      | reject mSeekRequest with type=VIDEO, error=WAITING
-----------------------------------------------------------------------------
   X     |    O      | reject mSeekRequest with type=AUDIO, error=WAITING
-----------------------------------------------------------------------------
   O     |    O      | reject mSeekRequest with type=VIDEO, error=WAITING
-----------------------------------------------------------------------------

So, here, AccurateSeekingState::OnSeekRejected() has a unified code to handle
WAITING_FOR_DATA error for both video and audio type, and it uses the
aReject.mType variable to distinguish different types.

But, it mixes the assertions. We should also apply assertions according to the
type that is in concern.



MozReview-Commit-ID: F7RpnFghcKk

--HG--
extra : rebase_source : d18c3197ec2a08f2f184150e0c4a08da200a34b0
2017-06-07 18:52:36 +08:00
Masayuki Nakano 696e4cb85a Bug 1250823 part 2 - IMEContentObserver should cache adding ranges as a range during document change r=smaug
Between nsIDocumentObserver::BeginUpdate() and nsIDocumentObserver::EndUpdate(), IMEContentObserver can cache added nodes as a range if they are consecutive nodes.  Even if a node is removed, a data node is changed or attribute is changed unexpectedly, IMEContentObserver can post text change of the added node range and handle it normally.

MozReview-Commit-ID: IttDHBkr92Y

--HG--
extra : rebase_source : f0849d5fab0b28bdfa311cf833a216d43b9215d2
2017-06-08 11:24:58 +09:00
Masayuki Nakano a5bc18e848 Bug 1250823 part 1 - Implement DocumentObserver as a nested class of IMEContentObserver for observing to begin and end update r=smaug
IMEContentObserver can reduce the number of times to compute node offsets with caching all added nodes as a range.  For that, it needs to know when it starts to update and ends updating the document.

nsIDocumentObserver is a subclass of nsIMutationObserver and IMEContentObserver is a mutation observer of editor's root content.  Therefore, if we change IMEContentObserver to a document observer, each mutation observer method needs to check if the change occurs in the observing editor.  Therefore, this patch implements document observer as its nested class and manages it as a member of IMEContentObserver.

MozReview-Commit-ID: HPSPfajxjnx

--HG--
extra : rebase_source : fd4bdcc24759040fb6c39317024049a3a924fc67
2017-06-08 11:21:28 +09:00
Ting-Yu Lin 0dbc15d1bd Bug 1370762 - Null check GetSelection() before calling Stringify(). r=mtseng
MozReview-Commit-ID: 9sNaXwzbqUw

--HG--
extra : rebase_source : 3f9b88368a27a38e01fab3d97a228cdda1c55dfa
2017-06-08 12:49:05 +08:00
Alan Jeffrey 9ceb5bb873 servo: Merge #17077 - Removed root browsing context from constellation (from asajeffrey:constellation-no-root-browsing-context); r=cbrewster
<!-- Please describe your changes on the following line: -->

Removed the special root browsing context from the constellation.

---
<!-- 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 #13994
- [X] These changes do not require tests because this isn't visible from user code

<!-- 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: caa8343e137ab73e046773263dc3ce4b4ebb7b3f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 548e0caed1e409c2284e4418cdebaf388b5c7e27
2017-06-07 21:57:10 -07:00
Xidorn Quan 7f22b593d5 Bug 1345709 - Lowercase color keyword in specified value. r=heycam
MozReview-Commit-ID: d5cbTvSpQt

--HG--
extra : rebase_source : 0bd6e318e4372ab5c26bf2db28e75486b28419f0
2017-06-06 14:48:33 +10:00
Xidorn Quan adad1a1d17 servo: Merge #17219 - Support interpolation between currentcolor and numeric color (from upsuper:currentcolor); r=Manishearth,birtles
This is the Servo side change of [bug 1345709](https://bugzilla.mozilla.org/show_bug.cgi?id=1345709).

Source-Repo: https://github.com/servo/servo
Source-Revision: 24e944ad94816e607e833e34095c4f8b8136df4c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9bd6680c1a980543f2ebfc191186cc8d88fb075c
2017-06-07 21:03:52 -07:00
Matt Brubeck 38a876b232 servo: Merge #17192 - Parallel layout optimizations (from mbrubeck:layout); r=pcwalton
This takes some of the optimizations made to parallel styling in #16971 and applies them to parallel layout.  Specifically:

* Reduce the chunk size, to increase chances for parallelism on trees with small fan-out.
* Reduce allocations by using SmallVec.
* Reduce task switching by processing up to one chunk of children within the same rayon task as the parent.

This cuts the "Primary Layout Pass" time in **half** on the MySpace page from [tp5n], and on my other real-world test pages it is a small improvement or close to no change.

[tp5n]: https://wiki.mozilla.org/Buildbot/Talos/Tests#tp5n_pages_set

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they affect performance only

Source-Repo: https://github.com/servo/servo
Source-Revision: c0f3ec87806a0d718d7f9ef1ccb912c78fc482d2

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 473d903f4a7bd5d1403fcb31cbbad6d5570f7ddb
2017-06-07 19:57:57 -07:00
Phil Ringnalda 4b9de82509 Backed out changeset 5decd51af7a9 (bug 1369282) for breaking the build by trying to ship a duplicated file
CLOSED TREE

MozReview-Commit-ID: wmARe5Aata
2017-06-07 21:02:34 -07:00
Nevin Chen e1c387812f Bug 1369685 - Add 'region' to switchboard. r=sebastian
MozReview-Commit-ID: EWlx3bkpTwj

--HG--
extra : rebase_source : dbc09c57838f2ef3e7c7b316d0b35bbe6ff468fe
2017-06-02 18:08:20 +08:00
gasolin 8dfe760aa5 Bug 1369282 - Update the close button style in the onboarding overlay to fit the spec;r=Fischer,mossop,rexboy
MozReview-Commit-ID: L1j6ECdtgHM

--HG--
extra : rebase_source : c052fd0679998428f8d2fb4696ef00ad5c8c7fcf
2017-06-07 13:51:46 +08:00
Edouard Oger adde19d4f4 Bug 1369855 - Update sinon.js to version 2.3.2. r=markh
MozReview-Commit-ID: FPB4HebP3g7

--HG--
extra : rebase_source : 1e55c1dbc8bff59e1a7a097e4a6a58a19bc95688
2017-06-02 15:50:30 -04:00
Hiroyuki Ikezoe 34985a8f63 Bug 1367307 - Add content property to generate pseudo element. r=birtles
MozReview-Commit-ID: 2gvHexQUJKa

--HG--
extra : rebase_source : da6cde40edbbb0e5432c88b3949a9995b9ca6d87
2017-06-08 10:28:19 +09:00
Cameron McCormack 4865e4e6bb Bug 1365162 - Part 7: Test for :lang() with a sibling combinator. r=emilio
MozReview-Commit-ID: J9PYC3RkEMm

--HG--
extra : rebase_source : 7d3d26fbdd831297079b282ca6fd0e9d47d338d8
2017-06-07 11:08:12 +08:00
Cameron McCormack 3e80edcca3 Bug 1365162 - Part 6: Add FFI function for matching :lang(). r=emilio
MozReview-Commit-ID: 4iFDJpzQ3p8

--HG--
extra : rebase_source : 8230d7aaed631ebf9be91b7ab099806b2a22eaae
2017-06-07 12:27:58 +08:00
Cameron McCormack 84f883b1fb Bug 1365162 - Part 5: Factor out :lang() matching function. r=emilio
MozReview-Commit-ID: KhCd90UPatX

--HG--
extra : rebase_source : f0514a8ee96c9b97e8a4fb98c56f2c256349ec00
2017-06-07 12:17:31 +08:00
Cameron McCormack 9f79fac590 Bug 1365162 - Part 4: Add FFI functions for getting the relevant lang attribute value for an element or snapshot. r=emilio
MozReview-Commit-ID: 6xL0FI2qrG1

--HG--
extra : rebase_source : cdaf7ea69d654fd5e6b763d109273ae3dfed92cc
2017-06-07 12:16:52 +08:00
Cameron McCormack 8dfd22578a Bug 1365162 - Part 3: Record on snapshots whether the element supports lang="" attributes. r=emilio
MozReview-Commit-ID: KpzwsKpBiOO

--HG--
extra : rebase_source : c7c5b85d37f1276b04cfd3c0b538f2f6e55f95af
2017-06-07 11:11:44 +08:00
Cameron McCormack d73b4d31f2 Bug 1365162 - Part 2: Factor out lang="" namespace checks. r=emilio
MozReview-Commit-ID: CBwV3xB5sz9

--HG--
extra : rebase_source : 4606c31bdcb3ff3e4d108b3c9f58d0965b923072
2017-06-07 11:10:07 +08:00
Cameron McCormack 100ad77dae Bug 1365162 - Part 1: Restyle entire subtree when lang="" or xml:lang="" changes. r=emilio
MozReview-Commit-ID: 46YSGTxjshc

--HG--
extra : rebase_source : 427396818c90d74b4ea04ff1308c80d82a337c38
2017-06-05 13:05:19 +08:00
Cameron McCormack cab73ba65a servo: Merge #17206 - match :lang() against snapshots correctly (from heycam:lang-snapshots); r=emilio
Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1365162.

Source-Repo: https://github.com/servo/servo
Source-Revision: ad47d33511c318fe208158bb16deb5086979e0c7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c3134d2dbda84151948d6e142a3a17c167a2b6ac
2017-06-07 19:00:54 -07:00
Ryan VanderMeulen 9b7a73b65a Merge m-c to autoland. a=merge
UPGRADE_NSPR_RELEASE UPGRADE_NSS_RELEASE

--HG--
extra : amend_source : a59e53ba2f8db608f613f21ad6da2b5be8814aa4
2017-06-07 22:55:56 -04:00
Ryan VanderMeulen e886d1846a Merge inbound to m-c. a=merge
UPGRADE_NSPR_RELEASE UPGRADE_NSS_RELEASE

--HG--
extra : amend_source : a7800e9214d5a8325af0d1f5e5dcc77273f4ce95
2017-06-07 22:52:40 -04:00
Anthony Ramine 57a51de0d7 servo: Merge #17216 - Fix serialisation of computed circle() shapes (from nox:fix-computed-circle-serialisation); r=canaltinova
Source-Repo: https://github.com/servo/servo
Source-Revision: 1ea4a44fad4dfd6d7ca1152e06cf07b7e927951b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c65c37e4dd902af54b87896be64bbf37139880c4
2017-06-07 17:31:17 -07:00
Hiroyuki Ikezoe cdde6f6108 Bug 1368889 - Post animation restyle hint againt pseudo element instead of its parent. r=birtles
To traverse pseudo elements in animation-only restyle, the pseudo element
itself needs the animation-only dirty bit.

MozReview-Commit-ID: 11RfVqnPXfJ

--HG--
extra : rebase_source : d048c9a053c03bf3fef46fcbfd9cbd5f60204e1d
2017-06-08 10:22:25 +09:00
Wes Kocher baffccc880 Bug 1370734 - Temporarily increase the number of allowed write hazards until issues can be sorted out a=me
MozReview-Commit-ID: EmfQim9kpIw
2017-06-07 17:53:50 -07:00
Aaron Klotz b08f42f77d Bug 1367885: Follow-up - remove code that mistakenly landed as part of commit 09894b9ce473; r=backout
MozReview-Commit-ID: 3ORbwx6QFhR

--HG--
extra : rebase_source : a32c7f2b4a471495929b4055ba293826d07c6da2
2017-06-07 14:39:15 -06:00
Robert Longson f6ca0ae2b1 Bug 1370449 - Simplify SVGTextDrawPathCallbacks by passing in data that more closely matches what it uses. r=heycam 2017-06-07 20:38:59 +01:00
ffxbld 086a61dfbf No bug, Automated HPKP preload list update from host bld-linux64-spot-303 - a=hpkp-update 2017-06-07 08:36:43 -07:00