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

573753 Коммитов

Автор SHA1 Сообщение Дата
Kyle Machulis abd8d10b15 Bug 952453 - Remove mozNotification; r=baku
MozReview-Commit-ID: 5wAa5mYFDq4
2017-12-09 21:25:56 -08:00
Lars T Hansen dd34d2a589 Bug 1423864 - Rabaldr, remove ATOMIC_PTR macro. r=bbouvier
This turns the ATOMIC_PTR macro into a function and merges the
prepareMemoryAccess() call into that function, for a nice net cleanup
+ movement of platform code.

(This would be even prettier with C++14 automatic return type
deduction but that is a "not yet" feature.)

MozReview-Commit-ID: JwWOQIli5sS

--HG--
extra : rebase_source : 2bb52ba983455c7a1cef0fa47303e73b1f2704a9
2017-12-07 12:08:24 +01:00
Lars T Hansen ab728154ab Bug 1420158 - rabaldr, rename register variables. rs=bbouvier
MozReview-Commit-ID: 32oW3SpdRjN

--HG--
extra : rebase_source : a80a13ef80eb22fcfef47636cf4b4bc7ade742fd
2017-12-08 16:59:09 +01:00
Fred Lin c100228fea Bug 1419401 - show HTTP/2.0 200 OK in raw header;r=Honza
MozReview-Commit-ID: 7ApdEDofYwJ

--HG--
extra : rebase_source : c9960ed8128793cc615f6ed62bb7ec5fca5bd15d
2017-12-07 16:22:55 +08:00
Masayuki Nakano 6b577ea0fa Bug 1423835 - part 3: Rename EditorDOMPointBase::GetChildAtOffset() to EditorDOMPointBase::GetChild() r=m_kato
Different from RangeBoundaryBase, EditorDOMPointBase can store only child node.
I.e., mOffset may be invalid until its Offset() is called.  So,
GetChildAtOffset() isn't good name.  It should be just GetChild().

Similarly, GetNextSiblingOfChildAtOffset() and
GetPreviousSiblingOfChildAtOffset() should be renamed to GetNextSiblingOfChild()
and GetPreviousSiblingOfChild().

MozReview-Commit-ID: WpkPmDwkrL

--HG--
extra : rebase_source : 2be1fcbee129f4c96e9b166be5a924845340708f
2017-12-07 19:08:56 +09:00
Masayuki Nakano dacd109e2f Bug 1423835 - part 2: Rename EditorDOMPointBase::Container() to EditorDOMPointBase::GetContainer() and add some useful methods to access its container r=m_kato
EditorDOMPointBase::Container() may return nullptr.  So, it should be renamed
to GetContainer().

Then, the method name becomes longer and a lot of callers access the result
directly.  So, there should be following methods to make the callers shorter:

- GetContainerAsContent() to return the container as nsIContent*.
- GetContainerAsElement() to return the container as dom::Element*.
- GetContainerAsText() to return the container as dom::Text.
- GetContainerAsDOMNode() to return the container as nsIDOMNode*.
- CanContainerHaveChildren() to check if the container can have child nodes.
- IsInDataNode() to check if the point is in a data node including text node.
- IsInTextNode() to check if the point is in a text node.
- IsContainerHTMLElement() to check if the container is specific HTML element.
- IsContainerAnyOfHTMLElements() to check if the container is one of the
  specified HTML elements.

MozReview-Commit-ID: LkN2WBbCPj0

--HG--
extra : rebase_source : 9da1e70d4c74f7ad573e244cf6c7b21a0c7b4410
2017-12-07 18:45:52 +09:00
Masayuki Nakano d95c27869d Bug 1423835 - part 1: Add EditorDOMPointBase::SetToEndOf() to initialize the instance at end of container node r=m_kato
Editor code sometimes sets a DOM point to end of a node.  In this case, we
need to write |Set(node, node->Length())|.  So, it should have
|void SetToEndOf(const nsINode* aContainer)| for making meaning of the code
clearer.

MozReview-Commit-ID: 91shMCD2d84

--HG--
extra : rebase_source : 3401af50aabc1b677deeae664e8c56506182d28c
2017-12-07 17:27:20 +09:00
Masayuki Nakano ed66480149 Bug 1423097 - part 3: Fix new orange caused by an existing bug of EditorBase::DeleteSelectionAndCreateElement() r=m_kato
Even after EditorBase::DeleteSelectionAndCreateElement() creates a new element,
it tries to collapse selection with |pointToInsert| which is outdated after
inserting new element.

So, it should recompute the caret position with new DOM tree.

MozReview-Commit-ID: DKh2uhItIol

--HG--
extra : rebase_source : c0c30e1c809784af64e87596b471c472350857a8
2017-12-07 13:57:35 +09:00
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
Lars T Hansen 7cf5906e74 Bug 1420158 - rabaldr register targeting, Create RAII wrappers for atomic ops regalloc/targeting. r=bbouvier
With one exception this removes all platform ifdefs from the high
level of the atomics code generators by moving the register targeting
into RAII wrappers.  These wrappers are placed in the new section of
the file, introduced by the previous patch.  These wrappers also get
rid of several of the needWhateverTemp() functions because they are
rolled into the RAII wrappers.

The exception is 64-bit atomic ops on x86: here, we are always starved
for registers and must use slightly different APIs, but most of the
code is common and there's a clear pattern at work, so I don't think
this is bad.

Each wrapper carries a method implementing the operation that the
wrapper is for, and calls lower-level code to implement the operation
with appropriate arguments.  Thus details of the wrapper are hidden,
and there's minimal risk of abuse or accident.

MozReview-Commit-ID: HeqgqrImxms

--HG--
extra : rebase_source : 73c743bca17dc365e816c64cc2c609dcc3912e09
2017-12-04 14:52:58 +01:00
Lars T Hansen 8220260561 Bug 1420158 - rabaldr register targeting, Cleanup: move code and rename. r=bbouvier
This creates a new section in the file that sits between the low-level
code generators (above) and the high-level logic and value stack
manipulation (below).  The intent is that this section will contain
platform-specific helpers for register targeting when we pop the value
stack.

As explained in a new comment in the code, there are two types of
helpers: simple popXForY methods, of which we've had many; and RAII
wrappers.  I've moved the existing popXForY methods into this
section in this patch; the next patch introduces a number of RAII
wrappers.

MozReview-Commit-ID: Fq6TqgsFOkL

--HG--
extra : rebase_source : bd35fe8a835196bb115153042dc73074e788acfc
2017-12-04 13:01:48 +01:00
Lars T Hansen cd6764d949 Bug 1423831 - Increase static frame limit to 512 KiB. r=bbouvier
Given the standard wasm limits for parameters and locals, and assuming
a reasonable limit for the max evaluation stack height, we see that we
need a static frame size around 512KiB in the worst case.

The old limit, 256KiB, was arbitrary (it was just a large number meant
to reduce the attack surface) and we can therefore increase it to
512KiB.

MozReview-Commit-ID: JcKEdEp20Ok

--HG--
extra : rebase_source : 32f78f25f9d9ea369489b7d9a260d29fa8d49859
2017-12-07 09:08:25 +01:00
Lars T Hansen 8f3e3bca59 Bug 1423619 - Correct encoding of ARM ScratchFloat32Reg. r=nbp
--HG--
extra : rebase_source : ff3d03bef07efdb141c98136ab180e64a3819833
2017-12-06 17:26:14 +01:00
Ioana Crisan 62d7a2f07f Bug 1423118 - Add a test for checking that tags can be added to bookmarks using the library window. r=Standard8
--HG--
extra : amend_source : d19fc15afddc933dcf51af75446a56b83807dd4c
2017-12-06 16:01:15 +02:00
Dragana Damjanovic dd.mozilla@gmail.com a121d5218c Bug 1423988 - Turn odd the tls 1.3 early-data. r=mcmanus 2017-12-09 22:35:15 -05: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
Stone Shih 39bc975ceb Bug 1421482 Part2: Replace test utility synthesizePointer with synthesizeMouse. r=smaug.
We should follow the real use cases to synthesize mouse or touch events to generate pointer events so that the related logic is covered by these test cases.

MozReview-Commit-ID: 9xSgjSL0Azt
2017-11-24 07:50:12 +08:00
Stone Shih 7971ae4b7d Bug 1421482 Part1: Revise test_bug968148.html to synthesize pointer events with touch events. r=smaug.
MozReview-Commit-ID: I3dNqmYJnQN
2017-11-24 08:32:46 +08:00
Stone Shih 841f50b537 Bug 1421482 Part2: Replace test utility synthesizePointer with synthesizeMouse. r=smaug.
We should follow the real use cases to synthesize mouse or touch events to generate pointer events so that the related logic is covered by these test cases.

MozReview-Commit-ID: 9xSgjSL0Azt
2017-11-24 07:50:12 +08:00
Stone Shih fd4bca04b2 Bug 1421482 Part1: Revise test_bug968148.html to synthesize pointer events with touch events. r=smaug.
MozReview-Commit-ID: I3dNqmYJnQN
2017-11-24 08:32:46 +08: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