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, 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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 return; | 793 return; |
794 } | 794 } |
795 if (token->name() == inputTag) { | 795 if (token->name() == inputTag) { |
796 Attribute* typeAttribute = token->getAttributeItem(typeAttr); | 796 Attribute* typeAttribute = token->getAttributeItem(typeAttr); |
797 m_tree.reconstructTheActiveFormattingElements(); | 797 m_tree.reconstructTheActiveFormattingElements(); |
798 m_tree.insertSelfClosingHTMLElement(token); | 798 m_tree.insertSelfClosingHTMLElement(token); |
799 if (!typeAttribute || !equalIgnoringCase(typeAttribute->value(), "hidden
")) | 799 if (!typeAttribute || !equalIgnoringCase(typeAttribute->value(), "hidden
")) |
800 m_framesetOk = false; | 800 m_framesetOk = false; |
801 return; | 801 return; |
802 } | 802 } |
803 if (token->name() == paramTag | 803 if (token->name() == menuitemTag |
| 804 || token->name() == paramTag |
804 || token->name() == sourceTag | 805 || token->name() == sourceTag |
805 || token->name() == trackTag) { | 806 || token->name() == trackTag) { |
806 m_tree.insertSelfClosingHTMLElement(token); | 807 m_tree.insertSelfClosingHTMLElement(token); |
807 return; | 808 return; |
808 } | 809 } |
809 if (token->name() == hrTag) { | 810 if (token->name() == hrTag) { |
810 processFakePEndTagIfPInButtonScope(); | 811 processFakePEndTagIfPInButtonScope(); |
811 m_tree.insertSelfClosingHTMLElement(token); | 812 m_tree.insertSelfClosingHTMLElement(token); |
812 m_framesetOk = false; | 813 m_framesetOk = false; |
813 return; | 814 return; |
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 ASSERT(m_isAttached); | 2796 ASSERT(m_isAttached); |
2796 // Warning, this may detach the parser. Do not do anything else after this. | 2797 // Warning, this may detach the parser. Do not do anything else after this. |
2797 m_tree.finishedParsing(); | 2798 m_tree.finishedParsing(); |
2798 } | 2799 } |
2799 | 2800 |
2800 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) | 2801 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) |
2801 { | 2802 { |
2802 } | 2803 } |
2803 | 2804 |
2804 } // namespace blink | 2805 } // namespace blink |
OLD | NEW |