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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.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/layout/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 8d24d0150c6dd72b5d9233edc680b170815e92e2..00f82f577714bda234942f4dba4154d5c029858f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -44,6 +44,7 @@
#include "core/paint/PaintLayer.h"
#include "core/paint/TablePainter.h"
#include "core/style/StyleInheritedData.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -91,9 +92,9 @@ void LayoutTable::styleDidChange(StyleDifference diff, const ComputedStyle* oldS
// According to the CSS2 spec, you only use fixed table layout if an
// explicit width is specified on the table. Auto width implies auto table layout.
if (style()->isFixedTableLayout())
- m_tableLayout = adoptPtr(new TableLayoutAlgorithmFixed(this));
+ m_tableLayout = wrapUnique(new TableLayoutAlgorithmFixed(this));
else
- m_tableLayout = adoptPtr(new TableLayoutAlgorithmAuto(this));
+ m_tableLayout = wrapUnique(new TableLayoutAlgorithmAuto(this));
}
// If border was changed, invalidate collapsed borders cache.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698