Commit Graph

797 Commits

Author SHA1 Message Date
Masayuki Nakano
c5656a4a70 Bug 1259665 part.2 Rename WidgetPointerEvent::height to mHeight r=smaug
MozReview-Commit-ID: Ji4X53dByiH
2016-08-03 17:23:56 +09:00
Masayuki Nakano
17a5aa85fe Bug 1259665 part.1 Rename WidgetPointerEvent::width to mWidth r=smaug
MozReview-Commit-ID: 3V5gyOvPuQi
2016-08-03 17:18:04 +09:00
Stone Shih
127957f0ee Bug 1285128 - Should not generate pointer events for those synthesized events that are not dispatched to DOM. r=smaug 2016-07-07 15:28:11 +08:00
Nicolas Silva
3766bcc94a Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Matthew Gregan
f47ad8a984 Bug 1288980 - Add libcubeb backend to about:support. r=felipc 2016-07-26 10:50:14 +12:00
Jan Henning
07d07e8d9e Bug 1282902 - Part 3 - Let the MobileViewportManager recalculate the saved resolution if the display width changed before restoring. r=kats
The mobile session store saves the current document resolution in order to restore the previous zoom level when restoring a page. If the display width has changed since the session data was captured (e.g. because the device was rotated), the resolution might have to be scaled appropriately.
Currently, the session store does this scaling by itself by comparing the stored and current window widths, however this implementation is slightly simplified and doesn't cover all use cases, which means some pages can be restored at a wrong zoom level after rotation. To correctly cover all cases, the session store would have to compare viewport widths, too.

Because the MobileViewportManager doesn't wait for the session store to set the restore resolution, the latter has to call setRestoreResolution() as early as possible in order to guarantee that the restore resolution is set before the first paint of the document. Therefore the session store currently calls this after receiving a LocationChange notification. However at that time, the correct viewport for the current document is not yet available, which means the resolution cannot be recalculated by the session store at that point.

Therefore, this patch changes the approach taken and lets the MVM handle all resolution calculations instead. The session store now simply passes the stored previous display dimensions along with the previous document resolution to the MVM, which can then compare them to the current display and viewport widths and scale the resolution appropriately before using it during first paint.


MozReview-Commit-ID: IGxWw87yftK
2016-07-01 21:23:25 +02:00
Jan Henning
a20ae793e4 Bug 1282902 - Part 1 - Add a helper method for getting the content viewer size in device pixels. r=kats
The intention is for the session store to record the current window size and then pass it to the MobileViewportManager for restoring, so the latter can correctly scale the stored resolution if the display width has since changed. However currently all window dimensions available from the JS side are measured in CSS pixels rounded to integers. Transforming those values back into display pixels by multiplying them with "window.devicePixelRatio" (or accessing window.gScreenWidth/Height, which does the same thing internally) unfortunately introduces some rounding errors.

Therefore this patch introduces a new helper method in DOMWindowUtils which allows to access the content window width as measured in device pixels from the JS side, too.

MozReview-Commit-ID: FGNQlXhkgrU
2016-06-30 23:15:41 +02:00
Jan de Mooij
7c3e2f8f9a Bug 1283855 part 28 - Make more GC APIs take JSContext instead of JSRuntime. r=terrence 2016-07-07 09:56:09 +02:00
Michael Layzell
d06aafbfe9 Backout Bug 1279771 due to linux test failures 2016-07-05 13:48:52 -04:00
Michael Layzell
266a7011cd Bug 1279771 - Treat change events triggered by changing <select> element selections as user-initiated in e10s, r=enndeakin 2016-07-05 10:40:44 -04:00
Bill McCloskey
48fe44d618 Bug 1282153 - Remove retaining outparam to GetLayerManager (r=dvander) 2016-06-30 14:30:30 -07:00
Xidorn Quan
ebf4436cb3 Bug 1282334 part 2 - Ensure scheduling flush for fullscreen change. r=smaug
The refresh driver may not be triggered regularly if the page is static.
In that case, we need to ensure a flush is scheduled for fullscreen
change, otherwise the page may get stuck.

MozReview-Commit-ID: c5FhqaIUQW
2016-06-30 14:57:30 +10:00
Makoto Kato
471ca71aba Bug 1203871 - Part 4. Implement QUERY_TEXT_RECT_ARRAY to nsIDOMWindowUtils for unit test. r=masayuki,smaug
To test eQueryCharRectArray, I would like to add it to nsIDOMWindowUtils.  Also this require unit test and will require external keyboard support on Android

Masayiki asks me more review to smaug this due IDL change.

MozReview-Commit-ID: 24lvQxXBnRX
2016-06-23 10:42:00 +01:00
Matthew Gregan
8a15113e15 Bug 1282592 - Fix compile error in nsDOMWindowUtils::GetSupportsHardwareH264Decoding when building without MP4 support. r=cpearce 2016-06-28 15:02:09 +12:00
Masayuki Nakano
41dbfd716c Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug
Native IME handler may want to query content relative to start of selection (or composition if there is it). Additionally, in e10s mode, insertion point in actual content may be different from the cache in parent.  Therefore, in some cases, it does make sense to query content with offset relative to start of selection or composition.

This patch implements it simply and only in non-e10s mode.

Additionally, this fixes a bug of nsQueryContentEventResult::GetOffset() which hasn't been accepted its calls even if the event message is valid (eQueryTextContent, eQueryTextRect and eQueryCaretRect).

MozReview-Commit-ID: 34I7vyTUAgO
2016-06-16 14:10:49 +09:00
Masayuki Nakano
dcb055c942 Bug 1275914 part.7 Add automated tests to query IME selections r=smaug
MozReview-Commit-ID: GwBU6Evcpfa
2016-06-20 16:31:29 +09:00
Xidorn Quan
48dd9c4779 Bug 1270753 part 2 - Clean up corresponding old window size when the DOMWindowUtils is destroyed. r=smaug
MozReview-Commit-ID: 3l3jeP4NWZ3
2016-06-21 08:19:50 +10:00
Xidorn Quan
afe2954b91 Bug 1270753 part 1 - Use the weak reference itself as an index for OldWindowSize item. r=smaug
MozReview-Commit-ID: 3X7O5pAuZ3N
2016-06-21 08:19:50 +10:00
Jan Varga
cfd34f9856 Bug 1195930 - Part 5: Core changes, support for storage directory versioning, new metadata v2 files, origin suffix added to API methods, origin attributes used across the implementation, more upgrade tests; r=asuth 2016-06-05 21:42:25 +02:00
Kartikaya Gupta
ef9f686977 Bug 1270019 - Add a SetRestoreResolution API for fennec's SessionRestore to use. r=rbarker
MozReview-Commit-ID: 7WqmgAkFItQ
2016-05-17 14:50:08 -04:00
Randall Barker
f4ff637825 Bug 1267928 - Part 1, Do not auto zoom on focused content that has an empty bounds r=botond 2016-05-13 13:25:51 -07:00
Masayuki Nakano
94e8c148d6 Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
MozReview-Commit-ID: 5tC8UqcfLek
2016-05-10 23:29:14 +09:00
Masayuki Nakano
01372509b5 Bug 1259661 part.8 Rename WidgetMouseEvent::ignoreRootScrollFrame to WidgetMouseEvent::mIgnoreRootScrollFrame r=smaug
MozReview-Commit-ID: 98G9UMv4qqj
2016-05-10 21:15:05 +09:00
Xidorn Quan
90f7282451 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
39f3eff072 Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Xidorn Quan
38e4a7340d Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 13:36:25 +10:00
Tetsuharu OHZEKI
d7b27827f8 Bug 1259667 - part5: rename WidgetSimpleGestureEvent.delta to mDelta. r=masayuki
MozReview-Commit-ID: D33mzFY8Vrn
2016-05-10 04:16:55 +09:00
Tetsuharu OHZEKI
7ffbe5c140 Bug 1259667 - part4: rename WidgetSimpleGestureEvent.clickCount to mClickCount. r=masayuki
MozReview-Commit-ID: 8YaPzAGsmYd
2016-05-10 04:16:54 +09:00
Tetsuharu OHZEKI
e84f941a91 Bug 1259667 - part3: rename WidgetSimpleGestureEvent.direction to mDirection. r=masayuki
MozReview-Commit-ID: GYGNNTsZNWQ
2016-05-10 04:16:54 +09:00
L. David Baron
dddcc1ccd1 Bug 1271015 patch 1 - Add mechanism for testing the number of elements restyled. r=heycam
This is useful for writing tests that test particular optimizations,
such as that a particular operation doesn't cause restyles.  It sits
next to similar counters for frames constructed and frames reflowed.

I also snuck in a preference for the less-expensive mPresContext over
the more expensive mFrame->PresContext() (which dereferences multiple
pointers).

(Originally written for work I planned to be part of bug 1189598.)

MozReview-Commit-ID: 8PN7nwLJG9r
2016-05-09 11:26:35 -07:00
Kyle Huey
b972c94d0f Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Alastor Wu
14ade11bab Bug 1242874 - part2 : window's suspend attribute. r=baku, r=ehsan
MozReview-Commit-ID: 2GZMjsaQWHC
2016-05-03 09:51:22 +08:00
Xidorn Quan
e1ca4f28cd Bug 1267568 part 5 - Replace the old FullscreenChangePrepare class with a single function. r=smaug
MozReview-Commit-ID: Lk8q6OyjB7V
2016-05-03 17:58:57 +10:00
Xidorn Quan
1a169dea39 Bug 1267568 part 4 - Replace InFullscreenChange flag of PresShell with IsResizeSuppressed flag in RefreshDriver. r=smaug
MozReview-Commit-ID: FB3vGXwKZ9O
2016-05-03 17:58:57 +10:00
Xidorn Quan
c99a67f232 Bug 1267530 part 1 - Add some profiler marker for fullscreen transition. r=smaug,BenWa
MozReview-Commit-ID: CeFdBO9uz8C
2016-05-03 17:58:57 +10:00
Carsten "Tomcat" Book
aadd508ffe Backed out changeset 85ce8cb0639a (bug 1268313) 2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Carsten "Tomcat" Book
a146077edc Backed out changeset 50896498013c (bug 1242874) 2016-04-28 13:59:06 +02:00
Alastor Wu
786552d529 Bug 1242874 - part2 : window's suspend attribute. r=ehsan, r=baku
MozReview-Commit-ID: Jw3E8Jdb66J
2016-04-28 00:21:27 +08:00
Ting-Yu Lin
ca8be97f59 Bug 1267209 - Convert nsLayoutUtils::PaintFrame flags to be an enum class. r=jfkthame
MozReview-Commit-ID: 4IFOlP9oVHl
2016-04-27 12:01:54 +08:00
CJKu
dbb4e7a74a Bug 1265715 - Part 2. Add nsDisplayListBuilderMode parameter into nsLayoutUtils::PaintFrame; r=jfkthame
MozReview-Commit-ID: 1jkJOOH8KCi
2016-04-26 00:26:40 +08:00
Carsten "Tomcat" Book
35733ed1f1 merge mozilla-inbound to mozilla-central a=merge 2016-04-20 11:50:29 +02:00
Mantaroh Yoshinaga
db1fb5e7d7 Bug 1259285 - Part1 - Move CSS/Web Animations-specific visibility handling. r=birtles
MozReview-Commit-ID: 5ZYUhvI1cqV
2016-04-20 09:05:29 +09:00
Masayuki Nakano
99eab530eb Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug
MozReview-Commit-ID: ESWM5ZyBpSR
2016-04-18 23:09:02 +09:00
Alastor Wu
5ced857f90 Bug 1249579 - part2 : audio competing suspend/resume methods. r=snorp, baku.
MozReview-Commit-ID: EjNvKELCiAy
2016-04-18 18:48:41 +08:00
Masayuki Nakano
35775b20e1 Bug 1259657 Rename WidgetGUIEvent::widget to WidgetGUIEvent::mWidget r=smaug
MozReview-Commit-ID: 167PQWJDEHW
2016-04-14 17:03:14 +09:00
Kartikaya Gupta
ebc6b999e7 Bug 1250505 - Convert SynthesizeNativeTouchPoint and SynthesizeNativeTouchTap to take a LayoutDeviceIntPoint instead of a ScreenPoint. r=njn
MozReview-Commit-ID: EybGq9b1B8Z
2016-04-15 06:39:36 -04:00
Mike Conley
d6ec983152 Bug 1264409 - Make last transaction ID available via nsIDOMWindowUtils, and pass transaction ID through MozAfterPaint. r=mattwoodrow,mrbkap
MozReview-Commit-ID: 7wCYif8F6ws
2016-04-13 16:59:15 -04:00
Kartikaya Gupta
5aaa975a6f Bug 1257641 - Allow enabling/disabling of displayport suppression for tests. r=botond
MozReview-Commit-ID: 7p2RIyPyzkH
2016-04-13 10:21:13 -04:00
Jonathan Watt
947f9705a7 Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku 2016-03-31 12:46:32 +01:00