Commit Graph

22644 Commits

Author SHA1 Message Date
Jeff Muizelaar
39e4912e63 Bug 1048916. Convert a bunch of layers from nsAutoPtr to UniquePtr. r=roc
This makes the ownership of LayerProperties more clear.

--HG--
extra : rebase_source : 5d786a246337353522fc1d6e2c252e98e673e936
2014-08-25 11:09:39 -04:00
James Kitchener
8631654113 Bug 1043358 - Fix up font caching in MathMLTextRunFactory. r=roc 2014-08-22 03:48:00 -04:00
Kearwood (Kip) Gilbert
515a22df8f Bug 1022818 - Part 3: Tests for CSSOM-View Smooth-Scroll DOM API Methods and MSD Animation. r=bz, r=roc
- Verify that instant scroll-behavior is synchronous.
- Verify that smooth scroll-behavior is asynchronous.
- Verify that smooth scroll-behavior is triggered by CSSOM-View DOM methods.
- Verify that instant scroll-behavior interrupts smooth scroll-behavior
  animation.
- Verify that smooth scroll-behavior is not framerate dependant.
- Verify that smooth scroll-behavior physics simulations used by animations
  converge and allow the animation to reach completion.
- CSSOM-View scroll-behavior smooth scroll animations must produce the same
  results indendently of frame-rate:
  - Reference samples of scroll position for each frame are captured from a
    smooth scroll at 120fps for variations in X-Distance, Y-Distance.
  - Test samples are captured from an animation with the same parameters at
    varying framerates.
  - Variance in position at each sampled interval is compared to the 120fps
    reference.  To pass the test, the position of each test sample must match
    the reference position with a tolerance of one test sample frame's range
    of motion.  This range of motion is calculated by the position delta of
    the reference samples one test frame duration before and after.
  - The duration of the reference sample animation and the test sample
    animation must match within 1 frame to pass the test.
  - The simulation driving the animation must converge and stop on the
    destination position for the test to pass.

--HG--
extra : rebase_source : 194f6c9364e316ea21cf1e74ab6f7542ee94edb8
2014-07-25 14:20:45 -07:00
Kearwood (Kip) Gilbert
152d087c78 Bug 1022818 - Part 2: Implement Smooth Scrolling. r=bz
- Updated ScrollTo method in nsGlobalWindow to accept a
  mozilla::dom::ScrollOptions parameter to select between the instant
  and smooth MSD motion.
- Updated WebIDL binding boilerplate scrolling functions in nsGlobalWindow
  to pass the correct value of mozilla::dom::ScrollBehavior to the
  implementation and functions, activating smooth scrolling.
- These functions will need to be updated again to support the scroll-behavior
  CSS property in Bug 1010538.

--HG--
extra : rebase_source : 7c9ce94d09fed5c4aea63442d683876c0a9a2e50
2014-08-05 15:01:34 -07:00
Ting-Yu Lin
0aa62fc0b0 Bug 1057256 - Part 3 - Make touch caret handle events before selection carets. r=roc 2014-08-25 02:50:00 +02:00
Ting-Yu Lin
649ad316e7 Bug 1057256 - Part 2 - Add null pointer check for touch and selection carets. r=roc
TouchCaret::IsDisplayable() contains more null pointer check. It covers
what's original there in TouchCaret::HandleEvent().
2014-08-25 02:50:00 +02:00
Ting-Yu Lin
5446a47672 Bug 1057256 - Part 1 - Remove NS_ENSURE_TRUE in SelectionCarets.cpp. r=roc
Remove NS_ENSURE_TRUE and NS_ENSURE_TRUE_VOID since they are deprecated,
and we do not need to print log in plain null pointer check.
2014-08-25 02:50:00 +02:00
Morris Tseng
354a8418d1 Bug 1056457 - Remove batch changes in selection carets. r=roc 2014-08-20 20:23:00 +02:00
Nicholas Nethercote
2e6bd8d367 Bug 1057928 (part 1) - In SpanningCellSorter, use |ops| instead of |entryCount| to indicate table liveness. r=dbaron.
--HG--
extra : rebase_source : 36efff6619b4ffe88ba4f4ddad58b3cddf805541
2014-08-25 00:32:17 -07:00
L. David Baron
3c904b79f3 Bug 839812 - Add clip-path style for fullscreen override, which was probably originally intended ("SVG masking, clipping, or filtering"). r=dholbert 2014-08-25 15:32:03 -07:00
L. David Baron
c8db8a728e Bug 1055865 patch 5 - Use normal inline handling for setting the size of a non-floating nsFirstLetterFrame. r=jfkthame
This is the actual fix for the bug.  This changes the vertical sizing of
inline ::first-letter frames to work like inlines (and size based on
font metrics), so that the line-height calculation that happens later
will produces the same results as inlines would produce.

In the case we're concerned with of having a text frame child that's
0x0, this changes the inline ::first-letter from from being 0x0 to
having a height that is determined from the font metrics.
2014-08-25 15:32:03 -07:00
L. David Baron
e7806a046f Bug 1055865 patch 4 - Remove bits of code that nsLineLayout takes care of. r=jfkthame
There's no need for these calls to be done in the inline ::first-letter
codepath.

In particular, nsLineLayout::ReflowFrame (called a few lines above)
calls SetRect and DidReflow, while nsLineLayout::RelativePositionFrames
(which is called at the end of inline reflow) calls
FinishAndStoreOverflow.
2014-08-25 15:32:03 -07:00
L. David Baron
7fd9718049 Bug 1055865 patch 3 - Fork a bit of code between the floating and non-floating branches in nsFirstLetterFrame::Reflow. r=jfkthame
This patch makes no changes other than duplicating the code previously
after the if/else on both branches of the if/else.

The next two patches in this series will completely rewrite the half in
the non-floating (i.e., inline) codepath (the else branch).
2014-08-25 15:32:03 -07:00
L. David Baron
b68c3b4eb0 Bug 1055865 patch 2 - Use separate nsHTMLReflowMetrics for reflowing the child of the nsFirstLetterFrame. r=jfkthame
This changes this code to do things in the normal way, which is to use a
separate nsHTMLReflowMetrics for each Reflow, rather than (as this code
was) reusing the one for the nsFirstLetterFrame for its text frame
child.
2014-08-25 15:32:03 -07:00
L. David Baron
14f1311791 Bug 1055865 patch 1 - Add reftest for sizing of empty ::first-letter. r=jfkthame
This test fails without the patch series because the border around the
test is too tall, but patch 5 reduces the height of the border in the
test so that it matches the reference.
2014-08-25 15:32:02 -07:00
Max Vujovic
5fe678a241 Bug 1057674 - Unget the token when parsing the filter property expects a function but doesn't find one. r=dbaron 2014-08-25 13:25:08 -07:00
Botond Ballo
26efbba910 Bug 1057528 - Allow multiplying/dividing CoordTyped by ScaleFactor. r=kats 2014-08-22 17:26:46 -04:00
Max Vujovic
d7d5f19199 Bug 948265 - Add CSS opacity filter to nsCSSFilterInstance. r=mstange 2014-08-25 12:23:22 -07:00
Max Vujovic
e75863b45a Bug 948265 - Add CSS contrast filter to nsCSSFilterInstance. r=mstange 2014-08-25 12:23:21 -07:00
Max Vujovic
add508fb53 Bug 948265 - Add CSS brightness filter to nsCSSFilterInstance. r=mstange 2014-08-25 12:23:20 -07:00
Max Vujovic
2fb4e9afb8 Bug 948265 - Add CSS invert filter to nsCSSFilterInstance. r=mstange 2014-08-25 12:23:19 -07:00
Birunthan Mohanathas
d41e6af583 Bug 1045801 - Rename SafeCast to AssertedCast. r=Waldo 2014-08-25 12:17:32 -07:00
Ryan VanderMeulen
3b99d0fa33 Merge inbound to m-c. a=merge
CLOSED TREE
2014-08-25 11:49:37 -04:00
Daniel Holbert
be3e34d31c Bug 1055977 part 1: Use !important (and 'initial') in full-screen-override.css, to more thoroughly prevent ancestors of a fullscreen element from creating stacking contexts. r=dbaron 2014-08-24 22:11:15 -07:00
L. David Baron
f18c998913 Bug 1057129 patch 3 - Post restyles from CheckAnimationRule directly to pseudo-elements. r=birtles
This matches patch 2, and also fixes an incorrect use of eRestyle_Self
on the parents of pseudo-elements in order to restyle those
pseudo-elements, where it would not previously have been effective.

This should all be temporary, since this code can go away with bug
960465, when animation phases are removed.
2014-08-24 21:48:22 -07:00
L. David Baron
ea37b4eab5 Bug 1057129 patch 2 - Post all animation restyles directly to pseudo-elements. r=birtles
This (like patch 1) posts restyles directly to the pseudo-element
content nodes, which is a new thing as of this bug.  Previously we'd
have posted eRestyle_Subtree restyles to the pseudo element's real
element (i.e., the parent of the pseudo-element content node).

This changes the way we post animation restyles for ::before and ::after
pseudo-elements with animations on them.
2014-08-24 21:48:22 -07:00
L. David Baron
13892d1c25 Bug 1057129 patch 1 - Make AddStyleUpdatesTo handle pseudo-elements. r=birtles
This (like patch 2) posts restyles directly to the pseudo-element
content nodes, which is a new thing.

This isn't needed right now since AddStyleUpdatesTo is currently only
used when updating main-thread-suppressed animations running on the
compositor.  However, it will be needed once we depend on
AddStyleUpdatesTo for bug 960465.  And it will have an effect now since
AddStyleUpdatesTo actually adds all animations rather than only the ones
that are suppressed from running on the main thread.
2014-08-24 21:48:22 -07:00
L. David Baron
debc6f4dbb Bug 1057098 - Rename ElementRestyler::Restyle{Before,After}Pseudo to MaybeReframeFor{Before,After}Pseudo. r=bzbarsky 2014-08-24 21:48:21 -07:00
Ed Lee
00b379f057 Bug 1042876 - Reftest bustage to correctly disable remote connections for reftests [r=froydnj]
--HG--
extra : rebase_source : f2065bf559560fbc852d7e57e6d18bc5bcf65b40
2014-08-22 18:05:09 -07:00
Wes Kocher
73fd76fdb6 Merge m-c to fx-team a=merge 2014-08-22 17:10:53 -07:00
Wes Kocher
1330f3416d Merge inbound to m-c a=merge 2014-08-22 16:47:32 -07:00
C.J. Ku
fda746a54a Bug 974242 - Enable B2G zoom-out test cases. r=ahal
--HG--
extra : rebase_source : d41b6bf70cd6e1ecc636aff6a147b2e73f2d5c70
2014-08-18 10:52:00 -04:00
C.J. Ku
97a70c2003 Bug 974242 - Registry and handle FullZoomChange chrome event in TabChild. r=tn, r=kats
--HG--
extra : rebase_source : 05a700f9071d30b87916ffa949acfed776f21f0c
2014-08-21 19:37:00 -04:00
Max Vujovic
d61c59b7bc Bug 948265 - Add CSS sepia filter to nsCSSFilterInstance. r=mstange 2014-08-21 10:17:12 -07:00
Max Vujovic
d7fd22c37c Bug 948265 - Add CSS grayscale filter to nsCSSFilterInstance. r=mstange 2014-08-21 10:17:09 -07:00
Chenxia Liu
4baf052d07 Bug 1021751 - Homebanner snippet. r=lucasr 2014-08-22 15:07:40 -07:00
David Zbarsky
48fe8afc64 Bug 952977: Switch some uses of gfx3DMatrix in nsLayoutUtils to Matrix4x4 r=nical 2014-08-22 09:40:02 -04:00
Ed Morley
eb4526b598 Backed out changeset 3a61a6eb04d6 (bug 1055821) for build failures 2014-08-22 14:12:01 +01:00
Benoit Girard
02778373f9 Bug 1055821 - Add layer construction logging. r=mattwoodrow 2014-08-21 13:46:07 -04:00
Simon Montagu
1eccbca0b4 Bug 1054810: when block size is unconstrained and we aren't setting aDesiredSize.BSize to the computed block size, preserve the original value. r=jfkthame. 2014-08-22 00:04:41 -07:00
Brian Birtles
c6384d518e Bug 1045993 part 2 - Move the animation name from AnimationPlayer to Animation; r=dbaron
This patch stores the animation name on the Animation object rather than its
AnimationPlayer. This is because Animation objects don't have a reference to
their AnimationPlayer but their AnimationEffect needs access to the animation
name.

This patch also adds an accessor for AnimationPlayer to get the name from its
Animation (since players *do* have a reference to their source animation
content).
2014-08-22 13:42:48 +01:00
Robert O'Callahan
3de72b147b Bug 1054161. Don't build display items for text with alpha=0. r=dbaron
--HG--
extra : rebase_source : 869a05a652a3bc6e8e122d34fb166ed9fbbdaa5c
2014-08-23 00:08:12 +12:00
Trevor Saunders
b6b2d4b019 bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Matt Woodrow
39d0f7f70c Bug 1056427 - Stop PRenderFrame from managing PLayerTransaction since it hasn't worked since the layers refactoring. r=roc
--HG--
extra : rebase_source : 38c86648bb8e59a6b992bd377acb9aacb418c98b
2014-08-22 12:16:44 +12:00
Daniel Holbert
91103235fa Bug 1056864: In ParseGridLine, use Maybe<int32_t> instead of separate bool & integer. r=SimonSapin 2014-08-21 15:56:40 -07:00
Nathan Froyd
2374d4767a Bug 1055281 - check for existence of paths in LOCAL_INCLUDES in moz.build; r=mshal 2014-08-20 11:51:33 -04:00
Markus Stange
9823bd0e51 Bug 1011166 - Improve the workarounds cairo does when rendering large gradients with pixman. rubber-stamp=roc, pending r?jrmuizel 2014-08-21 13:57:55 +02:00
Olli Pettay
2feb3a9d6a Bug 1054773 - Fix crashes in nsProgressFrame.cpp r=wchen 2014-08-20 17:38:01 -07:00
Max Vujovic
ce5f21b98c Bug 948265 - Add CSS saturate filter to nsCSSFilterInstance. r=mstange,dbaron 2014-08-20 17:52:28 -07:00
Seth Fowler
334698c3df Bug 1024454 (Part 1) - Eagerly propagate dirty bits so absolute children of table parts get reflowed reliably. r=dbaron 2014-08-20 17:48:56 -07:00