Closed Bug 437552 Opened 17 years ago Closed 16 years ago

Clean up whitespace-on-blank-lines problem in /PreferencePanes

Categories

(Camino Graveyard :: Preferences, defect)

All
macOS
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla-graveyard, Assigned: bugzilla-graveyard)

References

Details

Attachments

(2 files, 3 obsolete files)

There's a ton of whitespace on blank lines in Appearance.mm and a couple in Appearance.h. We should kill it. There are something like three different patches in the queues right now that touch one or both of these two files, though, so let's wait until some of that stuff lands or we'll end up with lots of bitrot.
Depends on: 411189
No longer depends on: 411489
Assignee: nobody → cl-bugs-new
Status: NEW → ASSIGNED
Attached patch style fix v1.0 (obsolete) — Splinter Review
Jeff, can you take a look at this? It's purely style fixes (and there might be some I missed, so feel free to be nitpicky).
Attachment #340867 - Flags: review?(Jeff.Dlouhy)
Comment on attachment 340867 [details] [diff] [review] style fix v1.0 Ah, pretty code. r=me.
Attachment #340867 - Flags: review?(Jeff.Dlouhy) → review+
Comment on attachment 340867 [details] [diff] [review] style fix v1.0 This is the old patches police; please choose your desired sr.
Attachment #340867 - Attachment is obsolete: true
Attachment #350936 - Flags: review?(Jeff.Dlouhy)
Attachment #340867 - Flags: superreview?
Turns out there's a bunch in the rest of /PreferencePanes, too, along with lots of other minor issues (tabs, inconsistent whitespace usage, etc.). This patch fixes all of it. If you want me to break this up into separate patches (and bugs) for each pref pane, I can do that, too.
Summary: Clean up whitespace-on-blank-lines problem in Appearance preference pane → Clean up whitespace-on-blank-lines problem in /PreferencePanes
Attachment #350936 - Flags: review?(Jeff.Dlouhy) → review+
Comment on attachment 350936 [details] [diff] [review] fix v1.1, takes care of the rest of /PreferencePanes too Things look good. I just found some trailing whitespace that was not removed. (in patch file) * 44% down line 1175 + // The three options in the popup contains tags 0-2; set the pref according to the * 91% down line 2374 +// Enable and disable Mozilla's popup-blocking feature. We use a combination of * 91% down line 2402 +// Enable and disable FlashBlock. When enabled, an icon is displayed and the r=me
Comment on attachment 350936 [details] [diff] [review] fix v1.1, takes care of the rest of /PreferencePanes too I'll go ahead and nominate this for sr now, with the proviso that I spin a patch for checkin that addresses the review comments. I expect this patch will probably rot when the Flashblock whitelist lands, so that's why I didn't bother spinning a fresh patch for sr.
Attachment #350936 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #350936 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Comment on attachment 350936 [details] [diff] [review] fix v1.1, takes care of the rest of /PreferencePanes too Don't remove the blank line in dealloc; there's nothing wrong with separating the call to super. I'm not sure I agree that we should be changing * spacing in these kind of patches, since we explicitly don't have a set style for that, but I guess it's not worth ripping out of the patch either. sr=smorgan.
Attached patch fix v1.11 (for checkin) (obsolete) — Splinter Review
(In reply to comment #8) > I'm not sure I agree that we should be changing * spacing in these kind of > patches, since we explicitly don't have a set style for that, but I guess it's > not worth ripping out of the patch either. Not trying to be argumentative here, but here's the quote from the style guide: "We explicitly have no style rule regarding the placement of *. Aim to be consistent within a file in as much as the files are consistent." Since the spacing in that file (and others, though most of the changes were in Appearance.mm) was generally in favour of (foo*) or |foo* |, and since several of the instances of |foo *| used a tab instead of a space, I figured we might as well go ahead and make the file consistent. Transferring r/sr+ from the last patch. This one fixes Jeff and Stuart's comments and is ready for checkin.
Attachment #350936 - Attachment is obsolete: true
Attachment #352338 - Flags: superreview+
Attachment #352338 - Flags: review+
To enable the Flashblock whitelist (bug 371895) to land ASAP without any extra patch-wrangling, Chris is going to split this patch up into two parts: one for WebFeatures changes, and one for the rest of PreferencePanes. We'll land the latter now and the former (plus any unbitrotting) after the whitelist.
Attachment #352338 - Attachment is obsolete: true
Comment on attachment 352372 [details] [diff] [review] without WebFeatures.* changes [checked in] Checked this in on cvs trunk.
Attachment #352372 - Attachment description: without WebFeatures.* changes → without WebFeatures.* changes [checked in]
Here are the WebFeatures.* changes merged with the Flashblock whitelist landing.
Comment on attachment 353348 [details] [diff] [review] WebFeatures.* changes Smokey wanted someone to take a look at this before it lands, just as a sanity check.
Attachment #353348 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #353348 - Flags: review?(trendyhendy2000)
Attachment #353348 - Flags: review?(trendyhendy2000) → review+
Comment on attachment 353348 [details] [diff] [review] WebFeatures.* changes - (int)popupIndexForCurrentTabFocusPref { Brace needs to be put on a new line. r+ with that change.
Attachment #353348 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Comment on attachment 353348 [details] [diff] [review] WebFeatures.* changes sr=smorgan
Smokey, do you forget to land attachment 353348 [details] [diff] [review]?
Thanks for catching that, Eiichi. Checked in the WebFeatures patch on cvs trunk with hendy's change.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: