'viewport,changed' signal was registered by EWebLauncher in order to test viewport meta tag. However, it sets wrong layout to some web sites which have viewport meta tag. Because, host PC doesn't support proper DPI value though viewport is using DPI value to compute layout values. This signal is for mobile device.
Created attachment 111730 [details] Patch
Comment on attachment 111730 [details] Patch Can you explain in more details what the problem with the current code is? I couldn't understand it from the ChangeLog message. Plus, if you're really going to unregister the signal, you can also remove the whole on_viewport_changed function as well.
Created attachment 111893 [details] Patch
Created attachment 111894 [details] Blogspot with viewport support
Created attachment 111895 [details] Blogspot without viewport support
Created attachment 111896 [details] m.wikipedia.org with viewport support
Created attachment 111897 [details] m.wikipedia.org without viewport support
(In reply to comment #2) > (From update of attachment 111730 [details]) > Can you explain in more details what the problem with the current code is? I couldn't understand it from the ChangeLog message. I attach screenshots to let you understand this patch's goal. In blogspot case, blogspot has viewport meta tag as below, <meta content='width=1100' name='viewport'/> Then, EWebLauncher sets layout according to viewport computation logic with device dpi. However, viewport algorithm computes the DPI ratio based on 160(iphone 3Gs dpi). viewport callback of EWebLauncher sets zoom-in via the DPI ratio. So, EWebLauncher can't set proper layout because host PC usually has low DPI. Especially, it is difficult to test mobile sites on EWebLauncher because of this problem. For example, en.m.wikipedia.org > Plus, if you're really going to unregister the signal, you can also remove the whole on_viewport_changed function as well. Fixed.
Alright, informal r+. Sorry for the delay, I wasn't in the bug's CC list.
Comment on attachment 111893 [details] Patch rs=me.
Comment on attachment 111893 [details] Patch Clearing flags on attachment: 111893 Committed r98444: <http://trac.webkit.org/changeset/98444>
All reviewed patches have been landed. Closing bug.