Closed
Bug 555293
Opened 14 years ago
Closed 14 years ago
MLFB: Port bug 547815 to Firefox
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: asaf, Assigned: asaf)
References
Details
Attachments
(1 file, 1 obsolete file)
9.19 KB,
patch
|
Details | Diff | Splinter Review |
(MLFB = Marco Likes Filing Bugs)
Attachment #435265 -
Flags: review?(mak77)
Comment 1•14 years ago
|
||
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+
Updated•14 years ago
|
Assignee | ||
Comment 2•14 years ago
|
||
Assignee | ||
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/32296a1ffb16
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•