OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |