Closed Bug 391738 Opened 18 years ago Closed 17 years ago

Feed icon changes don't update location bar padding correctly

Categories

(Camino Graveyard :: Location Bar & Autocomplete, defect)

x86
macOS
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stuart.morgan+bugzilla, Assigned: chris)

References

()

Details

Attachments

(1 file, 2 obsolete files)

I almost always see incorrect padding around the feed icon (no space at all between the left edge and the text) when it appears on top of a URL in the location bar, but anything that causes a redraw (clicking in the bar, resizing the window, etc.) fixes it. It feels like we are changing some internal sizing but not calling setNeedsDisplay:.
Attached patch Fix v1.0 (obsolete) — Splinter Review
You're right, it does need a setNeedsDisplay: call or two. Here's a patch.
Assignee: nobody → trendyhendy2000
Status: NEW → ASSIGNED
Attachment #337186 - Flags: review?
Attachment #337186 - Flags: review? → review-
Comment on attachment 337186 [details] [diff] [review] Fix v1.0 > -(void)positionFeedIcon > [...] >+ [self setNeedsDisplay:YES]; This one should be in displayFeedIcon: In both cases, put the setNeedsDisplay: inside each of the if and else blocks, since when neither happens we don't need to display. (Just go ahead and request sr from me for the next round)
Attached patch Fix v1.1 (obsolete) — Splinter Review
Fix incorporating reviewer comments.
Attachment #337186 - Attachment is obsolete: true
Attachment #337245 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #337245 - Flags: superreview?(stuart.morgan+bugzilla) → superreview-
Comment on attachment 337245 [details] [diff] [review] Fix v1.1 >+ [self setNeedsDisplay:YES]; > > // If the feed icon needs to be displayed, and it was drawn before the secure icon, move the > // feed icon to the left hand side of the secure icon. > if ([[self cell] isFeedIconDisplayed]) > [self positionFeedIcon]; setNeedsDisplay should be called after all the changes that require a display. Also, we should be calling setNeedsDisplay in the hiding cases as well; either changes requires re-displaying.
Attached patch Fix v1.2Splinter Review
Should have setNeedsDisplay in all the right places.
Attachment #337245 - Attachment is obsolete: true
Attachment #337260 - Flags: superreview?(stuart.morgan+bugzilla)
Comment on attachment 337260 [details] [diff] [review] Fix v1.2 Looks good, sr=smorgan
Attachment #337260 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Landed on cvs trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 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: