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

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

Issue 2743023002: Migrate WTF::Deque::append() to ::push_back() (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) 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 m_document->frame()->settings(), scriptState, 584 m_document->frame()->settings(), scriptState,
585 TaskRunnerHelper::get(TaskType::Networking, m_document)); 585 TaskRunnerHelper::get(TaskType::Networking, m_document));
586 } 586 }
587 } 587 }
588 588
589 DCHECK(pendingScript->resource()); 589 DCHECK(pendingScript->resource());
590 590
591 // "Add the element to the end of the list of scripts that will execute 591 // "Add the element to the end of the list of scripts that will execute
592 // when the document has finished parsing associated with the Document 592 // when the document has finished parsing associated with the Document
593 // of the parser that created the element." 593 // of the parser that created the element."
594 m_scriptsToExecuteAfterParsing.append(pendingScript); 594 m_scriptsToExecuteAfterParsing.push_back(pendingScript);
595 } 595 }
596 596
597 PendingScript* HTMLParserScriptRunner::requestPendingScript( 597 PendingScript* HTMLParserScriptRunner::requestPendingScript(
598 Element* element) const { 598 Element* element) const {
599 ScriptResource* resource = toScriptLoaderIfPossible(element)->resource(); 599 ScriptResource* resource = toScriptLoaderIfPossible(element)->resource();
600 // Here |resource| should be non-null. If it were nullptr, 600 // Here |resource| should be non-null. If it were nullptr,
601 // ScriptLoader::fetchScript() should have returned false and 601 // ScriptLoader::fetchScript() should have returned false and
602 // thus the control shouldn't have reached here. 602 // thus the control shouldn't have reached here.
603 CHECK(resource); 603 CHECK(resource);
604 return PendingScript::create(element, resource); 604 return PendingScript::create(element, resource);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 692
693 DEFINE_TRACE(HTMLParserScriptRunner) { 693 DEFINE_TRACE(HTMLParserScriptRunner) {
694 visitor->trace(m_document); 694 visitor->trace(m_document);
695 visitor->trace(m_host); 695 visitor->trace(m_host);
696 visitor->trace(m_parserBlockingScript); 696 visitor->trace(m_parserBlockingScript);
697 visitor->trace(m_scriptsToExecuteAfterParsing); 697 visitor->trace(m_scriptsToExecuteAfterParsing);
698 PendingScriptClient::trace(visitor); 698 PendingScriptClient::trace(visitor);
699 } 699 }
700 700
701 } // namespace blink 701 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698