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

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

Issue 2459003003: WTF/std normalization: replace WTF::Vector::removeLast with ::pop_back (Closed)
Patch Set: rebase Created 4 years, 1 month 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/HTMLTreeBuilderSimulator.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
index 60ba812788c4f91251811c2953383fd417c65910..80cf6c18511a31d9cc6065c5b68b080457eca32b 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilderSimulator.cpp
@@ -130,7 +130,7 @@ HTMLTreeBuilderSimulator::SimulatedToken HTMLTreeBuilderSimulator::simulate(
if (threadSafeMatch(tagName, MathMLNames::mathTag))
m_namespaceStack.append(MathML);
if (inForeignContent() && tokenExitsForeignContent(token))
- m_namespaceStack.removeLast();
+ m_namespaceStack.pop_back();
if ((m_namespaceStack.last() == SVG && tokenExitsSVG(token)) ||
(m_namespaceStack.last() == MathML && tokenExitsMath(token)))
m_namespaceStack.append(HTML);
@@ -168,7 +168,7 @@ HTMLTreeBuilderSimulator::SimulatedToken HTMLTreeBuilderSimulator::simulate(
tokenExitsSVG(token)) ||
(m_namespaceStack.contains(MathML) && m_namespaceStack.last() == HTML &&
tokenExitsMath(token)))
- m_namespaceStack.removeLast();
+ m_namespaceStack.pop_back();
if (threadSafeMatch(tagName, scriptTag)) {
if (!inForeignContent())
tokenizer->setState(HTMLTokenizer::DataState);

Powered by Google App Engine
This is Rietveld 408576698