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

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

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 years 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 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. 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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 const SegmentedString& currentString = m_input.current(); 996 const SegmentedString& currentString = m_input.current();
997 OrdinalNumber line = currentString.currentLine(); 997 OrdinalNumber line = currentString.currentLine();
998 OrdinalNumber column = currentString.currentColumn(); 998 OrdinalNumber column = currentString.currentColumn();
999 999
1000 return TextPosition(line, column); 1000 return TextPosition(line, column);
1001 } 1001 }
1002 1002
1003 bool HTMLDocumentParser::isWaitingForScripts() const 1003 bool HTMLDocumentParser::isWaitingForScripts() const
1004 { 1004 {
1005 // When the TreeBuilder encounters a </script> tag, it returns to the HTMLDo cumentParser 1005 // When the TreeBuilder encounters a </script> tag, it returns to the HTMLDo cumentParser
1006 // where the script is transfered from the treebuilder to the script runner. 1006 // where the script is transferred from the treebuilder to the script runner .
1007 // The script runner will hold the script until its loaded and run. During 1007 // The script runner will hold the script until its loaded and run. During
1008 // any of this time, we want to count ourselves as "waiting for a script" an d thus 1008 // any of this time, we want to count ourselves as "waiting for a script" an d thus
1009 // run the preload scanner, as well as delay completion of parsing. 1009 // run the preload scanner, as well as delay completion of parsing.
1010 bool treeBuilderHasBlockingScript = m_treeBuilder->hasParserBlockingScript() ; 1010 bool treeBuilderHasBlockingScript = m_treeBuilder->hasParserBlockingScript() ;
1011 bool scriptRunnerHasBlockingScript = m_scriptRunner && m_scriptRunner->hasPa rserBlockingScript(); 1011 bool scriptRunnerHasBlockingScript = m_scriptRunner && m_scriptRunner->hasPa rserBlockingScript();
1012 // Since the parser is paused while a script runner has a blocking script, i t should 1012 // Since the parser is paused while a script runner has a blocking script, i t should
1013 // never be possible to end up with both objects holding a blocking script. 1013 // never be possible to end up with both objects holding a blocking script.
1014 ASSERT(!(treeBuilderHasBlockingScript && scriptRunnerHasBlockingScript)); 1014 ASSERT(!(treeBuilderHasBlockingScript && scriptRunnerHasBlockingScript));
1015 // If either object has a blocking script, the parser should be paused. 1015 // If either object has a blocking script, the parser should be paused.
1016 return treeBuilderHasBlockingScript || scriptRunnerHasBlockingScript; 1016 return treeBuilderHasBlockingScript || scriptRunnerHasBlockingScript;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) 1156 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder)
1157 { 1157 {
1158 ASSERT(decoder); 1158 ASSERT(decoder);
1159 DecodedDataDocumentParser::setDecoder(decoder); 1159 DecodedDataDocumentParser::setDecoder(decoder);
1160 1160
1161 if (m_haveBackgroundParser) 1161 if (m_haveBackgroundParser)
1162 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder())); 1162 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder()));
1163 } 1163 }
1164 1164
1165 } 1165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698