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

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

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Rebase Created 3 years, 6 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 return false; 1377 return false;
1378 } 1378 }
1379 // Emit a more specific parse error based on stack contents. 1379 // Emit a more specific parse error based on stack contents.
1380 DVLOG(1) << "Not implmeneted."; 1380 DVLOG(1) << "Not implmeneted.";
1381 SetInsertionMode(kAfterBodyMode); 1381 SetInsertionMode(kAfterBodyMode);
1382 return true; 1382 return true;
1383 } 1383 }
1384 1384
1385 void HTMLTreeBuilder::ProcessAnyOtherEndTagForInBody(AtomicHTMLToken* token) { 1385 void HTMLTreeBuilder::ProcessAnyOtherEndTagForInBody(AtomicHTMLToken* token) {
1386 DCHECK_EQ(token->GetType(), HTMLToken::kEndTag); 1386 DCHECK_EQ(token->GetType(), HTMLToken::kEndTag);
1387 if (token->GetName() == menuitemTag)
1388 UseCounter::Count(tree_.CurrentNode()->GetDocument(),
1389 UseCounter::kMenuItemCloseTag);
1390 HTMLElementStack::ElementRecord* record = tree_.OpenElements()->TopRecord(); 1387 HTMLElementStack::ElementRecord* record = tree_.OpenElements()->TopRecord();
1391 while (1) { 1388 while (1) {
1392 HTMLStackItem* item = record->StackItem(); 1389 HTMLStackItem* item = record->StackItem();
1393 if (item->MatchesHTMLTag(token->GetName())) { 1390 if (item->MatchesHTMLTag(token->GetName())) {
1394 tree_.GenerateImpliedEndTagsWithExclusion(token->GetName()); 1391 tree_.GenerateImpliedEndTagsWithExclusion(token->GetName());
1395 if (!tree_.CurrentStackItem()->MatchesHTMLTag(token->GetName())) 1392 if (!tree_.CurrentStackItem()->MatchesHTMLTag(token->GetName()))
1396 ParseError(token); 1393 ParseError(token);
1397 tree_.OpenElements()->PopUntilPopped(item->GetElement()); 1394 tree_.OpenElements()->PopUntilPopped(item->GetElement());
1398 return; 1395 return;
1399 } 1396 }
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2771 DEFINE_STRINGIFY(kAfterFramesetMode) 2768 DEFINE_STRINGIFY(kAfterFramesetMode)
2772 DEFINE_STRINGIFY(kAfterAfterBodyMode) 2769 DEFINE_STRINGIFY(kAfterAfterBodyMode)
2773 DEFINE_STRINGIFY(kAfterAfterFramesetMode) 2770 DEFINE_STRINGIFY(kAfterAfterFramesetMode)
2774 #undef DEFINE_STRINGIFY 2771 #undef DEFINE_STRINGIFY
2775 } 2772 }
2776 return "<unknown>"; 2773 return "<unknown>";
2777 } 2774 }
2778 #endif 2775 #endif
2779 2776
2780 } // namespace blink 2777 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLUnknownElement.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698