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

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

Issue 1850183003: Round out WillBe type removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 9420322d41ce69df19d95b765159f8bb2631fd5d..55fe073747c4225a0a486479843f51e6bec7f6aa 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -97,7 +97,7 @@ HitTestResult::HitTestResult(const HitTestResult& other)
, m_isOverWidget(other.isOverWidget())
{
// Only copy the NodeSet in case of list hit test.
- m_listBasedTestResult = adoptPtrWillBeNoop(other.m_listBasedTestResult ? new NodeSet(*other.m_listBasedTestResult) : 0);
+ m_listBasedTestResult = other.m_listBasedTestResult ? new NodeSet(*other.m_listBasedTestResult) : nullptr;
}
HitTestResult::~HitTestResult()
@@ -143,7 +143,7 @@ void HitTestResult::populateFromCachedResult(const HitTestResult& other)
m_cacheable = other.m_cacheable;
// Only copy the NodeSet in case of list hit test.
- m_listBasedTestResult = adoptPtrWillBeNoop(other.m_listBasedTestResult ? new NodeSet(*other.m_listBasedTestResult) : 0);
+ m_listBasedTestResult = other.m_listBasedTestResult ? new NodeSet(*other.m_listBasedTestResult) : nullptr;
}
DEFINE_TRACE(HitTestResult)
@@ -152,9 +152,7 @@ DEFINE_TRACE(HitTestResult)
visitor->trace(m_innerPossiblyPseudoNode);
visitor->trace(m_innerURLElement);
visitor->trace(m_scrollbar);
-#if ENABLE(OILPAN)
visitor->trace(m_listBasedTestResult);
-#endif
}
PositionWithAffinity HitTestResult::position() const
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementData.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698