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

Side by Side Diff: third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h

Issue 2393633005: reflow comments in core/imagebitmap,core/html/track (Closed)
Patch Set: Created 4 years, 2 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) 2013, Opera Software ASA. All rights reserved. 2 * Copyright (c) 2013, Opera Software ASA. 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Position m_end; 75 Position m_end;
76 bool m_is8Bit; 76 bool m_is8Bit;
77 }; 77 };
78 78
79 // Check if the input pointer points at the specified position. 79 // Check if the input pointer points at the specified position.
80 bool isAt(Position checkPosition) const { 80 bool isAt(Position checkPosition) const {
81 return getPosition() == checkPosition; 81 return getPosition() == checkPosition;
82 } 82 }
83 // Check if the input pointer points at the end of the input. 83 // Check if the input pointer points at the end of the input.
84 bool isAtEnd() const { return getPosition() == end(); } 84 bool isAtEnd() const { return getPosition() == end(); }
85 // Match the character |c| against the character at the input pointer (~lookah ead). 85 // Match the character |c| against the character at the input pointer
86 // (~lookahead).
86 bool match(char c) const { return !isAtEnd() && currentChar() == c; } 87 bool match(char c) const { return !isAtEnd() && currentChar() == c; }
87 // Scan the character |c|. 88 // Scan the character |c|.
88 bool scan(char); 89 bool scan(char);
89 // Scan the first |charactersCount| characters of the string |characters|. 90 // Scan the first |charactersCount| characters of the string |characters|.
90 bool scan(const LChar* characters, size_t charactersCount); 91 bool scan(const LChar* characters, size_t charactersCount);
91 92
92 // Scan the literal |characters|. 93 // Scan the literal |characters|.
93 template <unsigned charactersCount> 94 template <unsigned charactersCount>
94 bool scan(const char (&characters)[charactersCount]); 95 bool scan(const char (&characters)[charactersCount]);
95 96
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DCHECK_LT(getPosition(), end()); 236 DCHECK_LT(getPosition(), end());
236 if (m_is8Bit) 237 if (m_is8Bit)
237 m_data.characters8 += amount; 238 m_data.characters8 += amount;
238 else 239 else
239 m_data.characters16 += amount; 240 m_data.characters16 += amount;
240 } 241 }
241 242
242 } // namespace blink 243 } // namespace blink
243 244
244 #endif 245 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698