Markus Stange
ebb461c874
Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
...
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.
Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.
This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)
There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.
The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.
MozReview-Commit-ID: 3LFV7Lio4tG
--HG--
extra : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Markus Stange
840bf3bfdb
Bug 1292395 - Tweak this assertion message. r=mattwoodrow
...
MozReview-Commit-ID: AARqrxI1Qwn
--HG--
extra : rebase_source : 0524667582af2a4a972ecf51ad912eef8a722ddc
2016-08-04 22:00:04 -04:00
Jeff Gilbert
b25f577275
Bug 1290634 - Use idealUnpack with CopyTexImage, and always respec now that ZeroTextureData doesn't support respec. - r=mtseng
...
MozReview-Commit-ID: HYzTfzLxF3X
2016-08-04 20:04:56 -07:00
Jeff Gilbert
bbed19189c
Bug 1290634 - Remove unnecessary respecifyTexture arg from ZeroTextureData. - r=mtseng
...
MozReview-Commit-ID: 52VirsA4eCQ
2016-08-04 20:04:53 -07:00
Sotaro Ikeda
0ca92913eb
Bug 1275441 - Use libyuv for scaling YUV color conversion r=jrmuizel
2016-08-04 19:30:01 -07:00
Seth Fowler
2b78b14657
Bug 1291033 (Part 2) - Ensure atomicity of ISurfaceProvider locking changes. r=dholbert
2016-08-04 18:47:43 -07:00
Seth Fowler
df8d9955b6
Bug 1291033 (Part 1) - Ensure atomicity of ISurfaceProvider availability changes. r=dholbert
2016-08-04 18:47:41 -07:00
Randell Jesup
fd8a8c3c74
Bug 1290075: Always Init() the VoiceEngine when enumerating audio inputs r=jib
2016-08-04 21:24:05 -04:00
Heiher
94b1da6b55
Bug 1292040 - Baldr: MIPS: Fix load HeapReg and GlobalReg from TlsData. r=luke
...
---
js/src/asmjs/WasmStubs.cpp | 12 ++++++++----
js/src/jit/mips64/MacroAssembler-mips64.h | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
2016-08-05 09:04:02 +08:00
Tobias Schneider
5c1c1c37f3
Bug 1290749 - Skip plugin content plugin of no URI specified. r=francois
2016-07-26 10:59:41 -07:00
Jonathan Watt
9f767c7d64
Bug 1058040, part 5 - Move the code from nsSVGUtils::SetupContextPaint and nsSVGUtils::GetContextPaint into SVGContextPaint. r=dholbert
...
--HG--
extra : rebase_source : 00c5ef270ff9591a16727a2e35405177f063c8e6
2016-07-25 17:34:18 +01:00
Jonathan Watt
17c835c445
Bug 1058040, part 4 - Rename SVGTextContextPaint to SVGContextPaintImpl. r=dholbert
...
--HG--
extra : rebase_source : aeb52029a8060fcedaefd69b1d0120d22a2c6741
2016-07-25 16:04:20 +01:00
Jonathan Watt
a6f638eeec
Bug 1058040, part 3 - Move SVGTextContextPaint into SVGContextPaint.h/.cpp. r=dholbert
...
--HG--
extra : rebase_source : 716c7586dcf6cd7c55df2cd6d0df40287a1b1374
2016-07-25 13:27:00 +01:00
Matt Woodrow
f323872778
Bug 1292032 - Clean up VideoData static constructor methods. r=jya
...
--HG--
extra : rebase_source : e025c9a15ad00e970f9027f72c78b5d6effbc301
2016-08-04 15:31:52 +12:00
Matt Woodrow
af772b40e6
Bug 1292288 - Don't hold both the effects lock and the GL lock at the same time in PrepareWindowEffects to avoid deadlock. r=mstange
...
--HG--
extra : rebase_source : f80ae0cfca630b7a414eea8921047996a9122104
2016-08-05 11:33:06 +12:00
Matt Woodrow
bf8a0ba830
Bug 1287122 - Make sure we build nsDisplayOpacity if we need it, since useOpacity already takes svg effects into account. r=dbaron
...
--HG--
extra : rebase_source : 7a9952fe0ed3a579083bd324002d44ab735d0735
2016-08-05 10:37:46 +12:00
Kris Maglione
c9c66a60a7
Bug 1291199: Retry subprocess perf tests on failure. r=aswan
...
MozReview-Commit-ID: 9PDT9tcYFqf
--HG--
extra : rebase_source : 6c69e13162a5849cb7cd0205ed94da322c158f38
2016-08-02 15:37:34 -07:00
Kris Maglione
0dba25a0da
Bug 1288979: Always convert badge background color to a ColorTuple. r=aswan
...
MozReview-Commit-ID: CWmaa9wwQLD
--HG--
extra : rebase_source : aa8eaa19bad2b825c818abd29172f75fa84368dd
2016-08-04 14:50:52 -07:00
James Graham
641a874bbc
Bug 1291312 - Update web-platform-tests expected data to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
...
MozReview-Commit-ID: CtDFngdZ7vy
2016-08-04 23:34:07 +01:00
James Graham
ee29b04f1c
Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
...
MozReview-Commit-ID: 2Z26QRXPNuK
--HG--
rename : testing/web-platform/tests/encrypted-media/Google/test-encrypted-different-av-keys.webm => testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted-different-av-keys.webm
rename : testing/web-platform/tests/encrypted-media/Google/test-encrypted.webm => testing/web-platform/tests/encrypted-media/Google/webm/test-encrypted.webm
rename : testing/web-platform/tests/web-animations/timing-model/timelines/default-document-timeline.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/document-timeline.html
rename : testing/web-platform/tests/web-animations/interfaces/DocumentTimeline/idlharness.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/idlharness.html
2016-08-04 23:34:05 +01:00
Michael Layzell
2513a13f51
Bug 1291741 - Relax setTimeout throttling in background tabs when an AudioContext is present, rather than only when audio is playing, r=bkelly
2016-08-04 16:53:58 -04:00
Kris Maglione
9e29edc5a4
Bug 1268184: Split browser_ext_runtime_openOptionsPage into two files. r=trivial
...
MozReview-Commit-ID: I9UbxGmOjMg
--HG--
rename : browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js => browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js
extra : rebase_source : 2347ab5594b2a9bb60c6ec0a041bd7b7822e8f21
2016-08-04 13:27:31 -07:00
Eugen Sawin
92fabd41a0
Bug 1291543 - [1.1] Accept partial information from VBR headers. r=jya
2016-08-04 22:20:26 +02:00
Kris Maglione
60ab72068a
Bug 1290598: Move slower native messaging tests to a separate unit. r=aswan
...
MozReview-Commit-ID: 2kXbNae1bmR
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_native_messaging.js => toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_unresponsive.js
extra : rebase_source : 78b52ed4262ce8b2d262de7578519d9725ab14ec
extra : source : 577158be08e8c1211ffa1198a21e3c059f98f477
2016-07-29 14:35:04 -07:00
Kris Maglione
8fd3690336
Bug 1290598: Migrate native messaging tests to xpcshell. r=aswan
...
MozReview-Commit-ID: 4Uz73l8qGVE
--HG--
extra : rebase_source : f24e9cc3bd9b235a429d5bbe8e6cad509495f24f
extra : source : 486639a0f3ca05afaf0250b514c3641805f1f497
2016-08-02 17:39:51 -07:00
Kris Maglione
84ef185a5c
Bug 1290598: Manage and terminate Windows subprocess trees as a single job object. r=mhowell
...
MozReview-Commit-ID: 80K5YyDWmn3
--HG--
extra : rebase_source : dd42f8c22ac92df3b7b06713e2de015bcf7c8782
extra : source : 3242411d3294521508f34d1b5beee52b1ae986ea
2016-08-03 09:39:19 -07:00
Kris Maglione
9d0ae0450e
Bug 1290598: Refactor native messaging test setup code into separate head file. r=aswan
...
MozReview-Commit-ID: BN9oeXt79eG
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_native_messaging.js => toolkit/components/extensions/test/xpcshell/test_ext_native_messaging_perf.js
extra : rebase_source : a0b0a1b5ca2caa772e216d059515ace89e582e1e
extra : source : 3f6f0dc1663cb5cd175f8809c3d3312df1535823
2016-07-29 14:42:03 -07:00
David Anderson
cf5f37f7c3
Add BrowserTabsRemoteAutostart to gfxVars. (bug 1288259 part 6, r=jrmuizel)
...
--HG--
extra : rebase_source : 4e9dce46b658ecf7a13afaa2e9bb1ba35714c38f
2016-08-04 11:33:44 -07:00
David Anderson
27679a9d30
Move UseXRender from gfxPlatformGtk to gfxVars. (bug 1288259 part 5, r=jrmuizel)
...
--HG--
extra : rebase_source : e2f8337fe9063ba4bd316c5ae4cb6b475f70d36f
2016-08-04 11:33:44 -07:00
David Anderson
bf733b4fbb
Add the 2D content backend to gfxVars. (bug 1288259 part 4, r=jrmuizel)
...
--HG--
extra : rebase_source : e805a138c71963f4f80ec218d9be05fde6544f02
2016-08-04 11:33:44 -07:00
David Anderson
456bcd0248
Move TileSize from gfxPlatform to gfxVars. (bug 1288259 part 3, r=jrmuizel)
...
--HG--
extra : rebase_source : 5a48bb72b10c8d9c1c5c96b8d2076a6d33cabc24
2016-08-04 11:33:43 -07:00
David Anderson
9e49bc37bb
Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm)
...
--HG--
extra : rebase_source : cbac742f7165a2fbdec3e4d1179c9ed49324579f
2016-08-04 11:33:42 -07:00
David Anderson
7bdb79f9ac
Generate template-friendly value readers for IPDL unions. (bug 1288259 part 1, r?=billm)
...
--HG--
extra : rebase_source : 7376052d8a50427ab64205246463917fbd0e0d61
2016-08-04 11:13:38 -07:00
Eric Faust
8ec22b0368
Bug 1199296 - Fix up mochitest(cl) failures r=mconley
2016-08-04 11:22:39 -07:00
Nathan Froyd
c5f4456eac
Bug 1290973 - update Mac builds to use Rust 1.10; r=mshal
2016-08-04 22:12:34 -04:00
Luke Wagner
3adfcd58c9
Bug 1284155 - Baldr: make direct calls for wasm->wasm imports (r=bbouvier)
...
MozReview-Commit-ID: 4p3SZiuoAq0
2016-08-04 12:50:41 -05:00
Luke Wagner
0a6927911a
Bug 1288944 - Baldr: mark all calls as preserving the TLS reg (r=jolesen)
...
MozReview-Commit-ID: 3WcKCPGRaFv
--HG--
extra : rebase_source : 96e8382d137c1a65570d97e0ba4401c6c1dfb45c
2016-08-04 11:44:35 -05:00
Luke Wagner
c874b985e3
Bug 1288944 - Baldr: preserve TLS and pinned regs at call_import (r=jolesen)
...
MozReview-Commit-ID: HnxKRxAXmlg
--HG--
extra : rebase_source : 9157c19b2c6ea64a2f9931daac263f86d05d9e07
2016-08-04 11:43:48 -05:00
Luke Wagner
dabbd6a76c
Bug 1288944 - Baldr: rename CallArgs to CallCompileState and FuncImportExit to FuncImportTls (r=bbouvier)
...
MozReview-Commit-ID: KeAIle47zpV
--HG--
extra : rebase_source : f2fb55e83e4527bef9714f2af10eb8c9210958b4
2016-08-04 11:43:33 -05:00
Luke Wagner
6127abeb31
Bug 1288944 - Baldr: optimize JIT exit (r=bbouvier)
...
MozReview-Commit-ID: Dm8TUpWB55H
--HG--
extra : rebase_source : 4288fa4939c426a469b20258893bc8e50e4bbe21
2016-08-04 11:28:20 -05:00
Luke Wagner
b9fee3a322
Bug 1292190 - Baldr: fix include dependencies (r=bbouvier)
...
MozReview-Commit-ID: BAte5sedqaS
--HG--
extra : rebase_source : 182416a9af4551fd2caca589f2e154be1ec288fc
2016-08-04 11:27:24 -05:00
Nathan Froyd
3896afd101
Backout 1fcb956172cd (bug 1291229) for Android build bustage on a CLOSED TREE
2016-08-04 20:42:36 -04:00
Terrence Cole
e57d650fcf
Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz
2016-08-03 16:12:51 -07:00
Kim Moir
6a6b71393e
Bug 1291858 - update esr merge day config so preference to prohibit signed installing signed addons is not enabled on esr r=callek DONTBUILD
2016-08-04 11:22:18 -04:00
Luke Wagner
bde9632738
Bug 1291757 - Baldr: fold loading of import into call op (r=sunfish)
...
MozReview-Commit-ID: FsJ1YRXQRpF
--HG--
extra : rebase_source : 6ffcd3a48275cfd8258e763c0f973ad959186821
2016-08-03 18:37:26 -05:00
Luke Wagner
aaacb6c169
Bug 1291757 - Baldr: rename AsmJSCall to WasmCall (r=jolesen)
...
MozReview-Commit-ID: AVh5ypBH89Q
--HG--
extra : rebase_source : 2028cd59b323c17e7f865832e5f24c8aa31c4d39
2016-08-03 18:37:21 -05:00
Luke Wagner
301649a627
Bug 1291757 - Baldr: note that i64 calls also preserve WasmTlsReg (r=jolesen)
...
MozReview-Commit-ID: 1r6rZkCzDCt
--HG--
extra : rebase_source : 4940f1f9a4878c89446d4ac9070daf68f59269ba
2016-08-03 18:37:15 -05:00
Eric Faust
b5d42cb013
Bug 1199296 - Don't allow method definitions to be legacy generators. (r=shu, r=evilpie, r=jaws)
2016-07-11 14:45:00 -07:00
Alexander Surkov
f002f15624
Bug 1246447 - crash in mozilla::a11y::DocAccessible::ARIAAttributeChanged, r=yzen
2016-08-04 10:49:21 -04:00
Miko Mynttinen
9ea7cd8eb6
Bug 1291490 - File gfx/qcms/transform_util.h is missing a header. r=bgirard
...
Include the missing math.h header.
MozReview-Commit-ID: BozHU59BGkF
--HG--
extra : transplant_source : %02%95%3F-k%FF%BA_%C7%1CU%CBU%29c%D7%82%9F%04J
2016-08-02 15:41:56 -07:00