Closed
Bug 233457
Opened 21 years ago
Closed 21 years ago
nsObjectFrame cleanup
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file, 1 obsolete file)
20.05 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
mostly decom
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
this version no longer addrefs frames..
Attachment #140901 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Assignee | ||
Updated•21 years ago
|
Attachment #140906 -
Flags: superreview?(bzbarsky)
Attachment #140906 -
Flags: review?(bzbarsky)
Building deps for
/cygdrive/d/cvs-1.11.5/mozilla/layout/svg/base/src/nsSVGLineFrame.cpp
nsSVGLineFrame.cpp
nsSVGOuterSVGFrame.cpp
Building deps for
/cygdrive/d/cvs-1.11.5/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp
nsSVGOuterSVGFrame.cpp
d:/cvs-1.11.5/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp(313) : fatal
error C1189: #error : "No SVG renderer."
My .mozconfig:
export MOZ_PROFILE=1
export MOZ_INTERNAL_LIBART_LGPL=1
ac_add_options --enable-crypto
ac_add_options --enable-svg
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize=-O2
ac_add_options
--enable-extensions=cookie,xml-rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices
ac add_options --enable-mathml
#ac_add_options --enable-static
#ac_add_options --disable-shared
mk_add_options MOZ_OBJDIR=../mozbuild
![]() |
||
Comment 4•21 years ago
|
||
Comment on attachment 140906 [details] [diff] [review]
patch v2
>Index: nsObjectFrame.cpp
>+PRBool nsObjectFrame::IsSupportedDocument(nsIContent* aContent)
>+ if((rv == NS_CONTENT_ATTR_HAS_VALUE) && (!type.IsEmpty()))
Remove the extra parens.
>+ if((rv == NS_CONTENT_ATTR_HAS_VALUE) && (!data.IsEmpty()))
Same.
>+ PRBool ret = PR_FALSE;
> if (NS_SUCCEEDED(rv) && !value.IsEmpty())
>- *aDoc = PR_TRUE;
>+ ret = PR_TRUE;
>
> if (contentType)
> nsMemory::Free(contentType);
>+
>+ return ret;
How about:
if (contentType)
nsMemory::Free(contentType);
return NS_SUCCEEDED(rv) && !value.IsEmpty();
For that matter, how about switching to nsXPIDLCString for contentType?
>+nsPoint nsObjectFrame::GetWindowOriginInPixels(PRBool aWindowless)
How about doing
nsIPresContext* presContext = GetPresContext();
so you don't have to call it twice?
> void nsPluginInstanceOwner::GUItoMacEvent(const nsGUIEvent& anEvent, EventRecord* origEvent, EventRecord& aMacEvent)
Again, have just one GetPresContext() call here?
r+sr=bzbarsky with those changes.
Attachment #140906 -
Flags: superreview?(bzbarsky)
Attachment #140906 -
Flags: superreview+
Attachment #140906 -
Flags: review?(bzbarsky)
Attachment #140906 -
Flags: review+
After fixing my tree and mozconfig, it compiled and printing
http://macromedia.com/ produced results identical to a standard build on WinXP.
Assignee | ||
Comment 6•21 years ago
|
||
checked in, with changes made; I used nsXPIDLCString.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•