2011-04-12 10:18:43 +04:00
|
|
|
/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2011-04-12 10:18:43 +04:00
|
|
|
|
2013-10-23 00:55:14 +04:00
|
|
|
#include "AnimationCommon.h"
|
2013-10-22 16:14:41 +04:00
|
|
|
#include "nsTransitionManager.h"
|
|
|
|
#include "nsAnimationManager.h"
|
|
|
|
|
2014-06-20 07:39:25 +04:00
|
|
|
#include "ActiveLayerTracker.h"
|
2013-10-22 16:14:41 +04:00
|
|
|
#include "gfxPlatform.h"
|
2014-06-20 07:39:24 +04:00
|
|
|
#include "nsCSSPropertySet.h"
|
2011-04-12 10:18:43 +04:00
|
|
|
#include "nsCSSValue.h"
|
2014-07-16 04:02:30 +04:00
|
|
|
#include "nsCycleCollectionParticipant.h"
|
2011-04-12 10:18:43 +04:00
|
|
|
#include "nsStyleContext.h"
|
2012-07-31 21:28:21 +04:00
|
|
|
#include "nsIFrame.h"
|
2012-07-31 21:28:22 +04:00
|
|
|
#include "nsLayoutUtils.h"
|
2012-12-12 01:12:43 +04:00
|
|
|
#include "FrameLayerBuilder.h"
|
|
|
|
#include "nsDisplayList.h"
|
2015-12-04 02:32:53 +03:00
|
|
|
#include "mozilla/AnimationUtils.h"
|
2016-01-06 05:04:04 +03:00
|
|
|
#include "mozilla/EffectCompositor.h"
|
2015-12-04 02:32:53 +03:00
|
|
|
#include "mozilla/EffectSet.h"
|
2013-06-23 16:03:39 +04:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2015-04-15 02:48:21 +03:00
|
|
|
#include "mozilla/dom/KeyframeEffect.h"
|
2014-11-20 05:48:41 +03:00
|
|
|
#include "nsRuleProcessorData.h"
|
2013-10-22 16:14:41 +04:00
|
|
|
#include "nsStyleSet.h"
|
|
|
|
#include "nsStyleChangeList.h"
|
|
|
|
|
2015-04-21 04:22:09 +03:00
|
|
|
using mozilla::dom::Animation;
|
2015-04-30 16:06:43 +03:00
|
|
|
using mozilla::dom::KeyframeEffectReadOnly;
|
2011-04-12 10:18:43 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2015-07-29 04:57:39 +03:00
|
|
|
nsPresContext*
|
|
|
|
OwningElementRef::GetRenderedPresContext() const
|
|
|
|
{
|
|
|
|
if (!mElement) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsIDocument* doc = mElement->GetComposedDoc();
|
|
|
|
if (!doc) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsIPresShell* shell = doc->GetShell();
|
|
|
|
if (!shell) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
return shell->GetPresContext();
|
|
|
|
}
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace mozilla
|