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

541101 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 99357f53e9 servo: Merge #17270 - stylo: Use bitfield accessors in string-cache (from emilio:bindgen-does-bitfields-sort-of); r=wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 03074f4b0e9908d80558efe519301f39aadc436e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7d3d3be92df34988f095e78bd9233154e49da6c5
2017-06-11 10:31:00 -07:00
Emilio Cobos Álvarez 8e8d2ffd5f servo: Merge #17265 - style: Reduce some code duplication and ugliness when parsing identifiers (from emilio:macros-on-top-of-macros); r=wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: 197afeee2d7ac54f330408708673805095a1399a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 05c1e7959909e7be6533fc9b131d8bd6e74d52c0
2017-06-11 09:31:48 -07:00
Makoto Kato dab69fdb91 Bug 1371492 - Use AutoTArray to save current listener in NotifySelectionListeners. r=smaug
Actually, we use nsCOMArray for mSelectionListeners.  NotifySelectionListeners saves current listeners to another nsCOMArray then use it for observing.

When I debug it, array length is mostly ~5, and nsCOMArray uses malloc according to profiler.  So since array length is small, we should use AutoTArray instead.

MozReview-Commit-ID: As5PS1KVTt8

--HG--
extra : rebase_source : 89996105b8e7f0f820f4139d5ed6dfcc03d1f70c
2017-06-09 13:15:49 +09: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
JW Wang cdf019e08b Bug 1371202. P2 - don't release decoders if we are looping since we will need them soon. r=jya
MozReview-Commit-ID: L1hOBytfENK

--HG--
extra : rebase_source : dc2d399ed0af1d98cb6945641aace7e76ff290b7
extra : intermediate-source : bea92e7fd9ed383d1df040b6757b8e3e1ca915a1
extra : source : 48738321b534a29d7747fa9ad0bec71b29067a52
2017-06-08 11:42:43 +08:00
JW Wang 75e01f7b0a Bug 1371202. P1 - plumb the 'loop' attribute into MDSM. r=jya
MozReview-Commit-ID: DtsaXmtQw76

--HG--
extra : rebase_source : 34686d455670975a824dc803a16b8acff97c86ab
extra : intermediate-source : 0de95b1644a365dda9beff4b75d56251da2258c7
extra : source : ba5b2599c949766395bf5b0381023a752bc6e04d
2017-06-08 12:03:10 +08:00
Sadman Kazi eaa8d6489e servo: Merge #16477 - Pass URL to Browser::new(), delegate url checking logic to 3rd party (from sadmansk:url_param_browser); r=paulrouget
<!-- Please describe your changes on the following line: -->
1. Move the logic of computing the initial url from `opts.rs` to `/ports/servo/main.rs`
2. Add a `ServoUrl` argument to `Browser::new`

Based on the requested changes by @paulrouget:
>We can read the pref in main() instead. shell.homepage would be used if the url is not passed as an argument. I'm trying to decouple the "app" logic and the "web engine" logic. I think it's up to the app to set the initial URL, and I'm not sure the initial url should be part of opts.

---
<!-- 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 #15636

<!-- Either: -->
- [ ] There are tests for these changes

<!-- 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: 87140641a4f8636b431db41777d01302f8f6ad3d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c2593a42892c939c91fff4f40f62e212dd8d0783
2017-06-11 21:16:06 -07:00
Dan Glastonbury a74de3d86f Bug 1372057 - Limit pulse-rust to nightly builds. r=kinetik
MozReview-Commit-ID: Ev4GSuEN5Xa

--HG--
extra : rebase_source : 0e3910ffa437963810d5f42d5e2f3486e72801ef
2017-06-12 11:26:33 +10:00
Masayuki Nakano ec9ae17b0c Bug 1368554 ContentCacheInParent::mPendingCompositionCount should be decreased when TextCompositin which has dispatched composition events to corresponding remote process r=m_kato
ContentCacheInParent::mPendingCompositionCount is now managed with composition events which TabParent received. However, TextComposition doesn't dispatch composition events after coming request to commit active composition.  Therefore, composition is committed forcibly in a remote process over 255 times, the main process crashes.

It's the safest way to use TextComposition to manage ContentCacheInParent::mPendingCompositionCount.

MozReview-Commit-ID: DEhzYcK1zcW

--HG--
extra : rebase_source : a47891b1d620bbe4e380e73134ec6da5d21f4ea9
2017-06-10 02:42:16 +09:00
Mantaroh Yoshinaga df6a321bc6 Bug 1353987 - Clear ready promise when animation is canceled. r=birtles
According to the spec, when we cancel an animation we should "reset an
animation's pending tasks"[1] which has following step:

...
4. Reject animation’s current ready promise with a DOMException named "AbortError".
5. Let animation’s current ready promise be the result of creating a new resolved Promise object.

Since we create the ready promise and, if need resolve it when we create it
(see Animation::GetReady), this patch simply clear the ready promise
when an animation is canceled.

[1] https://w3c.github.io/web-animations/#reset-an-animations-pending-tasks

MozReview-Commit-ID: JxoqeA5dXCO

--HG--
extra : rebase_source : 1c51724f236b3ed464eb6af3c20ccc9aaf5aa3e6
2017-06-12 10:45:48 +09:00
Gerald Squelart 9438822797 Bug 1371880 - Use Variant with indexed access in MozPromise::ResolveOrRejectValue - r=jwwang
MozReview-Commit-ID: 4vobU19ebaX

--HG--
extra : rebase_source : fe1e73a3fdf3a5d612a41b53aca9c9f2ea363456
2017-06-12 11:19:58 +12:00
JW Wang 549f9bcf13 Bug 1371515. P5 - remove mIsShutdown which is not read at all. r=kaku
MozReview-Commit-ID: H8MZSoG9wCV

--HG--
extra : rebase_source : e02b3814993cd325520b89866f1e275b62c94fd6
2017-06-09 11:47:53 +08:00
JW Wang b394689f0b Bug 1371515. P4 - remove CanonicalIsShutdown() which has no callers at all. r=kaku
MozReview-Commit-ID: AVWtCVFflho

--HG--
extra : rebase_source : a8a8ac68b03ab45ee086607b5b0ba416ff9bbecf
2017-06-09 11:45:20 +08:00
JW Wang f367b1a0e9 Bug 1371515. P3 - remove IsShutdown() which now has no callers. r=kaku
MozReview-Commit-ID: Te3F7WJ8iF

--HG--
extra : rebase_source : 5ed1fa5537f32d3e340ba61c2e1538ed23c007d7
2017-06-09 11:43:51 +08:00
JW Wang 0ddb970029 Bug 1371515. P2 - remove the check from DecodeError(). r=kaku
The same reason as P1. ShutdownState::Enter() disconnects callbacks to prevent
DecodeError() from being called during shutdown.

MozReview-Commit-ID: EFZiE2zkcUZ

--HG--
extra : rebase_source : 279d5fcdc79f2d4d7861cea627c4314b26aa5da5
2017-06-09 11:42:59 +08:00
JW Wang 5ecf1f125f Bug 1371515. P1 - remove the |IsShutdown()| check from Seek() which is already handled by ShutdownState. r=kaku
MozReview-Commit-ID: 5V7xCGCsh5j

--HG--
extra : rebase_source : 0f23c9390893e421ecc976bb0d0eeed534351de2
2017-06-09 11:41:20 +08:00
JW Wang a61afab096 Bug 1371514. P2 - remove MediaDecoder::mStateMachineIsShutdown. r=gerald
MozReview-Commit-ID: Dv2pdHW2tgI

--HG--
extra : rebase_source : aea740ced32fe31185127617102f026b1ad0349e
2017-06-09 11:27:42 +08:00
JW Wang ba75abc972 Bug 1371514. P1 - remove AbstractMediaDecoder::IsOggDecoderShutdown() and its friends. r=gerald
MozReview-Commit-ID: 5HOqH6YtB8b

--HG--
extra : rebase_source : 49cc525c32d827584c856e815a1ff3e2df968cea
2017-06-09 11:24:45 +08:00
Markus Stange fc1d76d038 Bug 1370757 - Improve widget overflow calculation. r=mattwoodrow
This fixes HiDPI and adds overflow for meter bars.

Meter bars should probably have their intrinsic size fixed instead, but
keeping the existing behavior for them is less risky.

MozReview-Commit-ID: xF83bqdDlz

--HG--
extra : rebase_source : d28b4c265298e870d7cc03b11038da605d920b49
2017-06-07 15:05:31 -04:00
Henrik Skupin 34e680df7b Bug 1369709 - Release geckodriver 0.17.0. r=ato
MozReview-Commit-ID: 9I4FM2TCBez

--HG--
extra : rebase_source : da4fb291067a585ae3e9d8f70be1b0ebd770908e
2017-06-07 20:45:18 +02:00
Carsten "Tomcat" Book 3b83aa8692 Backed out changeset df527bcc28dc (bug 1303510) for test failures in browser_first_time_use_doorhanger.js 2017-06-09 11:46:23 +02:00
Carsten "Tomcat" Book 74532a140a Backed out changeset 0d885ad1419d (bug 1303510) 2017-06-09 11:46:04 +02:00
Carsten "Tomcat" Book b764dc1ee1 Backed out changeset 19bc87470994 (bug 1303510) 2017-06-09 11:46:02 +02:00
Tom Tromey 3b237f38d8 Bug 1370786 - use UniquePtr for SecMap in LUL; r=froydnj
This avoids a memory leak.

MozReview-Commit-ID: LmZdWd6ym56

--HG--
extra : rebase_source : 5bc8a267160565153a833487453f17771ceab917
2017-06-07 11:40:24 -06:00
Jeongkyu Kim 7970589045 Bug 1368145 - Change 'All Devices' to 'Send to All Devices' with its property name r=eoger
MozReview-Commit-ID: 5g6IuuV51P6

--HG--
extra : rebase_source : 160fe8cfb7a4d000e956ee00a05d483e1d86e4fa
2017-06-09 12:25:41 +09:00
Anthony Ramine e497b77c77 servo: Merge #17215 - Derive more ToCss impls (from servo:derive-all-the-things); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 1555f0fc413415d5c8f7c5a5f3fec2eecfce640e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 60a2001016256af7bd79d02c3b48df1d1b6e45cb
2017-06-09 05:00:45 -07:00
Makoto Kato e1017e8b12 Bug 1370806 - Part 2. Remove selection before calling nsIPlaintextEditor.setText. r=masayuki
nsIPlaintestEditor.setText still use BeginPlaceHolderTransaction and EndPlaceHolderTransaction.  But since input.value setter doesn't create undo transaction, it is unnecessary to save/restore selection via AutoPlaceHolderBatch.  So before calling setText, we should reset selection to reduce saving and restoring selection.

Save/Restore selection is ~7% of input.value setter.

MozReview-Commit-ID: 6yBKCtRmkQt

--HG--
extra : rebase_source : 4df5d0629f083b75615b96b17bc108613fe80c24
2017-06-07 15:31:06 +09:00
Hiroshi Hatake dd655fb5a4 Bug 1366744 - Remove needless SetPaperSizeUnit override. r=haik
MozReview-Commit-ID: B2ovi3xuY0j

--HG--
extra : rebase_source : c3015ee84d3801c50455c1912796ebd4ba8b50d5
extra : histedit_source : 44cd10b9317139d86848045a482cecba2c5b4367
2017-06-07 14:24:05 +09:00
Makoto Kato 5644a572f6 Bug 1370806 - Part 1. Use RAII class for StartBatchChanges and EndBatchChanges. r=masayuki
Although we use StartBatchChanges and EndBatchChanges in nsTextEditorState::SetValue, we have a path that EndBatchChanges isn't called.  So we should use RAII class to call EndBatchChanges correctly.

MozReview-Commit-ID: 6bjtTT9wItA

--HG--
extra : rebase_source : dc9bdcb1a5ac4bca026e378c79355041d7f2384a
2017-06-07 14:11:31 +09:00
Hiroyuki Ikezoe dd69b19ef0 Bug 1358966 - A reftest for overflow shorthand animation in SMIL. r=birtles
The marker, a red triangle, is clipped during "overflow" property
animation.

MozReview-Commit-ID: CAZ6adTXiQw

--HG--
extra : rebase_source : 888dc520aecba61cd129145ab015780dd8cbc943
2017-06-09 06:19:38 +09:00
Hiroyuki Ikezoe b18c06da27 Bug 1358966 - Enable shorthand properties for SMIL. r=birtles
MozReview-Commit-ID: IyJIzVGpvYK

--HG--
extra : rebase_source : 90a34cf57a2af48b58c631c0e554e1710c448396
2017-06-09 06:19:38 +09:00
Hiroyuki Ikezoe 5626c5dfa9 Bug 1358966 - Serialize multiple AnimationValue(s) for sub properties of a shorthand into single shorthand string. r=birtles,manishearth
MozReview-Commit-ID: KihUZRSD6pg

--HG--
extra : rebase_source : 8a75edcde8acf5c47981ef009d7a3c2b1d40c777
2017-06-09 06:19:38 +09:00
Hiroyuki Ikezoe ee1e77aa75 Bug 1358966 - Drop a redundant include for DeclarationBlockInlines.h. r=birtles
MozReview-Commit-ID: Av21Kes51z8

--HG--
extra : rebase_source : 0eec580400f4b0c72f13b11ad708c9e87f5a8b18
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 19bb8c0441 Bug 1358966 - Call additive or accumulative functions for each sub properties of shorthand. r=birtles
MozReview-Commit-ID: 26uflUKa2oa

--HG--
extra : rebase_source : 7c296c94b0534e22038604963b6100cb7d02904e
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe aca372df5b Bug 1358966 - Compute distance for each sub properties of shorthand. r=birtles
We use Euclidean distance for shorhand.

MozReview-Commit-ID: 6gUbIUl9SZ

--HG--
extra : rebase_source : ef92e2387d9bbb8da51ce3b2c89f0c2cc2d182fe
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe d3612df34a Bug 1358966 - Call Servo_AnimationValues_Interpolate for each sub properties of shorthand. r=birtles
MozReview-Commit-ID: Ath0b06j5zm

--HG--
extra : rebase_source : 3851bcf8c3da3130b097b2c23669576afb2a8720
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 9af90ec795 Bug 1358966 - Use Servo_GetAnimationValues. r=birtles
MozReview-Commit-ID: 7ag2IFUViDX

--HG--
extra : rebase_source : d545bf833a4bc428bf9141ff4cdfac05f4c453e1
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 263593c1fa Bug 1358966 - Make RawServoAnimationValue in ValueWrapper an array. r=birtles
MozReview-Commit-ID: 15iGyKc2qe0

--HG--
extra : rebase_source : e5d565ac194b39a37731b13f5c8d20717fa71aed
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe b90af8cd9c Bug 1358966 - Split mCSSValue into a RawServoAnimationValue and a StyleAnimationValue. r=birtles
In case of gecko, we use only the StyleAnimationValue.
Whereas in case of servo, we use RawServoAnimationValue and
make it an array to store multiple values for shorthand sub properties.

MozReview-Commit-ID: 4PnWBk9WP2Q

--HG--
extra : rebase_source : a2b5878f14241c2cbf4adeeed3a0fa08ae230fa3
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 55195fc497 Bug 1358966 - Add a new FFI to convert PropertyDeclarationBlock into nsTArray<RefPtr<RawServoAnimationValue>>. r=birtles
With this function we can get multiple RawServoAnimationValue(s) for shorthand
properties.

MozReview-Commit-ID: GPqmsOfVB0

--HG--
extra : rebase_source : a822f574eeb552ad72748bbe4b89f6139621c880
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe b8392ab3cc Bug 1358966 - Drop RawGeckoAnimationValueList. r=birtles
We no longer use it.

MozReview-Commit-ID: 5C0YbzQo6WP

--HG--
extra : rebase_source : 8244c3d22227dab3538fa1d00014d64e2f4d22bc
2017-06-09 06:19:36 +09:00
Hiroyuki Ikezoe 5fb6419612 Bug 1358966 - Drop parent style argument from Gecko_UpdateAnimations. r=birtles
MozReview-Commit-ID: KG0EPjTtqGH

--HG--
extra : rebase_source : a95c5dd11f29c9c07a6bffa885c8febb1c056143
2017-06-09 06:19:36 +09:00
Hiroyuki Ikezoe 0a79106352 servo: Merge #17228 - Shorthand support for SMIL (from hiikezoe:shorthand-for-SMIL); r=birtles
<!-- Please describe your changes on the following line: -->
This is a PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1358966

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

<!-- Either: -->
- [X] These changes do not require tests because it's for stylo

Source-Repo: https://github.com/servo/servo
Source-Revision: 094c2c73ec77dec51dc57d8aee272a91a52ddfb8

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : aeb533a705be2758728c2a2bfc4352d099fdda3f
2017-06-08 16:23:56 -07:00
Markus Stange 1cdb518fb7 Bug 1370757 - Only push device aligned clips. r=lsalzman
The new clip from bug 1364007 can cause us to clip to a rectangle that's not
aligned to device pixels. With the current rect inflation, we didn't notice,
but if we want to remove the inflation then we need to make sure to round out
the rect that we clip to.

MozReview-Commit-ID: BO9zds8fiKI

--HG--
extra : rebase_source : f71f283ef73cf58dbc2cc05d06ea9bc864fd5084
2017-06-06 19:19:51 -04:00
Gijs Kruitbosch 9f3268689a Bug 1370986 - disable panelmultiview in the overflow panel off-nightly for 55, r=mikedeboer
This #ifdefs out the multiview for non-photon-theme, and checks for it being
present in various bits of JS that interact with it. As a result, this will
'fix' the issues in this bug and in bug 1370967 for 55 as it moves off
Nightly. bug 1370967 will still need fixing in the photonpanelmultiview /
webextensions.

MozReview-Commit-ID: 6x4HmyvxeRP

--HG--
extra : rebase_source : cdab2fab97795def95b6f4c70c61cfcb1c3ac2f9
2017-06-08 16:38:36 +01:00
James Graham 349867226e Bug 1368262 - Disable webdriver test that behaves differently on dev edition vs release, r=ato
The test times out on master and dev edition but not on normal beta. Since
this is difficult to handle in ini files just disable the entire test until there's
a proepr fix for the underlying issue.

MozReview-Commit-ID: B3d7MElHy86

--HG--
extra : rebase_source : eaff065fb42f046173281c713c55ec6a977da812
2017-06-09 16:21:49 +01:00
Jonathan Guillotte-Blouin 9173319dd6 Bug 1371554 - Change .indexOf(...) == 0 to the more expressive .startsWith(...). r=mattn.
MozReview-Commit-ID: Jr3ALp6v2rM

--HG--
extra : rebase_source : 5e8628e462c5a311ac5ec4e936d0ad38e97659e5
2017-06-06 13:35:34 -07:00
Jonathan Guillotte-Blouin ddc7d26019 Bug 1371554 - Use Components.aliases where not used. r=mattn.
MozReview-Commit-ID: 8uElbXeSN3J

--HG--
extra : rebase_source : 08aaa02a2e62a83a88842f91eb913485aed869f6
2017-06-06 13:23:49 -07:00
Louis Chang fe6142d1b5 Bug 1246741 - Add more test cases for basic shapes clipping in SVG content. r=jwatt
MozReview-Commit-ID: 6UcD5NJxRcL

--HG--
extra : rebase_source : 62f4b3984dfe9959c2a92a9bd4c031374ba00b81
2017-06-08 14:15:01 +08:00