OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 #ifndef NDEBUG | 130 #ifndef NDEBUG |
131 void show(); | 131 void show(); |
132 #endif | 132 #endif |
133 | 133 |
134 private: | 134 private: |
135 Entry* first() { return &at(0); } | 135 Entry* first() { return &at(0); } |
136 | 136 |
137 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#
list-of-active-formatting-elements | 137 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#
list-of-active-formatting-elements |
138 // These functions enforce the "Noah's Ark" condition, which removes redunda
nt mis-nested elements. | 138 // These functions enforce the "Noah's Ark" condition, which removes redunda
nt mis-nested elements. |
139 void tryToEnsureNoahsArkConditionQuickly(HTMLStackItem*, WillBeHeapVector<Ra
wPtrWillBeMember<HTMLStackItem> >& remainingCandiates); | 139 void tryToEnsureNoahsArkConditionQuickly(HTMLStackItem*, WillBeHeapVector<Ra
wPtrWillBeMember<HTMLStackItem>>& remainingCandiates); |
140 void ensureNoahsArkCondition(HTMLStackItem*); | 140 void ensureNoahsArkCondition(HTMLStackItem*); |
141 | 141 |
142 WillBeHeapVector<Entry> m_entries; | 142 WillBeHeapVector<Entry> m_entries; |
143 }; | 143 }; |
144 | 144 |
145 } // namespace blink | 145 } // namespace blink |
146 | 146 |
147 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent
ry); | 147 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent
ry); |
148 | 148 |
149 #endif // HTMLFormattingElementList_h | 149 #endif // HTMLFormattingElementList_h |
OLD | NEW |