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

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

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

Powered by Google App Engine
This is Rietveld 408576698