forked from mozilla-b2g/gaia
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 972731 - [Messages] Reduce Thread rendering reflows
Delay thread rendering by grouping threads into larger sets before calling appendThread. The goal is to reduce reflows on rendering the thread list. Delay setting contact info for threads after initial render size until they become visible via scrolling.
- Loading branch information
1 parent
baff504
commit f816bab
Showing
5 changed files
with
196 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*exported monitorTagVisibility */ | ||
|
||
'use strict'; | ||
|
||
function monitorTagVisibility( | ||
container, | ||
tag, | ||
scrollMargin, | ||
scrollDelta, | ||
onscreenCallback, | ||
offscreenCallback | ||
) { | ||
|
||
//==================================== | ||
// API | ||
//==================================== | ||
|
||
function pauseMonitoringMutations() { | ||
} | ||
|
||
function resumeMonitoringMutations(forceVisibilityUpdate) { | ||
} | ||
|
||
function stopMonitoring() { | ||
} | ||
|
||
return { | ||
pauseMonitoringMutations: pauseMonitoringMutations, | ||
resumeMonitoringMutations: resumeMonitoringMutations, | ||
stop: stopMonitoring | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters