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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 frameset_ok_ = false; 716 frameset_ok_ = false;
717 return; 717 return;
718 } 718 }
719 if (token->GetName() == inputTag) { 719 if (token->GetName() == inputTag) {
720 // Per spec https://html.spec.whatwg.org/#parsing-main-inbody, 720 // Per spec https://html.spec.whatwg.org/#parsing-main-inbody,
721 // section "A start tag whose tag name is "input"" 721 // section "A start tag whose tag name is "input""
722 722
723 Attribute* type_attribute = token->GetAttributeItem(typeAttr); 723 Attribute* type_attribute = token->GetAttributeItem(typeAttr);
724 bool disable_frameset = 724 bool disable_frameset =
725 !type_attribute || 725 !type_attribute ||
726 !EqualIgnoringCase(type_attribute->Value(), "hidden"); 726 !DeprecatedEqualIgnoringCase(type_attribute->Value(), "hidden");
727 727
728 tree_.ReconstructTheActiveFormattingElements(); 728 tree_.ReconstructTheActiveFormattingElements();
729 tree_.InsertSelfClosingHTMLElementDestroyingToken(token); 729 tree_.InsertSelfClosingHTMLElementDestroyingToken(token);
730 730
731 if (disable_frameset) 731 if (disable_frameset)
732 frameset_ok_ = false; 732 frameset_ok_ = false;
733 return; 733 return;
734 } 734 }
735 if ((RuntimeEnabledFeatures::contextMenuEnabled() && 735 if ((RuntimeEnabledFeatures::contextMenuEnabled() &&
736 token->GetName() == menuitemTag) || 736 token->GetName() == menuitemTag) ||
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 ProcessStartTag(token); 958 ProcessStartTag(token);
959 return; 959 return;
960 } 960 }
961 if (token->GetName() == styleTag || token->GetName() == scriptTag) { 961 if (token->GetName() == styleTag || token->GetName() == scriptTag) {
962 ProcessStartTagForInHead(token); 962 ProcessStartTagForInHead(token);
963 return; 963 return;
964 } 964 }
965 if (token->GetName() == inputTag) { 965 if (token->GetName() == inputTag) {
966 Attribute* type_attribute = token->GetAttributeItem(typeAttr); 966 Attribute* type_attribute = token->GetAttributeItem(typeAttr);
967 if (type_attribute && 967 if (type_attribute &&
968 EqualIgnoringCase(type_attribute->Value(), "hidden")) { 968 DeprecatedEqualIgnoringCase(type_attribute->Value(), "hidden")) {
969 ParseError(token); 969 ParseError(token);
970 tree_.InsertSelfClosingHTMLElementDestroyingToken(token); 970 tree_.InsertSelfClosingHTMLElementDestroyingToken(token);
971 return; 971 return;
972 } 972 }
973 // Fall through to "anything else" case. 973 // Fall through to "anything else" case.
974 } 974 }
975 if (token->GetName() == formTag) { 975 if (token->GetName() == formTag) {
976 ParseError(token); 976 ParseError(token);
977 if (tree_.IsFormElementPointerNonNull() && !IsParsingTemplateContents()) 977 if (tree_.IsFormElementPointerNonNull() && !IsParsingTemplateContents())
978 return; 978 return;
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 DEFINE_STRINGIFY(kAfterFramesetMode) 2771 DEFINE_STRINGIFY(kAfterFramesetMode)
2772 DEFINE_STRINGIFY(kAfterAfterBodyMode) 2772 DEFINE_STRINGIFY(kAfterAfterBodyMode)
2773 DEFINE_STRINGIFY(kAfterAfterFramesetMode) 2773 DEFINE_STRINGIFY(kAfterAfterFramesetMode)
2774 #undef DEFINE_STRINGIFY 2774 #undef DEFINE_STRINGIFY
2775 } 2775 }
2776 return "<unknown>"; 2776 return "<unknown>";
2777 } 2777 }
2778 #endif 2778 #endif
2779 2779
2780 } // namespace blink 2780 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698