Closed Bug 555293 Opened 16 years ago Closed 16 years ago

MLFB: Port bug 547815 to Firefox

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: asaf, Assigned: asaf)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Fix Fx (obsolete) — — Splinter Review
(MLFB = Marco Likes Filing Bugs)
Attachment #435265 - Flags: review?(mak77)
Comment on attachment 435265 [details] [diff] [review] Fix Fx >diff -r c69aa0316f6a browser/components/places/content/treeView.js > if (isopen != curChild.containerOpen) > aToOpen.push(curChild); > else if (curChild.containerOpen && curChild.childCount > 0) >- rowsAddedCounter += this._buildVisibleSection(curChild, aToOpen, >+ rowsInserted += this._buildVisibleSection(curChild, aToOpen, > row + 1); fix indentation please > _countVisibleRowsForNodeAtRow: > function PTV__countVisibleRowsForNodeAtRow(aNodeRow) { > let node = this._rows[aNodeRow]; > >- // If it's not listed yet, we know that it's a leaf node. >- if (node === undefined || >- !(node instanceof Ci.nsINavHistoryContainerResultNode)) >+ // If it's not listed yet, we know that it's a leaf node (instaceof also >+ // checks nullness). typo: instaceof nit: i prefer "null-checks" verb >diff -r c69aa0316f6a toolkit/components/places/src/utils.js > /** >+ * Generator for a node's ancestors. >+ * @param aNode >+ * A result node >+ */ >+ nodeAncestors: function PU_nodeAncestors(aNode) { >+ let parent = aNode.parent; >+ while (parent) { >+ yield parent; >+ parent = parent.parent; >+ } >+ }, nit: personally i'd prefer let node = aNode.parent, while (node), and node = node.parent. Neil commented also about this typo that i can't find in the patch (unless i skipped it :p) >+ * @see isPlainContainer. _isPlainContainer
Attachment #435265 - Flags: review?(mak77) → review+
Blocks: 547815
Depends on: 520659
OS: Mac OS X → All
Hardware: x86 → All
Attached patch for checkin — — Splinter Review
Assignee: nobody → mano
Attachment #435265 - Attachment is obsolete: true
Status: NEW → ASSIGNED
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: