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

524504 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 5f2351d46b Bug 1343037 part 17. Remove the now-unused nsITextControlElement::GetSelectionRange. r=ehsan
This makes GetSelectionRange non-virtual on HTMLInputElement and HTMLTextareaElement.

MozReview-Commit-ID: HhmTHjw8AwW
2017-03-09 14:44:06 -05:00
Boris Zbarsky ad22389cf7 Bug 1343037 part 16. Implement a version of nsTextEditorState::SetSelectionRange that takes a string for the direction. r=ehsan
MozReview-Commit-ID: E8zYAWolg94
2017-03-09 14:44:06 -05:00
Boris Zbarsky 64343d8606 Bug 1343037 part 15. Implement nsTextEditorState::GetSelectionDirection. r=ehsan
MozReview-Commit-ID: 1bLLYhjmlff
2017-03-09 14:44:06 -05:00
Boris Zbarsky c97142b029 Bug 1343037 part 14. Implement nsTextEditorState::SetSelectionDirection. r=ehsan
This introduces two behavior changes:

1)  In cached mode, we used to treat unknown selection directions as "none".
    Now we treat it like "forward", consistently with the "have an editor" mode.
2)  Before this change, in cached mode, we did not fire "select" events on
    selectionDirection changes.

MozReview-Commit-ID: 4nBCAm3mAiz
2017-03-09 14:44:06 -05:00
Boris Zbarsky ccb5c104a6 Bug 1343037 part 13. Implement nsTextEditorState::SetSelectionEnd. r=ehsan
This introduces three behavior changes:

1)  Before this change, in cached mode, we did not enforce the "start <= end"
    invariant.
2)  Before this change, in cached mode, we did not fire "select" events on
    selectionEnd changes.
3)  Changes the IDL type of HTMLInputElement's selectionEnd attribute to
    "unsigned long" to match the spec and HTMLTextareaElement.

MozReview-Commit-ID: J3Gkhr8VnbS
2017-03-09 14:44:05 -05:00
Boris Zbarsky 4b03d84b62 Bug 1343037 part 12. Implement nsTextEditorState::SetSelectionStart. r=ehsan
This introduces three behavior changes:

1)  Before this change, in cached mode, we did not enforce the "start <= end"
    invariant.
2)  Before this change, in cached mode, we did not fire "select" events on
    selectionStart changes.
3)  Changes the IDL type of HTMLInputElement's selectionStart attribute to
    "unsigned long" to match the spec and HTMLTextareaElement.

MozReview-Commit-ID: JM9XXMMPUHM
2017-03-09 14:44:05 -05:00
Boris Zbarsky fd2deff856 Bug 1343037 part 11. Implement a SetSelectionRange function on nsTextEditorState. r=ehsan
MozReview-Commit-ID: 5xUkcnkptwQ
2017-03-09 14:44:05 -05:00
Boris Zbarsky 083facd7b2 Bug 1343037 part 10. Remove the unused SetSelectionStart/SetSelectionEnd bits on text control frame. r=ehsan
MozReview-Commit-ID: G7ODMdAjzxV
2017-03-09 14:44:05 -05:00
Boris Zbarsky cced97dfc3 Bug 1343037 part 9. Simplify the setup around the editor state's GetSelectionDirection function. r=ehsan
Really, there are only two cases we need to worry about.  Either
IsSelectionCached(), and then our SelectionProperties has the data we want, or
not and then we have a non-null mSelCon which has the data we want.

MozReview-Commit-ID: AEW9D1zG6sM
2017-03-09 14:44:05 -05:00
Boris Zbarsky 8a06255585 Bug 1343037 part 8. Get rid of nsIDOMHTMLInputElement's selectionDirection attribute. r=ehsan
MozReview-Commit-ID: FNn4vVCM50s
2017-03-09 14:44:04 -05:00
Boris Zbarsky 5b41bd3b49 Bug 1343037 part 7. Get rid of nsIDOMHTMLTextareaElement's selectionDirection attribute. r=ehsan
MozReview-Commit-ID: EQWxjgTdloR
2017-03-09 14:44:04 -05:00
Boris Zbarsky 77e7a5575a Bug 1343037 part 6. Simplify the setup around the editor state's GetSelectionRange function. r=ehsan
Really, there are only two cases we need to worry about.  Either
IsSelectionCached(), and then our SelectionProperties has the data we want, or
not and then we have a non-null mSelCon which has the data we want.

Since we are now using cached selection state a lot more (instead of
initializing the editor whenever someone asks for selection state), we need to
actually update it more correctly when .value is set.

And since we now update the cached selection state for the case when .value has
been set (to point to the end of the text), we need to change
HTMLInputElement::HasCachedSelection to return false for that case.  Otherwise
we will always do eager editor init on value set.  We handle that by not doing
eager init if the cached selection is collapsed.

The web platform test changes test the "update on .value set" behavior.  They
fail without this patch, pass with it.

MozReview-Commit-ID: DDU8U4MGb23
2017-03-09 14:44:04 -05:00
Boris Zbarsky 56f5644356 Bug 1343037 part 5. Make <textarea> behave more like <input type=text> in terms of reset behavior. r=ehsan
In particular this ensures that our ValueChanged() is correctly set to false
when we call SetValue() on our editor state with our default value.  We will be
relying on this very shortly.

MozReview-Commit-ID: AIIIHwfQPQE
2017-03-09 14:44:04 -05:00
Boris Zbarsky 8d88c68a9d Bug 1343037 part 4. Fix type changes on an input to properly grab the selection offsets from the old editor before we ask the editor state for them. r=ehsan
MozReview-Commit-ID: IDdt0qedJpT
2017-03-09 14:44:04 -05:00
Boris Zbarsky 09b87520ad Bug 1343037 part 3. Get rid of nsIDOMHTMLTextareaElement's selectionStart and selectionEnd accessors. r=ehsan
MozReview-Commit-ID: Ca95YfRaq9r
2017-03-09 14:44:04 -05:00
Boris Zbarsky f57f010e10 Bug 1343037 part 2. Get rid of nsIDOMHTMLInputElement's selectionEnd accessors. r=ehsan
MozReview-Commit-ID: L2Ozu7Vvort
2017-03-09 14:44:03 -05:00
Boris Zbarsky bd425019e3 Bug 1343037 part 1. Get rid of nsIDOMHTMLInputElement's selectionStart accessors. r=ehsan
MozReview-Commit-ID: IyFv8NRuZIO
2017-03-09 14:44:03 -05:00
Andy Kluger be28304603 Use GTK cursors for zoom-in or zoom-out css cursors (bug 1328724) r=karlt
get_gtk_cursor attempts to use themed cursor icons for most css cursor types,
but left these two out. Now it will try to use the theme for these as well,
and fall back to the generic FF set used previously.

MozReview-Commit-ID: 9QHV0mc5AxK

--HG--
extra : rebase_source : c03d01f6dc3a30a8f16def9f95cee14d18f7a8a1
2017-03-08 01:28:47 -05:00
Chris Pearce 825ed9ed70 Bug 1345680 - Use ToString(MediaKeySessionType) in EME code. r=jwwang
MozReview-Commit-ID: 5MK7j7THKgW

--HG--
extra : rebase_source : c9e456d7b30475e6a204f2f9b0f6762a0e74890b
2017-03-09 12:35:33 +13:00
Chris Pearce 2edfe89f04 Bug 1345680 - Add ToString(MediaKeySessionType) functions. r=jwwang
MozReview-Commit-ID: 68aAdTYqCon

--HG--
extra : rebase_source : a733a46e5dac671c996ab5bf57fa2a27c364b40e
2017-03-09 12:19:58 +13:00
Michael Howell 0f096d98ed servo: Merge #15844 - Assert that `domain_match` is operating on lowercase text (from notriddle:domain_match_lowercase); r=nox
> (Note that both the domain string and the string will have been
> canonicalized to lower case at this point.)

Related to #15789

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cdacf5757c121a59f7edcc70107d6ddd78556af0
2017-03-08 18:18:16 -08:00
Steve Fink 975eedf5ec Bug 1345307 - Implement runtime-wide WeakCache, r=jonco
MozReview-Commit-ID: DX2nNCZrj6

--HG--
extra : rebase_source : a522dc02ac332bbc072845a3433af5a40ba16fe7
2017-03-07 12:55:37 -08:00
Wes Kocher 1e99d508d7 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DaPlT30qXzs
2017-03-08 17:15:46 -08:00
Wes Kocher 3842d8fcef Merge inbound to central, a=merge
MozReview-Commit-ID: 62e9XDudUlc
2017-03-08 17:07:55 -08:00
Robert Strong 7fcd174d12 Bug 1345663 - Remove skip-if value from tests for Windows versions that are no longer supported. r=mhowell 2017-03-08 17:01:04 -08:00
Eugen Sawin 30669c12dd Bug 1343613 - [1.7.1] Add missing file. r=me 2017-03-09 00:54:33 +01:00
Jeff Gilbert 3672cb1c5e Bug 1339256 - Double-check robustness. - r=daoshengmu
MozReview-Commit-ID: 20csUTf7q6e
2017-03-08 15:49:52 -08:00
Jeff Gilbert bd43a20c46 Bug 1339256 - Simplify index validation. - r=kvark
MozReview-Commit-ID: 4FALdIyhBP8
2017-03-08 15:49:49 -08:00
Jeff Gilbert 7baee17628 Bug 1339256 - Detect robust_buffer_access_behavior. - r=daoshengmu
MozReview-Commit-ID: 4w5D9bOQbY8
2017-03-08 15:49:47 -08:00
Sebastian Hengst dd5376d924 Backed out changeset 8b1c50cdb50c (bug 1072859) for failing devtools/client/responsive.html/test/browser/browser_permission_doorhanger.js. r=backout a=merge
MozReview-Commit-ID: LaknhYl9fEw

--HG--
extra : source : 6263649f857f55b11a6060d4a8735bdc8dbb0971
2017-03-09 00:46:17 +01:00
Shu-yu Guo 2ecd72ea53 Bug 1108941 - Followup: fix nonunified builds on a CLOSED TREE. 2017-03-08 14:24:23 -08:00
Shu-yu Guo 1dcb2c47c5 Bug 1108941 - Followup: don't expect template literal objects to already have been canonicalized during arguments analysis. (r=jandem) 2017-03-08 14:24:22 -08:00
Shu-yu Guo 45625b49e1 Bug 1108941 - Fix #include order to open a CLOSED TREE. 2017-03-08 13:44:27 -08:00
Simon Sapin eae348bccb servo: Merge #15872 - Fix debug assertion failure in gecko CI (from servo:dedup); r=emilio a=merge
Source-Repo: https://github.com/servo/servo
Source-Revision: 2565242665645e6a218f138e2b95d5a29f296104
MozReview-Commit-ID: Kd6ZOrODsGg

--HG--
extra : source : 2e536a204cec3d485c8861a4bcca96324e3b7ae1
2017-03-08 13:35:40 -08:00
Hiroyuki Ikezoe 11c8680e9d Bug 1344619 - Part 7: Drop EffectCompositor::ClearElementsToRestyle. r=birtles
MozReview-Commit-ID: DlTj2OR0wI0

--HG--
extra : rebase_source : 33307226315e6fb3facb000214e27d5582279dd6
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe d547683e53 Bug 1344619 - Part 6: Kick EffectCompositor::PreTraverse() for an element. r=heycam
MozReview-Commit-ID: Fs3DlkfeBCT

--HG--
extra : rebase_source : 5375ddbf94a5dcc3420880a08fbb369b91e3c363
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe 9d7c539837 Bug 1344619 - Part 5: Introduce EffectCompositor::PreTraverse() for an element. r=birtles
MozReview-Commit-ID: KCLkwIE8LTM

--HG--
extra : rebase_source : 71aa7d27ad4c3fc59898b97e494e2d7ea43044ad
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe 1761aeb22e Bug 1344619 - Part 4: Add ServoStyleSet::ResolveStyleLazily(). r=heycam
MozReview-Commit-ID: GvlD6lQYBQ6

--HG--
extra : rebase_source : 73baac118a3de04d88b565c61f853ec145d3d1e7
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe 394a4a9b12 Bug 1344619 - Part 3: Kick EffectCompositor::PreTraverse(). r=heycam
MozReview-Commit-ID: HbBrQ7HZ8gf

--HG--
extra : rebase_source : 764ca245bd03ef5bc943c5814f53198141ad5b89
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe 90d73a1135 Bug 1344619 - Part 2: Introduce EffectCompositor::PreTraverse(). r=birtles
MozReview-Commit-ID: 6ijDJttB9eo

--HG--
extra : rebase_source : 451601b1daf37e7b36d0b8ecda71c34388b78412
2017-03-09 05:20:17 +09:00
Hiroyuki Ikezoe f9b0c33a05 Bug 1344619 - Part 1: Introduce WillCompose() to update various state that we need to update as the result of ComposeStyle(). r=birtles
MozReview-Commit-ID: JznBR3OghKG

--HG--
extra : rebase_source : 95acb5dc8cdfc81d73b8033cb97eb0c95ff69153
2017-03-09 05:20:17 +09:00
JW Wang 312c817cea Bug 1345095 - ensure SimpleTest.js is loaded before all other scripts. r=jib
Scripts are not necessarily loaded in the same order of |document.head.appendChild(el)|.
We use 2-pass loading to ensure SimpleTest.js is loaded before other scripts start loading.

MozReview-Commit-ID: FNMmYo83adF

--HG--
extra : rebase_source : ea5252323bfaac73e174375fd316118a863f3e2e
extra : intermediate-source : 27532be37298ff624e2936c7c104010bc0a7198c
extra : source : 154d7d490d7ddb0cade9a09e20c05c3e6d3db235
2017-03-07 23:59:02 +08:00
Wes Kocher 5d9e472591 Backed out 3 changesets (bug 1334693) for build failures a=backout
Backed out changeset 8042ff76ef53 (bug 1334693)
Backed out changeset f48b85ae4eca (bug 1334693)
Backed out changeset 85c4356eebea (bug 1334693)

MozReview-Commit-ID: 2VFn68MXSmx
2017-03-08 18:04:30 -08:00
Ting-Yu Chou 646b846105 Bug 1335991 part 2 - Make sure the cxxRecordDecl has definition before checking anything. r=Ehsan
MozReview-Commit-ID: 6iePpR7lErc

--HG--
extra : rebase_source : 93ca2919fcda84537bb92e0fd1fc09de70a8db72
2017-03-08 15:43:06 +08:00
Aaron Klotz 116698fb6b Bug 1344965: Clean up mscom interfaces to improve separation of concerns; r=jimm
MozReview-Commit-ID: C96y3i8hjWs

--HG--
extra : histedit_source : 8cee3ff07ecd0310ac9648d903328d54588d3dde
2017-03-06 17:22:43 -07:00
Henrik Skupin 7c4d3ea96b Bug 1330348 - Make forward- and backward commands synchronous. r=ato
Both `goBack` and `goForward` commands should not return immediately,
but when the requested page has been fully loaded. To handle that a general
`waitForPageUnloaded` method has been added, which will call
`pollForReadyState` when necessary.

Similar to `get` the dispatcher cannot be used due to possible remoteness
changes. As such the driver has to poll the framescript until the page load
has been finished.

MozReview-Commit-ID: 4F7Piymxwhs

--HG--
extra : rebase_source : 58084cb9fa8ac96ced4ff5d719dd55cbb0dafa03
2017-03-06 14:14:21 +01:00
Henrik Skupin 275f3c88d7 Bug 1330348 - Make pollForReadyState a shared method for navigation commands. r=ato
All navigation commands including get, goBack, goForward, and maybe others
in the future should rely on the same method for fetching the readyState of
a document. As such prepare `pollForReadyState` and `get` for the upcoming
usage.

MozReview-Commit-ID: 5Y4U9dgM7uj

--HG--
extra : rebase_source : f66908fbe013fd961468679862db4caa77230ec9
2017-03-09 11:21:30 +01:00
Xidorn Quan 6eb58892f8 Bug 1345343 - Add a pref to turn off effect of xml:base on style attribute. r=bz
MozReview-Commit-ID: EzNLxIW0OCv

--HG--
extra : rebase_source : 7c6d1278ed47d35b109bbe3e6305032b7f125fa4
2017-03-10 18:04:34 +11:00
Sam Giles aaf9f3b7ae servo: Merge #15903 - Set Origin header in http_network_or_cache_fetch (from servo:set-origin-header); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: a11a3fe68bad97970568f7d785a41bd00b707e92

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a21445cd2ebf1eba3752ed0be5c48f48b3b46cb1
2017-03-09 22:15:11 -08:00
Xidorn Quan 49d319b27e servo: Merge #15901 - Restore text-align-last removed in #15839 by mistake (from upsuper:text-align-last); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 72128de68189a9cd03050b3b0dc8278b4ca376e9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 631830a397a37f32274b47e1003772034f60632e
2017-03-09 21:03:10 -08:00