2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/* rendering objects for replaced elements implemented by a plugin */
|
|
|
|
|
|
|
|
#ifndef nsObjectFrame_h___
|
|
|
|
#define nsObjectFrame_h___
|
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIObjectFrame.h"
|
|
|
|
#include "nsFrame.h"
|
2009-07-21 17:45:00 -07:00
|
|
|
#include "nsRegion.h"
|
|
|
|
#include "nsDisplayList.h"
|
2010-09-07 17:36:59 -07:00
|
|
|
#include "nsIReflowCallback.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-08-22 11:32:52 -07:00
|
|
|
#ifdef XP_WIN
|
|
|
|
#include <windows.h> // For HWND :(
|
|
|
|
#endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
class nsPresContext;
|
2012-08-16 21:25:19 -07:00
|
|
|
class nsRootPresContext;
|
2009-07-21 17:45:00 -07:00
|
|
|
class nsDisplayPlugin;
|
2011-02-12 08:09:03 -08:00
|
|
|
class nsIOSurface;
|
2011-02-16 14:43:30 -08:00
|
|
|
class PluginBackgroundSink;
|
2013-08-22 11:32:52 -07:00
|
|
|
class nsPluginInstanceOwner;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-07-30 17:42:26 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
class ImageContainer;
|
|
|
|
class Layer;
|
|
|
|
class LayerManager;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#define nsObjectFrameSuper nsFrame
|
|
|
|
|
2010-09-07 17:36:59 -07:00
|
|
|
class nsObjectFrame : public nsObjectFrameSuper,
|
|
|
|
public nsIObjectFrame,
|
|
|
|
public nsIReflowCallback {
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
2010-09-16 21:09:25 -07:00
|
|
|
typedef mozilla::LayerState LayerState;
|
|
|
|
typedef mozilla::layers::Layer Layer;
|
|
|
|
typedef mozilla::layers::LayerManager LayerManager;
|
|
|
|
typedef mozilla::layers::ImageContainer ImageContainer;
|
2013-09-26 23:01:16 -07:00
|
|
|
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
2010-09-16 21:09:25 -07:00
|
|
|
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
friend nsIFrame* NS_NewObjectFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
|
|
|
|
2009-01-12 11:20:59 -08:00
|
|
|
NS_DECL_QUERYFRAME
|
2012-09-28 14:53:44 -07:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsObjectFrame)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-19 18:47:48 -07:00
|
|
|
virtual void Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
2011-04-07 18:04:40 -07:00
|
|
|
virtual nscoord GetMinWidth(nsRenderingContext *aRenderingContext);
|
|
|
|
virtual nscoord GetPrefWidth(nsRenderingContext *aRenderingContext);
|
2007-03-22 10:30:00 -07:00
|
|
|
NS_IMETHOD Reflow(nsPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus);
|
|
|
|
NS_IMETHOD DidReflow(nsPresContext* aPresContext,
|
|
|
|
const nsHTMLReflowState* aReflowState,
|
|
|
|
nsDidReflowStatus aStatus);
|
2013-02-14 03:12:27 -08:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_IMETHOD HandleEvent(nsPresContext* aPresContext,
|
2013-10-01 20:46:03 -07:00
|
|
|
mozilla::WidgetGUIEvent* aEvent,
|
2007-03-22 10:30:00 -07:00
|
|
|
nsEventStatus* aEventStatus);
|
|
|
|
|
|
|
|
virtual nsIAtom* GetType() const;
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual bool IsFrameOfType(uint32_t aFlags) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
return nsObjectFrameSuper::IsFrameOfType(aFlags & ~(nsIFrame::eReplaced));
|
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool NeedsView() { return true; }
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
|
|
|
#endif
|
|
|
|
|
2009-12-23 21:21:15 -08:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-10-26 03:11:34 -07:00
|
|
|
virtual void DidSetStyleContext(nsStyleContext* aOldStyleContext);
|
2007-10-18 20:41:07 -07:00
|
|
|
|
2013-05-29 12:37:49 -07:00
|
|
|
NS_METHOD GetPluginInstance(nsNPAPIPluginInstance** aPluginInstance) MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
virtual void SetIsDocumentActive(bool aIsActive) MOZ_OVERRIDE;
|
2011-08-29 23:09:56 -07:00
|
|
|
|
2011-04-08 12:58:04 -07:00
|
|
|
NS_IMETHOD GetCursor(const nsPoint& aPoint, nsIFrame::Cursor& aCursor);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-10-06 06:03:23 -07:00
|
|
|
// APIs used by nsRootPresContext to set up the widget position/size/clip
|
|
|
|
// region.
|
|
|
|
/**
|
|
|
|
* Set the next widget configuration for the plugin to the desired
|
|
|
|
* position of the plugin's widget, on the assumption that it is not visible
|
|
|
|
* (clipped out or covered by opaque content).
|
|
|
|
* This will only be called for plugins which have been registered
|
|
|
|
* with the root pres context for geometry updates.
|
|
|
|
* If there is no widget associated with the plugin, this will have no effect.
|
|
|
|
*/
|
|
|
|
void SetEmptyWidgetConfiguration()
|
|
|
|
{
|
|
|
|
mNextConfigurationBounds = nsIntRect(0,0,0,0);
|
|
|
|
mNextConfigurationClipRegion.Clear();
|
2009-07-21 17:45:00 -07:00
|
|
|
}
|
2012-10-06 06:03:23 -07:00
|
|
|
/**
|
|
|
|
* Append the desired widget configuration to aConfigurations.
|
|
|
|
*/
|
|
|
|
void GetWidgetConfiguration(nsTArray<nsIWidget::Configuration>* aConfigurations)
|
|
|
|
{
|
|
|
|
if (mWidget) {
|
2012-10-16 21:51:57 -07:00
|
|
|
if (!mWidget->GetParent()) {
|
|
|
|
// Plugin widgets should not be toplevel except when they're out of the
|
|
|
|
// document, in which case the plugin should not be registered for
|
|
|
|
// geometry updates and this should not be called. But apparently we
|
|
|
|
// have bugs where mWidget sometimes is toplevel here. Bail out.
|
|
|
|
NS_ERROR("Plugin widgets registered for geometry updates should not be toplevel");
|
|
|
|
return;
|
|
|
|
}
|
2012-10-06 06:03:23 -07:00
|
|
|
nsIWidget::Configuration* configuration = aConfigurations->AppendElement();
|
|
|
|
configuration->mChild = mWidget;
|
|
|
|
configuration->mBounds = mNextConfigurationBounds;
|
|
|
|
configuration->mClipRegion = mNextConfigurationClipRegion;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Called after all widget position/size/clip regions have been changed
|
|
|
|
* (even if there isn't a widget for this plugin).
|
|
|
|
*/
|
2009-07-21 17:45:02 -07:00
|
|
|
void DidSetWidgetGeometry();
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
// accessibility support
|
|
|
|
#ifdef ACCESSIBILITY
|
2012-09-28 14:53:44 -07:00
|
|
|
virtual mozilla::a11y::AccType AccessibleType() MOZ_OVERRIDE;
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef XP_WIN
|
|
|
|
NS_IMETHOD GetPluginPort(HWND *aPort);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//local methods
|
2012-01-31 13:55:54 -08:00
|
|
|
nsresult PrepForDrawing(nsIWidget *aWidget);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// for a given aRoot, this walks the frame tree looking for the next outFrame
|
|
|
|
static nsIObjectFrame* GetNextObjectFrame(nsPresContext* aPresContext,
|
|
|
|
nsIFrame* aRoot);
|
|
|
|
|
2010-09-07 17:36:59 -07:00
|
|
|
// nsIReflowCallback
|
2012-09-14 09:10:08 -07:00
|
|
|
virtual bool ReflowFinished() MOZ_OVERRIDE;
|
|
|
|
virtual void ReflowCallbackCanceled() MOZ_OVERRIDE;
|
2010-09-07 17:36:59 -07:00
|
|
|
|
2011-02-16 14:43:30 -08:00
|
|
|
/**
|
|
|
|
* Builds either an ImageLayer or a ReadbackLayer, depending on the type
|
|
|
|
* of aItem (TYPE_PLUGIN or TYPE_PLUGIN_READBACK respectively).
|
|
|
|
*/
|
2010-09-16 21:09:25 -07:00
|
|
|
already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
|
|
|
LayerManager* aManager,
|
2012-09-16 15:25:33 -07:00
|
|
|
nsDisplayItem* aItem,
|
2013-09-26 23:01:16 -07:00
|
|
|
const ContainerLayerParameters& aContainerParameters);
|
2010-09-16 21:09:25 -07:00
|
|
|
|
2012-05-03 07:05:55 -07:00
|
|
|
LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
|
|
|
LayerManager* aManager);
|
2010-09-16 21:09:25 -07:00
|
|
|
|
2011-02-22 21:38:09 -08:00
|
|
|
/**
|
|
|
|
* Get the rectangle (relative to this frame) which it will paint. Normally
|
|
|
|
* the frame's content-box but may be smaller if the plugin is rendering
|
|
|
|
* asynchronously and has a different-sized image temporarily.
|
|
|
|
*/
|
|
|
|
nsRect GetPaintedRect(nsDisplayPlugin* aItem);
|
2010-09-16 21:09:25 -07:00
|
|
|
|
2010-09-18 04:28:49 -07:00
|
|
|
/**
|
|
|
|
* If aContent has a nsObjectFrame, then prepare it for a DocShell swap.
|
|
|
|
* @see nsSubDocumentFrame::BeginSwapDocShells.
|
|
|
|
* There will be a call to EndSwapDocShells after we were moved to the
|
|
|
|
* new view tree.
|
|
|
|
*/
|
|
|
|
static void BeginSwapDocShells(nsIContent* aContent, void*);
|
|
|
|
/**
|
|
|
|
* If aContent has a nsObjectFrame, then set it up after a DocShell swap.
|
|
|
|
* @see nsSubDocumentFrame::EndSwapDocShells.
|
|
|
|
*/
|
|
|
|
static void EndSwapDocShells(nsIContent* aContent, void*);
|
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
nsIWidget* GetWidget() MOZ_OVERRIDE { return mInnerView ? mWidget : nullptr; }
|
2011-03-31 14:33:46 -07:00
|
|
|
|
2011-08-29 23:09:56 -07:00
|
|
|
/**
|
|
|
|
* Adjust the plugin's idea of its size, using aSize as its new size.
|
|
|
|
* (aSize must be in twips)
|
|
|
|
*/
|
|
|
|
void FixupWindow(const nsSize& aSize);
|
|
|
|
|
2012-01-31 13:55:54 -08:00
|
|
|
/*
|
2011-08-29 23:09:56 -07:00
|
|
|
* Sets up the plugin window and calls SetWindow on the plugin.
|
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
nsresult CallSetWindow(bool aCheckIsHidden = true);
|
2011-08-29 23:09:56 -07:00
|
|
|
|
2012-01-31 13:55:54 -08:00
|
|
|
void SetInstanceOwner(nsPluginInstanceOwner* aOwner);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
nsObjectFrame(nsStyleContext* aContext);
|
|
|
|
virtual ~nsObjectFrame();
|
|
|
|
|
|
|
|
// NOTE: This frame class does not inherit from |nsLeafFrame|, so
|
|
|
|
// this is not a virtual method implementation.
|
|
|
|
void GetDesiredSize(nsPresContext* aPresContext,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize);
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
bool IsFocusable(int32_t *aTabIndex = nullptr, bool aWithMouse = false);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// check attributes and optionally CSS to see if we should display anything
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsHidden(bool aCheckVisibilityStyle = true) const;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool IsOpaque() const;
|
|
|
|
bool IsTransparentMode() const;
|
2012-10-06 06:03:23 -07:00
|
|
|
bool IsPaintedByGecko() const;
|
2009-07-21 17:45:00 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
nsIntPoint GetWindowOriginInPixels(bool aWindowless);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-07-06 19:49:38 -07:00
|
|
|
static void PaintPrintPlugin(nsIFrame* aFrame,
|
2011-04-07 18:04:40 -07:00
|
|
|
nsRenderingContext* aRenderingContext,
|
2008-07-06 19:49:38 -07:00
|
|
|
const nsRect& aDirtyRect, nsPoint aPt);
|
2011-04-07 18:04:40 -07:00
|
|
|
void PrintPlugin(nsRenderingContext& aRenderingContext,
|
2008-07-06 19:49:38 -07:00
|
|
|
const nsRect& aDirtyRect);
|
2010-10-25 07:38:09 -07:00
|
|
|
void PaintPlugin(nsDisplayListBuilder* aBuilder,
|
2011-04-07 18:04:40 -07:00
|
|
|
nsRenderingContext& aRenderingContext,
|
2009-09-10 18:44:20 -07:00
|
|
|
const nsRect& aDirtyRect, const nsRect& aPluginRect);
|
2008-07-06 19:49:38 -07:00
|
|
|
|
2010-01-21 07:17:52 -08:00
|
|
|
void NotifyPluginReflowObservers();
|
2009-11-20 14:59:27 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
friend class nsPluginInstanceOwner;
|
2009-07-21 17:45:00 -07:00
|
|
|
friend class nsDisplayPlugin;
|
2011-02-16 14:43:30 -08:00
|
|
|
friend class PluginBackgroundSink;
|
2009-07-21 17:45:00 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
private:
|
2012-08-16 21:25:19 -07:00
|
|
|
// Registers the plugin for a geometry update, and requests a geometry
|
|
|
|
// update. This caches the root pres context in
|
|
|
|
// mRootPresContextRegisteredWith, so that we can be sure we unregister
|
|
|
|
// from the right root prest context in UnregisterPluginForGeometryUpdates.
|
|
|
|
void RegisterPluginForGeometryUpdates();
|
|
|
|
|
|
|
|
// Unregisters the plugin for geometry updated with the root pres context
|
|
|
|
// stored in mRootPresContextRegisteredWith.
|
|
|
|
void UnregisterPluginForGeometryUpdates();
|
|
|
|
|
2010-01-21 07:17:52 -08:00
|
|
|
class PluginEventNotifier : public nsRunnable {
|
|
|
|
public:
|
|
|
|
PluginEventNotifier(const nsString &aEventType) :
|
|
|
|
mEventType(aEventType) {}
|
|
|
|
|
2013-05-29 12:37:49 -07:00
|
|
|
NS_IMETHOD Run() MOZ_OVERRIDE;
|
2010-01-21 07:17:52 -08:00
|
|
|
private:
|
|
|
|
nsString mEventType;
|
|
|
|
};
|
2012-01-31 13:55:54 -08:00
|
|
|
|
|
|
|
nsPluginInstanceOwner* mInstanceOwner; // WEAK
|
2013-01-03 05:23:11 -08:00
|
|
|
nsView* mInnerView;
|
2009-07-21 17:45:00 -07:00
|
|
|
nsCOMPtr<nsIWidget> mWidget;
|
2009-01-14 19:27:09 -08:00
|
|
|
nsIntRect mWindowlessRect;
|
2011-02-16 14:43:30 -08:00
|
|
|
/**
|
|
|
|
* This is owned by the ReadbackLayer for this nsObjectFrame. It is
|
|
|
|
* automatically cleared if the PluginBackgroundSink is destroyed.
|
|
|
|
*/
|
|
|
|
PluginBackgroundSink* mBackgroundSink;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-10-06 06:03:23 -07:00
|
|
|
/**
|
|
|
|
* Bounds that we should set the plugin's widget to in the next composite,
|
|
|
|
* for plugins with widgets. For plugins without widgets, bounds in device
|
|
|
|
* pixels relative to the nearest frame that's a display list reference frame.
|
|
|
|
*/
|
|
|
|
nsIntRect mNextConfigurationBounds;
|
|
|
|
/**
|
|
|
|
* Clip region that we should set the plugin's widget to
|
|
|
|
* in the next composite. Only meaningful for plugins with widgets.
|
|
|
|
*/
|
|
|
|
nsTArray<nsIntRect> mNextConfigurationClipRegion;
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mReflowCallbackPosted;
|
2010-09-16 21:09:25 -07:00
|
|
|
|
2012-08-16 21:25:19 -07:00
|
|
|
// We keep this reference to ensure we can always unregister the
|
|
|
|
// plugins we register on the root PresContext.
|
|
|
|
// This is only non-null while we have a plugin registered for geometry
|
|
|
|
// updates.
|
|
|
|
nsRefPtr<nsRootPresContext> mRootPresContextRegisteredWith;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2009-07-21 17:45:00 -07:00
|
|
|
class nsDisplayPlugin : public nsDisplayItem {
|
|
|
|
public:
|
2010-08-13 03:01:13 -07:00
|
|
|
nsDisplayPlugin(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame)
|
|
|
|
: nsDisplayItem(aBuilder, aFrame)
|
2009-07-21 17:45:00 -07:00
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(nsDisplayPlugin);
|
2012-10-17 22:34:58 -07:00
|
|
|
aBuilder->SetContainsPluginItem();
|
2009-07-21 17:45:00 -07:00
|
|
|
}
|
|
|
|
#ifdef NS_BUILD_REFCNT_LOGGING
|
|
|
|
virtual ~nsDisplayPlugin() {
|
|
|
|
MOZ_COUNT_DTOR(nsDisplayPlugin);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-09-14 09:10:08 -07:00
|
|
|
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder, bool* aSnap) MOZ_OVERRIDE;
|
2011-01-02 17:48:09 -08:00
|
|
|
virtual nsRegion GetOpaqueRegion(nsDisplayListBuilder* aBuilder,
|
2012-09-14 09:10:08 -07:00
|
|
|
bool* aSnap) MOZ_OVERRIDE;
|
2009-09-06 17:35:14 -07:00
|
|
|
virtual void Paint(nsDisplayListBuilder* aBuilder,
|
2012-09-14 09:10:08 -07:00
|
|
|
nsRenderingContext* aCtx) MOZ_OVERRIDE;
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool ComputeVisibility(nsDisplayListBuilder* aBuilder,
|
2011-01-27 14:58:50 -08:00
|
|
|
nsRegion* aVisibleRegion,
|
2012-09-14 09:10:08 -07:00
|
|
|
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
2009-07-21 17:45:00 -07:00
|
|
|
|
2010-07-15 14:07:49 -07:00
|
|
|
NS_DISPLAY_DECL_NAME("Plugin", TYPE_PLUGIN)
|
2009-07-21 17:45:00 -07:00
|
|
|
|
2010-09-16 21:09:25 -07:00
|
|
|
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
2011-06-22 05:11:27 -07:00
|
|
|
LayerManager* aManager,
|
2013-09-26 23:01:16 -07:00
|
|
|
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE
|
2010-09-16 21:09:25 -07:00
|
|
|
{
|
2011-02-12 08:09:03 -08:00
|
|
|
return static_cast<nsObjectFrame*>(mFrame)->BuildLayer(aBuilder,
|
|
|
|
aManager,
|
2012-09-16 15:25:33 -07:00
|
|
|
this,
|
|
|
|
aContainerParameters);
|
2010-09-16 21:09:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
2012-05-03 07:05:55 -07:00
|
|
|
LayerManager* aManager,
|
2013-09-26 23:01:16 -07:00
|
|
|
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
2010-09-16 21:09:25 -07:00
|
|
|
{
|
2011-02-16 14:43:30 -08:00
|
|
|
return static_cast<nsObjectFrame*>(mFrame)->GetLayerState(aBuilder,
|
|
|
|
aManager);
|
2010-09-16 21:09:25 -07:00
|
|
|
}
|
2009-07-21 17:45:00 -07:00
|
|
|
};
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#endif /* nsObjectFrame_h___ */
|