diff options
author | dgozman@chromium.org <dgozman@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-06-05 15:20:57 +0000 |
---|---|---|
committer | dgozman@chromium.org <dgozman@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-06-05 15:20:57 +0000 |
commit | aae8e39705dd1b2b53430e092a83f7de41ef3d83 (patch) | |
tree | 9474e076f11e41bd3e7cccf33ac554552ffb4a6c /third_party/WebKit/Source/web/PageOverlay.cpp | |
parent | 5a2a9d0657f735967be5f939e15978047477f76c (diff) | |
download | chromium_src-aae8e39705dd1b2b53430e092a83f7de41ef3d83.zip chromium_src-aae8e39705dd1b2b53430e092a83f7de41ef3d83.tar.gz chromium_src-aae8e39705dd1b2b53430e092a83f7de41ef3d83.tar.bz2 |
Do not set touch region on PageOverlay layer.
With new touch hit testing in compositor, which looks through all
the layers hitting the point, we don't need touch regions on overlay
layer anymore.
Note, that we still need main-thread scrolling to stay in sync with
page contents.
BUG=304271
Review URL: https://codereview.chromium.org/305383002
git-svn-id: svn://svn.chromium.org/blink/trunk@175578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/Source/web/PageOverlay.cpp')
-rw-r--r-- | third_party/WebKit/Source/web/PageOverlay.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp index 06d7816..6a1e598 100644 --- a/third_party/WebKit/Source/web/PageOverlay.cpp +++ b/third_party/WebKit/Source/web/PageOverlay.cpp @@ -122,14 +122,9 @@ void PageOverlay::update() if (WebCore::Page* page = m_viewImpl->page()) page->inspectorController().willAddPageOverlay(m_layer.get()); - // Compositor hit-testing does not know how to deal with layers that may be - // transparent to events (see http://crbug.com/269598). So require - // scrolling and touches on this layer to go to the main thread. + // This is required for contents of overlay to stay in sync with the page while scrolling. WebLayer* platformLayer = m_layer->platformLayer(); platformLayer->setShouldScrollOnMainThread(true); - WebVector<WebRect> webRects(static_cast<size_t>(1)); - webRects[0] = WebRect(0, 0, INT_MAX, INT_MAX); - platformLayer->setTouchEventHandlerRegion(webRects); } FloatSize size(m_viewImpl->size()); |