зеркало из https://github.com/mozilla/pjs.git
Bug 514990 - Remove unused live resize methods. r=josh
--HG-- extra : rebase_source : 2da53fc4120e4648e4080d573d15a40d41f453d8
This commit is contained in:
Родитель
d8767d3ac0
Коммит
5e5940c845
|
@ -394,9 +394,6 @@ public:
|
|||
|
||||
virtual PRBool DispatchWindowEvent(nsGUIEvent& event);
|
||||
|
||||
void LiveResizeStarted();
|
||||
void LiveResizeEnded();
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
void GetDocumentAccessible(nsIAccessible** aAccessible);
|
||||
#endif
|
||||
|
@ -456,7 +453,6 @@ protected:
|
|||
|
||||
PRPackedBool mVisible;
|
||||
PRPackedBool mDrawing;
|
||||
PRPackedBool mLiveResizeInProgress;
|
||||
PRPackedBool mIsPluginView;
|
||||
PRPackedBool mPluginDrawing;
|
||||
PRPackedBool mPluginIsCG; // true if this is a CoreGraphics plugin
|
||||
|
|
|
@ -477,7 +477,6 @@ nsChildView::nsChildView() : nsBaseWidget()
|
|||
, mParentWidget(nsnull)
|
||||
, mVisible(PR_FALSE)
|
||||
, mDrawing(PR_FALSE)
|
||||
, mLiveResizeInProgress(PR_FALSE)
|
||||
, mIsPluginView(PR_FALSE)
|
||||
, mPluginDrawing(PR_FALSE)
|
||||
, mPluginIsCG(PR_FALSE)
|
||||
|
@ -1378,17 +1377,6 @@ NS_IMETHODIMP nsChildView::GetPluginEventModel(int* outEventModel)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void nsChildView::LiveResizeStarted()
|
||||
{
|
||||
// XXX todo. Use this to disable Java async redraw during resize
|
||||
mLiveResizeInProgress = PR_TRUE;
|
||||
}
|
||||
|
||||
void nsChildView::LiveResizeEnded()
|
||||
{
|
||||
mLiveResizeInProgress = PR_FALSE;
|
||||
}
|
||||
|
||||
static NSString* ToNSString(const nsAString& aString)
|
||||
{
|
||||
return [NSString stringWithCharacters:aString.BeginReading()
|
||||
|
@ -2404,30 +2392,6 @@ NSEvent* gLastDragEvent = nil;
|
|||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
||||
- (void)viewWillStartLiveResize
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
if (mGeckoChild && mIsPluginView)
|
||||
mGeckoChild->LiveResizeStarted();
|
||||
|
||||
[super viewWillStartLiveResize];
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
||||
- (void)viewDidEndLiveResize
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
if (mGeckoChild && mIsPluginView)
|
||||
mGeckoChild->LiveResizeEnded();
|
||||
|
||||
[super viewDidEndLiveResize];
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
||||
// Needed to deal with the consequences of calling [NSCell
|
||||
// drawWithFrame:inView:] with a ChildView object as the inView parameter
|
||||
// (this can happen in nsNativeThemeCocoa.mm): drawWithFrame:inView:
|
||||
|
|
Загрузка…
Ссылка в новой задаче