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

Side by Side Diff: third_party/WebKit/Source/core/xml/parser/MarkupTokenizerInlines.h

Issue 2274573004: Replace ASSERT*() with DCHECK*() in core/xml/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
4 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 4 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 source.advanceAndASSERT(*expectedCharacters++); 49 source.advanceAndASSERT(*expectedCharacters++);
50 } 50 }
51 51
52 #if COMPILER(MSVC) 52 #if COMPILER(MSVC)
53 // We need to disable the "unreachable code" warning because we want to assert 53 // We need to disable the "unreachable code" warning because we want to assert
54 // that some code points aren't reached in the state machine. 54 // that some code points aren't reached in the state machine.
55 #pragma warning(disable: 4702) 55 #pragma warning(disable: 4702)
56 #endif 56 #endif
57 57
58 #define BEGIN_STATE(prefix, stateName) case prefix::stateName: stateName: 58 #define BEGIN_STATE(prefix, stateName) case prefix::stateName: stateName:
59 #define END_STATE() ASSERT_NOT_REACHED(); break; 59 #define END_STATE() NOTREACHED(); break;
60 60
61 // We use this macro when the HTML5 spec says "reconsume the current input 61 // We use this macro when the HTML5 spec says "reconsume the current input
62 // character in the <mumble> state." 62 // character in the <mumble> state."
63 #define RECONSUME_IN(prefix, stateName) \ 63 #define RECONSUME_IN(prefix, stateName) \
64 do { \ 64 do { \
65 m_state = prefix::stateName; \ 65 m_state = prefix::stateName; \
66 goto stateName; \ 66 goto stateName; \
67 } while (false) 67 } while (false)
68 68
69 // We use this macro when the HTML5 spec says "consume the next input 69 // We use this macro when the HTML5 spec says "consume the next input
(...skipping 16 matching lines...) Expand all
86 m_state = prefix::stateName; \ 86 m_state = prefix::stateName; \
87 if (source.isEmpty() || !m_inputStreamPreprocessor.peek(source)) \ 87 if (source.isEmpty() || !m_inputStreamPreprocessor.peek(source)) \
88 return haveBufferedCharacterToken(); \ 88 return haveBufferedCharacterToken(); \
89 cc = m_inputStreamPreprocessor.nextInputCharacter(); \ 89 cc = m_inputStreamPreprocessor.nextInputCharacter(); \
90 goto stateName; \ 90 goto stateName; \
91 } while (false) 91 } while (false)
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // MarkupTokenizerInlines_h 95 #endif // MarkupTokenizerInlines_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698