mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1129774. Remove unused nsBaseWidget::GetDeviceContext. r=jmathies
This commit is contained in:
parent
bf9d0bebcc
commit
91fe96a132
@ -127,7 +127,6 @@ nsBaseWidget::nsBaseWidget()
|
||||
, mForceLayersAcceleration(false)
|
||||
, mTemporarilyUseBasicLayerManager(false)
|
||||
, mUseAttachedEvents(false)
|
||||
, mContextInitialized(false)
|
||||
, mBounds(0,0,0,0)
|
||||
, mOriginalBounds(nullptr)
|
||||
, mClipRectCount(0)
|
||||
@ -1128,20 +1127,6 @@ TemporaryRef<mozilla::gfx::DrawTarget> nsBaseWidget::StartRemoteDrawing()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Return the used device context
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
nsDeviceContext* nsBaseWidget::GetDeviceContext()
|
||||
{
|
||||
if (!mContextInitialized) {
|
||||
mContext->Init(this);
|
||||
mContextInitialized = true;
|
||||
}
|
||||
return mContext;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Destroy the window
|
||||
|
@ -136,7 +136,6 @@ public:
|
||||
virtual void SetWindowAnimationType(WindowAnimationType aType) MOZ_OVERRIDE {}
|
||||
NS_IMETHOD HideWindowChrome(bool aShouldHide) MOZ_OVERRIDE;
|
||||
NS_IMETHOD MakeFullScreen(bool aFullScreen, nsIScreen* aScreen = nullptr) MOZ_OVERRIDE;
|
||||
virtual nsDeviceContext* GetDeviceContext() MOZ_OVERRIDE;
|
||||
virtual LayerManager* GetLayerManager(PLayerTransactionChild* aShadowManager = nullptr,
|
||||
LayersBackend aBackendHint = mozilla::layers::LayersBackend::LAYERS_NONE,
|
||||
LayerManagerPersistence aPersistence = LAYER_MANAGER_CURRENT,
|
||||
@ -452,7 +451,6 @@ protected:
|
||||
// such windows.
|
||||
bool mRequireOffMainThreadCompositing;
|
||||
bool mUseAttachedEvents;
|
||||
bool mContextInitialized;
|
||||
nsIntRect mBounds;
|
||||
nsIntRect* mOriginalBounds;
|
||||
// When this pointer is null, the widget is not clipped
|
||||
|
@ -1644,9 +1644,6 @@ class nsIWidget : public nsISupports {
|
||||
virtual void SetNativeData(uint32_t aDataType, uintptr_t aVal) = 0;
|
||||
virtual void FreeNativeData(void * data, uint32_t aDataType) = 0;//~~~
|
||||
|
||||
// GetDeviceContext returns a weak pointer to this widget's device context
|
||||
virtual nsDeviceContext* GetDeviceContext() = 0;
|
||||
|
||||
//@}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user