mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Create image frames for images
This commit is contained in:
parent
24d6fc51e8
commit
3a02ee8d0b
@ -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