William Lachance
54d781abf7
Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher
...
It turns out that relying on the user to check return codes for every
command was non-intuitive and resulted in many hard to trace bugs.
Now most functinos just return "None", and raise a DMError when there's an
exception. The exception to this are functions like dirExists, which now return
booleans, and throw exceptions on error. This is a fairly major refactor,
and also involved the following internal changes:
* Removed FileError and AgentError exceptions, replaced with DMError
(having to manage three different types of exceptions was confusing,
all the more so when we're raising them)
* Docstrings updated to remove references to return values where no
longer relevant
* pushFile no longer will create a directory to accomodate the file
if it doesn't exist (this makes it consistent with devicemanagerADB)
* dmSUT we validate the file, but assume that we get something back
from the agent, instead of falling back to manual validation in the
case that we didn't
* isDir and dirExists had the same intention, but different
implementations for dmSUT. Replaced the dmSUT impl of getDirectory
with that of isDir's (which was much simpler). Removed
isDir from devicemanager.py, since it wasn't used externally
* killProcess modified to check for process existence before running
(since the actual internal kill command will throw an exception
if the process doesn't exist)
In addition to all this, more unit tests have been added to test these
changes for devicemanagerSUT.
2012-10-04 11:28:07 -04:00
Robert O'Callahan
3ce34207a6
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
Ed Morley
ac6819f00a
Backout 739f8aac68a6 (bug 797708) for Win7 reftest-no-accel orange on a CLOSED TREE
2012-10-04 13:15:13 +01:00
Ed Morley
2ac2a2ad99
Backout a5c50066ecbb (bug 787947), ee9f796b8416 (bug 794709) for crashtest/reftest assertions
2012-10-04 13:15:00 +01:00
Robert O'Callahan
1d404245af
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
Robert O'Callahan
7c893c88ec
Bug 794709. Don't bother trying to compute an intelligent dirty rect when building display lists for nsSimplePageSequence and nsPageContentFrame children; it's nontrivial due to the transforms they introduce, and it doesn't matter anyway. r=mattwoodrow
2012-10-04 23:02:17 +13:00
Cameron McCormack
2a03aff8a3
Bug 797708 - Test that gradients are positioned correctly on SVG text with a filter applied. r=longsonr
2012-10-04 18:28:32 +10:00
Cameron McCormack
6400a005cf
Bug 797691 - Tweak stroke-dasharray-and-text-01.svg to avoid slight rendering differences on Android. r=longsonr
2012-10-04 17:39:09 +10:00
Daniel Holbert
45b0054b34
Bug 666041 / Bug 797022 followup: update "fails-if(Android)" annotations for android fuzziness in flexbox reftests, to address unexpected passes/fails.
2012-10-03 23:02:15 -07:00
Yu-Sian (Thomasy) Liu
49b91a54ac
Bug 594935: Add calc to parser, do calc in PaintGradient and add stop point to HasCalc(). r=bz
2012-10-03 22:31:56 -07:00
Chris Jones
ca55cb45de
Bug 790505, part 4: If we're just updating the transform of a prerendered layer, then schedule an empty transaction to skip unnecessary display-list overhead. r=mattwoodrow,roc
2012-10-02 22:55:52 -07:00
Chris Jones
cac4904e11
Bug 790505, part 2: Add a GetLayerTransformForFrame() helper for computing a frame's layer transform outside a proper transaction, and mark frames that have been fully prerendered. r=roc
2012-10-02 22:55:50 -07:00
Chris Jones
c78629f9f8
Bug 790505, part 1: Have prerendered transform frames pretend that they don't have an opaque region so that we can move them around more efficiently. r=mattwoodrow
2012-10-02 22:55:50 -07:00
Daniel Holbert
691b3b77ff
Bug 796212 followup: add #ifdef guard around static variables that are only used in #ifdef'd code, to fix build warning in non-MOZ_FLEXBOX-enabled builds.
2012-10-03 19:52:21 -07:00
Ryan VanderMeulen
84b001d90c
Merge m-c to inbound.
2012-10-03 22:24:20 -04:00
Ryan VanderMeulen
c0d8585b0b
Backout 0cd12dcf7f8f, 5ff5e81e6de6, and 0ae09da96f63 (bug 740580) due to bug 797391.
2012-10-03 22:13:14 -04:00
Daniel Holbert
227692a663
Bug 797022: Turn on MOZ_FLEXBOX build flag to enable CSS3 flexbox in builds. r=bz
2012-10-03 19:08:43 -07:00
Ryan VanderMeulen
325089208a
Merge m-c to inbound.
2012-10-03 18:19:17 -04:00
Cameron McCormack
3fcef2abc9
Bug 655877 - Part 23b: Add UA style sheet rules to map xml:space='preserve' to white-space:-moz-pre-discard-newlines on SVG text elements. r=jwatt
2012-10-04 07:32:35 +10:00
Jeff Muizelaar
c500015d76
Bug 794884. Make SupportImageWithMimeType return a bool. r=joe.
...
This cleans things up quite a bit.
---
content/base/src/nsObjectLoadingContent.cpp | 4 +---
docshell/base/nsWebNavigationInfo.cpp | 4 +---
image/src/imgLoader.cpp | 7 ++-----
image/src/imgLoader.h | 2 +-
layout/build/nsContentDLF.cpp | 4 +---
5 files changed, 6 insertions(+), 15 deletions(-)
2012-10-03 16:17:47 -04:00
Jeff Muizelaar
1993038640
Bug 794884. Make SupportImageWithMimeType a static function. r=joe,r=bz
...
This removes supportImageWithMimeType from the idl and makes all the
callers call the static function directly. To do this we also need
to export imgLoader.h and imgRequest.h.
---
content/base/src/nsObjectLoadingContent.cpp | 9 ++-------
docshell/base/nsWebNavigationInfo.cpp | 8 +++++---
docshell/base/nsWebNavigationInfo.h | 5 -----
image/public/imgILoader.idl | 9 +--------
image/src/Makefile.in | 4 ++++
image/src/imgLoader.cpp | 2 +-
image/src/imgLoader.h | 1 +
layout/build/nsContentDLF.cpp | 5 ++---
8 files changed, 16 insertions(+), 27 deletions(-)
2012-10-03 16:17:40 -04:00
Zack Weinberg
baa7b0e11d
Merge revert of diagnostic round 2 for bug 536603. DONTBUILD
2012-10-03 09:01:01 -04:00
Daniel Holbert
7cc0b8d488
Bug 797601 part 3: Add a reftest to verify that the flexbox about:config pref works, and annotate the other flexbox reftests to turn on the pref for them. r=bz
2012-10-03 18:45:06 -07:00
Daniel Holbert
30e8481488
Bug 797601 part 2: Tweak flexbox mochitests to run in an iframe and have their parent-document set the pref before loading them. r=bz
...
--HG--
rename : layout/style/test/test_flexbox_align_self_auto.html => layout/style/test/file_flexbox_align_self_auto.html
rename : layout/style/test/test_flexbox_flex_grow_and_shrink.html => layout/style/test/file_flexbox_flex_grow_and_shrink.html
rename : layout/style/test/test_flexbox_flex_shorthand.html => layout/style/test/file_flexbox_flex_shorthand.html
rename : layout/style/test/test_flexbox_layout.html => layout/style/test/file_flexbox_layout.html
2012-10-03 18:44:15 -07:00
Daniel Holbert
3443e1f06d
Bug 797601 part 1: Add flexbox properties to mochitest files property_database.js and test_transitions_per_property.html IFF pref is enabled. r=bz
2012-10-03 18:44:11 -07:00
Ed Morley
83ffff1908
Backout ffcdd896a1fa (bug 787947) for reftest failures
2012-10-03 13:43:19 +01:00
Nathan Froyd
ec0cae57b0
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
...
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
2012-10-01 20:38:21 -04:00
Robert O'Callahan
5e3c2f27cf
Bug 787947. Avoid scaling by 0 when snapping gradient tiles. r=jrmuizel
2012-09-25 15:25:48 +12:00
Seth Fowler
9da16cb6df
Bug 786108 - Cache UTF-16 version of URI to prevent repeated conversions in the CSS scanner, and free the cache after a short time. r=bz
2012-10-03 15:28:57 -07:00
Chris Jones
17867c12a8
Back out bug 790505 for leaking
2012-10-03 00:21:08 -07:00
Chris Jones
4f1e40ca75
Bug 790505, part 4: If we're just updating the transform of a prerendered layer, then schedule an empty transaction to skip unnecessary display-list overhead. r=roc
2012-10-02 22:55:52 -07:00
Chris Jones
7180e78526
Bug 790505, part 3: Add a GetLayerTransformForFrame() helper for computing a frame's layer transform outside a proper transaction, and mark frames that have been fully prerendered. r=roc
2012-10-02 22:55:50 -07:00
Chris Jones
dd55277c3e
Bug 790505, part 1: Have prerendered transform frames pretend that they don't have an opaque region so that we can move them around more efficiently. r=mattwoodrow
2012-10-02 22:55:50 -07:00
Daniel Holbert
b3c5efa43b
Bug 796212 part 2: Make pref "layout.css.flexbox.enabled" control whether -moz-flex and -moz-inline-flex are recognized as valid values for "display" property. r=bz
2012-10-02 22:04:50 -07:00
Daniel Holbert
6ed459f16a
Bug 796212 part 1: Guard CSS3 flexbox properties behind about:config pref "layout.css.flexbox.enabled". r=bz
2012-10-02 22:04:50 -07:00
Ehsan Akhgari
bdb54896ea
Merge backout
2012-10-02 23:16:47 -04:00
Ehsan Akhgari
bdd40e5c18
Backout changeset 9e38c5518605, fc59bd8d49ba, d0ba1abde985, and acf91f25f228 (bugs 796119, 796279, and 797106) because of broken reftests on 64-bit platforms
2012-10-02 23:16:36 -04:00
Brendan Dahl
9cd9401f71
Bug 789507 - Add watchdog for mozPrintCallbacks. r=smaug
2012-10-02 10:42:21 -07:00
Anthony Jones
65dd0aff19
Bug 740580 - Add Azure support to nsCanvasFrame. r=roc
2012-10-02 22:09:12 -04:00
Ryan VanderMeulen
21e63fcc16
Merge m-c to inbound.
2012-10-02 22:09:07 -04:00
Ryan VanderMeulen
d96bd277af
Merge the last PGO-green inbound changeset to m-c.
2012-10-02 21:20:48 -04:00
Matt Woodrow
a535ae1484
Bug 796183 - Always invalidate the widget when doing empty transactions with a LayerManager. r=roc
2012-10-03 13:04:26 +13:00
Matt Woodrow
039c299dc9
Bug 795899 - Remove merged frame handling in BuildContainerLayerFor. r=roc
2012-10-03 13:03:34 +13:00
Robert O'Callahan
87f9c99642
Bug 794579. Remove view from existing parent before setting it as the root view. r=tnikkel
2012-10-02 16:25:47 -05:00
Ed Morley
fdd9d87cbd
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-10-02 16:53:37 +01:00
Zack Weinberg
2140205477
Another round of diagnostics for bug 536603.
2012-10-02 09:50:19 -04:00
Zack Weinberg
5537312b3d
Revert previous set of diagnostics for bug 536603.
2012-10-02 09:14:58 -04:00
Gervase Markham
0958145486
Bug 759095 - remove stray references to tri-license.
2012-10-02 12:52:06 +01:00
Ed Morley
3d3703a920
Merge mozilla-central to mozilla-inbound
2012-10-02 11:19:03 +01:00
Nathan Froyd
45f0148efe
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
...
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
2012-10-01 20:38:21 -04:00