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

573478 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano bab72d08e8 Bug 1423097 - part 2: Add overloads of nsRange::SetStart(), nsRange::SetEnd(), nsRange::IsPointInRange() and nsRange::ComparePoint() to use them with RawRangeBoundary r=smaug
nsRange::SetStart(), nsRange::SetEnd(), nsRange::IsPointInRange() and
nsRange::ComparePoint() take a set of container node and offset in it to
specifying a DOM point.  However, the caller may not have computed the offset
but may know the child node at the point.  In such case, they can avoid
computing the offset with nsINode::IndexOf() if they have overloads which
take RawRangeBoundary.

Therefore, this patch implements the overloads and changes the callers in
editor.

MozReview-Commit-ID: E4DLbAgTTCI

--HG--
extra : rebase_source : 8d1632a030f1e0a0dd2b81c3996c19d427e8b0bd
2017-12-05 17:50:13 +09:00
Masayuki Nakano 0021ffcddf Bug 1423097 - part 1: Implement Selection::AnchorRef() and Selection::FocusRef() r=smaug
Some methods of editor retrieves anchor and focus of selection.  However, there
are no methods which directly access RangeBoundary of anchor and focus.

This patch adds it for making editor code simpler and avoiding unnecessary
child offset computation.

MozReview-Commit-ID: EvepQpFMi8S

--HG--
extra : rebase_source : 38f3c506db5c9d8790bbd625d552bfbc8d99cebc
2017-12-05 16:36:57 +09:00
Masayuki Nakano d942210f2e Bug 1408125 - part 5: Redesign HTMLEditor::NormalizeEOLInsertPosition() with EditorRawDOMPoint r=m_kato
HTMLEditor::NormalizeEOLInsertPosition() takes a set of container node and
offset in it for specifying insertion point.  So, this should be replaced
with |const EditorRawDOMPoint&| and it should return |EditorDOMPoint| rather
than modifying the argument.

Additionally, perhaps, GetBetterInsertionPointFor() is better name for it.

MozReview-Commit-ID: IB1FhrkzK2G

--HG--
extra : rebase_source : 55f8c1d9fa1f149e81114c929f6e6232aba03905
2017-12-05 15:36:49 +09:00
Masayuki Nakano 36d48397f0 Bug 1408125 - part 4: Redesign HTMLEditor::InsertNodeAtPoint() with EditorRawDOMPoint r=m_kato
HTMLEditor::InsertNodeAtPoint() should take |const EditorRawDOMPoint&| as
an argument which specifies point to insert.  Additionally, it should take
|EditorDOMPoint*| to return the next point of actual insertion point.

Additionally, this patch renames it to InsertNodeAtProperAncestor() for
explaining what it will do.

MozReview-Commit-ID: HYUzSlyPxAd

--HG--
extra : rebase_source : 57033cdc4458b45a5fe9d6aa642c185133a79304
2017-11-28 22:28:07 +09:00
Masayuki Nakano f6e37d5fe3 Bug 1408125 - part 3: Redesign nsIEditActionListener::(Will|Did)InsertNode() r=m_kato
Although nsIEditActionListener::WillInsertNode() nobody implements actually,
we should remove it in a follow up bug.

nsIEditActionListener::DidInsertNode() is implemented only by HTMLEditRules.
So, if we make it not use nsIEditActionListener, we can remove it too.
However, keep it for now.

On the other hand, they don't need to receive index of the insertion point.
WillInsertNode() needs next sibling of the insert point, but DidInsertNode()
needs nothing because listener can compute it with new inserted node.

MozReview-Commit-ID: GiTKkVyZJlN

--HG--
extra : rebase_source : 9ee38c28217d25d1a3f79b0b458c7b2121350a76
2017-11-28 21:26:10 +09:00
Masayuki Nakano 8496023596 Bug 1408125 - part 2: EditorBase::CreateTxnForInsertNode() and EditorBase::InsertNode() should take |const EditorRawDOMPoint&| as an argument specifying point to insert r=m_kato
EditorBase::CreateTxnForInsertNode() and EditorBase::InsertNode() should take
|const EditorRawDOMPoint&| as an argument specifying point to insert.

MozReview-Commit-ID: KhK19xS7wXb

--HG--
extra : rebase_source : f7b08b7d049eef8a9c03ee681e53e8d469915b15
2017-11-22 21:25:05 +09:00
Masayuki Nakano 2e842218a1 Bug 1408125 - part 1: Make InsertNodeTransaction use EditorRawDOMPoint and RangeBoundary instead of pair of container node and offset in it r=m_kato
Like CreateNodeTransaction, InsertNodeTransaction should use EditorRawDOMPoint
for temporary variable and arguments of its methods and should use RangeBoudary
to store it as its member.

MozReview-Commit-ID: FCGY8x97egb

--HG--
extra : rebase_source : bd5ce45944b8b367afc9b782e881727061d83035
2017-11-22 17:29:22 +09:00
Thom Chiovoloni 133150d6a6 Bug 1423122 - Use the correct selection object in the getSelectionInfo when an input element is selected r=Felipe
MozReview-Commit-ID: L8nANaiYfyc

--HG--
extra : rebase_source : 2cd4a4b5da5117d01a1e5d5c7dca49f1e152d387
2017-12-06 15:27:46 -05:00
Emilio Cobos Álvarez be9bd84788 servo: Merge #19536 - style: Move the code to parse a list of compound selectors (from emilio:compound-selector-list); r=mbrubeck
I'll need this for ::slotted().

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 02f9868af7469734b70d02e8ddb0470a9c8d407d
2017-12-09 17:15:14 -06:00
Emilio Cobos Álvarez 8093a3dd29 servo: Merge #19533 - style: Remove unused SelectorImpl::pseudo_element_cascade_type (from emilio:unused-code-should-die); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 95520ca39c4dde7296584227d49d70615dda0bf0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1a97cecaec5781d0a5fe9a9c53dda6eb7982ba8e
2017-12-09 15:27:49 -06:00
Emilio Cobos Álvarez d6ec9e4c13 servo: Merge #19538 - Use ? in Option more often (from emilio:questions-questions-questions); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 548028fd07d85dbbbd0511386f88ea19825dc258

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4599b24e3d0dbd27d08d9232272f98c0c36cecd7
2017-12-09 13:58:25 -06:00
Sebastian Hengst 0eb71bbd9a merge mozilla-central to autoland. r=merge a=merge 2017-12-09 23:09:49 +02:00
Sebastian Hengst 2c422d76e9 Backout revived test file of bug 1423626. r=merge-fix a=merge-fix
--HG--
extra : amend_source : b0ad2f6f3922dc3f7de98f7434b32e8abcee122c
2017-12-09 23:08:03 +02:00
Andreea Pavel 982d3e6611 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-12-09 22:26:08 +02:00
Andreea Pavel 5ba2665757 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 22:21:17 +02:00
Andreea Pavel 8c8e64b0c7 Merge autoland to mozilla-centra r=merge a=merge 2017-12-09 22:06:18 +02:00
ffxbld 317996d0b6 No bug, Automated HPKP preload list update from host bld-linux64-spot-035 - a=hpkp-update 2017-12-09 12:01:49 -08:00
ffxbld 0aba3da0bd No bug, Automated HSTS preload list update from host bld-linux64-spot-035 - a=hsts-update 2017-12-09 12:01:45 -08:00
ffxbld b6ea2cfac7 No bug, Automated HPKP preload list update from host bld-linux64-spot-038 - a=hpkp-update 2017-12-09 11:07:05 -08:00
ffxbld 90b3db49cd No bug, Automated HSTS preload list update from host bld-linux64-spot-038 - a=hsts-update 2017-12-09 11:07:01 -08:00
Matt Brubeck e9500aa84a servo: Merge #19537 - style: Use the ? operator for Option (from mbrubeck:try); r=nox
This is stable in Rust 1.22 (#19532).

---

- [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 it is refactoring only

Source-Repo: https://github.com/servo/servo
Source-Revision: 5f4f355cea4a24992ac9efa97f4a6e1837008e0b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3a61f3b466e9f3c80f94b7ecb30f70f85efa55b3
2017-12-09 10:50:55 -06:00
Emilio Cobos Álvarez 342c95966f servo: Merge #19534 - style: Simplify naming and signatures of single-colon pseudo stuff (from emilio:naming-is-a-bit-hard-but-not-that-hard); r=nox
Also drop a few FIXMEs while at it, since they look bogus.

Source-Repo: https://github.com/servo/servo
Source-Revision: 051eb6bcb9204ecab1c1481a275a09fd50bf0467

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 049f90ddd1ae37e05adec201fbaa6f876cbdddfe
2017-12-09 09:52:27 -06:00
Gurzau Raul 91d3bc0100 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 00:36:15 +02:00
Gurzau Raul 096b0974bc Merge autoland to mozilla-central r=merge a=merge 2017-12-08 23:56:46 +02:00
ffxbld 8f7724e963 No bug, Automated HPKP preload list update from host bld-linux64-spot-032 - a=hpkp-update 2017-12-08 12:00:55 -08:00
ffxbld ab5cafe292 No bug, Automated HSTS preload list update from host bld-linux64-spot-032 - a=hsts-update 2017-12-08 12:00:51 -08:00
ffxbld 4d2f167f48 No bug, Automated HPKP preload list update from host bld-linux64-spot-034 - a=hpkp-update 2017-12-08 11:11:49 -08:00
ffxbld 2582928f13 No bug, Automated HSTS preload list update from host bld-linux64-spot-034 - a=hsts-update 2017-12-08 11:11:46 -08:00
Aaron Klotz b5f620cfdd Bug 1424317: Unconditionally remove UIA hook once UIA detection has run; r=jimm
MozReview-Commit-ID: I8pQ3GItBlF
2017-12-08 11:09:11 -07:00
Gabriel Luong 1902178c75 Bug 1424025 - Replace widgets.css link with only breadcrumbs.css. r=jdescottes 2017-12-08 13:19:54 -05:00
Nicolas B. Pierron ce967e50c4 Bug 1412653 - Add missing MOZ_TRY. r=nbp
CLOSED TREE
2017-12-08 17:12:10 +00:00
Ben Kelly 4e2dc7e51f Bug 1423913 P3 Don't register more shutdown handle if we create more than one ClientManagerService instance. r=baku 2017-12-08 11:52:07 -05:00
Ben Kelly 65e9628fa6 Bug 1423913 P2 Make callers expect infallble CreateSource() and CreateHandle(). r=baku 2017-12-08 11:52:07 -05:00
Ben Kelly 10e891e2d2 Bug 1423913 P1 Make ClientManager::CreateSource() and CreateHandle() infallible. Errors result in a detached object instead of nullptr. r=baku 2017-12-08 11:52:06 -05:00
Nicolas B. Pierron 81d226d76e Bug 1412653 - Distinguish between call stack used for outer resume points from call stacks used for resuming at one instruction. r=jandem 2017-12-08 16:44:44 +00:00
Narcis Beleuzu fd0b701b6f Backed out 4 changesets (bug 1417251) for reftest failures in abs-pos-non-replaced-vrl* on Windows and in box-sizing-replaced* on Android. r=backout a=backout
Backed out changeset 66d4e6df73d2 (bug 1417251)
Backed out changeset 5f8edbddf6b5 (bug 1417251)
Backed out changeset bf26cbb99b6a (bug 1417251)
Backed out changeset 2374657677b7 (bug 1417251)

--HG--
extra : amend_source : 9e00f8873f41a7aa6a98e6ccb6528e0c3c19eb05
2017-12-08 14:31:03 +02:00
Narcis Beleuzu 04a25ecb14 Backed out changeset 6e523917ee97 (bug 1423353) as requested by igoldan. a=backout 2017-12-08 12:03:06 +02:00
Cosmin Sabou c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Ryan Hunt 52aacbca78 Don't append to mDrawTargetsToFlush in Tiled OMTP (bug 1424172, r=bas)
MozReview-Commit-ID: GhlE3DXwKJi

--HG--
extra : rebase_source : 41a178a2cdce32e954841024f1075ee33081f475
extra : source : 0863e916742e8f4986db3b38b75b0b6ee2099d8f
2017-12-08 01:31:16 -06:00
Kartikaya Gupta a12a7cbac8 Bug 1423346 - Follow-up to regenerate FFI header file. r=me
The autogenerated header should have been updated with the change to bindings.rs
but was missed.

DONTBUILD because this is trivial and not worth wasting cycles over.

MozReview-Commit-ID: 1yf65mnftyW
2017-12-08 11:31:18 -05:00
Narcis Beleuzu f0d93dda2c Backed out 2 changesets (bug 1422931) for crashtest failures on dom/base/crashtests/1419799.html r=backout on a CLOSED TREE
Backed out changeset 60d9744e3fc4 (bug 1422931)
Backed out changeset cf554d5d70cc (bug 1422931)
2017-12-08 18:27:56 +02:00
Tim Taubert 975f015349 Bug 1422661 - Fix U2F test failures in new microtask scheduling r=jcj
Summary:
Ensure that transactions are cleared before U2FCallbacks are called, to allow
reentrancy from microtask checkpoints.

Move the two possible callbacks into U2FTransaction so we have nicer invariants
and know that there's a callback as long as we have a transaction.

Reviewers: jcj

Reviewed By: jcj

Bug #: 1422661

Differential Revision: https://phabricator.services.mozilla.com/D329

--HG--
extra : amend_source : 7097f38199a5bc4a215377e4f1a64079cf6d6a24
2017-12-08 16:55:52 +01:00
Jessica Jong 765510cef9 Bug 1419799 - Fix nsContentUtils::IsInSameAnonymousTree in Shadow DOM. r=smaug
No need to consider multiple shadow roots as it is only supported in Shadow DOM
v0, which is deprecated now.

MozReview-Commit-ID: BKemIBiMx1Q
2017-12-08 15:13:19 +08:00
Gabriel Luong 9fcaf906f7 Bug 1420499 - Update Codemirror to 5.32.0. r=bgrins 2017-12-08 01:30:05 -05:00
Ralph Giles e22361a5ac Bug 1421097 - Require at least Rust 1.22.1. r=ted
Bump the minimum required Rust version now that 1.22.1
has been in stable release for more than two weeks.

Version 1.22.0 works fine everywhere but macOS 10.13,
but 1.22.1 was released the same day, so it's no harder
to upgrade to.

Also update the base-toolchain builds to ensure we
continue to build with this version.

MozReview-Commit-ID: GlRWUNE07G0

--HG--
extra : rebase_source : f37585db5633e6e64b02bc94c2516b5ab18c3e15
2017-12-07 21:08:53 -08:00
Ted Mielczarek 8b7140ce04 bug 1424323 - remove MOZ_AUTOMATION_UPLOAD_SYMBOLS from in-tree mozconfigs. r=rillian
With all of our builds in Taskcluster now, we should never be uploading
symbols from build tasks. Unfortunately Windows builds were still doing so.
This patch removes MOZ_AUTOMATION_UPLOAD_SYMBOLS from all the in-tree
mozconfigs and a few other places so that it should always default off
(per moz-automation.mk). The rest of the uploadsymbols bits will be
removed once Thunderbird fixes their automation.

This patch was mostly autogenerated by running:
rg --files-with-matches UPLOAD_SYMBOLS browser/config/mozconfigs/ mobile/android/config/mozconfigs/ | xargs sed -ri '/.*UPLOAD_SYMBOLS.*/d'
sed -ri '/.*UPLOAD_SYMBOLS.*/d' build/unix/mozconfig.linux build/mozconfig.win-common build/macosx/local-mozconfig.common build/mozconfig.automation

Then mobile/android/config/mozconfigs/common and
taskcluster/scripts/builder/build-linux.sh were hand-edited.

MozReview-Commit-ID: Cy8kSEodSg4

--HG--
extra : rebase_source : 01caf1651b4eb428313e1f371aa585f8f34c4151
2017-12-08 13:50:17 -05:00
Mats Palmgren 23b6600c9c Bug 1423292 - [css-grid] Add a couple of ItemState bits to Dump(), and make an ItemState assertion stricter (DEBUG-only changes). r=dholbert
MozReview-Commit-ID: 7JhmMenpXN
2017-12-07 18:44:57 +01:00
Mats Palmgren afee933c5a Bug 1418727 part 4 - [css-grid] Update WPT expected result (automated update). r=me
MozReview-Commit-ID: CrJd1kLLij5
2017-12-08 16:49:40 +01:00
Mats Palmgren 6313df5e3a Bug 1418727 part 3 - [css-grid] Reftest updates.
MozReview-Commit-ID: GdypwZUhCgL
2017-12-07 18:44:57 +01:00
Mats Palmgren 49e389c837 Bug 1418727 part 2 - [css-grid] Require that an item spans at least one track with an 'auto' min sizing function for Automatic Minimum Size to apply. r=dholbert
MozReview-Commit-ID: KTVul2XQGsa
2017-12-07 18:44:57 +01:00