| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |