[webkit-help] questions about Tokenizer's dynamic binding issue
Tony Wang
wangtao.adi at gmail.com
Sun May 23 23:59:23 PDT 2010
Hi guys,
As in WebKit-r60027\WebCore\loader\DocumentWriter.cpp Line 131: void
DocumentWriter::addData(const char* str, int len, bool flush) function:
#################
...
Tokenizer* tokenizer = m_frame->document()->tokenizer();
if (tokenizer && tokenizer->wantsRawData()) {
if (len > 0)
tokenizer->writeRawData(str, len);
return;
}
...
#################
Here how the base class pointer tokenizer resolved to calling
class Tokenizer children's writeRawData function, for example: just
calling PluginTokenizer::writeRawData but not
the MediaTokenizer::writeRawData one.
Where does the program make tokenizer to point to the PluginTokenizer
object?
Thanks,
--
Tony Weng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100524/ca2f53ad/attachment.html>
More information about the webkit-help
mailing list