mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
9be4c7427e
- Bug 1194851. Change one instance of GetDisplayPort to HasDisplayPort. r=botond (ff16711347) - Bug 1194851. Make ViewportHasDisplayPort only return a bool, not the displayport rect. r=botond (bfe7d49225) - Bug 1194851. Change GetOrMaybeCreateDisplayPort into just MaybeCreateDisplayPort, and make it only return a bool, and not the displayport rect. r=botond (af2a6eedbc) - Bug 1194851. Always store the displayport base relative to the scrollport (not the scroll frame). r=botond (841ff20d8c) - Bug 1194851 - Remove the second parameter of IsFixedPosFrameInDisplayPort(). r=kats (7eca35088f) - Bug 1229853 - Don't apply the displayport multiplier if we don't have a frame for the element the displayport is set on. r=tn (f0e829164e) - Bug 1237086. When getting the displayport for a content node if there is no root scroll frame just use the primary frame of the content node. r=botond (35a1e1a2f6) - Bug 1194851. Introduce GetDisplayPortRelativeToScrollFrame. r=botond (d209135b33) - Bug 1194851. Change GetDisplayPortForVisibilityTesting into GetDisplayPortRelativeToScrollFrameForVisibilityTesting since it has only one user. r=botond (ba2f91af92) - Bug 1194851. Split GetDisplayPort callers into GetDisplayPortRelative ToScrollPort and GetDisplayPortRelativeToScrollFrame. r=botond (4628829811) - Bug 1194851. Rename GetDisplayPortRelativeToScrollPort back to GetDisplayPort. r=botond (e632511674) - Bug 1194851. Change the GetDisplayPort API to take an optional RelativeTo parameter, instead of having that expressed in the function name. r=botond (8f0be47c51) - Bug 1232561 part 1 - Replace AppliesToTransitionsLevel() with a cascade level enumeration; r=heycam (ca46bd9c5c) - Bug 1229280 - Move animation generation from AnimationCollection to EffectSet; r=dbaron (7e15533b9f) - Bug 1232561 part 2 - Move the animation style rules from AnimationCollection to EffectSet; r=heycam (6166363541) - Bug 1232561 part 3 - Move AnimValuesStyleRule to a separate file; r=heycam (e2cc2f76c1) - Bug 1232561 part 4 - Add EffectCompositor::ComposeAnimationRule; r=heycam (c29fef6a32) - Bug 1232577 part 1 - Add EffectCompositor as a member of nsPresContext; r=heycam (027c5d9aa2) - Bug 1232577 part 2 - Add a hashmap to ElementCompositor to track which (pseudo-) elements need to have their animation style rule updated; r=heycam (9d6e66d674) - Bug 1232563 part 1 - Request a layer update if an animation is newly finished; r=heycam (9b73effbf2) - Bug 1232563 part 2 - Move RequestRestyle calls to the effect; r=heycam (71eeb3a73d) - Bug 1232563 part 3 - Drop check for an empty set of properties when requesting restyles from KeyframeEffectReadOnly; r=heycam (d4768a7394) - Bug 1232563 part 4 - Don't perform style updates when the effect progress has not changed; r=heycam (8e92edd63e) - Bug 1232577 part 3 - Move RestyleType to EffectCompositor; r=heycam (ded7dc780d) - Bug 1232577 part 4 - Add and remove (pseudo-)elements needing an animation style rule update to the EffectCompositor; r=heycam (62f6220505) - Bug 1232577 part 5 - Make sure CSSTransition::CancelFromStyle updates the transitions level of the cascade; r=heycam (e8912154f1) - Bug 1232577 part 6 - Add animation rule refresh time to EffectSet; r=heycam (ba10c84ace) - Bug 1232577 part 7 - Move call to SetNeedStyleFlush() to EffectCompositor::RequestRestyle; r=heycam (433ed32b4c) - Bug 1232577 part 8 - Move call to PostRestyleForAnimation to EffectCompositor; r=heycam (be7dd74654) - Bug 1232577 part 9 - Remove AnimationCollection::mStyleRuleRefreshTime; r=heycam (0fcc53cbfc) - Bug 1232577 part 10 - Remove AnimationCollection::mStyleChanging; r=heycam (0737fe0747) - Bug 1232577 part 11 - Remove AnimationCollection::mHasPendingAnimationRestyle; r=heycam (3d2aa0bfa4) - Bug 1232577 part 12 - Move the remainder of RequestRestyle from AnimationCollection to EffectCompositor; r=heycam (1a180acbc2) - Bug 1232577 part 13 - Move EnsureStyleRuleFor from AnimationCollection to EffectCompositor (dcce4b105b) - Bug 1232577 part 14 - Move FlushAnimations to EffectCompositor; r=heycam (67e5019f44) - Bug 1232577 part 15 - Drop LastStyleUpdateForAllAnimations flag from pres context; r=heycam (dce1abfd87) - Bug 1232577 part 16 - Move GetAnimationRule to EffectCompositor; r=heycam (df45ee5e40) - Bug 1232577 part 17 - Move AddStyleUpdatesTo to EffectCompositor; r=heycam (eb62d19b17) - Bug 1232577 part 18 - Drop RestyleManager::mLastUpdateForThrottledAniâ¦mations; r=heycam (066ca553d3) - Bug 1232577 part 19 - Move ClearIsRunningOnCompositor to EffectCompositor; r=heycam (0bd47b0890) - Bug 1237083 - Don't trigger layer flattening if the component alpha layer is directly on top of a forced active layer. r=roc (a54393afd9) - Bug 1231818 - Make FrameLayerBuilder try harder to respect layers.max-active pref. r=mstange (e9cbb8d6bd) - Bug 1231538 - Build a ContainerLayer for position:fixed and background-attachment:fixed content. r=roc (efbd221475) - Bug 1235186 - Part 2: Fix -Wclass-varargs warning in layout/. r=dholbert (4222fbf329) - Bug 1235186 - Part 1: Fix -Wformat warnings in layout/. r=dholbert (1f6be477be) - Bug 1235678. Fix printing animated geometry roots of display items. r=dholbert (69dbeb290f) - Bug 1239864 (part 9) - Use the new rect iterators in layout/ and ipc/. r=dholbert. (98626d2b36) - Bug 1239864 (part 10) - Use the new rect iterators in view/ and widget/. r=roc. (53a86e19d6) - Bug 1239864 (part 11) - Remove the old rect iterators. r=roc. (38d2fad35a) - Bug 1204084 - Double tap gesture fails when tapping on a large element contained in an iframe or scrollable div. r=botond (71463b4cdf) - Bug 1231517 - part 1, Move GetBoundingContentRect to nsLayoutUtils r=botond (3dbe9c6309) - Bug 1231517 - part 2, Add support for APZ ZoomToRectBehavior flags r=kats (4a7f22a0cf)
82 lines
2.7 KiB
C++
82 lines
2.7 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "AnimValuesStyleRule.h"
|
|
#include "nsRuleData.h"
|
|
#include "nsStyleContext.h"
|
|
|
|
namespace mozilla {
|
|
|
|
NS_IMPL_ISUPPORTS(AnimValuesStyleRule, nsIStyleRule)
|
|
|
|
void
|
|
AnimValuesStyleRule::MapRuleInfoInto(nsRuleData* aRuleData)
|
|
{
|
|
nsStyleContext *contextParent = aRuleData->mStyleContext->GetParent();
|
|
if (contextParent && contextParent->HasPseudoElementData()) {
|
|
// Don't apply transitions or animations to things inside of
|
|
// pseudo-elements.
|
|
// FIXME (Bug 522599): Add tests for this.
|
|
|
|
// Prevent structs from being cached on the rule node since we're inside
|
|
// a pseudo-element, as we could determine cacheability differently
|
|
// when walking the rule tree for a style context that is not inside
|
|
// a pseudo-element. Note that nsRuleNode::GetStyle##name_ and GetStyleData
|
|
// will never look at cached structs when we're animating things inside
|
|
// a pseduo-element, so that we don't incorrectly return a struct that
|
|
// is only appropriate for non-pseudo-elements.
|
|
aRuleData->mConditions.SetUncacheable();
|
|
return;
|
|
}
|
|
|
|
for (uint32_t i = 0, i_end = mPropertyValuePairs.Length(); i < i_end; ++i) {
|
|
PropertyValuePair &cv = mPropertyValuePairs[i];
|
|
if (aRuleData->mSIDs & nsCachedStyleData::GetBitForSID(
|
|
nsCSSProps::kSIDTable[cv.mProperty]))
|
|
{
|
|
nsCSSValue *prop = aRuleData->ValueFor(cv.mProperty);
|
|
if (prop->GetUnit() == eCSSUnit_Null) {
|
|
#ifdef DEBUG
|
|
bool ok =
|
|
#endif
|
|
StyleAnimationValue::UncomputeValue(cv.mProperty, cv.mValue, *prop);
|
|
MOZ_ASSERT(ok, "could not store computed value");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
bool
|
|
AnimValuesStyleRule::MightMapInheritedStyleData()
|
|
{
|
|
return mStyleBits & NS_STYLE_INHERITED_STRUCT_MASK;
|
|
}
|
|
|
|
#ifdef DEBUG
|
|
void
|
|
AnimValuesStyleRule::List(FILE* out, int32_t aIndent) const
|
|
{
|
|
nsAutoCString str;
|
|
for (int32_t index = aIndent; --index >= 0; ) {
|
|
str.AppendLiteral(" ");
|
|
}
|
|
str.AppendLiteral("[anim values] { ");
|
|
for (uint32_t i = 0, i_end = mPropertyValuePairs.Length(); i < i_end; ++i) {
|
|
const PropertyValuePair &pair = mPropertyValuePairs[i];
|
|
str.Append(nsCSSProps::GetStringValue(pair.mProperty));
|
|
str.AppendLiteral(": ");
|
|
nsAutoString value;
|
|
StyleAnimationValue::UncomputeValue(pair.mProperty, pair.mValue, value);
|
|
AppendUTF16toUTF8(value, str);
|
|
str.AppendLiteral("; ");
|
|
}
|
|
str.AppendLiteral("}\n");
|
|
fprintf_stderr(out, "%s", str.get());
|
|
}
|
|
#endif
|
|
|
|
} // namespace mozilla
|