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