Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.h

Issue 2717303002: Considering HTMLTokenizer state in HTMLSourceTracker (Closed)
Patch Set: Considering HTMLTokenizer state in HTMLSourceTracker Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Adam Barth. All Rights Reserved. 2 * Copyright (C) 2010 Adam Barth. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // FIXME: Once we move "end" into HTMLTokenizer, rename "start" to 44 // FIXME: Once we move "end" into HTMLTokenizer, rename "start" to
45 // something that makes it obvious that this method can be called multiple 45 // something that makes it obvious that this method can be called multiple
46 // times. 46 // times.
47 void start(SegmentedString&, HTMLTokenizer*, HTMLToken&); 47 void start(SegmentedString&, HTMLTokenizer*, HTMLToken&);
48 void end(SegmentedString&, HTMLTokenizer*, HTMLToken&); 48 void end(SegmentedString&, HTMLTokenizer*, HTMLToken&);
49 49
50 String sourceForToken(const HTMLToken&); 50 String sourceForToken(const HTMLToken&);
51 51
52 private: 52 private:
53 bool needToCheckTokenizerBuffer(HTMLTokenizer*);
54
53 SegmentedString m_previousSource; 55 SegmentedString m_previousSource;
54 SegmentedString m_currentSource; 56 SegmentedString m_currentSource;
55 57
56 String m_cachedSourceForToken; 58 String m_cachedSourceForToken;
57 59
58 bool m_isStarted; 60 bool m_isStarted;
59 }; 61 };
60 62
61 } // namespace blink 63 } // namespace blink
62 64
63 #endif 65 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698