Fix the bug that fixed element has wrong size
authorHurnjoo Lee <hurnjoo.lee@samsung.com>
Mon, 16 Sep 2013 09:47:51 +0000 (18:47 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 16 Sep 2013 10:29:23 +0000 (10:29 +0000)
[Title] Fix the bug that fixed element has wrong size
[Issues] N_SE-52245
[Problem] Fixed position has wrong size after showing IME.
[Cause] While calling WebGraphicsLayer::setSize, if the element has position:fixed property then
        the graphics layer be able to get wrong backing store size because the height of cover rect
        is very small when showing IME.
[Solution] Does not call adjustVisibleRect in case of the fixed element in order to prevent wrong
           backingstore size.

Change-Id: Idf1f909f5d6afe2457ab93ab2919d2a8609aa898

Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp

index 6573648..3a43f2c 100755 (executable)
@@ -257,7 +257,8 @@ void WebGraphicsLayer::setSize(const FloatSize& size)
         maskLayer()->setSize(size);
     didChangeGeometry();
 #if ENABLE(TIZEN_WEBKIT2_TILED_AC)
-    adjustVisibleRect();
+    if (!fixedToViewport())
+        adjustVisibleRect();
 #endif
 }