| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Company 100, Inc. All rights reserved. | 2 * Copyright (C) 2012 Company 100, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 bool causesFosterParenting() { | 93 bool causesFosterParenting() { |
| 94 return hasTagName(HTMLNames::tableTag) || hasTagName(HTMLNames::tbodyTag) || | 94 return hasTagName(HTMLNames::tableTag) || hasTagName(HTMLNames::tbodyTag) || |
| 95 hasTagName(HTMLNames::tfootTag) || hasTagName(HTMLNames::theadTag) || | 95 hasTagName(HTMLNames::tfootTag) || hasTagName(HTMLNames::theadTag) || |
| 96 hasTagName(HTMLNames::trTag); | 96 hasTagName(HTMLNames::trTag); |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool isInHTMLNamespace() const { | 99 bool isInHTMLNamespace() const { |
| 100 // A DocumentFragment takes the place of the document element when parsing | 100 // A DocumentFragment takes the place of the document element when parsing |
| 101 // fragments and should be considered in the HTML namespace. | 101 // fragments and should be considered in the HTML namespace. |
| 102 return namespaceURI() == HTMLNames::xhtmlNamespaceURI || | 102 return namespaceURI() == HTMLNames::xhtmlNamespaceURI || |
| 103 isDocumentFragmentNode(); // FIXME: Does this also apply to ShadowRo
ot? | 103 isDocumentFragmentNode(); // FIXME: Does this also apply to |
| 104 // ShadowRoot? |
| 104 } | 105 } |
| 105 | 106 |
| 106 bool isNumberedHeaderElement() const { | 107 bool isNumberedHeaderElement() const { |
| 107 return hasTagName(HTMLNames::h1Tag) || hasTagName(HTMLNames::h2Tag) || | 108 return hasTagName(HTMLNames::h1Tag) || hasTagName(HTMLNames::h2Tag) || |
| 108 hasTagName(HTMLNames::h3Tag) || hasTagName(HTMLNames::h4Tag) || | 109 hasTagName(HTMLNames::h3Tag) || hasTagName(HTMLNames::h4Tag) || |
| 109 hasTagName(HTMLNames::h5Tag) || hasTagName(HTMLNames::h6Tag); | 110 hasTagName(HTMLNames::h5Tag) || hasTagName(HTMLNames::h6Tag); |
| 110 } | 111 } |
| 111 | 112 |
| 112 bool isTableBodyContextElement() const { | 113 bool isTableBodyContextElement() const { |
| 113 return hasTagName(HTMLNames::tbodyTag) || hasTagName(HTMLNames::tfootTag) || | 114 return hasTagName(HTMLNames::tbodyTag) || hasTagName(HTMLNames::tfootTag) || |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 206 |
| 206 AtomicString m_tokenLocalName; | 207 AtomicString m_tokenLocalName; |
| 207 Vector<Attribute> m_tokenAttributes; | 208 Vector<Attribute> m_tokenAttributes; |
| 208 AtomicString m_namespaceURI; | 209 AtomicString m_namespaceURI; |
| 209 bool m_isDocumentFragmentNode; | 210 bool m_isDocumentFragmentNode; |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } // namespace blink | 213 } // namespace blink |
| 213 | 214 |
| 214 #endif // HTMLStackItem_h | 215 #endif // HTMLStackItem_h |
| OLD | NEW |