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

Side by Side Diff: Source/core/html/parser/HTMLTreeBuilder.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 return; 666 return;
667 } 667 }
668 if (token->name() == framesetTag) { 668 if (token->name() == framesetTag) {
669 parseError(token); 669 parseError(token);
670 if (!m_tree.openElements()->secondElementIsHTMLBodyElement() || m_tree.o penElements()->hasOnlyOneElement()) { 670 if (!m_tree.openElements()->secondElementIsHTMLBodyElement() || m_tree.o penElements()->hasOnlyOneElement()) {
671 ASSERT(isParsingFragmentOrTemplateContents()); 671 ASSERT(isParsingFragmentOrTemplateContents());
672 return; 672 return;
673 } 673 }
674 if (!m_framesetOk) 674 if (!m_framesetOk)
675 return; 675 return;
676 m_tree.openElements()->bodyElement()->remove(ASSERT_NO_EXCEPTION_STATE); 676 m_tree.openElements()->bodyElement()->remove(ASSERT_NO_EXCEPTION);
677 m_tree.openElements()->popUntil(m_tree.openElements()->bodyElement()); 677 m_tree.openElements()->popUntil(m_tree.openElements()->bodyElement());
678 m_tree.openElements()->popHTMLBodyElement(); 678 m_tree.openElements()->popHTMLBodyElement();
679 ASSERT(m_tree.openElements()->top() == m_tree.openElements()->htmlElemen t()); 679 ASSERT(m_tree.openElements()->top() == m_tree.openElements()->htmlElemen t());
680 m_tree.insertHTMLElement(token); 680 m_tree.insertHTMLElement(token);
681 setInsertionMode(InFramesetMode); 681 setInsertionMode(InFramesetMode);
682 return; 682 return;
683 } 683 }
684 if (token->name() == addressTag 684 if (token->name() == addressTag
685 || token->name() == articleTag 685 || token->name() == articleTag
686 || token->name() == asideTag 686 || token->name() == asideTag
(...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 ASSERT(m_isAttached); 2810 ASSERT(m_isAttached);
2811 // Warning, this may detach the parser. Do not do anything else after this. 2811 // Warning, this may detach the parser. Do not do anything else after this.
2812 m_tree.finishedParsing(); 2812 m_tree.finishedParsing();
2813 } 2813 }
2814 2814
2815 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) 2815 void HTMLTreeBuilder::parseError(AtomicHTMLToken*)
2816 { 2816 {
2817 } 2817 }
2818 2818
2819 } 2819 }
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698