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

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

Issue 2971683003: Change code to make jumbo exceptions unnecessary in core/html (Closed)
Patch Set: Removed the undef instead. Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
29 29
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/HTMLTokenizerNames.h" 31 #include "core/HTMLTokenizerNames.h"
32 #include "core/html/parser/HTMLEntityParser.h" 32 #include "core/html/parser/HTMLEntityParser.h"
33 #include "core/html/parser/HTMLParserIdioms.h" 33 #include "core/html/parser/HTMLParserIdioms.h"
34 #include "core/html/parser/HTMLTreeBuilder.h" 34 #include "core/html/parser/HTMLTreeBuilder.h"
35 #include "core/html/parser/MarkupTokenizerInlines.h" 35 #include "core/html/parser/MarkupTokenizerInlines.h"
36 #include "platform/wtf/ASCIICType.h" 36 #include "platform/wtf/ASCIICType.h"
37 #include "platform/wtf/text/Unicode.h" 37 #include "platform/wtf/text/Unicode.h"
38 38
39 // Please don't use DEFINE_STATIC_LOCAL in this file. The HTMLTokenizer is used
40 // from multiple threads and DEFINE_STATIC_LOCAL isn't threadsafe.
41 #undef DEFINE_STATIC_LOCAL
42
43 namespace blink { 39 namespace blink {
44 40
45 using namespace HTMLNames; 41 using namespace HTMLNames;
46 42
47 static inline UChar ToLowerCase(UChar cc) { 43 static inline UChar ToLowerCase(UChar cc) {
48 DCHECK(IsASCIIAlpha(cc)); 44 DCHECK(IsASCIIAlpha(cc));
49 return cc | 0x20; 45 return cc | 0x20;
50 } 46 }
51 47
52 static inline UChar ToLowerCaseIfAlpha(UChar cc) { 48 static inline UChar ToLowerCaseIfAlpha(UChar cc) {
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 return true; 1493 return true;
1498 } 1494 }
1499 1495
1500 inline void HTMLTokenizer::ParseError() { 1496 inline void HTMLTokenizer::ParseError() {
1501 #if DCHECK_IS_ON() 1497 #if DCHECK_IS_ON()
1502 DVLOG(1) << "Not implemented."; 1498 DVLOG(1) << "Not implemented.";
1503 #endif 1499 #endif
1504 } 1500 }
1505 1501
1506 } // namespace blink 1502 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698