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

58841 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 6f633adbf8 Bug 1347351 - nsMenuBarListener::KeyPress() should wait reply event for handling F10 key r=smaug
Currently, nsMenuBarListener::KeyPress() handles F10 key before remote content handles it.  However, if a remote process has focus, the keyboard event should be handled in the content first.  Then, only when it's not consumed in the remote process, menubar should handle the F10 key press.

MozReview-Commit-ID: GDf4POAPsTy

--HG--
extra : rebase_source : a450755d89bc410d17fef55fad98533169e2eff5
2017-07-20 17:54:44 +09:00
Emilio Cobos Álvarez 2477a4b823 Bug 1383307: Remove ServoStyleContext::UpdateWithElementState. r=manishearth
And kill one GetParentAllowServo call while at it, and some other dumbness...

MozReview-Commit-ID: GmvzXwGorlX
2017-07-23 23:56:39 +02:00
Emilio Cobos Álvarez ecbfd2ef14 Bug 1383307: Honor the relevant link visited pref. r=manishearth
MozReview-Commit-ID: D5NiEJUpONQ
2017-07-23 23:56:37 +02:00
Emilio Cobos Álvarez 698850aeb4 Bug 1383307: Use proper initializer in ServoStyleContext constructor. r=manishearth
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-07-23 23:56:02 +02:00
Sebastian Hengst a010ae81b9 Backed out changeset ec113974cdd9 (bug 1347351) for bustage at nsMenuBarListener.cpp:336: 'class mozilla::WidgetKeyboardEvent' has no member named 'MaybePostedToRemoteProcessLater'. r=backout 2017-07-23 19:42:56 +02:00
Masayuki Nakano 9c0b7b936b Bug 1347351 - nsMenuBarListener::KeyPress() should wait reply event for handling F10 key r=smaug
Currently, nsMenuBarListener::KeyPress() handles F10 key before remote content handles it.  However, if a remote process has focus, the keyboard event should be handled in the content first.  Then, only when it's not consumed in the remote process, menubar should handle the F10 key press.

MozReview-Commit-ID: GDf4POAPsTy

--HG--
extra : rebase_source : e016bc6dd7b5499458b6abc365f4879c1639f841
2017-07-14 23:45:03 +09:00
Masayuki Nakano c8d5ce8e59 Bug 1333459 - part4: Make EventStateManager resets "waiting reply from remote process" when the focused content isn't in remote process r=smaug
On macOS, we fall back eKeyPress event to native menu.  Therefore, widget always requests a reply from remote process because it's difficult to check if the eKeyPress event will be sent to a remote process actually.  If it's not sent to any remote processes, PresShell needs to dispatch the event into the DOM tree.  Additionally, even if it's marked as "waiting reply from remote process", it needs to dispatch the DOM event in the main process first because we need to check if the key combination is reserved by chrome (if it's reserved, the eKeyPress event shouldn't be fired in the remote process).

Therefore, this patch makes EventStateManager::PreHandleEvent() resets the state when focused content isn't in any remote processes and the event's propagation hasn't been stopped.

Additionally, this patch makes PresShell::HandleEventInternal() checks WidgetEvent::PropgationStopped() with WidgetEvent::IsWaitingReplyFromRemoteProcess() before dispatching the event into the DOM tree.

MozReview-Commit-ID: FmgL3rCuQ8y

--HG--
extra : rebase_source : aa8d6b924fc78d1d9dd35a35c92976c35c758657
2017-07-21 17:22:08 +09:00
Masayuki Nakano 0ebdc75b7b Bug 1333459 - part2-3: Make nsMenuBarListener::KeyPress() wait reply from remote process if the eKeyPress event will be sent to a remote process later r=smaug
nsMenuBarListener::KeyPress() is eKeyEvent listener in the system event group.  If the target is a remote process, it shouldn't handle accesskey immediately because preceding eKeyDown event may be consumed in the remote process or eKeyPress event itself may be consumed in the remote process.

This patch makes nsMenuBarListener::KeyPress() mark eKeyPress event as "waiting reply from remote process" only when the event matches with a menu item's accesskey and it will be send to a remote process later.  Then, reply event should be handled in this method if it's available.

MozReview-Commit-ID: KOpCVgElnca

--HG--
extra : rebase_source : 881ec01f5c8e21c790bf9a8c3167d6c3f932524a
2017-07-19 18:39:34 +09:00
Masayuki Nakano 44d5a33919 Bug 1333459 - part2-2: EventStateManager should check if it needs to wait reply from remote content before handling access keys r=smaug
Currently, access key is handled in EventStateManager::PreHandleEvent() with eKeyPress event, i.e., before dispatching it into the DOM tree, if the access key is registered in EventStateManager.  So, the main process does not check if the preceding eKeyDown event is consumed in focused remote process.

When preceding eKeyDown event is consumed in the main process, eKeyPress event won't be dispatched by widget.  However, if remote process has focus, it's impossible widget to stop dispatching eKeyPress event because preceding eKeyDown event hasn't been handled in the focused remote process yet.  Therefore, main process needs to post eKeyPress event to check if preceding eKeyDown event was consumed.  When eKeyPress event is marked as "waiting reply from remote process", TabChild sends it back to the main process only when preceding eKeyDown event wasn't consumed.  So, only when eKeyPress event is back to the main process, main process should handle accesskey with it.

This patch makes EventStateManager::PreHandleEvent() check if a remote target has focus before handling accesskey.  If a remote process has accesskey and there is an accesskey matching with eKeyPress event, it marks the event as "waiting reply from remote content" and stop propagation in the process.

Finally, when eKeyPress event is sent back to TabParent, TabParent::RecvReplyKeyEvent() calls EventStateManager::HandleAccessKey() before dispatching the reply event into the DOM tree.

MozReview-Commit-ID: KsOkakaIVzb

--HG--
extra : rebase_source : 7e0c6966a1bde085e34d45bca4b0166b9fc2f3f1
2017-07-22 10:50:41 +09:00
Cameron McCormack 23bf7c8332 Bug 1382964 - Part 3: Add assertion to help heap write analysis. r=xidorn
MozReview-Commit-ID: Lfa5Cijgqzp

--HG--
extra : rebase_source : 0af1079a7129a396baced1c0c1ed488165fba1df
2017-07-23 09:11:37 +08:00
Cameron McCormack dcfb190586 Bug 1382964 - Part 2: Assert we're on the main thread in nsCSSValueTokenStream::operator==. r=xidorn
This helps the heap write analysis believe that the nsCSSValue comparison
that nsStyleUIReset::CalcDifference does (for mSpecifiedWindowTransform,
which won't have nsCSSValueTokenStream values in it) is safe.

MozReview-Commit-ID: 4JvPC735D7i

--HG--
extra : rebase_source : 728f698a97a03b0259d82ea9e418117deda488a4
2017-07-22 10:11:06 +08:00
Cameron McCormack d20edaf0df Bug 1382964 - Part 1: Don't cache URLValueData::mMightHaveRef when in a traversal. r=xidorn
MozReview-Commit-ID: 2ucnu4vuaVg

--HG--
extra : rebase_source : 5f4f51d302f5d6ba03ecf7ea2ee938acdb36d0c8
2017-07-21 16:34:20 +08:00
Emilio Cobos Álvarez ed9d1ad184 Bug 1382017: followup: fix alignment of macro definitions. r=whitespace-only
MozReview-Commit-ID: KdgQaPukU5z
2017-07-23 04:39:00 +02:00
Emilio Cobos Álvarez 2b7de51623 Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley
MozReview-Commit-ID: E0mdkhU3XBz
2017-07-22 18:02:57 +02:00
Emilio Cobos Álvarez b7a2398983 Bug 1381844: Remove a few redundant casts. r=bholley
MozReview-Commit-ID: 2dr72PMGKwN
2017-07-22 18:02:56 +02:00
Sebastian Hengst f16a7f8371 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4EWdTlEncz7
2017-07-22 11:38:42 +02:00
Wes Kocher d45eb771f0 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Ah48RzFU8Mt
2017-07-21 18:20:46 -07:00
Wes Kocher 051dc17e6c Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GYc8r8gnS0j
2017-07-21 18:12:55 -07:00
Ryan VanderMeulen f4e3a91992 Merge m-c to inbound. a=merge 2017-07-21 09:40:28 -04:00
Sebastian Hengst 367f0ac5a2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IWRTFZdtzaE
2017-07-21 12:56:44 +02:00
Daniel Holbert ec4c4d308e Bug 1382450: Turn on pref "dom.meta-viewport.enabled" for MathML reftest "font-inflation-1.html", like we do for other font-inflation reftests. r=jfkthame
MozReview-Commit-ID: 64mKD8dnX3f

--HG--
extra : rebase_source : 2308c8eb17a025e9980697dac22b29ed4beaae3e
2017-07-19 15:58:45 -07:00
Wes Kocher 61354cf6c0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Emilio Cobos Álvarez c02bd43974 Bug 1382372: Add a fast-path for matching attr selectors with the empty namespace. r=bz
MozReview-Commit-ID: GSr0oGJJZRM
2017-07-20 19:13:32 +02:00
Emilio Cobos Álvarez b7fa6f3b50 Bug 1377469: Update reftest expectations. r=jryans
MozReview-Commit-ID: Cp8Fc5emACU

--HG--
extra : rebase_source : e6b9b027e3f1a09ebf61df19bb766d2223c94a92
2017-07-20 13:33:00 +02:00
Nazım Can Altınova 0fb0b9cec5 Bug 1341802 - Enable disabled grid tests after servo/servo#17776 r=me
MozReview-Commit-ID: 21080kMgKdk

--HG--
extra : rebase_source : 69cc7cf2d63662d157db1969b70e0cb25760681a
2017-07-20 09:35:13 -07:00
Simon Sapin 4485b191aa Bug 1382713 - Bench stylo setProperty with both "10px" and " 10px". r=emilio
MozReview-Commit-ID: E6LiJPQ0IJ3

--HG--
extra : rebase_source : 643bbbadf1136a019336c78d69882bea834ebc65
2017-07-19 11:16:38 +02:00
Emilio Cobos Álvarez 0fff6a4e53 Bug 1382593: Clean a bit nsImageMap. r=heycam
MozReview-Commit-ID: Htm2OoExJ3T

--HG--
extra : rebase_source : 0d4214ab9e0d98421ebd8f7dbaee8d36342cfe85
2017-07-03 20:35:14 +02:00
Boris Zbarsky 9fed8c4314 Bug 1382786 part 5. Add some tests for which properties are properties are allowed on ::first-letter, ::first-line, and ::placeholder. r=emilio
MozReview-Commit-ID: 6FO6QAECPHW

--HG--
extra : rebase_source : fa9d6e9f4197360c6f5143928de8319bac733843
2017-07-21 14:20:12 -04:00
Boris Zbarsky 04552c3152 Bug 1382786 part 4. Update test expectations. r=emilio
MozReview-Commit-ID: TjcLIFlje

--HG--
extra : rebase_source : caef652de10d73ed1d03c98b8db1898da9173c3c
2017-07-21 14:20:00 -04:00
Manish Goregaokar 08c6de8178 Bug 1382017 part 4 Gecko piece - Rename ServoComputedValues -> ServoComputedData; r=heycam
ServoComputedValues is confusing because ComputedValues is actually
ServoStyleContext on the C++ side.

MozReview-Commit-ID: IQNVdfREAMt
2017-07-20 21:44:02 -07:00
Manish Goregaokar 26f3a98f78 Bug 1382017 part 4 Gecko piece - Remove usage of ServoComputedValues from most Gecko code; r=xidorn
MozReview-Commit-ID: 2NB4DgxMrL3
2017-07-20 17:27:05 -07:00
Manish Goregaokar 9e805b0538 Bug 1382017 part 2 Gecko piece - Remove usage of ServoComputedValues from binding functions; r=xidorn
MozReview-Commit-ID: 3KygTIIMVvF
2017-07-18 23:17:34 -07:00
Manish Goregaokar b185f906f6 Bug 1382017 part 1 Gecko side - Replace stylearc with servo_arc; r=xidorn
MozReview-Commit-ID: FUZgybUUMF3
2017-07-18 11:51:56 -07:00
Kartikaya Gupta 4b9801e41b Bug 1359808 - Don't do empty transactions for scroll updates if there are already pending transforms in the layer tree. r=mstange
The pending transforms must have been computed using the older scroll offset
values, which means that updating the scroll offsets without recomputing the
transforms will make them wrong. If we do an empty transaction for the scroll
offset updates, the transforms will not get computed. This patch catches this
scenario and schedules a full paint instead of the empty transaction instead.
The case where the scroll offset is modified *before* the transform is already
handled by code in nsIFrame::TryUpdateTransformOnly.

MozReview-Commit-ID: I5s5J7BS1ru

--HG--
extra : rebase_source : 63fec656440c8bee322f069a4466a311ebcd0f7d
2017-07-12 11:14:11 -04:00
Sebastian Hengst b289637574 Backed out changeset 454d7232178d (bug 1380133) for bustage at mozilla/KeyframeUtils.h: no 'object' file generated. r=backout on a CLOSED TREE 2017-07-20 15:41:12 +02:00
Sebastian Hengst 515a615505 Backed out changeset 6f89b4ceda12 (bug 1380133) 2017-07-20 15:40:16 +02:00
Sebastian Hengst 42d11fca28 Backed out changeset 22dabf04e560 (bug 1380133) 2017-07-20 15:40:12 +02:00
Sebastian Hengst 8400ef0636 Backed out changeset cc720d72d024 (bug 1380133) 2017-07-20 15:40:06 +02:00
Sebastian Hengst d67d0384af Backed out changeset 9a84b6988af9 (bug 1380133) 2017-07-20 15:39:58 +02:00
Sebastian Hengst 6b93a5693c Backed out changeset cf561cad85f1 (bug 1380133) 2017-07-20 15:39:53 +02:00
Sebastian Hengst 4e48589974 Backed out changeset 1f1175528301 (bug 1380133) 2017-07-20 15:39:48 +02:00
Sebastian Hengst 8851ad32bc Backed out changeset 00edc2c32610 (bug 1380133) 2017-07-20 15:39:43 +02:00
Sebastian Hengst 234f850b1c Backed out changeset f835a60a13a3 (bug 1380133) 2017-07-20 15:39:38 +02:00
Ethan Lin 7aa3422a0a Bug 1378602 - Part3. Add OMTA support for nsDisplayTransform and nsDisplayOpacity. r=kats
MozReview-Commit-ID: CP4WEZgy83a
2017-07-21 14:21:47 +08:00
Ethan Lin a48f3ac6fe Bug 1378602 - Part2. Move animation data from layer to AnimationInfo. r=kats
MozReview-Commit-ID: 4gv8EfPgsii
2017-07-21 14:21:47 +08:00
Ethan Lin 9a75620fae Bug 1378602 - Part1. Add WR support for nsDisplayOpacity. r=kats
MozReview-Commit-ID: 8aH3pJ0oiGc
2017-07-21 14:21:46 +08:00
Kris Maglione 654f2c0c26 Bug 1374025. Try calling ShowViewer again later if it hasn't succeeded yet when we get a render frame parent. r=tnikkel 2017-07-20 16:24:40 -05:00
Nicolas Silva a9bf06994d Bug 1377595 - Mark display items that should be painted on the content side. r=jnicol 2017-07-20 11:34:15 +02:00
Mike Taylor 9a537f511f Bug 1330146. Remove windows-xp and windows-vista as values for -moz-os-version from tests. r=dholbert
The functionality was removed in Bug 1325503. The reason these tests didn't start failing is because
they just test the parsability of the media feature and its' value, not that it does anything useful.

MozReview-Commit-ID: 6a0nlKhUZTQ

--HG--
extra : rebase_source : bddafd6cba332368d05b75ca44b58ad1575b8f12
2017-07-19 11:44:24 -05:00