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

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

Issue 482373002: Catch up ruby and its tag omission rule changes in HTML5 CR Feb 2014 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed TODO. Used HTMLUnknownElement. Created 6 years, 4 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/HTMLTagNames.in ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTagNames.in ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698