git://git.webkit.org
/
WebKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2011-01-28 Eric Seidel <eric@webkit.org>
[WebKit.git]
/
Source
/
WebCore
/
html
/
parser
/
HTMLTreeBuilder.h
diff --git
a/Source/WebCore/html/parser/HTMLTreeBuilder.h
b/Source/WebCore/html/parser/HTMLTreeBuilder.h
index 309ac6f43b061f3c0edca77108a0ab53ecd352dd..2af6158b5641c3196025d2ef5b56b8555aa1300c 100644
(file)
--- a/
Source/WebCore/html/parser/HTMLTreeBuilder.h
+++ b/
Source/WebCore/html/parser/HTMLTreeBuilder.h
@@
-220,7
+220,9
@@
private:
void finished();
private:
void finished();
private:
- RefPtr<Document> m_dummyDocumentForFragmentParsing;
+ // Use a shared dummy document to avoid expensive Document creation.
+ // Hold a raw pointer to the document since there is no need to ref it.
+ HTMLDocument* m_dummyDocumentForFragmentParsing;
DocumentFragment* m_fragment;
Element* m_contextElement;
DocumentFragment* m_fragment;
Element* m_contextElement;