Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Bug 767790 - Remove nsIHTMLDocument::{Get,Set}IsFrameset; r=mounir
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Jul 2, 2012
1 parent e2a29b2 commit 356b350
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
5 changes: 0 additions & 5 deletions content/html/document/src/nsHTMLDocument.h
Expand Up @@ -79,9 +79,6 @@ class nsHTMLDocument : public nsDocument,
return mWriteLevel != PRUint32(0);
}

virtual bool GetIsFrameset() { return mIsFrameset; }
virtual void SetIsFrameset(bool aFrameset) { mIsFrameset = aFrameset; }

virtual NS_HIDDEN_(nsContentList*) GetForms();

virtual NS_HIDDEN_(nsContentList*) GetFormControls();
Expand Down Expand Up @@ -253,8 +250,6 @@ class nsHTMLDocument : public nsDocument,
// Load flags of the document's channel
PRUint32 mLoadFlags;

bool mIsFrameset;

bool mTooDeepWriteRecursion;

bool mDisableDocWrite;
Expand Down
7 changes: 2 additions & 5 deletions content/html/document/src/nsIHTMLDocument.h
Expand Up @@ -17,8 +17,8 @@ class nsContentList;
class nsWrapperCache;

#define NS_IHTMLDOCUMENT_IID \
{ 0xa921276f, 0x5e70, 0x42e0, \
{ 0xb8, 0x36, 0x7e, 0x6a, 0xb8, 0x30, 0xb3, 0xc0 } }
{ 0xcf814492, 0x303c, 0x4718, \
{ 0x9a, 0x3e, 0x39, 0xbc, 0xd5, 0x2c, 0x10, 0xdb } }

/**
* HTML document extensions to nsIDocument.
Expand Down Expand Up @@ -58,9 +58,6 @@ class nsIHTMLDocument : public nsISupports

virtual bool IsWriting() = 0;

virtual bool GetIsFrameset() = 0;
virtual void SetIsFrameset(bool aFrameset) = 0;

/**
* Get the list of form elements in the document.
*/
Expand Down
7 changes: 0 additions & 7 deletions layout/base/nsDocumentViewer.cpp
Expand Up @@ -726,13 +726,6 @@ DocumentViewerImpl::InitPresentationStuff(bool aDoInitialReflow)
mPresContext->SetMinFontSize(mMinFontSize);

if (aDoInitialReflow) {
nsCOMPtr<nsIHTMLDocument> htmlDoc = do_QueryInterface(mDocument);
if (htmlDoc) {
nsCOMPtr<nsIDOMHTMLFrameSetElement> frameset =
do_QueryInterface(mDocument->GetRootElement());
htmlDoc->SetIsFrameset(frameset != nsnull);
}

nsCOMPtr<nsIPresShell> shellGrip = mPresShell;
// Initial reflow
mPresShell->InitialReflow(width, height);
Expand Down
8 changes: 0 additions & 8 deletions parser/html/nsHtml5TreeOperation.cpp
Expand Up @@ -392,14 +392,6 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
newContent->AppendChildTo(optionElt, false);
newContent->DoneAddingChildren(false);
}
} else if (name == nsHtml5Atoms::frameset && ns == kNameSpaceID_XHTML) {
nsIDocument* doc = aBuilder->GetDocument();
nsCOMPtr<nsIHTMLDocument> htmlDocument = do_QueryInterface(doc);
if (htmlDocument) {
// It seems harmless to call this multiple times, since this
// is a simple field setter
htmlDocument->SetIsFrameset(true);
}
}

if (!attributes) {
Expand Down

0 comments on commit 356b350

Please sign in to comment.