Commit Graph

13054 Commits

Author SHA1 Message Date
L. David Baron
fda3a68818 Save and expose on nsFontInflationData the width of the nearest common ancestor of the inflated descendants. (Bug 747720, patch 1) r=roc
This width will be used in patch 3.
2012-05-20 22:18:27 -07:00
Phil Ringnalda
9636fcfcd2 Bug 688128 - Don't run test_flush_on_paint.html on OS X, where it mostly fails, r=roc 2012-05-18 22:22:55 -07:00
Robert Longson
5fb04eb43e Bug 756405 - non-scaling-stroke-02.svg fails on Android. r=jwatt 2012-05-20 10:18:33 +01:00
Adam Dane [:hobophobe]
d67d1141cb Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe 2012-05-19 14:32:37 -05:00
Ryan VanderMeulen
dc10c85eb0 Backout bug 733553 due to mochitest orange. 2012-05-19 12:10:26 -04:00
Adam Dane [:hobophobe]
9c321e4de0 Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe 2012-05-08 21:35:32 -05:00
Jonathan Watt
d6052b5e5b Bug 756462 - Stop unnecessary propagating COORD_CONTEXT_CHANGED notifications to descendants of nsSVGInnerSVGFrame. r=longsonr. 2012-05-19 14:50:07 +01:00
Phil Ringnalda
698354bced Bug 668849 - Double the workaround timeout to wait longer for spellcheck to finish 2012-05-18 22:27:38 -07:00
Benjamin Smedberg
2187798a40 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Jeff Muizelaar
9731bb1eff Bug 754985. Draw shadows in device space when using a uniform scale. r=roc
--HG--
extra : rebase_source : 9d5bf7c1e6a2373718724ace6da1229b2213c1b6
2012-05-16 16:45:25 -04:00
Andrii Zui
3c8c8da263 Bug 745535 - Dynamic reftests for bug 745535. r=karlt 2012-05-18 13:35:43 -04:00
Andrii Zui
db9255f7c8 Bug 745535 - Implement AttributeChanged on nsMathMLmactionFrame. r=karlt 2012-05-18 13:35:43 -04:00
Jonathan Kew
28e4c37bd8 bug 752459 - reftest for word-wrap cluster support. r=smontagu 2012-05-18 16:51:40 +01:00
Jonathan Kew
80854dd855 bug 752455 - reftest for word-break, clusters, text-transform. r=smontagu 2012-05-18 16:51:39 +01:00
David Zbarsky
e93bdbfeeb Bug 756229 - Fix some layout warnings. r=roc 2012-05-18 11:42:39 -04:00
L. David Baron
c8229a6d7f Don't use Moz prefix on internal function names in nsComputedDOMStyle for recommendation-track properties. (Bug 756219, patch 2) r=bzbarsky
This avoids using prefixes in internal code, in line with users of
nsCSSPropList.h, where we only make the CSS_PROP_DOMPROP_PREFIXED()
macro expand to use prefixes when it's needed for something that's
exposed.
2012-05-18 08:51:57 -04:00
L. David Baron
7bb473f167 Remove unused functions from nsComputedDOMStyle. (Bug 756219, patch 1) r=bzbarsky
Remove unused DoGet* functions from nsComputedDOMStyle which are never
called because the shorthand properties that they're for aren't listed
in the value returned from GetQueryablePropertyMap (which is as it
should be).
2012-05-18 08:51:55 -04:00
Ms2ger
4f96b6a8eb Merge. 2012-05-18 13:32:47 +02:00
Ms2ger
faa0b8ae7d Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Jonathan Watt
e868f902dd backout 0f4a08fb2e8e to see if it caused random orange (Bug 756122 - Clean up nsSVGUtils::PaintFrameWithEffects a little). 2012-05-18 12:21:24 +01:00
Robert Longson
caec6899b1 Bug 528332 - make tests random on Android 2012-05-18 11:29:10 +01:00
Jonathan Watt
339d439166 Bug 756122 - Clean up nsSVGUtils::PaintFrameWithEffects a little. r=longsonr. 2012-05-18 10:05:09 +01:00
Robert Longson
b2c0e30df6 Bug 528332 - Implement non-scaling-stroke vector-effect. Part 2 - SVG changes r=dholbert 2012-05-18 09:34:25 +01:00
Robert Longson
165f6890cf Bug 528332 - Implement non-scaling-stroke vector-effect. Part 1 - style system changes r=dbaron 2012-05-18 09:33:40 +01:00
Ms2ger
3b577015ad Bug 755200 - Simplify SetSelectionAroundHeadChildren; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
79e49f2965 Bug 750053 - Part a: Add nsISelection::Collapsed(); r=smaug 2012-05-18 10:29:39 +02:00
Phil Ringnalda
f9ed4165e8 Bug 753877 - drop a few minimum assertion counts to reflect reality 2012-05-17 22:00:04 -07:00
Simon Montagu
8e7ad6721b Start painting text shadow of selection from the left edge in RTL text. Bug 755994, r=roc 2012-05-17 13:34:06 +03:00
Simon Montagu
50871ebd12 Tests for bug 755994, r=roc 2012-05-17 13:32:45 +03:00
Chris Lord
f6c9f99f1a Bug 753742 - Force layer build on scroll frames with a displayport. r=tn
Force building layers for all scroll frames that have a displayport set.
This fixes gfx/layers/ipc/CompositorParent mistakenly using FrameMetrics from
incorrect frames, due to the root scroll frame not having a layer.
2012-05-17 19:19:07 +01:00
Ryan VanderMeulen
77b638fcd1 No Bug - Re-alphabetize mathml crashtest list. DONTBUILD 2012-05-17 09:46:16 -04:00
Frédéric Wang
766d42ee44 Bug 716349 - Crashtest. r=karlt 2012-05-17 09:38:32 -04:00
Frédéric Wang
9af6e1413a Bug 716349 - Prevent invalid metrics for mspace. r=karlt 2012-05-17 09:37:55 -04:00
Robert Longson
a067109b15 Bug 512525 - Implement SVG Fragment Identifier parsing and animation hyperlinking - Part 2 main implementation. r=jwatt 2012-05-17 11:02:41 +01:00
Jonathan Watt
c8b52ec634 Bug 734082 - Compute and store bounds and visual overflow bounds for both SVG leaf and container frames. r=roc. 2012-05-17 05:05:09 +01:00
Jonathan Watt
396b0f9473 Bug 614732 - Add prefs for enabling/disabling display-list hit-testing/painting. r=roc. 2012-05-17 05:05:04 +01:00
Aryeh Gregor
7cb03d1868 Bug 756045 - Turn "ASSERTION: anonymous nodes should not be in child lists" into an NS_WARNING; r=bz 2012-05-18 09:20:49 +03:00
Nicholas Cameron
044718db79 Bug 755078 - Disable mask layers on Android. r=roc 2012-05-17 10:30:10 +12:00
Neil Deakin
f69df5a707 Bug 750808, move children element in label control binding, so that it doesn't get deleted when setting accesskey, r=neil 2012-05-16 19:55:09 -04:00
Mats Palmgren
440b4c449c Bug 755025 - wallpaper reftest framework bug that runs test / reference with different :hover state. r=roc 2012-05-17 01:04:38 +02:00
Mats Palmgren
e5191a317a Bug 750293 - Don't include a block's margins in its scrollable overflow for now. r=roc 2012-05-17 01:04:38 +02:00
Ed Morley
91066e9c2a Bug 668716 - Disable test_bug632379.xul on Mac for now, for too many unexpected passes 2012-05-16 20:46:11 +01:00
Mats Palmgren
d329029d95 Bug 754480 - Remove PresShell members associated with mContentToScrollTo, put that data in a temporary content property instead. part=3/3 r=bz 2012-05-16 19:32:40 +02:00
Mats Palmgren
ca5bacff08 Bug 754480 - Sort members in size order. Use narrower types where possible. part=2/3 r=bz 2012-05-16 19:32:40 +02:00
Mats Palmgren
8d1bd9831d Bug 754480 - Remove unused mDragService member. part=1/3 r=bz 2012-05-16 19:32:40 +02:00
Jonathan Watt
81c12cf5b8 Bug 755457 - Switch tests to using MozReftestInvalidate to avoid random failures. r=longsonr.
--HG--
extra : rebase_source : 1ea53f76a9e878fd56e0eb479fe6f93ca2419327
2012-05-16 11:07:43 +01:00
Jonathan Watt
1c9fa9bc51 Bug 755056 - nsSVGForeignObjectFrame's mRect should include its x/y offset. r=longsonr.
--HG--
extra : rebase_source : e60952de7b9e46ec023154bc64afc246b44994fe
2012-05-16 11:04:31 +01:00
Jonathan Watt
675d300fbe Bug 754696 - Make nsSVGOuterSVGFrame call UpdateBounds on its children before calling FinishAndStoreOverflow. r=longsonr.
--HG--
extra : rebase_source : 00b21402c183c034e7e87575bad4ddaeed7985c1
2012-05-13 20:30:44 +01:00
Trevor Saunders
8df11e79ab bug 693933 - make nsFrameSelection::GetSelection() return nsTypedSelection* r=smaug 2012-04-06 17:54:38 -04:00
Robert O'Callahan
8a4183542c Bug 754196. If ScrollToShowRect has no need to scroll, don't call ScrollTo, so pending smooth scrolls won't be interrupted. r=matspal 2012-05-16 17:40:57 +12:00
Robert O'Callahan
cfdc16a8cd Bug 754556. Use ScrollToCSSPixels in nsScrollBoxObject::ScrollTo/ScrollBy. r=matspal 2012-05-16 17:40:39 +12:00
Jeff Muizelaar
e80b46f17e Bug 754364. Add bilinear non-repeat and repeat fast paths. r=joe
This gives significantly faster bilinear sampling when we
don't have NEON.

--HG--
extra : rebase_source : 4473dd220020e65e4bc22b84fa780c7828b357a7
2012-05-15 18:26:16 -04:00
Ryan VanderMeulen
28caa3b877 Backout df38ed62a24a (bug 754364) due to Windows red. a=CLOSED TREE 2012-05-15 20:29:13 -04:00
Frédéric Wang
c4aee25f52 Crashtest for bug 398038. r=karlt 2012-05-15 18:30:15 -04:00
Frédéric Wang
f2d30807ae Bug 677036 - Unify parsing of length and mpadded attributes. r=karlt 2012-05-15 18:30:14 -04:00
Jeff Muizelaar
45a184cabb Bug 754364. Add bilinear non-repeat and repeat fast paths. r=joe
This gives significantly faster bilinear sampling when we
don't have NEON.
2012-05-15 18:26:16 -04:00
Ed Morley
6a622a847e Merge mozilla-central to mozilla-inbound 2012-05-15 18:19:25 +01:00
Serge Gautherie
9fa7b9f5ee Bug 632408. (Bv1) Improve newer test code some more. r=roc. 2012-05-15 15:33:55 +02:00
Robert O'Callahan
2bbcb226e2 Bug 754556. Ensure that setting scroll positions in CSS pixels doesn't unexpectedly move the scroll position, especially not in the wrong direction. r=matspal
If the current scroll position is fractional, e.g. y=N.4 CSS pixels, and something tries to read the
position in CSS pixels and scroll to that position (e.g. calling window.scrollTo(0, rootElem.scrollTop),
or equivalently window.scrollBy(0, 0)), it can actually end up scrolling backwards. So create a new
method nsIScrollableFrame::ScrollToCSSPixels which ensures that scrolling to a CSS pixel offset tries to
preserve the current fractional scroll position if that's possible, and if that's not possible at least does
not allow the scroll position to move in the wrong direction.
2012-05-15 17:58:09 +12:00
Matt Woodrow
3c6ff5136f bug 750334 - rotating image appears too big during transition, then snaps to correct size r=roc
--HG--
extra : rebase_source : a8064d474693838e68f7b865f76043e1192a07a5
2012-05-15 10:31:39 +12:00
Jeff Muizelaar
a7f8653d6a Bug 754872. Avoid using two passes to draw glyphs on mobile. r=joe
Chrome & Safari both use a single pass for overlapping glyphs. We shouldn't try
so hard when running on mobile.
2012-05-15 00:48:00 -04:00
Matt Brubeck
773ffb6265 Merge mozilla-central and mozilla-inbound 2012-05-14 21:41:08 -07:00
Matt Brubeck
bb3a6fefc7 Merge last green changeset from inbound to mozilla-central 2012-05-14 14:00:57 -07:00
Joel Maher
57605fec0f Bug 754001 - random-if r3 failures so we can unhide the tests. r=jrmuizel 2012-05-14 10:19:28 -04:00
Ehsan Akhgari
b814ee999e Bug 696229 - Adjust the hint correctly while drawing the caret for drag/drop so that it gets attached to the beginning of the lines correctly; r=roc 2012-05-11 14:50:19 -04:00
Nicholas Cameron
29f95ca6fd Bug 754488 - Fix warning in FrameLayerBuilder.cpp. r=dholbert 2012-05-14 19:01:05 -04:00
Kang-Hao (Kenny) Lu
74ab6d1729 Bug 752230 - Disallow control characters above 0x7e in CSS unquoted url() tokenization. r=dbaron 2012-05-14 19:01:05 -04:00
Matt Brubeck
a71b3949e7 Merge last green changeset from inbound to mozilla-central 2012-05-11 11:39:38 -07:00
Alexander Surkov
7ff1752972 Bug 754627 - GetBounds on bullet return wrong values, r=tbsaunde, roc 2012-05-14 13:51:45 +09:00
Olli Pettay
84d5ebb475 Bug 754089 - remote mozbrowser's messagemanager shouldn't have parent, r=jlebar 2012-05-11 10:47:40 +03:00
Christopher De Cairos
71301a9ebc Bug 517363: Make poster frames scale to size of the display frame r=roc 2012-05-11 20:32:29 +12:00
Christopher De Cairos
c484bd36db Bug 726904: Make nsVideoFrame::GetVideoIntrinsicSize return the video size before the poster size. r=cpearce 2012-05-11 20:32:15 +12:00
Matt Woodrow
ec8821b6ee Bug 722603 - Improve dirty rect calculation with 3d transforms and preserve-3d. r=roc 2012-05-11 19:49:14 +12:00
Matt Woodrow
b5086dc756 Bug 722603 - Add 3d transforms debugging code to nsBlockFrame. r=roc 2012-05-11 19:49:12 +12:00
Jeff Muizelaar
2f4b7dc2b9 Bug 689707. Use lower precision bilinear interpolation. r=joe
This takes the bilinear interpolation code from Skia. It
uses 4 bits of precision instead of 8. This lets it interpolate
two components at a time because the results fit in 16 bits.

The lower precision code is only used in the fallback code
and not in any of the specialized code for NEON. This means
pixman gives different results depending on the cpu which isn't
great. However, this was easiest and the NEON code doesn't
gain as much from using lower precision.

Skia actually uses even lower interpolation when working with
565 but that's harder to plug in right now, and this gives
a reasonable improvement.
2012-05-10 22:12:52 -04:00
Jonathan Watt
7c6b874674 Bug 753713 - Fix indentation in nsSVGOuterSVGFrame::AttributeChanged prior to touching it in bug 734082. r=me. 2012-05-10 12:47:34 +01:00
Paul ADENOT
d19763225d Bug 743720 - Import Speex's audio resampler in the tree. r=kinetik, khuey 2012-05-14 19:01:04 -04:00
Mats Palmgren
6b03870b6a Bug 749935 - Make all nsRect Union methods saturating. If width/height overflows nscoord_MAX then clamp the x/y to nscoord_MIN / 2 and try again. r=roc 2012-05-14 22:11:39 +02:00
Mats Palmgren
6c06addbe9 Bug 688897 - Add MozReftestInvalidate handler to fix orange. r=jmuizelaar 2012-05-14 22:11:39 +02:00
Robert O'Callahan
7ae2ea0471 Bug 681192. Part 17: Disable test_transformed_scrolling_repaints_2.html on Mac. r=matspal
--HG--
extra : rebase_source : 6af0be8370c0e07e55954245f6a6305d04eb2a2b
2012-05-10 17:24:21 +12:00
Robert O'Callahan
1260834bce Bug 681192. Part 16: Reduce assertion counts some more. r=matspal
--HG--
extra : rebase_source : 48cdef6c9792d6e35dcdfaecae3e3982c37171fd
2012-05-10 17:24:21 +12:00
Robert O'Callahan
c0c7a84361 Bug 681192. Part 12: more fixes to remove unnecessary rounding to pixels. r=matspal
--HG--
extra : rebase_source : 39f2c0ef3220b3f0d4f6bc2564a86daa2112dc3b
2012-05-10 17:24:20 +12:00
Robert O'Callahan
c9a4ef0f31 Bug 681192. Part 11: Don't snap scrollrange endpoints to device pixels anymore. r=matspal
--HG--
extra : rebase_source : a4ad5072fbb1a9e1e8d0fcf31268fee8812be41e
2012-05-10 17:24:20 +12:00
Robert O'Callahan
dca2ccff9c Bug 681192. Part 10: Control rounding direction of scaledOffset to try to make the residual be close to mActiveScrolledRootPosition. r=tnikkel
--HG--
extra : rebase_source : f27fb737f8956ed117df0be3a71da847cc2048c0
2012-05-10 17:24:20 +12:00
Robert O'Callahan
f8b68b95b5 Bug 681192. Part 9: Adjust assertion counts downward. r=mats
--HG--
extra : rebase_source : 5cb44d6572d19d462897b1b50037946d5d8edf67
2012-05-10 17:24:20 +12:00
Robert O'Callahan
c03a4afc08 Bug 681192. Part 8: Use a generous allowed range when scrolling in CurPosAttributeChanged. r=matspal
There was a subtle reftest failure on Mac in RTL text-overflow tests.
I tracked it down to RTL overflow:auto areas being automatically scrolled by a subpixel amount.
This was because we try to set scrollbar "curpos" attributes to an integer number of CSS pixels representing
the scroll amount, relative to the top-left of GetScrolledRect, which is a noninteger number of CSS pixels
in this case. Then in ReflowFinished() we scroll to the saved curpos values plus the top-left of GetScrolledRect.
This patch fixes the problem by making CurPosAttributeChanged pass an allowed scroll range to
ScrollToWithOrigin. We allow any scroll destination that, when rounded to CSS pixels, would give the same
value as "curpos".
This fixes the bug, ensuring that ReflowFinished's call to CurPosAttributeChanged will not normally need
to scroll because the current position will be in the acceptable range. Also, it means that code that
scrolls by setting the "curpos" attribute will be optimized to try to hit a layer pixel boundary.

--HG--
extra : rebase_source : 3a768883feee4ff2b88fe3c729ea1058e911f2ea
2012-05-10 17:24:19 +12:00
Robert O'Callahan
1b61f2c022 Bug 681192. Part 7: nsTypedSelection should be scrolling a 0,0 size into view to get a particular coordinate into view, not 1,1. r=matspal
When asked to scroll a 1,1 appunit rectangle into view, ScrollFrameRectIntoView will now actually
succeed!
For example if the window is 6000 appunits high and we ask to scroll a 1x1 rect at 0,6000 into view,
before bug 681192 was fixed we'd actually fail to do so. We'd compute a desired scroll destination of 0,1,
and ScrollTo would round that to 0,0 and we wouldn't scroll at all.
Now, we compute a desired scroll destination of 0,1 but also an allowed scroll range for y of
"1 to <someting large>", so ScrollFrameRectIntoView will scroll down by a full pixel to 0,60. This is correct ---
it gets the subpixel area into view, which the previous code didn't --- but it's not really what DoAutoScroll
wants, at least the way test_mousecapture.xul is written. test_mousecapture.xul expects DoAutoScroll to scroll
windowheight+N into view by scrolling down by exactly N pixels, so the desired point is exactly at the bottom
edge of the window rect. Using a zero-sized rect achieves this.

--HG--
extra : rebase_source : 5d3d8cc4417c35dc88ad296a4f13e01d2c1c9233
2012-05-10 17:24:19 +12:00
Robert O'Callahan
412d571a68 Bug 681192. Part 6: Test that various scrolling operations inside scaled transforms don't trigger unnecessary repainting. r=matspal
--HG--
extra : rebase_source : a72afaa7ebb5e9b59cf574cd973f966eee5c7f45
2012-05-10 17:24:19 +12:00
Oleg Romashin
01f49c7c7b Bug 681192. Part 5: Make various DOM scroll APIs --- scrollTop, scrollLeft, window.scrollTo, scrollBox.scrollTo, scrollBox.scrollToLine, scrollBox.scrollBy --- use an appropriate allowed scroll destination range. r=roc,r=matspal
--HG--
extra : rebase_source : 83ee44530c67229686ec0dce3628da83e0e93438
2012-02-07 12:24:15 -08:00
Oleg Romashin
7ad2071db0 Bug 681192. Part 4: Make ScrollFrameRectIntoView compute a generous allowed scroll destination range. r=roc,matspal
--HG--
extra : rebase_source : 524add7c1080994dd1bc2345cbd6f54c15653d27
2012-02-07 12:22:53 -08:00
Oleg Romashin
936b7eea85 Bug 681192. Part 3: Make nsListControlFrame::ScrollToFrame use ScrollFrameRectIntoView. r=roc
--HG--
extra : rebase_source : c9e0fbbd024e9fe15ca0e2dc0bad1ef90aa51edd
2012-02-07 12:21:13 -08:00
Oleg Romashin
0f88c6891c Bug 681192. Part 2: Make nsIScrollableFrame::ScrollBy automatically set a generous allowed destination range. r=roc
--HG--
extra : rebase_source : 392359b325ca0435031e8f31a47154a82943c2b4
2012-02-07 12:20:57 -08:00
Oleg Romashin
b98e2fe7f1 Bug 681192. Part 1: Add "allowed scroll destination range" to nsIScrollableFrame::ScrollTo and nsGfxScrollFrame implementation. r=roc,matspal
--HG--
extra : rebase_source : 51d04f7e7db35c02de3401a3481d4cc3827c19ec
2012-02-07 16:53:18 -08:00
Robert O'Callahan
2c975e4eb4 Bug 681192. Part 0.3: Add FrameLayerBuilder::GetThebesLayerResolutionForFrame. r=mattwoodrow
--HG--
extra : rebase_source : eea4dee6d081de5c288e295f3549fc88b10e6c39
2012-05-10 17:24:18 +12:00
Robert O'Callahan
5d9d661ae9 Bug 681192. Part 0.2: Use FuzzyEqual to check whether we need to invalidate ThebesLayers when subpixel offsets have changed. r=mattwoodrow
--HG--
extra : rebase_source : d0f8464aea9a436214d394123b1399105ccd0f66
2012-05-10 17:24:18 +12:00
Boris Zbarsky
3a47108ff7 Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Boris Zbarsky
15639de868 Bug 751012. When saving frame state, make sure to walk through placeholders so we save the state of out-of-flow descendants properly. Also make sure to walk the continuations and special siblings of the root frame that we're saving state for. r=roc 2012-05-09 21:27:47 -04:00
Masayuki Nakano
7dbe17ec49 Bug 749563 nsMenuBarListener should ignore consumed alt key events in its keydown and keyup event handlers r=enn 2012-05-10 08:25:48 +09:00
Mats Palmgren
30ee665eeb Bug 751356 - Make presshell arena allocation methods inline and non-virtual. r=bz 2012-05-09 21:53:15 +02:00
Mats Palmgren
206b9047a9 Bug 752953 - Simplify IntersectRect calculations. r=roc 2012-05-09 21:53:15 +02:00