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: Source/core/html/parser/HTMLElementStack.cpp

Issue 419213002: [Not for review] Implement a <blink> tag in Blink-in-JS Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(appletTag)
52 || item->hasTagName(blinkTag)
52 || item->hasTagName(captionTag) 53 || item->hasTagName(captionTag)
53 || item->hasTagName(marqueeTag) 54 || item->hasTagName(marqueeTag)
54 || item->hasTagName(objectTag) 55 || item->hasTagName(objectTag)
55 || item->hasTagName(tableTag) 56 || item->hasTagName(tableTag)
56 || item->hasTagName(tdTag) 57 || item->hasTagName(tdTag)
57 || item->hasTagName(thTag) 58 || item->hasTagName(thTag)
58 || item->hasTagName(MathMLNames::miTag) 59 || item->hasTagName(MathMLNames::miTag)
59 || item->hasTagName(MathMLNames::moTag) 60 || item->hasTagName(MathMLNames::moTag)
60 || item->hasTagName(MathMLNames::mnTag) 61 || item->hasTagName(MathMLNames::mnTag)
61 || item->hasTagName(MathMLNames::msTag) 62 || item->hasTagName(MathMLNames::msTag)
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 629
629 void HTMLElementStack::show() 630 void HTMLElementStack::show()
630 { 631 {
631 for (ElementRecord* record = m_top.get(); record; record = record->next()) 632 for (ElementRecord* record = m_top.get(); record; record = record->next())
632 record->element()->showNode(); 633 record->element()->showNode();
633 } 634 }
634 635
635 #endif 636 #endif
636 637
637 } 638 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698