Changeset 140628 in webkit


Ignore:
Timestamp:
Jan 23, 2013 6:17:24 PM (11 years ago)
Author:
tonyg@chromium.org
Message:

Teach threaded HTML parser to update InspectorInstrumentation when writing HTML
https://bugs.webkit.org/show_bug.cgi?id=107755

Reviewed by Eric Seidel.

The current length is unused, so it doesn't cause any noticeable behavior difference to not pass it here.

No new tests because covered by existing tests.

  • html/parser/HTMLDocumentParser.cpp:

(WebCore::HTMLDocumentParser::processTokensFromBackgroundParser):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140626 r140628  
     12013-01-23  Tony Gentilcore  <tonyg@chromium.org>
     2
     3        Teach threaded HTML parser to update InspectorInstrumentation when writing HTML
     4        https://bugs.webkit.org/show_bug.cgi?id=107755
     5
     6        Reviewed by Eric Seidel.
     7
     8        The current length is unused, so it doesn't cause any noticeable behavior difference to not pass it here.
     9
     10        No new tests because covered by existing tests.
     11
     12        * html/parser/HTMLDocumentParser.cpp:
     13        (WebCore::HTMLDocumentParser::processTokensFromBackgroundParser):
     14
    1152013-01-23  Kentaro Hara  <haraken@chromium.org>
    216
  • trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp

    r140609 r140628  
    291291    RefPtr<HTMLDocumentParser> protect(this);
    292292
    293     // FIXME: Add support for InspectorInstrumentation.
     293    // FIXME: Pass in current input length.
     294    InspectorInstrumentationCookie cookie = InspectorInstrumentation::willWriteHTML(document(), 0, lineNumber().zeroBasedInt());
    294295
    295296    for (Vector<CompactHTMLToken>::const_iterator it = tokens->begin(); it != tokens->end(); ++it) {
     
    301302
    302303        if (isStopped())
    303             return;
     304            break;
    304305
    305306        // FIXME: We'll probably need to check document()->frame()->navigationScheduler()->locationChangePending())
     
    309310            ASSERT(it + 1 == tokens->end()); // The </script> is assumed to be the last token of this bunch.
    310311            runScriptsForPausedTreeBuilder();
    311             return;
     312            break;
    312313        }
    313314
     
    315316            ASSERT(it + 1 == tokens->end()); // The EOF is assumed to be the last token of this bunch.
    316317            prepareToStopParsing();
    317             return;
     318            break;
    318319        }
    319320    }
     321
     322    InspectorInstrumentation::didWriteHTML(cookie, lineNumber().zeroBasedInt());
    320323}
    321324
Note: See TracChangeset for help on using the changeset viewer.