Its method textPositionOneBased has incorrect converting. Now that number are typed it is evident. Probably underlying m_stream.lineNumber is incorrectly reinterpreted as 0-based value.
Created attachment 107418 [details] Patch
Comment on attachment 107418 [details] Patch Usually we add "using WTF::ZeroBasedNumber" to the header so we don't need to use the WTF macro everywhere. Have you validated that the new line numbers in the tests are all right?
(In reply to comment #2) > (From update of attachment 107418 [details]) > Usually we add "using WTF::ZeroBasedNumber" to the header so we don't need to use the WTF macro everywhere. Have you validated that the new line numbers in the tests are all right? I considered this type somewhat temporary (2 type are to be merged into "BasedNumber" maybe). However let me try to add 'using' anyway. Yes, I went over all expectations and checked that the new numbers are correct.
Created attachment 107501 [details] Patch
Comment on attachment 107501 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=107501&action=review Thanks. > Source/WebCore/html/parser/HTMLDocumentParser.cpp:451 > - return m_tokenizer->lineNumber(); > + return ZeroBasedNumber::fromZeroBasedInt(m_tokenizer->lineNumber()); Should m_tokenizer->lineNumber() return a ZeroBasedNumber ?
Comment on attachment 107501 [details] Patch Rejecting attachment 107501 [details] from commit-queue. peter.rybin@gmail.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
Comment on attachment 107501 [details] Patch Let's give it a try again
Comment on attachment 107501 [details] Patch Clearing flags on attachment: 107501 Committed r95223: <http://trac.webkit.org/changeset/95223>
All reviewed patches have been landed. Closing bug.
> > Source/WebCore/html/parser/HTMLDocumentParser.cpp:451 > > - return m_tokenizer->lineNumber(); > > + return ZeroBasedNumber::fromZeroBasedInt(m_tokenizer->lineNumber()); > > Should m_tokenizer->lineNumber() return a ZeroBasedNumber ? I think so. I'm going to change it in the next bug/patch. However I realize that I won't be able to replace all integers with *BasedNumbers myself everywhere.