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

Unified Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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/input/ScrollManager.cpp
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp
index d6791e682c6406ceb7c0d7b3ce954e7093fab42a..fa78d4ccda84d418674a92e7aeceb202d0638b24 100644
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp
@@ -224,7 +224,7 @@ WebInputEventResult ScrollManager::handleGestureScrollBegin(
m_currentScrollChain.clear();
std::unique_ptr<ScrollStateData> scrollStateData =
- wrapUnique(new ScrollStateData());
+ makeUnique<ScrollStateData>();
scrollStateData->position_x = gestureEvent.position().x();
scrollStateData->position_y = gestureEvent.position().y();
scrollStateData->is_beginning = true;
@@ -270,7 +270,7 @@ WebInputEventResult ScrollManager::handleGestureScrollUpdate(
}
std::unique_ptr<ScrollStateData> scrollStateData =
- wrapUnique(new ScrollStateData());
+ makeUnique<ScrollStateData>();
scrollStateData->delta_x = delta.width();
scrollStateData->delta_y = delta.height();
scrollStateData->delta_granularity =
@@ -326,7 +326,7 @@ WebInputEventResult ScrollManager::handleGestureScrollEnd(
if (node && node->layoutObject()) {
passScrollGestureEventToWidget(gestureEvent, node->layoutObject());
std::unique_ptr<ScrollStateData> scrollStateData =
- wrapUnique(new ScrollStateData());
+ makeUnique<ScrollStateData>();
scrollStateData->is_ending = true;
scrollStateData->is_in_inertial_phase =
gestureEvent.inertialPhase() == ScrollInertialPhaseMomentum;

Powered by Google App Engine
This is Rietveld 408576698