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

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

Issue 1291723004: Remove all support for <applet> handling in Chrome. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/WindowNameCollection.cpp ('k') | Source/core/html/parser/HTMLStackItem.h » ('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 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 30 matching lines...) Expand all
41 namespace { 41 namespace {
42 42
43 inline bool isRootNode(HTMLStackItem* item) 43 inline bool isRootNode(HTMLStackItem* item)
44 { 44 {
45 return item->isDocumentFragmentNode() 45 return item->isDocumentFragmentNode()
46 || item->hasTagName(htmlTag); 46 || item->hasTagName(htmlTag);
47 } 47 }
48 48
49 inline bool isScopeMarker(HTMLStackItem* item) 49 inline bool isScopeMarker(HTMLStackItem* item)
50 { 50 {
51 return item->hasTagName(appletTag) 51 return item->hasTagName(captionTag)
52 || item->hasTagName(captionTag)
53 || item->hasTagName(marqueeTag) 52 || item->hasTagName(marqueeTag)
54 || item->hasTagName(objectTag) 53 || item->hasTagName(objectTag)
55 || item->hasTagName(tableTag) 54 || item->hasTagName(tableTag)
56 || item->hasTagName(tdTag) 55 || item->hasTagName(tdTag)
57 || item->hasTagName(thTag) 56 || item->hasTagName(thTag)
58 || item->hasTagName(MathMLNames::miTag) 57 || item->hasTagName(MathMLNames::miTag)
59 || item->hasTagName(MathMLNames::moTag) 58 || item->hasTagName(MathMLNames::moTag)
60 || item->hasTagName(MathMLNames::mnTag) 59 || item->hasTagName(MathMLNames::mnTag)
61 || item->hasTagName(MathMLNames::msTag) 60 || item->hasTagName(MathMLNames::msTag)
62 || item->hasTagName(MathMLNames::mtextTag) 61 || item->hasTagName(MathMLNames::mtextTag)
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 627
629 void HTMLElementStack::show() 628 void HTMLElementStack::show()
630 { 629 {
631 for (ElementRecord* record = m_top.get(); record; record = record->next()) 630 for (ElementRecord* record = m_top.get(); record; record = record->next())
632 record->element()->showNode(); 631 record->element()->showNode();
633 } 632 }
634 633
635 #endif 634 #endif
636 635
637 } 636 }
OLDNEW
« no previous file with comments | « Source/core/html/WindowNameCollection.cpp ('k') | Source/core/html/parser/HTMLStackItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698