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

Unified Diff: Source/core/rendering/RenderWidgetProtector.h

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/rendering/RenderWidgetProtector.h
diff --git a/Source/core/rendering/RenderWidgetProtector.h b/Source/core/rendering/RenderWidgetProtector.h
index 2a65ab4393508eb301e119b05f1bf4fc51d80b1a..79ac031158e044388a8b28dfb31f7cabafcb9f00 100644
--- a/Source/core/rendering/RenderWidgetProtector.h
+++ b/Source/core/rendering/RenderWidgetProtector.h
@@ -35,18 +35,17 @@ class RenderWidgetProtector {
public:
explicit RenderWidgetProtector(RenderWidget* object)
: m_object(object)
- , m_arena(object->ref())
{
+ m_object->ref();
}
~RenderWidgetProtector()
{
- m_object->deref(m_arena);
+ m_object->deref();
}
private:
RenderWidget* m_object;
- RenderArena* m_arena;
};
}

Powered by Google App Engine
This is Rietveld 408576698