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

Side by Side Diff: Source/core/html/parser/HTMLFormattingElementList.h

Issue 1112363003: Oilpan: Remove OffHeapCollectionTrait (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
OLDNEW
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Bookmark bookmarkFor(Element*); 118 Bookmark bookmarkFor(Element*);
119 void swapTo(Element* oldElement, PassRefPtrWillBeRawPtr<HTMLStackItem> newIt em, const Bookmark&); 119 void swapTo(Element* oldElement, PassRefPtrWillBeRawPtr<HTMLStackItem> newIt em, const Bookmark&);
120 120
121 void appendMarker(); 121 void appendMarker();
122 // clearToLastMarker also clears the marker (per the HTML5 spec). 122 // clearToLastMarker also clears the marker (per the HTML5 spec).
123 void clearToLastMarker(); 123 void clearToLastMarker();
124 124
125 const Entry& at(size_t i) const { return m_entries[i]; } 125 const Entry& at(size_t i) const { return m_entries[i]; }
126 Entry& at(size_t i) { return m_entries[i]; } 126 Entry& at(size_t i) { return m_entries[i]; }
127 127
128 DEFINE_INLINE_TRACE() { visitor->trace(m_entries); } 128 DEFINE_INLINE_TRACE()
129 {
130 #if ENABLE(OILPAN)
131 visitor->trace(m_entries);
132 #endif
133 }
129 134
130 #ifndef NDEBUG 135 #ifndef NDEBUG
131 void show(); 136 void show();
132 #endif 137 #endif
133 138
134 private: 139 private:
135 Entry* first() { return &at(0); } 140 Entry* first() { return &at(0); }
136 141
137 // http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html# list-of-active-formatting-elements 142 // 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. 143 // These functions enforce the "Noah's Ark" condition, which removes redunda nt mis-nested elements.
139 void tryToEnsureNoahsArkConditionQuickly(HTMLStackItem*, WillBeHeapVector<Ra wPtrWillBeMember<HTMLStackItem>>& remainingCandiates); 144 void tryToEnsureNoahsArkConditionQuickly(HTMLStackItem*, WillBeHeapVector<Ra wPtrWillBeMember<HTMLStackItem>>& remainingCandiates);
140 void ensureNoahsArkCondition(HTMLStackItem*); 145 void ensureNoahsArkCondition(HTMLStackItem*);
141 146
142 WillBeHeapVector<Entry> m_entries; 147 WillBeHeapVector<Entry> m_entries;
143 }; 148 };
144 149
145 } // namespace blink 150 } // namespace blink
146 151
147 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent ry); 152 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::HTMLFormattingElementList::Ent ry);
148 153
149 #endif // HTMLFormattingElementList_h 154 #endif // HTMLFormattingElementList_h
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | Source/core/html/parser/HTMLScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698