Bug 1129774. Remove unused nsBaseWidget::GetDeviceContext. r=jmathies

This commit is contained in:
Robert O'Callahan 2015-02-05 17:03:32 +13:00
parent bf9d0bebcc
commit 91fe96a132
3 changed files with 0 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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;
//@}
/**