Index: Source/core/layout/HitTestRequest.h |
diff --git a/Source/core/layout/HitTestRequest.h b/Source/core/layout/HitTestRequest.h |
index d9e937e1c31b2ab2a7830e2ab721976775951c72..34f0d52d1522e99e6176ec24cffdcac5ce6d2c39 100644 |
--- a/Source/core/layout/HitTestRequest.h |
+++ b/Source/core/layout/HitTestRequest.h |
@@ -46,6 +46,7 @@ public: |
// When using list-based testing, this flag causes us to continue hit |
// testing after a hit has been found. |
PenetratingList = 1 << 12, |
+ AvoidCache = 1 << 13, |
}; |
typedef unsigned HitTestRequestType; |
@@ -69,12 +70,19 @@ public: |
bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerEventsNone; } |
bool listBased() const { return m_requestType & ListBased; } |
bool penetratingList() const { return m_requestType & PenetratingList; } |
+ bool avoidCache() const { return m_requestType & AvoidCache; } |
// Convenience functions |
bool touchMove() const { return move() && touchEvent(); } |
HitTestRequestType type() const { return m_requestType; } |
+ static const HitTestRequestType CacheabilityBits = ReadOnly | Active | Move | Release | TouchEvent; |
Rick Byers
2015/06/06 16:12:54
this probably deserves a comment saying these bits
dtapuska
2015/06/09 18:21:24
Done.
|
+ bool equalForCacheability(const HitTestRequest& value) const |
+ { |
+ return (m_requestType | CacheabilityBits) == (value.m_requestType | CacheabilityBits); |
+ } |
+ |
private: |
HitTestRequestType m_requestType; |
}; |