Changeset 60940 in webkit
- Timestamp:
- Jun 9, 2010 11:34:46 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r60937 r60940 1 2010-06-09 Tony Gentilcore <tonyg@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 HTML5 Parser: Fix fast/profiler tests that depend on event handler line numbers 6 https://bugs.webkit.org/show_bug.cgi?id=40393 7 8 This emulated the old behavior in HTMLTokenizer:processToken() 9 10 No new tests because covered by: 11 - fast/profiler/dead-time.html 12 - fast/profiler/inline-event-handler.html 13 - fast/profiler/stop-profiling-after-setTimeout.html 14 - fast/profiler/throw-exception-from-eval.html 15 16 * html/HTML5Tokenizer.cpp: 17 (WebCore::HTML5Tokenizer::pumpLexer): 18 1 19 2010-06-09 Alexey Proskuryakov <ap@apple.com> 2 20 -
trunk/WebCore/html/HTML5Tokenizer.cpp
r60926 r60940 97 97 ASSERT(!m_treeBuilder->isPaused()); 98 98 while (!m_parserStopped && m_lexer->nextToken(m_input.current(), m_token)) { 99 if (ScriptController* scriptController = script()) 100 scriptController->setEventHandlerLineNumber(lineNumber() + 1); 101 99 102 m_treeBuilder->constructTreeFromToken(m_token); 100 103 m_token.clear(); 104 105 if (ScriptController* scriptController = script()) 106 scriptController->setEventHandlerLineNumber(0); 101 107 102 108 if (!m_treeBuilder->isPaused()) -
trunk/WebCore/html/HTML5Tokenizer.h
r60926 r60940 28 28 29 29 #include "CachedResourceClient.h" 30 #include "Frame.h" 30 31 #include "HTML5ScriptRunnerHost.h" 31 32 #include "HTML5Token.h" 33 #include "HTMLDocument.h" 32 34 #include "SegmentedString.h" 33 35 #include "Tokenizer.h" … … 39 41 class HTML5ScriptRunner; 40 42 class HTML5TreeBuilder; 41 class HTMLDocument;43 class ScriptController; 42 44 class ScriptSourceCode; 43 45 … … 168 170 bool inWrite() const { return m_writeNestingLevel > 0; } 169 171 172 ScriptController* script() const { return m_document->frame() ? m_document->frame()->script() : 0; } 173 170 174 InputStream m_input; 171 175
Note: See TracChangeset
for help on using the changeset viewer.