Граф коммитов

48724 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 33dd940e87 Bug 890156 - patch 0.0 - Declare a DesktopPixel type in Units.h, to be used for the coordinate system used by the host system to manage the desktop space. r=kats 2015-11-25 19:11:54 +00:00
Brian Birtles 8505bf694f Bug 1238660 part 3 - Add crashtest; r=hiro 2016-01-13 13:38:16 +09:00
Brian Birtles 8cc58f3707 Bug 1238660 part 2 - Preserve "wins in cascade" state when updating animations; r=hiro
When updating animations, we shouldn't unnecessarily clobber the "wins in
cascade" state of their properties since this can lead to unnecessary restyles
when we then decide we need to update the cascade.
2016-01-13 13:38:16 +09:00
Nicholas Nethercote 534a872e52 Bug 1238846 (part 1) - Remove some dead code in nsLayoutUtils. r=mattwoodrow.
--HG--
extra : rebase_source : adbb1840cdf2a9f454b0ab4c4c6e0f163df4dc3c
2016-01-12 13:42:01 -08:00
Matt Woodrow d0e08ffe13 Bug 1237982 - Force perspective layers to always be active. r=thinker
--HG--
extra : rebase_source : c831e2bc3413a0dfca34cb5e8f148ac1b06b40b8
2016-01-13 13:04:56 +13:00
Brian Birtles d549991eb2 Bug 1232577 part 19 - Move ClearIsRunningOnCompositor to EffectCompositor; r=heycam 2016-01-13 07:54:56 +09:00
Brian Birtles 7236a7fdbd Bug 1232577 part 18 - Drop RestyleManager::mLastUpdateForThrottledAnimations; r=heycam
RestyleManager currently has a piece of state for tracking if throttled
animations are up-to-date or not. Actually, it's not so much about throttled
animations but really about outstanding changes to animation styles (which
is typically expected to be due to throttling animations but there are
other cases that invalidate the animation style rule that we should be
considering here).

We now have that same information stored in the EffectCompositor so we can
remove the redundant state from RestyleManager. Furthermore, the state stored
in EffectCompositor is more accurate since it captures the case when animation
style needs to be updated twice within a tick, or when nothing needs to be
updated within a tick.

This patch, therefore, introduces EffectCompositor::HasPendingStyleUpdates in
place of setting RestyleManager::mLastUpdateForThrottledAnimations.

nsTransitionManager also uses mLastUpdateForThrottledAnimations to warn if we
have not processed throttled animations. We can't use HasPendingStyleUpdates
here however, since it will return true in the case where we have triggered new
transitions in the process of restyling. However, any new transitions will
trigger "standard" (i.e. not throttled) restyles so we introduce another
method, HasThrottledStyleUpdates, that returns true only if we have outstanding
throttled updates and use this for the warning inside nsTransitionManager.
2016-01-13 07:54:55 +09:00
Brian Birtles dab2f9c064 Bug 1232577 part 17 - Move AddStyleUpdatesTo to EffectCompositor; r=heycam 2016-01-13 07:54:55 +09:00
Brian Birtles 309027bbe9 Bug 1232577 part 16 - Move GetAnimationRule to EffectCompositor; r=heycam 2016-01-13 07:54:55 +09:00
Brian Birtles 7a8bb45336 Bug 1232577 part 15 - Drop LastStyleUpdateForAllAnimations flag from pres context; r=heycam
nsPresContext contains a mLastStyleUpdateForAllAnimations flag which is simply
used to prevent unnecessarily posting restyles when throttled animations are
already up to date. Since part 13 we now accurately record whether we have
posted a restyle for each throttled animation and only post a restyle if we
have not done so already. As a result, this flag is no longer needed since
calling PostRestyleForThrottledAnimations is effectively a noop when throttled
animations are up-to-date.
2016-01-13 07:54:55 +09:00
Brian Birtles b65c8d2610 Bug 1232577 part 14 - Move FlushAnimations to EffectCompositor; r=heycam 2016-01-13 07:54:55 +09:00
Brian Birtles c54edbe389 Bug 1232577 part 13 - Move EnsureStyleRuleFor from AnimationCollection to EffectCompositor 2016-01-13 07:54:55 +09:00
Brian Birtles 2a70c0a477 Bug 1232577 part 12 - Move the remainder of RequestRestyle from AnimationCollection to EffectCompositor; r=heycam
This also allows us to remove all references to AnimationCollection and the
animation managers from Animation.
2016-01-13 07:54:54 +09:00
Brian Birtles 9b8cbf0b17 Bug 1232577 part 11 - Remove AnimationCollection::mHasPendingAnimationRestyle; r=heycam
This flag is no longer needed since the same information is tracked in the
hashmap stored on EffectSet.
2016-01-13 07:54:54 +09:00
Brian Birtles b29e0fc6c2 Bug 1232577 part 10 - Remove AnimationCollection::mStyleChanging; r=heycam
This flag is no longer needed because in bug 1232563 we introduced a more
thorough optimization that detects when the animation is not changing by
comparing the progress value between samples and avoids requesting restyles
when it does not change.
2016-01-13 07:54:54 +09:00
Brian Birtles 71a9cf43cb Bug 1232577 part 9 - Remove AnimationCollection::mStyleRuleRefreshTime; r=heycam
Now that we track whether or not animations are up to date using the hashset in
EffectCompositor, we can remove the mStyleRuleRefreshTime flag that is, as of
part 5 of this patch series, now only used for detecting whether or not
animations are up to date.

In order to preserve the existing behavior of FlushAnimations, however, this
patch temporarily introduces a method to indicate if there are throttled
animations or not.

It might not be obvious that FlushAnimations is only concerned with throttled
animations due to its name. FlushAnimations is simply intended to post
animation restyles for out-of-date animations. Any animations that are *not*
throttled will either be up to date, or we will have already posted an
animation restyle so we only need to consider throttled animations in this case.
2016-01-13 07:54:54 +09:00
Brian Birtles cf26e7b69b Bug 1232577 part 8 - Move call to PostRestyleForAnimation to EffectCompositor; r=heycam
This patch continues to migrate functionality from
AnimationCollection::RequestRestyle to EffectCompositor::RequestRestyle.

In order to post the animation restyle from the EffectCompositor, this patch
also moves the PostRestyleForAnimation method to EffectCompositor.
The GetElementToRestyle method is temporarily duplicated in both
EffectCompositor and AnimationCollection however we will remove the version in
AnimationCollection later in this patch series.
2016-01-13 07:54:54 +09:00
Brian Birtles 21108e5e2e Bug 1232577 part 7 - Move call to SetNeedStyleFlush() to EffectCompositor::RequestRestyle; r=heycam
In this patch series we are gradually migrating style rule updating
functionality from AnimationCollection to EffectCompositor. This patch moves
part of the RequestRestyle method from one class to the other.

Note that in both cases we only call SetNeedsStyleFlush if we haven't already
posted an animation restyle. (In the case of AnimationCollection we check this
using the mHasPendingAnimationRestyle flag, and in EffectCompositor case we
simply check if the element is already in the "needs restyle" hashmap. If it is,
either we already have a throttled restyle and have called SetNeedsStyleFlush or
we have a standard restyle and have posted an animation restyle.)

The added check for a null pres context matches the behavior of
AnimationCollection::RequestRestyle which has an equivalent early return at the
beginning of the function.
2016-01-13 07:54:54 +09:00
Brian Birtles 95ff2aa6eb Bug 1232577 part 5 - Make sure CSSTransition::CancelFromStyle updates the transitions level of the cascade; r=heycam 2016-01-13 07:54:53 +09:00
Brian Birtles 815e0c4b64 Bug 1232577 part 4 - Add and remove (pseudo-)elements needing an animation style rule update to the EffectCompositor; r=heycam
This patch uses the presence/absence of (pseudo-)elements in the "needs
animation rule update" hashmap on EffectCompositor to detect if a style update
is required. The various flags in AnimationCollection that do a similar job
still remain so that we can remove them one-by-one in subsequent patches in
this series.
2016-01-13 07:54:53 +09:00
Brian Birtles 03057136c3 Bug 1232577 part 3 - Move RestyleType to EffectCompositor; r=heycam
This is in preparation for moving RequestRestyle to EffectCompositor (and
because we'll run into compile issues if we don't since AnimationCommon.h
includes too many interdependent definitions).
2016-01-13 07:54:53 +09:00
Brian Birtles 641025e212 Bug 1232577 part 1 - Add EffectCompositor as a member of nsPresContext; r=heycam
Since we want to track elements needing a restyle on EffectCompositor we need
to scope it to an nsPresContext rather than just making if a collection of
static methods.
2016-01-13 07:54:53 +09:00
Markus Stange 4eb9692846 Bug 1234800 - Move this line to the right place. r=tn
--HG--
extra : commitid : 2ZToJWEO51B
extra : rebase_source : 919b7f5e3bb991ce99cc427a0a26fbad0a533b79
2016-01-07 20:34:24 +01:00
Jim Mathies 1c7a623149 Bug 1193055 - Update windowed plugin visibility in response to apz scroll in the chrome process vs. relying on a full round trip through content. Reduces lag in windowed plugin updates. r=kats 2016-01-12 11:05:58 -06:00
Kartikaya Gupta 1b8ce76eee Bug 1233468 - If we get the load event before the before-first-paint, make sure the CSS viewport is set up properly for content load listeners. r=tnikkel
--HG--
extra : commitid : 2aMyjyc2i9C
2016-01-12 09:47:29 -05:00
Jonathan Kew 4ad8e58cf5 Bug 1202318 - Disable resizing of textarea in reftest bidi/267459-1 to work around unreliable Gtk3 rendering of the resize grabber. r=dholbert 2016-01-12 09:20:13 +00:00
Jonathan Kew e4d24adfd3 Bug 1235970 - Disable resizing of textarea in mochitest test_bug582181-2 to work around unreliable Gtk3 rendering of the resize grabber. r=dholbert 2016-01-12 09:20:13 +00:00
Jonathan Kew 103b7d0991 Bug 1237355 - patch 2 - Use -moz-appearance:none on textarea in mochitest test_bug644768 to work around unreliable Gtk3 theming. r=dholbert 2016-01-12 09:20:13 +00:00
Jonathan Kew faf247edaf Bug 1237355 - patch 1 - Use -moz-appearance:none on input widget in mochitest test_bug499538-1 to work around unreliable Gtk3 theming. r=dholbert 2016-01-12 09:20:13 +00:00
Bogdan Postelnicu 6a85225ba3 Bug 1236920 - remvoed usless null check on aKidFrame in order to silence Coveirty warning. r=mwoodrow 2016-01-05 06:20:00 +01:00
Timothy Nikkel 50fcf29623 Bug 1237813. Refactor nsLayoutUtils::FindScrollableFrameFor to use GetScrollFrameFromContent. r=botond 2016-01-12 00:14:30 -06:00
Daniel Holbert 9162bd85e1 Bug 1238840: Increment the requestLongerTimeout() arg for mochitest test_value_storage.html, to avoid spurious timeouts on Android debug test-runs. (test-only, no review) 2016-01-11 21:51:39 -08:00
Christoph Kerschbaumer 85f65d6c64 Bug 1232792 - Convert JS callsites to use open2 within layout/ (r=sicking) 2015-12-15 13:33:44 -08:00
Daniel Holbert 2c0dc8a8a0 Bug 1238777: Bail early from ComputeSnappedImageDrawingParameters if we're somehow drawing from a 0-sized subimage. r=tn 2016-01-11 17:56:41 -08:00
Daniel Holbert 2712f6a1e1 Bug 1224736: When image size lookup fails in nsTreeBodyFrame::PaintImage, only fall back to use the full destRect if we've got a VectorImage. r=tn 2016-01-11 17:56:39 -08:00
Randall Barker ed071f6c7e Bug 1229752 - When C++ APZ scroll offset diverges from the Gecko scroll offset, it is not being applied properly to the event position r=botond,tnikkel 2016-01-11 16:06:14 -08:00
Wes Kocher 80765f938f Backed out changeset 7c4f0da2f1e5 (bug 1232792) on the chance it caused a bunch of b2g test bustage CLOSED TREE
--HG--
extra : commitid : 5NsyQ1o2oSV
2016-01-11 14:20:34 -08:00
Christoph Kerschbaumer c262655b27 Bug 1232792 - Convert JS callsites to use open2 within layout/ (r=sicking) 2016-01-11 12:16:54 -08:00
Mats Palmgren 5e440160fb Bug 1237805 part 2 - [css-grid] 'auto-fit' reftest removing empty start/middle tracks. 2016-01-11 19:46:57 +01:00
Mats Palmgren 18ba3700c7 Bug 1237805 part 1 - [css-grid] Remove all empty 'auto-fit' tracks, not just those at the end. r=dholbert
Change due to CSSWG decision:
https://lists.w3.org/Archives/Public/www-style/2016Jan/0031.html
2016-01-11 19:46:56 +01:00
Joel Maher cc54abadbb Bug 1232983 - border-radius/clipping-6.html is failing on linux64 docker container. r=mattwoodrow 2016-01-11 07:15:22 -08:00
Thinker K.F. Li f2e08bbbc7 Bug 1228716 - Give different frame keys for nsDisplayBlendContainer. r=roc
--HG--
extra : rebase_source : cee46732e4679e3e7ddc37dd9238baa4a175edbf
2016-01-11 02:34:00 +01:00
Matt Woodrow 46a4502dba Bug 1230780 - Add reftest. r=thinker
--HG--
extra : rebase_source : 6c0f92458534b44f383fc0803756d7c483d63b37
2015-12-17 16:22:48 +13:00
Matt Woodrow e004a92625 Bug 1230780 - Propagate preserve-3d handling through nsDisplayPerspective. r=thinker
--HG--
extra : rebase_source : 7100cdf247c2e9d5fd17096722a718f074bfe504
2015-12-17 16:22:49 +13:00
Timothy Nikkel f133357987 Bug 1237825. Find the root scroll frame even if the root element doesn't have a primary frame. r=mstange
Even though the content of the root scroll frame is the root element, the primary frame of the root element is never the root scroll frame. This is even true if the normal primary frame of the root element is not created (say because it is display: none). Leaving the primary frame of the root element to be null even though there are frames (the root scroll frame, and the canvas frame) that have the root element as their content.

This behaviour is more consistent by not ignoring a root scroll frame when it exists.
2016-01-11 00:02:43 -06:00
Matt Woodrow 07ab4853c4 Bug 1230693 - Rebase transforms to the origin for callers than don't want them offset. r=mstange 2015-12-17 12:36:24 +13:00
Cameron McCormack 3bee3baf31 Remove mention of old SVG text pref in comment; no bug. (DONTBUILD)
--HG--
extra : amend_source : 637d6f080ac7dab34f2129b5b339a5b79bda5899
2016-01-11 10:48:56 +11:00
Cameron McCormack ff6a816c75 Bug 1238403 - Fix inconsistent indenting in layout/style/. r=xidorn 2016-01-11 10:28:35 +11:00
Nicholas Nethercote f573bf4e6c Bug 1237902 (part 3) - Change the gfxContextMatrixAutoSaveRestore in PaintTableBorderBackground() to an AutoRestoreTransform. r=roc.
--HG--
extra : rebase_source : a09c694360b2fc1215b5697a886947a3be46ddd6
2016-01-07 20:21:40 -08:00
Nicholas Nethercote aa3881aa54 Bug 1237902 (part 2) - Pass a DrawTarget to DrawTableBorderSegment(). r=roc.
And to several functions above it in the callgraph, ones that no longer need an
nsRenderingContext.

--HG--
extra : rebase_source : 331d00be421316a7071ab4b93894431c36a031d5
2016-01-07 20:20:06 -08:00