diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-03 17:11:23 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-03 17:11:23 -0700 |
commit | c58299cfe8df6665721cf3a40601d1abca35229e (patch) | |
tree | 9478c4a1492e97e9ee97ebd86ed98a9bc2936841 | |
parent | 0a24b2fbe512c59d9c83f0be6a1bd24c4fe9f8b6 (diff) | |
parent | e2c8b60a1af2565f617b160bed7e530223786284 (diff) | |
download | external_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.zip external_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.tar.gz external_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.tar.bz2 |
Merge "Fix the trailing pixels by inflate the invalidate screen rect"
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 966670d..927b0bb 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -541,6 +541,8 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect, m_previouslyUsedRoot = compositedRoot; if (ret) { FloatRect frameworkInval = TilesManager::instance()->shader()->rectInInvScreenCoord(m_frameworkInval); + // Inflate the invalidate rect to avoid precision lost. + frameworkInval.inflate(1); IntRect inval(frameworkInval.x(), frameworkInval.y(), frameworkInval.width(), frameworkInval.height()); inval.unite(m_frameworkLayersInval); |