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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestResult.cpp

Issue 2229743003: add HitTestCanvasResult Class instend of std::pair<Element*, String> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/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)

Powered by Google App Engine
This is Rietveld 408576698