Hi all,
After parsing html, webkit should maintain a pointer pointing to the root of
dom tree. I followed the parsing process, but the clue is broken at
HTMLTokenizer::State HTMLTokenizer::parseTag(SegmentedString& src, State
state) --- in file htmlTokenizer.cpp.
To summarize this function:
HTMLTokenizer::State HTMLTokenizer::parseTag(SegmentedString& src, State
state)
{
...
RefPtr<Node> n = processToken();
...
}
where the "n" is the root node of dom tree. but after this "n" is not
pointed by any other pointer and not passed out of this function.
My question is how webkit get the root of dom tree after this function?
Best regards!
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help