Commit Graph

23340 Commits

Author SHA1 Message Date
Timothy Nikkel
ac0404553b Bug 1062792. Don't add clipped out parts of a layer to the opaque region. r=roc 2014-10-21 20:33:12 -05:00
Alexander Surkov
5a5c3c647d Bug 1076816 - segregate XPCOM tree, r=davidb 2014-10-21 20:49:28 -04:00
Mats Palmgren
4e3a2e288d Bug 1085701 - Report the allocation size to the OOM abort. r=roc 2014-10-21 15:42:24 +00:00
Mats Palmgren
61f683b94d Bug 1085050 - Remove a DEBUG assertion. r=kip 2014-10-21 15:42:24 +00:00
Carsten "Tomcat" Book
2060c8175a merge fx-team to mozilla-central a=merge 2014-10-21 15:38:16 +02:00
Matt Woodrow
59fa5fff4f Bug 1078005 - Skip sending MozAfterPaint events to hidden PresShells. r=roc 2014-10-21 21:59:59 +13:00
Wes Kocher
23f972a0b3 Merge m-c to fx-team a=merge 2014-10-20 19:01:55 -07:00
Wes Kocher
fa12469995 Merge m-c to fx-team a=merge 2014-10-20 18:34:45 -07:00
Wes Kocher
29123d72f1 Merge inbound to m-c a=merge 2014-10-20 17:58:32 -07:00
Carsten "Tomcat" Book
c34c839a9d merge mozilla-inbound to mozilla-central a=merge 2014-10-20 14:34:56 +02:00
Jonathan Watt
9f1b24df01 Bug 1085167, part 2 - Get rid of nsRenderingContext's DeviceContext and any need for it to know about app-units-per-device-pixel. r=mattwoodrow
--HG--
extra : rebase_source : d8fb804f03a1cc4635d6acd7f66f5f21962de6d3
2014-10-20 10:55:49 +01:00
Jonathan Watt
8903ddbb8d Bug 1085167, part 1 - Feed the appUnitPerDevPixel value through to nsCSSRendering::DrawTableBorderSegment. r=mattwoodrow
--HG--
extra : rebase_source : 4ef83ee8f45915311c1f7379e06c77f40605c17c
2014-10-20 10:55:49 +01:00
Jonathan Watt
7a934761aa Bug 1085165 - Get rid of the nsRenderingContext::SetColor() method. r=mattwoodrow
--HG--
extra : rebase_source : dc4604e04cae84b8dcbd2d9890191713555c8c7a
2014-10-20 10:55:49 +01:00
Jonathan Watt
7ebfcab431 Bug 1085160 - Port the code that uses nsRenderingContext::IntersectClip() to Moz2D. r=mattwoodrow
--HG--
extra : rebase_source : 54226509a1b16efdc76f92f202cc2be07cf43ab4
2014-10-20 10:55:48 +01:00
Jonathan Watt
5e3c3b8150 Bug 1085159 - Port the code that uses nsRenderingContext::DrawLine() to Moz2D. r=mattwoodrow
--HG--
extra : rebase_source : 70553292850517d695994c0a3422fab8ea0b760a
2014-10-20 10:55:48 +01:00
Lebedev Maksim
073baff0db Bug 1080360 - Add firing lostpointercapture event on document instead of on removed capturing element. r=smaug 2014-10-20 01:28:00 +02:00
Lebedev Maksim
de873fb6dc Bug 1080360 - Test for receiving lostpointercapture event on document. r=smaug 2014-10-16 05:39:00 +02:00
Edgar Chen
eb8669f6ea Bug 1072275 - MobileConnectionService doesn't have to be created in 'profile-after-change' category. r=smaug 2014-10-16 09:57:38 +08:00
Daniel Holbert
3d0dd53e6e Bug 1084039: Clean up AnimationPlayerCollection::PseudoElement(). r=birtles 2014-10-16 22:14:02 -07:00
John Daggett
fd7fa5f488 Bug 1083599 - fixup small problem with userfont logging. r=m_kato 2014-10-17 09:15:29 +09:00
David Parks
71324ef0ab Bug 918634 - swapFrameLoader not implemented for e10s r=nical
Allow layers to change layermanager if using LayerManagerComposite.

--HG--
extra : rebase_source : f24fde110f91fff7e2ceb3ddcd4549077a15f3c6
2014-10-14 15:11:38 -07:00
Daniel Holbert
c32aa27783 Bug 1084564: Add mention of bug 1084564 to webm-video & ogg-video reftest.list files, for B2G & Android failures, and remove sparsely-sprinkled links to generic bug 773482. (no review)
DONTBUILD because the changes are comment-only
2014-10-20 10:08:57 -07:00
Max Vujovic
309beb718d Bug 1083241 - Call gfx->Paint in PaintFrameWithEffects when there is blending. r=roc 2014-10-17 11:37:54 -07:00
Kearwood (Kip) Gilbert
ad10b6549b Bug 1045754 - Part 2 - Tests. r=bz
- Updated smooth scroll behavior mochitest and reftests to
  match new CSSOM-View DOM scrolling method parameters.
- Added tests for Element.ScrollBy and Element.ScrollTo.
2014-10-02 17:29:22 -07:00
Ting-Yu Lin
f45e0b8512 Bug 1082486 - Part 6 - Add tests to test_reftests_with_caret.html. r=roc
Touch caret should not be show in the two test cases since caret does
not show in the scroll frame.
2014-10-19 02:59:00 +02:00
Ting-Yu Lin
142b3b8d13 Bug 1082486 - Part 4 - Check whether nsCaret shows in the scroll frame. r=roc
This patch check whether nsCaret shows in scroll frame. If yes, touch
caret will show, and its position will be clamp to scroll frame as
before. Otherwise, we hide it since the nsCaret will not be seen in this
case.
2014-10-16 22:03:00 +02:00
Ting-Yu Lin
7cd6cb94a0 Bug 1082486 - Part 5 - Hide touch caret when PresShell is suppressing painting. r=roc
When loading an html, painting is suppressed in PresShell. Therefore the
rect of nsCaret or the rect of nearest ancestor scroll frames will not
be correct. Touch caret will hide incorrectly because it cannot get the
necessary rect to calculate its position.

I added a condition in IsDisplayable() to skip when painting is
suppressed. Touch caret should sync its visibility with nsCaret again
when painting is unsuppressed, and those rects needed by touch caret
should be ready then.
2014-10-16 05:08:00 +02:00
Ting-Yu Lin
1f8db9d46f Bug 1082486 - Part 3 - Refactor UpdatePosition(). r=roc
GetTouchCaretPosition() is needed in a later patch.
2014-10-15 03:05:00 +02:00
Ting-Yu Lin
8ebb8ad565 Bug 1082486 - Part 2 - Make GetCanvasFrame() returns nsCanvasFrame*. r=roc
PresShell::GetCanvasFrame() already returns nsCanvasFrame*, and it's
needed to access nsCanvasFrame's method in a later patch.
2014-10-14 03:07:00 +02:00
Ting-Yu Lin
521e2843ab Bug 1082486 - Part 1 - Clean up for Mozilla coding style. r=roc
Also, check mVisible before calling UpdatePosition() in
SyncVisibilityWithCaret().
2014-10-14 03:07:00 +02:00
Lebedev Maksim
1264d63972 Bug 1078327 - Test for correct detecting capturing content. r=smaug 2014-10-17 00:47:00 +02:00
Lebedev Maksim
dbbd86cb66 Bug 1078327 - Add check for correct detecting capturing content. r=smaug 2014-10-06 09:16:00 +02:00
James Kitchener
821dc0e115 Bug 670334 - Set a minimum size for mfence's fences and separators. r=karlt 2014-10-17 18:01:00 +02:00
Brian Birtles
f71c3c8dee Bug 1078122 part 9 - Move queuing of CSS animation events to CSSAnimationPlayer; r=dholbert
This patch moves the code for queuing CSS animation events from
nsAnimationManager to CSSAnimationPlayer. In doing so, it also moves the
mLastNotification member and associated enum values.
2014-10-20 13:55:47 +09:00
Brian Birtles
1ad72fcf4d Bug 1078122 part 5 - Move CSSAnimationPlayer to nsAnimationManager; r=dholbert
This patch takes the CSSAnimationPlayer object, currently defined in
dom/animation/AnimationPlayer.{cpp,h}, and moves it to
layout/style/nsAnimationManager.{cpp,h} where the rest of the CSS
Animations-specific code lives.

At the same time it extends the scope of the mozilla namespace block in
nsAnimationManager.h to also include the AnimationEventInfo and EventArray types
since these classes, which don't have an ns* prefix, probably should be in the
mozilla namespace anyway.
2014-10-20 13:55:46 +09:00
Brian Birtles
6208ce0f1d Bug 1078122 part 3 - Move animation value building down to the Animation objects; r=dholbert
This patch extracts the logic for calculating animation styles from
AnimationPlayerCollection and puts the bulk of it into the Animation objects.
Some of the initial logic surrounding the animation player state (e.g. is it
paused or not, etc.) is put into AnimationPlayer.

In future we may shift this logic even further down to the AnimationEffect
objects but currently we don't create such objects unless necessary.
2014-10-20 13:55:46 +09:00
Brian Birtles
3f434b554e Bug 1078122 part 2 - Encapsulate mIsRunningOnCompositor in AnimationPlayer; r=dholbert 2014-10-20 13:55:46 +09:00
Brian Birtles
de25cd0dbb Bug 1078122 part 1 - Move checks for animation throttling to AnimationPlayer; r=dholbert
This patch moves code from AnimationPlayerCollection to AnimationPlayer.

However, there is one subtle change in logic involved. Previously, we would test
if the player had finished by getting the computed time of its source content
and checking if it was in the after phase or not. In this patch, however, we
simply check the play state to see if it is finished or not.

These two approaches differ in the case where an animation is paused after it
has finished. The animation phase approach will indicate the player has
finished, but the play state approach will indicate the player has paused (since
the "paused" state trumps the "finished" state). This, however, should not
produce any observable effect because when an animation is paused
mIsRunningOnCompositor will be false (we don't put paused animations on the
compositor).
2014-10-20 13:55:45 +09:00
Brian Birtles
95a9a512d3 Bug 1078119 - Rename AnimationTimeline/AnimationPlayer GetCurrentTimeDuration; r=bz
This patch performs the following renaming:

  AnimationPlayer::GetCurrentTime -> GetCurrentTimeAsDouble
  AnimationPlayer::GetCurrentTimeDuration -> GetCurrentTime
  AnimationTimeline::GetCurrentTime -> GetCurrentTimeAsDouble
  AnimationTimeline::GetCurrentTimeDuration -> GetCurrentTime
2014-10-20 13:55:45 +09:00
Brian Birtles
aeed2b51f7 Bug 1070745 part 9 - Tests for play/pause behavior; r=dholbert 2014-10-20 13:55:45 +09:00
Brian Birtles
aaa1d00335 Bug 1070745 part 8 - Use play/pause from nsAnimationManager; r=dholbert
This patch uses the PlayFromStyle/PauseFromStyle methods on CSSAnimationPlayer
to perform play/pause control. (This allows us to encapsulate mHoldTime and
mPaused. We will encapsulate mStartTime etc. in subsequent bugs.

The override behavior of play()/pause() with regard to animation-play-state is:
* pause()/play() override the current animation-play-state
* pause() causes the player to remain paused until play() is called regardless
  of changes to animation-play-state
(* Calling play() will override the animation-play-state but won't "stick". i.e.
   subsequently setting animation-play-state: paused will pause the animation.)

These different permutations are tested in the next patch in this series.

This interaction will probably become more complicated once we introduce
finishing behavior (since we might not want animations to restart when
setting animation-play-state: running).
2014-10-20 13:55:44 +09:00
David Zbarsky
6a83000768 Bug 1070745 part 3 - Convert AnimationPlayer mPlayState to an mPaused bool; r=birtles
We only need to store if an animation is paused or not, hence a bool is
sufficient. Furthermore, the convenience of using the same type as the specified
style of animation-play-state will disappear once pausing behavior is wrapped up
behind Play() and Pause() methods.
2014-10-20 13:55:43 +09:00
Brian Birtles
ca995a58de Bug 1070745 part 1 - Factor out new_div etc. to animation_utils.js; r=dholbert
We use new_div, check_events etc. in a number of animation-related mochitests
and with this bug we'll want to use them in a few more. This patch factors them
out into animation_utils.js and tidies them up a little.
2014-10-20 13:55:43 +09:00
L. David Baron
ba145b33a0 Bug 1083461 - Convert nsCSSValue{,Pair}List::operator== back to a static Equal method so that it can be validly called on null pointers. r=bzbarsky
--HG--
extra : transplant_source : %CD%5D%9BE%FE%DE%A4%F2%B8%CF%D7%AE%84%90%3B%E8%A0d%D7%2B
2014-10-19 23:31:39 -04:00
Phil Ringnalda
8c0ffee828 Backed out 4 changesets (bug 1062963, bug 1079139) for failures in 427129-table-caption.html in b2g reftest-6 and Android 2.3 reftest-5
Backed out changeset a9672db96a5d (bug 1079139)
Backed out changeset 241c23570a62 (bug 1062963)
Backed out changeset 90172cc0b012 (bug 1062963)
Backed out changeset 71211c4a4acc (bug 1062963)
2014-10-19 18:44:16 -07:00
Phil Ringnalda
29c89dff4e Back out 820188e039a0 (bug 1067748) for Android reftest-2 failures 2014-10-19 13:50:29 -07:00
Simon Montagu
3424f6ace3 Bug 1079139: make nsFlowAreaRect.mRect a LogicalRect. r=jfkthame 2014-10-19 12:32:17 -07:00
Simon Montagu
55d0940cfd Bug 1062963 patch 3: make nsFloatManager's origin a LogicalPoint, adapt GetFlowAreas, AddFloats, ClearFloats, etc. to use it and make nsFloatManager region functions work with logical region. r=jfkthame 2014-10-19 12:32:17 -07:00
Simon Montagu
238caccf89 Bug 1062963 patch 2: changes and additions to WritingModes.h. r=jfkthame 2014-10-19 12:32:17 -07:00
Simon Montagu
baa40f7f21 Bug 1062963 patch 1: Logical coordinates in nsLineLayout:ReflowFrame and CanPlaceFrame. r=jfkthame 2014-10-19 12:32:16 -07:00