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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index ab6d45994c80bb1bf91ed557395695a189edc746..cf5ea7ff0fa1726080d852e328860a78bf4e3f30 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -164,8 +164,8 @@ void HTMLDocumentParser::detach()
m_treeBuilder->detach();
// FIXME: It seems wrong that we would have a preload scanner here.
// Yet during fast/dom/HTMLScriptElement/script-load-events.html we do.
- m_preloadScanner.clear();
- m_insertionPreloadScanner.clear();
+ m_preloadScanner.reset();
+ m_insertionPreloadScanner.reset();
if (m_parserScheduler) {
m_parserScheduler->detach();
m_parserScheduler.clear();
@@ -174,8 +174,8 @@ void HTMLDocumentParser::detach()
// HTMLToken::m_data and let the allocator reuse the memory for
// HTMLToken::m_data of a next HTMLDocumentParser. We need to clear
// m_tokenizer first because m_tokenizer has a raw pointer to m_token.
- m_tokenizer.clear();
- m_token.clear();
+ m_tokenizer.reset();
+ m_token.reset();
}
void HTMLDocumentParser::stopParsing()
@@ -763,7 +763,7 @@ void HTMLDocumentParser::append(const String& inputSource)
if (m_input.current().isEmpty() && !isWaitingForScripts()) {
// We have parsed until the end of the current input and so are now moving ahead of the preload scanner.
// Clear the scanner so we know to scan starting from the current input point if we block again.
- m_preloadScanner.clear();
+ m_preloadScanner.reset();
} else {
m_preloadScanner->appendToEnd(source);
if (isWaitingForScripts())
@@ -933,7 +933,7 @@ void HTMLDocumentParser::resumeParsingAfterScriptExecution()
return;
}
- m_insertionPreloadScanner.clear();
+ m_insertionPreloadScanner.reset();
pumpTokenizerIfPossible();
endIfDelayed();
}

Powered by Google App Engine
This is Rietveld 408576698