RESOLVED FIXED 90544
Stop tracking line number in tokenizer
https://bugs.webkit.org/show_bug.cgi?id=90544
Summary Stop tracking line number in tokenizer
Kwang Yul Seo
Reported 2012-07-04 04:44:45 PDT
Because SegmentedString knows how to track the current line and column, a tokenizer does not need to keep track of the current line by itself.
Attachments
Patch (15.61 KB, patch)
2012-07-04 04:48 PDT, Kwang Yul Seo
no flags
Patch (16.68 KB, patch)
2012-07-04 05:11 PDT, Kwang Yul Seo
abarth: review+
Kwang Yul Seo
Comment 1 2012-07-04 04:48:11 PDT
WebKit Review Bot
Comment 2 2012-07-04 04:53:33 PDT
Comment on attachment 150771 [details] Patch Attachment 150771 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13139491
Gyuyoung Kim
Comment 3 2012-07-04 04:55:31 PDT
Gustavo Noronha (kov)
Comment 4 2012-07-04 04:56:23 PDT
Kwang Yul Seo
Comment 5 2012-07-04 05:11:25 PDT
Kwang Yul Seo
Comment 6 2012-07-04 05:13:02 PDT
Fix build break with ENABLE_VIDEO_TRACK guard.
Adam Barth
Comment 7 2012-07-04 08:20:37 PDT
Comment on attachment 150775 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150775&action=review This looks great. > Source/WebCore/html/parser/HTMLDocumentParser.cpp:452 > + const SegmentedString& currentString = m_input.current(); > + return currentString.currentLine(); I would just combine these two lines to avoid having the temporary.
Kwang Yul Seo
Comment 8 2012-07-04 08:32:07 PDT
Kwang Yul Seo
Comment 9 2012-07-04 08:32:56 PDT
(In reply to comment #7) > (From update of attachment 150775 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=150775&action=review > > This looks great. > > > Source/WebCore/html/parser/HTMLDocumentParser.cpp:452 > > + const SegmentedString& currentString = m_input.current(); > > + return currentString.currentLine(); > > I would just combine these two lines to avoid having the temporary. Thanks. I combined the two lines and landed the patch.
Note You need to log in before you can comment on or make changes to this bug.