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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp

Issue 2751483005: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ (Closed)
Patch Set: rebase 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) 2008, 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2010 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (c == ';') 173 if (c == ';')
174 emitRule(source); 174 emitRule(source);
175 else if (c == '{') 175 else if (c == '{')
176 m_state = DoneParsingImportRules; 176 m_state = DoneParsingImportRules;
177 else { 177 else {
178 // FIXME: media rules 178 // FIXME: media rules
179 m_state = Initial; 179 m_state = Initial;
180 } 180 }
181 break; 181 break;
182 case DoneParsingImportRules: 182 case DoneParsingImportRules:
183 ASSERT_NOT_REACHED(); 183 NOTREACHED();
184 break; 184 break;
185 } 185 }
186 } 186 }
187 187
188 static String parseCSSStringOrURL(const String& string) { 188 static String parseCSSStringOrURL(const String& string) {
189 size_t offset = 0; 189 size_t offset = 0;
190 size_t reducedLength = string.length(); 190 size_t reducedLength = string.length();
191 191
192 while (reducedLength && isHTMLSpace<UChar>(string[offset])) { 192 while (reducedLength && isHTMLSpace<UChar>(string[offset])) {
193 ++offset; 193 ++offset;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 m_resource.clear(); 346 m_resource.clear();
347 } 347 }
348 348
349 DEFINE_TRACE(CSSPreloaderResourceClient) { 349 DEFINE_TRACE(CSSPreloaderResourceClient) {
350 visitor->trace(m_preloader); 350 visitor->trace(m_preloader);
351 visitor->trace(m_resource); 351 visitor->trace(m_resource);
352 StyleSheetResourceClient::trace(visitor); 352 StyleSheetResourceClient::trace(visitor);
353 } 353 }
354 354
355 } // namespace blink 355 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698