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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 | 67 |
68 static bool hasImpliedEndTag(const HTMLStackItem* item) | 68 static bool hasImpliedEndTag(const HTMLStackItem* item) |
69 { | 69 { |
70 return item->hasTagName(ddTag) | 70 return item->hasTagName(ddTag) |
71 || item->hasTagName(dtTag) | 71 || item->hasTagName(dtTag) |
72 || item->hasTagName(liTag) | 72 || item->hasTagName(liTag) |
73 || item->hasTagName(optionTag) | 73 || item->hasTagName(optionTag) |
74 || item->hasTagName(optgroupTag) | 74 || item->hasTagName(optgroupTag) |
75 || item->hasTagName(pTag) | 75 || item->hasTagName(pTag) |
| 76 || item->hasTagName(rbTag) |
76 || item->hasTagName(rpTag) | 77 || item->hasTagName(rpTag) |
77 || item->hasTagName(rtTag); | 78 || item->hasTagName(rtTag) |
| 79 || item->hasTagName(rtcTag); |
78 } | 80 } |
79 | 81 |
80 static bool shouldUseLengthLimit(const ContainerNode& node) | 82 static bool shouldUseLengthLimit(const ContainerNode& node) |
81 { | 83 { |
82 return !isHTMLScriptElement(node) | 84 return !isHTMLScriptElement(node) |
83 && !isHTMLStyleElement(node) | 85 && !isHTMLStyleElement(node) |
84 && !isSVGScriptElement(node); | 86 && !isSVGScriptElement(node); |
85 } | 87 } |
86 | 88 |
87 static unsigned textLengthLimitForContainer(const ContainerNode& node) | 89 static unsigned textLengthLimitForContainer(const ContainerNode& node) |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 } | 871 } |
870 | 872 |
871 void HTMLConstructionSite::PendingText::trace(Visitor* visitor) | 873 void HTMLConstructionSite::PendingText::trace(Visitor* visitor) |
872 { | 874 { |
873 visitor->trace(parent); | 875 visitor->trace(parent); |
874 visitor->trace(nextChild); | 876 visitor->trace(nextChild); |
875 } | 877 } |
876 | 878 |
877 | 879 |
878 } | 880 } |
OLD | NEW |