Index: third_party/WebKit/Source/core/layout/HitTestResult.cpp |
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
index ff3418d3f781012d1aef1065f04999c98ff84b56..99861c6c946ae6dfed0fa535f325ed28b70b064f 100644 |
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
@@ -83,6 +83,7 @@ HitTestResult::HitTestResult(const HitTestRequest& otherRequest, const HitTestLo |
HitTestResult::HitTestResult(const HitTestResult& other) |
: m_hitTestLocation(other.m_hitTestLocation) |
, m_hitTestRequest(other.m_hitTestRequest) |
+ , m_hitTestCanvasResult(other.m_hitTestCanvasResult) |
, m_cacheable(other.m_cacheable) |
, m_innerNode(other.innerNode()) |
, m_innerPossiblyPseudoNode(other.m_innerPossiblyPseudoNode) |
@@ -104,6 +105,7 @@ HitTestResult& HitTestResult::operator=(const HitTestResult& other) |
{ |
m_hitTestLocation = other.m_hitTestLocation; |
m_hitTestRequest = other.m_hitTestRequest; |
+ m_hitTestCanvasResult = other.m_hitTestCanvasResult; |
populateFromCachedResult(other); |
return *this; |
@@ -149,6 +151,7 @@ DEFINE_TRACE(HitTestResult) |
visitor->trace(m_innerURLElement); |
visitor->trace(m_scrollbar); |
visitor->trace(m_listBasedTestResult); |
+ visitor->trace(m_hitTestCanvasResult); |
} |
PositionWithAffinity HitTestResult::position() const |
@@ -223,6 +226,11 @@ void HitTestResult::setScrollbar(Scrollbar* s) |
m_scrollbar = s; |
} |
+void HitTestResult::setHitCanvasRegion(HitTestCanvasResult* n) |
zino
2016/08/19 18:00:07
You are saving HitTestCanvasResult to HitTestResul
Hwanseung Lee
2016/08/20 06:03:54
Done.
|
+{ |
+ m_hitTestCanvasResult = n; |
+} |
+ |
LocalFrame* HitTestResult::innerNodeFrame() const |
{ |
if (m_innerNode) |