Created attachment 125362 [details]
Created attachment 125364 [details]
Sorry for uploading patch to wrong bug. Please ignore this.
Thanks for suggestions. Not using ASSERT because I don't want the callers to know how viewport update and the main frame are related and to check it.
Created attachment 125386 [details]
(In reply to comment #3)
> Created an attachment (id=125386) [details]
Look good to me, but need r+ from some reviewer.
Comment on attachment 125386 [details]
Clearing flags on attachment: 125386
Committed r106702: <http://trac.webkit.org/changeset/106702>
All reviewed patches have been landed. Closing bug.