mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-02-06 02:30:56 +00:00
#416: M1378147 M1371890 M1380426
This commit is contained in:
parent
d9876efcf1
commit
177c87d344
@ -597,12 +597,17 @@ ImageDocument::UpdateSizeFromLayout()
|
||||
{
|
||||
// Pull an updated size from the content frame to account for any size
|
||||
// change due to CSS properties like |image-orientation|.
|
||||
Element* contentElement = mImageContent->AsElement();
|
||||
if (!contentElement) {
|
||||
if (!mImageContent) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsIFrame* contentFrame = contentElement->GetPrimaryFrame(Flush_Frames);
|
||||
// Need strong ref, because GetPrimaryFrame can run script.
|
||||
nsCOMPtr<Element> imageContent = mImageContent->AsElement();
|
||||
if (!imageContent) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsIFrame* contentFrame = imageContent->GetPrimaryFrame(Flush_Frames);
|
||||
if (!contentFrame) {
|
||||
return;
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
NS_ASSERTION(mListener, "no stream listener specified");
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_FORWARD_NSIREQUESTOBSERVER(mListener->)
|
||||
NS_FORWARD_NSISTREAMLISTENER(mListener->)
|
||||
NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER
|
||||
|
@ -299,6 +299,13 @@ nsFTPDirListingConv::DigestBufferLines(char *aBuffer, nsCString &aString) {
|
||||
|
||||
// MODIFIED DATE
|
||||
char buffer[256] = "";
|
||||
|
||||
// ParseFTPList can return time structure with invalid values.
|
||||
// PR_NormalizeTime will set all values into valid limits.
|
||||
result.fe_time.tm_params.tp_gmt_offset = 0;
|
||||
result.fe_time.tm_params.tp_dst_offset = 0;
|
||||
PR_NormalizeTime(&result.fe_time, PR_GMTParameters);
|
||||
|
||||
// Note: The below is the RFC822/1123 format, as required by
|
||||
// the application/http-index-format specs
|
||||
// viewers of such a format can then reformat this into the
|
||||
|
Loading…
x
Reference in New Issue
Block a user