Make HTMLDocumentParser::create(DocumentFragment*,Element*, FragmentScriptingPermission) private. It is used only by HTMLDocumentParser::parseDocumentFragment.
Created attachment 148932 [details] Patch
Comment on attachment 148932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148932&action=review > Source/WebCore/html/parser/HTMLDocumentParser.h:93 > + // Used by parseDocumentFragment Normally we don’t write comments like this. We can learn the same thing by searching the code. And this could easily get out of date. Also, there is a missing period here, since we use sentence style for comments.
(In reply to comment #2) > (From update of attachment 148932 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=148932&action=review > > > Source/WebCore/html/parser/HTMLDocumentParser.h:93 > > + // Used by parseDocumentFragment > > Normally we don’t write comments like this. We can learn the same thing by searching the code. And this could easily get out of date. > > Also, there is a missing period here, since we use sentence style for comments. I removed the comment and landed the patch manually. Thanks. http://trac.webkit.org/changeset/120997