зеркало из https://github.com/mozilla/pjs.git
Fix tree bustage.
This commit is contained in:
Родитель
ab8b1c4e77
Коммит
4926907728
|
@ -344,19 +344,10 @@ nsSplitterFrame::Init(nsIPresContext* aPresContext,
|
|||
nsIView* view;
|
||||
GetView(aPresContext, &view);
|
||||
|
||||
// currently this only works on win32
|
||||
#ifndef WIN32
|
||||
// currently this only works on win32 and mac
|
||||
#ifdef XP_UNIX
|
||||
view->SetContentTransparency(PR_TRUE);
|
||||
view->SetZIndex(kMaxZ);
|
||||
/*
|
||||
nsWidgetInitData widgetData;
|
||||
widgetData.mWindowType = eWindowType_child;
|
||||
widgetData.mBorderStyle = eBorderStyle_default;
|
||||
static NS_DEFINE_IID(kCChildCID, NS_CHILD_CID);
|
||||
view->CreateWidget(kCChildCID,
|
||||
&widgetData,
|
||||
nsnull);
|
||||
*/
|
||||
#else
|
||||
static NS_DEFINE_CID(kCChildCID, NS_CHILD_CID);
|
||||
nsCOMPtr<nsIViewManager> viewManager;
|
||||
|
@ -368,7 +359,6 @@ nsSplitterFrame::Init(nsIPresContext* aPresContext,
|
|||
view->CreateWidget(kCChildCID);
|
||||
#endif
|
||||
|
||||
|
||||
mInner->mState = nsSplitterFrameInner::Open;
|
||||
mInner->UpdateState();
|
||||
mInner->AddListener(aPresContext);
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsTitleFrame_h___
|
||||
#define nsTitleFrame_h___
|
||||
|
||||
#include "nsBoxFrame.h"
|
||||
|
||||
#define NS_TITLE_FRAME_CID \
|
||||
{ 0x73801d40, 0x5a22, 0x12d2, { 0x80, 0x46, 0x0, 0x60, 0x2, 0x14, 0xa7, 0x90 } }
|
||||
|
||||
class nsTitleFrame : public nsBoxFrame {
|
||||
public:
|
||||
|
||||
nsTitleFrame();
|
||||
virtual ~nsTitleFrame();
|
||||
|
||||
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
||||
|
||||
// we are always a vertical box.
|
||||
virtual PRBool GetInitialOrientation(PRBool& aIsHorizontal) { aIsHorizontal = PR_FALSE; return PR_TRUE; }
|
||||
|
||||
// never autostretch we align out children.
|
||||
virtual PRBool GetInitialAutoStretch(PRBool& aStretch) { aStretch = PR_FALSE; return PR_TRUE; }
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
#endif // guard
|
Загрузка…
Ссылка в новой задаче