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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.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 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 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 (m_templateInsertionModes.size() == 1 && 863 (m_templateInsertionModes.size() == 1 &&
864 isHTMLTemplateElement(m_fragmentContext.contextElement()))); 864 isHTMLTemplateElement(m_fragmentContext.contextElement())));
865 parseError(token); 865 parseError(token);
866 return false; 866 return false;
867 } 867 }
868 m_tree.generateImpliedEndTags(); 868 m_tree.generateImpliedEndTags();
869 if (!m_tree.currentStackItem()->hasTagName(templateTag)) 869 if (!m_tree.currentStackItem()->hasTagName(templateTag))
870 parseError(token); 870 parseError(token);
871 m_tree.openElements()->popUntilPopped(templateTag); 871 m_tree.openElements()->popUntilPopped(templateTag);
872 m_tree.activeFormattingElements()->clearToLastMarker(); 872 m_tree.activeFormattingElements()->clearToLastMarker();
873 m_templateInsertionModes.removeLast(); 873 m_templateInsertionModes.pop_back();
874 resetInsertionModeAppropriately(); 874 resetInsertionModeAppropriately();
875 return true; 875 return true;
876 } 876 }
877 877
878 bool HTMLTreeBuilder::processEndOfFileForInTemplateContents( 878 bool HTMLTreeBuilder::processEndOfFileForInTemplateContents(
879 AtomicHTMLToken* token) { 879 AtomicHTMLToken* token) {
880 AtomicHTMLToken endTemplate(HTMLToken::EndTag, templateTag.localName()); 880 AtomicHTMLToken endTemplate(HTMLToken::EndTag, templateTag.localName());
881 if (!processTemplateEndTag(&endTemplate)) 881 if (!processTemplateEndTag(&endTemplate))
882 return false; 882 return false;
883 883
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2755 DEFINE_STRINGIFY(AfterFramesetMode) 2755 DEFINE_STRINGIFY(AfterFramesetMode)
2756 DEFINE_STRINGIFY(AfterAfterBodyMode) 2756 DEFINE_STRINGIFY(AfterAfterBodyMode)
2757 DEFINE_STRINGIFY(AfterAfterFramesetMode) 2757 DEFINE_STRINGIFY(AfterAfterFramesetMode)
2758 #undef DEFINE_STRINGIFY 2758 #undef DEFINE_STRINGIFY
2759 } 2759 }
2760 return "<unknown>"; 2760 return "<unknown>";
2761 } 2761 }
2762 #endif 2762 #endif
2763 2763
2764 } // namespace blink 2764 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698