Create image frames for images
git-svn-id: svn://10.0.0.236/trunk@9287 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3b3e4fc761
commit
859eb894bc
@ -43,6 +43,7 @@
|
||||
#include "nsXIFConverter.h"
|
||||
#include "nsFrame.h"
|
||||
|
||||
#include "nsHTMLParts.h"
|
||||
#include "nsString.h"
|
||||
#include "nsHTMLAtoms.h"
|
||||
#include "nsDOMEventsIIDs.h"
|
||||
@ -1625,6 +1626,9 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
|
||||
else if (mTag == nsHTMLAtoms::hr) {
|
||||
rv = NS_NewHRFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
else if (mTag == nsHTMLAtoms::img) {
|
||||
rv = NS_NewImageFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
else if (mTag == nsHTMLAtoms::object) {
|
||||
rv = NS_NewObjectFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
|
||||
@ -43,6 +43,7 @@
|
||||
#include "nsXIFConverter.h"
|
||||
#include "nsFrame.h"
|
||||
|
||||
#include "nsHTMLParts.h"
|
||||
#include "nsString.h"
|
||||
#include "nsHTMLAtoms.h"
|
||||
#include "nsDOMEventsIIDs.h"
|
||||
@ -1625,6 +1626,9 @@ nsGenericHTMLElement::CreateFrame(nsIPresContext* aPresContext,
|
||||
else if (mTag == nsHTMLAtoms::hr) {
|
||||
rv = NS_NewHRFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
else if (mTag == nsHTMLAtoms::img) {
|
||||
rv = NS_NewImageFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
else if (mTag == nsHTMLAtoms::object) {
|
||||
rv = NS_NewObjectFrame(mContent, aParentFrame, frame);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user