Closed
Bug 678133
Opened 13 years ago
Closed 13 years ago
Remove PRBools from nsRefreshDriver and nsImageFrame
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
DUPLICATE
of bug 675553
People
(Reporter: jwir3, Unassigned)
Details
Attachments
(1 obsolete file)
To continue the work being done in bug 672225, we should look toward removing PRBools in nsRefreshDriver.h/.cpp, as well as in nsImageFrame.h/.cpp, and replace these occurrences with simple bools.
Comment 1•13 years ago
|
||
In nsRefreshDriver.(h|cpp) and nsImageFrame.(h|cpp):
s/PRBool/bool/g
s/PR_FALSE/false/g
s/PR_TRUE/true/g
Minus the following instances that would require multiple changes elsewhere in the tree (if my MXR foo is correct):
layout/generic/nsImageFrame.h
- virtual PRBool IsFrameOfType(PRUint32 aFlags) const
+ virtual bool IsFrameOfType(PRUint32 aFlags) const
layout/generic/nsImageFrame.cpp
NS_IMETHODIMP
nsImageFrame::IconLoad::OnDataAvailable(imgIRequest *aRequest,
- PRBool aCurrentFrame,
+ bool aCurrentFrame,
NS_IMETHODIMP
nsImageFrame::IconLoad::OnStopRequest(imgIRequest *aRequest,
- PRBool aIsLastPart)
+ bool aIsLastPart)
layout/base/nsRefreshDriver.cpp
-static PRBool sPrecisePref;
+static bool sPrecisePref;
/* static */ void
nsRefreshDriver::InitializeStatics()
{
Preferences::AddBoolVarCache(&sPrecisePref,
"layout.frame_rate.precise",
- PR_FALSE);
+ false);
Comment on attachment 554194 [details] [diff] [review]
Patch v1
Review of attachment 554194 [details] [diff] [review]:
-----------------------------------------------------------------
This is OK, but please don't do any more of these. Michael Wu is working on wholesale, automated PRBool -> bool conversion so it's not really worth anyone's time to do it bit by bit.
Attachment #554194 -
Flags: review?(roc) → review+
Comment 3•13 years ago
|
||
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #2)
> This is OK, but please don't do any more of these. Michael Wu is working on
> wholesale, automated PRBool -> bool conversion so it's not really worth
> anyone's time to do it bit by bit.
Ah indeed in bug 675553. That plus the fact that the patch attached here causes M3, M5 and crashtest failures as is (http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=1f298a2b3b2c) - makes me think it's easier to just dupe this to there and wait on the automated solution; rather than trying to continue any more here.
Assignee: bmo → nobody
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•13 years ago
|
Attachment #554194 -
Attachment is obsolete: true
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•