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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 6efc5c680d78abe6d42e5f669b0af66cd3a0ca26..5a811b2ddd4d14c8c46e4e5adbfe5ca99e2fa5c9 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -139,6 +139,7 @@
#include "wtf/text/CString.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/TextPosition.h"
+#include <memory>
namespace blink {
@@ -1050,14 +1051,14 @@ ClientRect* Element::getBoundingClientRect()
const AtomicString& Element::computedRole()
{
document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
- OwnPtr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document());
+ std::unique_ptr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document());
return cache->get()->computedRoleForNode(this);
}
String Element::computedName()
{
document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this);
- OwnPtr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document());
+ std::unique_ptr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document());
return cache->get()->computedNameForNode(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentTest.cpp ('k') | third_party/WebKit/Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698