Seth Fowler
666fc943cb
Bug 1287367 - Allow users of StreamingLexer to detect and handle truncation. r=njn
2016-07-18 23:41:20 -07:00
Seth Fowler
d2fa2b335c
Bug 1287246 (Part 3) - Add support for yielding to StreamingLexer. r=njn
2016-07-18 01:25:41 -07:00
Seth Fowler
f5ecac110e
Bug 1287246 (Part 2) - Store the state for unbuffered reads in a separate structure in StreamingLexer. r=njn
2016-07-18 01:25:39 -07:00
Seth Fowler
938a963f7f
Bug 1287246 (Part 1) - Expose LexerResult from the StreamingLexer API and add an explicit Yield type. r=njn
2016-07-18 01:25:37 -07:00
Seth Fowler
269c03d80e
Bug 1284031 (Part 1) - Advance SourceBufferIterator in Lex() per-state. r=njn
2016-07-16 00:37:02 -07:00
Seth Fowler
af70a29095
Bug 1286175 - Allow SourceBufferIterator users to specify how many bytes to advance. r=edwin
2016-07-16 00:36:56 -07:00
Seth Fowler
4c2a4667a7
Bug 1286165 (Part 2) - Advance decoders' SourceBufferIterator directly in StreamingLexer. r=edwin,njn
2016-07-15 17:48:57 -07:00
Seth Fowler
a9f24e8308
Bug 1285865 (Part 4) - Rename Decoder::WriteInternal() to Decoder::DoDecode() and fix its argument types. r=edwin
2016-07-11 12:13:09 -07:00
Jan de Mooij
3c3f394c55
Bug 1237201 part 3 - Handle Vector OOM in StreamingLexer. r=njn
2016-01-14 15:19:21 +01:00
Nicholas Nethercote
ce10603db1
Bug 1210291 - Streamline StreamingLexer's handling of terminal states. r=seth.
...
This patch introduces TerminalState and changes LexerTransition::mNextState to
be a Variant<State, TerminalState>. This means that SUCCESS and FAILURE no
longer need to be part of State.
Some things to note:
- This simplifies the handling of Lex()'s return value, which is nice.
- The patch splits Terminate() into TerminateSuccess() and TerminateFailure().
- |const State& aNextState| wouldn't work for the first arg to
LexerTransition's ctor due to errors in Variant construction that I didn't
understand. I had to change it to |State aNextState|.
--HG--
extra : rebase_source : f405a67fdf0f1bb712409eafecb21ac9b59d6db0
2015-10-28 01:30:20 -07:00
Seth Fowler
5e69f17eb2
Bug 1196066 (Part 2) - Add a streaming lexing framework to ImageLib. r=tn
2015-09-18 23:12:27 -07:00
Wes Kocher
08de06967a
Backed out 8 changesets (bug 1201796, bug 1196066) for mulet gij(28) failures CLOSED TREE
...
Backed out changeset 159d5d2946d3 (bug 1201796)
Backed out changeset 958988218976 (bug 1201796)
Backed out changeset 494e7553d641 (bug 1201796)
Backed out changeset d58149411b7d (bug 1201796)
Backed out changeset 35bd769b49f8 (bug 1196066)
Backed out changeset e4f3d4279b4c (bug 1196066)
Backed out changeset ca467297fa07 (bug 1196066)
Backed out changeset b4851ce6637d (bug 1196066)
--HG--
rename : image/test/crashtests/invalid_ico_height.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_height.ico
rename : image/test/crashtests/invalid_ico_width.ico => image/test/reftest/ico/ico-bmp-corrupted/invalid_ico_width.ico
extra : rebase_source : 5232674f1cf0ef4d7f70568f627547c0151a801f
2015-09-18 13:01:25 -07:00
Seth Fowler
e1c5f39aff
Bug 1196066 (Part 2) - Add a streaming lexing framework to ImageLib. r=tn
2015-09-18 10:54:24 -07:00