Source/WebCore/loader/DocumentWriter.cpp
void DocumentWriter::replaceDocument(const String& source)
{
    m_frame->loader()->stopAllLoaders();
    begin(m_frame->document()->url(), true, m_frame->document()->securityOrigin());

    if (!source.isNull()) {
        if (!m_receivedData) {
            m_receivedData = true;
            m_frame->document()->setCompatibilityMode(Document::NoQuirksMode);
        }

        // FIXME: This should call DocumentParser::appendBytes instead of append
        // to support RawDataDocumentParsers.
        if (DocumentParser* parser = m_frame->document()->parser())
            parser->append(source);
    }

    end();
}
// This is only called by ScriptController::executeIfJavaScriptURL
// and always contains the result of evaluating a javascript: url.
// This is the <iframe src="javascript:'html'"> case.
This is only called by ScriptController::executeIfJavaScriptURL
and always contains the result of evaluating a javascript: url.
This is the  case.
This is only called by ScriptController :: executeIfJavaScriptURL and always contains the result of evaluating a javascript : url . This is the case .
void DocumentWriter::replaceDocument(const String& source)
{
    m_frame->loader()->stopAllLoaders();
    begin(m_frame->document()->url(), true, m_frame->document()->securityOrigin());
    if (!source.isNull()) {
        if (!m_receivedData) {
            m_receivedData = true;
            m_frame->document()->setCompatibilityMode(Document::NoQuirksMode);
        }
        if (DocumentParser* parser = m_frame->document()->parser())
            parser->append(source);
    }
    end();
}
void DocumentWriter :: replaceDocument ( const String & source ) { m_frame -> loader ( ) -> stopAllLoaders ( ) ; begin ( m_frame -> document ( ) -> url ( ) , true , m_frame -> document ( ) -> securityOrigin ( ) ) ; if ( ! source . isNull ( ) ) { if ( ! m_receivedData ) { m_receivedData = true ; m_frame -> document ( ) -> setCompatibilityMode ( Document :: NoQuirksMode ) ; } if ( DocumentParser * parser = m_frame -> document ( ) -> parser ( ) ) parser -> append ( source ) ; } end ( ) ; }
This is only called by ScriptController::executeIfJavaScriptURL
and always contains the result of evaluating a javascript: url.
This is only called by ScriptController :: executeIfJavaScriptURL and always contains the result of evaluating a javascript : url .
// FIXME: This should call DocumentParser::appendBytes instead of append // to support RawDataDocumentParsers.