From 97fc50722fb313c52ab0e6f63b1fbdc44a9e290d Mon Sep 17 00:00:00 2001 From: Hurnjoo Lee Date: Mon, 16 Sep 2013 18:47:51 +0900 Subject: [PATCH] Fix the bug that fixed element has wrong size [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 --- .../WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp b/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp index 6573648..3a43f2c 100755 --- a/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp +++ b/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp @@ -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 } -- 2.7.4