Commit ff94032b authored by tkent@chromium.org's avatar tkent@chromium.org

Oilpan: Make ActiveParserSession::m_document traceable.

ActiveParserSession, NestingLevelIncrementer, and PumpSession are allocatable
only on stack. We can make m_document Member<> without trace().

BUG=357163

Review URL: https://codereview.chromium.org/313033003

git-svn-id: svn://svn.chromium.org/blink/trunk@175458 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4bac0dbe
...@@ -38,15 +38,17 @@ class Document; ...@@ -38,15 +38,17 @@ class Document;
class HTMLDocumentParser; class HTMLDocumentParser;
class ActiveParserSession { class ActiveParserSession {
STACK_ALLOCATED();
public: public:
explicit ActiveParserSession(Document*); explicit ActiveParserSession(Document*);
~ActiveParserSession(); ~ActiveParserSession();
private: private:
RefPtr<Document> m_document; RefPtrWillBeMember<Document> m_document;
}; };
class PumpSession : public NestingLevelIncrementer, public ActiveParserSession { class PumpSession : public NestingLevelIncrementer, public ActiveParserSession {
STACK_ALLOCATED();
public: public:
PumpSession(unsigned& nestingLevel, Document*); PumpSession(unsigned& nestingLevel, Document*);
~PumpSession(); ~PumpSession();
......
...@@ -26,11 +26,13 @@ ...@@ -26,11 +26,13 @@
#ifndef NestingLevelIncrementer_h #ifndef NestingLevelIncrementer_h
#define NestingLevelIncrementer_h #define NestingLevelIncrementer_h
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h" #include "wtf/Noncopyable.h"
namespace WebCore { namespace WebCore {
class NestingLevelIncrementer { class NestingLevelIncrementer {
STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(NestingLevelIncrementer); WTF_MAKE_NONCOPYABLE(NestingLevelIncrementer);
public: public:
explicit NestingLevelIncrementer(unsigned& nestingLevel) explicit NestingLevelIncrementer(unsigned& nestingLevel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment