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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/inspector/InspectorStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
index ace6c4db8decd869cb47bf704e65c7b34d35f04e..2a95b4bb9fb49473669b191065475e5eb68ca4a7 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorStyleSheet.cpp
@@ -53,8 +53,7 @@
#include "core/inspector/InspectorResourceContainer.h"
#include "core/svg/SVGStyleElement.h"
#include "platform/v8_inspector/public/V8ContentSearchUtil.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/TextPosition.h"
#include <algorithm>
@@ -884,13 +883,13 @@ DEFINE_TRACE(InspectorStyle)
InspectorStyleSheetBase::InspectorStyleSheetBase(Listener* listener)
: m_id(IdentifiersFactory::createIdentifier())
, m_listener(listener)
- , m_lineEndings(adoptPtr(new LineEndings()))
+ , m_lineEndings(wrapUnique(new LineEndings()))
{
}
void InspectorStyleSheetBase::onStyleSheetTextChanged()
{
- m_lineEndings = adoptPtr(new LineEndings());
+ m_lineEndings = wrapUnique(new LineEndings());
if (listener())
listener()->styleSheetChanged(this);
}

Powered by Google App Engine
This is Rietveld 408576698