OSDN Git Service

Do not merge - pulled from master
authorPatrick Scott <phanna@android.com>
Fri, 14 Aug 2009 12:21:09 +0000 (08:21 -0400)
committerPatrick Scott <phanna@android.com>
Mon, 17 Aug 2009 19:05:06 +0000 (15:05 -0400)
commit4e3a924fd8b5f88ef5e656393e8a0de568c2baa5
tree0c10c1a6cc75730e6420e6549cb6d8c1e36bf8d7
parent7df3d98b242a15afb526fe8a7c8b0a5d28415f33
Do not merge - pulled from master
Be more restrictive when expanding iframes.

If an iframe has no scrollbars and a fixed dimension, it serves no purpose to
try and expand the contents. Some sites like to use hidden iframes for
asynchronous loading and showing or expanding those iframes causes layout
problems.

Change the expansion logic slightly to only expand iframes and not contract
them. Also update calcWidth and calcHeight to check for scrollbars or a
non-fixed dimension.

BUG=2039520,2004093
WebCore/rendering/RenderPartObject.cpp
WebKit/android/jni/WebViewCore.cpp