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

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

Issue 443373002: Add <menuitem>, new HTMLMenuElement IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comments Created 6 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
« no previous file with comments | « Source/core/html/parser/HTMLStackItem.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ((RuntimeEnabledFeatures::contextMenuEnabled() && token->name() == menuit emTag)
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
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
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLStackItem.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698