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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: 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 f568e2ba2e574d5a45f1f8d195dbfa31996f90e9..7897e51ff84bb6304e0979ed4e866c4ad867c079 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -96,7 +96,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) : 0);
}
HitTestResult::~HitTestResult()
@@ -142,7 +142,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) : 0);
}
DEFINE_TRACE(HitTestResult)
@@ -492,14 +492,14 @@ void HitTestResult::append(const HitTestResult& other)
const HitTestResult::NodeSet& HitTestResult::listBasedTestResult() const
{
if (!m_listBasedTestResult)
- m_listBasedTestResult = adoptPtrWillBeNoop(new NodeSet);
+ m_listBasedTestResult = (new NodeSet);
return *m_listBasedTestResult;
}
HitTestResult::NodeSet& HitTestResult::mutableListBasedTestResult()
{
if (!m_listBasedTestResult)
- m_listBasedTestResult = adoptPtrWillBeNoop(new NodeSet);
+ m_listBasedTestResult = (new NodeSet);
return *m_listBasedTestResult;
}

Powered by Google App Engine
This is Rietveld 408576698