forked from blackberry/WebWorks-Samples
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Stanley
committed
Jun 19, 2012
1 parent
ed92bea
commit c8e22aa
Showing
2 changed files
with
83 additions
and
92 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
c8e22aa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless there's something odd about the PB webKit, it shouldn't redraw anything until it goes back to the main loop.
c8e22aa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help me understand what you mean by the main loop? Changing any CSS style of a live DOM element creates another page repaint action, yes?
c8e22aa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I'm aware (and it's entirely possible I'm wrong, or that there are special cases), the page repaint doesn't happen until the end of the current Javascript execution loop, then it will repaint. Or maybe that's an optimization on some platforms and not others..