Commit 119772a0 authored by ddkilzer@apple.com's avatar ddkilzer@apple.com

Use OwnPtr<HTMLParserQuirks> for m_parserQuirks

        Reviewed by Geoff Garen.

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::~HTMLParser): Removed unneeded code.
        * html/HTMLParser.h: Made m_parserQuirks an OwnPtr.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 87994d91
2009-04-30 David Kilzer <ddkilzer@apple.com>
Use OwnPtr<HTMLParserQuirks> for m_parserQuirks
Reviewed by Geoff Garen.
* html/HTMLParser.cpp:
(WebCore::HTMLParser::~HTMLParser): Removed unneeded code.
* html/HTMLParser.h: Made m_parserQuirks an OwnPtr.
2009-04-30 David Kilzer <ddkilzer@apple.com>
Provide a mechanism to create a quirks delegate for HTMLParser
......@@ -165,8 +165,6 @@ HTMLParser::~HTMLParser()
freeBlock();
if (m_didRefCurrent)
m_current->deref();
if (m_parserQuirks)
delete m_parserQuirks;
}
void HTMLParser::reset()
......
......@@ -26,6 +26,7 @@
#include "QualifiedName.h"
#include <wtf/Forward.h>
#include <wtf/OwnPtr.h>
#include <wtf/RefPtr.h>
#include "HTMLParserErrorCodes.h"
......@@ -184,7 +185,7 @@ private:
bool m_handlingResidualStyleAcrossBlocks;
int m_inStrayTableContent;
HTMLParserQuirks* m_parserQuirks;
OwnPtr<HTMLParserQuirks> m_parserQuirks;
};
}
......
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