Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 2600593002: Fix touch event flag may not be updated correctly by transform which causes no layout (Closed)
Patch Set: Optimization && nit Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
index 49aa09d6ec0675dc706228616b466c96ab428f5b..9e4fa6f99617326c06213d4998ef37eb07106bd3 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -128,6 +128,18 @@ void ScrollingCoordinator::notifyGeometryChanged() {
m_shouldScrollOnMainThreadDirty = true;
}
+void ScrollingCoordinator::notifyTransformChanged(const LayoutBox& box) {
+ if (m_page->deprecatedLocalMainFrame()->view()->needsLayout())
+ return;
+
+ for (PaintLayer* layer = box.enclosingLayer(); layer;
+ layer = layer->parent()) {
+ if (m_layersWithTouchRects.contains(layer)) {
+ m_touchEventTargetRectsAreDirty = true;
+ return;
+ }
+ }
+}
void ScrollingCoordinator::notifyOverflowUpdated() {
m_scrollGestureRegionIsDirty = true;
}

Powered by Google App Engine
This is Rietveld 408576698