Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsFrameSetFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsFrameSetFrame.h"
#include "nsContentUtils.h"
#include "nsGenericHTMLElement.h"
#include "nsLeafFrame.h"
#include "nsHTMLContainerFrame.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsIComponentManager.h"
#include "nsIStreamListener.h"
#include "nsIURL.h"
#include "nsIDocument.h"
#include "nsINodeInfo.h"
#include "nsIView.h"
#include "nsIViewManager.h"
#include "nsWidgetsCID.h"
#include "nsHTMLAtoms.h"
#include "nsIScrollableView.h"
#include "nsStyleCoord.h"
#include "nsStyleConsts.h"
#include "nsStyleContext.h"
#include "nsIDocumentLoader.h"
#include "nsHTMLParts.h"
#include "nsILookAndFeel.h"
#include "nsGUIEvent.h"
#include "nsIRenderingContext.h"
#include "nsIServiceManager.h"
#include "nsIDOMMutationEvent.h"
#include "nsINameSpaceManager.h"
#include "nsCSSPseudoElements.h"
#include "nsCSSAnonBoxes.h"
#include "nsAutoPtr.h"
#include "nsStyleSet.h"
#include "nsLayoutAtoms.h"

Go to the source code of this file.

Classes

class  nsHTMLFramesetBorderFrame
class  nsHTMLFramesetBlankFrame

Defines

#define LEFT_VIS   0x0001
#define RIGHT_VIS   0x0002
#define TOP_VIS   0x0004
#define BOTTOM_VIS   0x0008
#define ALL_VIS   0x000F
#define NONE_VIS   0x0000
#define kFrameResizePref   "layout.frames.force_resizability"
#define DEFAULT_BORDER_WIDTH_PX   6
#define FRAMESET   0
#define FRAME   1
#define BLANK   2

Functions

static NS_DEFINE_CID (kLookAndFeelCID, NS_LOOKANDFEEL_CID)
static nsFrameborder GetFrameBorderHelper (nsGenericHTMLElement *aContent)
nsresult NS_NewHTMLFramesetFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Define Documentation

#define ALL_VIS   0x000F

Definition at line 80 of file nsFrameSetFrame.cpp.

#define BLANK   2

Definition at line 303 of file nsFrameSetFrame.cpp.

#define BOTTOM_VIS   0x0008

Definition at line 79 of file nsFrameSetFrame.cpp.

Definition at line 213 of file nsFrameSetFrame.cpp.

#define FRAME   1

Definition at line 302 of file nsFrameSetFrame.cpp.

#define FRAMESET   0

Definition at line 301 of file nsFrameSetFrame.cpp.

#define kFrameResizePref   "layout.frames.force_resizability"

Definition at line 212 of file nsFrameSetFrame.cpp.

#define LEFT_VIS   0x0001

Definition at line 76 of file nsFrameSetFrame.cpp.

#define NONE_VIS   0x0000

Definition at line 81 of file nsFrameSetFrame.cpp.

#define RIGHT_VIS   0x0002

Definition at line 77 of file nsFrameSetFrame.cpp.

#define TOP_VIS   0x0004

Definition at line 78 of file nsFrameSetFrame.cpp.


Function Documentation

static nsFrameborder GetFrameBorderHelper ( nsGenericHTMLElement aContent) [static]

Definition at line 895 of file nsFrameSetFrame.cpp.

{
  if (nsnull != aContent) {
    const nsAttrValue* attr = aContent->GetParsedAttr(nsHTMLAtoms::frameborder);
    if (attr && attr->Type() == nsAttrValue::eEnum) {
      switch (attr->GetEnumValue())
      {
        case NS_STYLE_FRAME_YES:
        case NS_STYLE_FRAME_1:
          return eFrameborder_Yes;
          break;

        case NS_STYLE_FRAME_NO:
        case NS_STYLE_FRAME_0:
          return eFrameborder_No;
          break;
      }
    }
  }
  return eFrameborder_Notset;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kLookAndFeelCID  ,
NS_LOOKANDFEEL_CID   
) [static]
nsresult NS_NewHTMLFramesetFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 1591 of file nsFrameSetFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsHTMLFramesetFrame* it = new (aPresShell) nsHTMLFramesetFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function: