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

Unified Diff: Source/core/rendering/RenderBlock.h

Issue 137123009: Add hittest mode for Touch-action which ignore inline elements and svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 years, 10 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: Source/core/rendering/RenderBlock.h
diff --git a/Source/core/rendering/RenderBlock.h b/Source/core/rendering/RenderBlock.h
index de6b5a457f59871a2686b5108367b1ae5b256dfd..58c0722373942d42efa58b327974de83fcbe4011 100644
--- a/Source/core/rendering/RenderBlock.h
+++ b/Source/core/rendering/RenderBlock.h
@@ -115,6 +115,13 @@ public:
return objects && !objects->isEmpty();
}
+ virtual bool visibleToHitTestRequest(const HitTestRequest& request) const
+ {
+ if (request.touchAction())
+ return style()->visibility() == VISIBLE && style()->pointerEvents() != PE_NONE && !isInert();
Rick Byers 2014/02/17 14:43:52 The general approach of updating visibleToHitTestR
gnana 2014/02/24 18:59:50 This looks better. modified Done.
+ return RenderObject::visibleToHitTestRequest(request);
+ }
+
void addPercentHeightDescendant(RenderBox*);
static void removePercentHeightDescendant(RenderBox*);
static bool hasPercentHeightContainerMap();

Powered by Google App Engine
This is Rietveld 408576698